diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 665a520c..a5e36fad 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: 9d937f0b088a71ee7aaf5a76d6324576 + docChecksum: b43c86bb9d2242c34e3771d650a5173e docVersion: 1.0.0 speakeasyVersion: 1.337.1 generationVersion: 2.373.2 - releaseVersion: 1.5.8 - configChecksum: 9fd96373cafa13376db9d8faf45645f8 + releaseVersion: 1.5.9 + configChecksum: ea282eedbffdadbc66fa72372cd33004 repoURL: https://github.com/airbytehq/airbyte-api-java-sdk.git repoSubDirectory: . published: true @@ -260,14 +260,14 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorage.java - src/main/java/com/airbyte/api/models/shared/DatasetLocation.java - src/main/java/com/airbyte/api/models/shared/Bigquery.java - - src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java - - src/main/java/com/airbyte/api/models/shared/StandardInserts.java - src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java - src/main/java/com/airbyte/api/models/shared/DestinationBigqueryHMACKey.java - src/main/java/com/airbyte/api/models/shared/Credential.java - src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java - - src/main/java/com/airbyte/api/models/shared/Method.java + - src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java - src/main/java/com/airbyte/api/models/shared/GCSStaging.java + - src/main/java/com/airbyte/api/models/shared/Method.java + - src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java - src/main/java/com/airbyte/api/models/shared/LoadingMethod.java - src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java - src/main/java/com/airbyte/api/models/shared/DestinationBigquery.java @@ -282,14 +282,11 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java - src/main/java/com/airbyte/api/models/shared/Convex.java - src/main/java/com/airbyte/api/models/shared/DestinationConvex.java - - src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasDataSourceType.java - - src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAzureBlobStorage.java - - src/main/java/com/airbyte/api/models/shared/DestinationDatabricksDataSourceType.java - - src/main/java/com/airbyte/api/models/shared/DestinationDatabricksS3BucketRegion.java - - src/main/java/com/airbyte/api/models/shared/AmazonS3.java - - src/main/java/com/airbyte/api/models/shared/DataSourceType.java - - src/main/java/com/airbyte/api/models/shared/RecommendedManagedTables.java - - src/main/java/com/airbyte/api/models/shared/DataSource.java + - src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java + - src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java + - src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java + - src/main/java/com/airbyte/api/models/shared/Authentication.java - src/main/java/com/airbyte/api/models/shared/Databricks.java - src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java - src/main/java/com/airbyte/api/models/shared/DevNull.java @@ -320,7 +317,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java - src/main/java/com/airbyte/api/models/shared/CredentialType.java - src/main/java/com/airbyte/api/models/shared/HMACKey.java - - src/main/java/com/airbyte/api/models/shared/Authentication.java + - src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java - src/main/java/com/airbyte/api/models/shared/Gcs.java - src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java - src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java @@ -601,11 +598,11 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationS3Glue.java - src/main/java/com/airbyte/api/models/shared/SftpJson.java - src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.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/DestinationSnowflakeOAuth20.java - - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java + - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java - - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java + - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java - src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java - src/main/java/com/airbyte/api/models/shared/AuthorizationMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java @@ -650,6 +647,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationTeradataDisable.java - src/main/java/com/airbyte/api/models/shared/DestinationTeradataSSLModes.java - src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java + - src/main/java/com/airbyte/api/models/shared/Timeplus.java + - src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java - src/main/java/com/airbyte/api/models/shared/Typesense.java - src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java - src/main/java/com/airbyte/api/models/shared/Vectara.java @@ -737,10 +736,12 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java - src/main/java/com/airbyte/api/models/shared/Aha.java - src/main/java/com/airbyte/api/models/shared/SourceAha.java + - src/main/java/com/airbyte/api/models/shared/Airbyte.java + - src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java - src/main/java/com/airbyte/api/models/shared/Aircall.java - src/main/java/com/airbyte/api/models/shared/SourceAircall.java - src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java - - src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java + - src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java - src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java - src/main/java/com/airbyte/api/models/shared/SourceAirtableOAuth20.java - src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java @@ -824,6 +825,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java - src/main/java/com/airbyte/api/models/shared/BambooHr.java - src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java + - src/main/java/com/airbyte/api/models/shared/Basecamp.java + - src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java - src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java - src/main/java/com/airbyte/api/models/shared/SourceBigquery.java - src/main/java/com/airbyte/api/models/shared/Operator.java @@ -838,6 +841,10 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceBraintree.java - src/main/java/com/airbyte/api/models/shared/Braze.java - src/main/java/com/airbyte/api/models/shared/SourceBraze.java + - src/main/java/com/airbyte/api/models/shared/BreezyHr.java + - src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java + - src/main/java/com/airbyte/api/models/shared/Calendly.java + - src/main/java/com/airbyte/api/models/shared/SourceCalendly.java - src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/SingleStoreAccessToken.java - src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java @@ -881,13 +888,17 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceConfluence.java - src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java - src/main/java/com/airbyte/api/models/shared/SourceConvex.java - - src/main/java/com/airbyte/api/models/shared/SourceDatadogDataSource.java + - src/main/java/com/airbyte/api/models/shared/CustomerIo.java + - src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java + - src/main/java/com/airbyte/api/models/shared/DataSource.java - src/main/java/com/airbyte/api/models/shared/Queries.java - src/main/java/com/airbyte/api/models/shared/Site.java - src/main/java/com/airbyte/api/models/shared/Datadog.java - src/main/java/com/airbyte/api/models/shared/SourceDatadog.java - src/main/java/com/airbyte/api/models/shared/Datascope.java - src/main/java/com/airbyte/api/models/shared/SourceDatascope.java + - src/main/java/com/airbyte/api/models/shared/Dbt.java + - src/main/java/com/airbyte/api/models/shared/SourceDbt.java - src/main/java/com/airbyte/api/models/shared/Delighted.java - src/main/java/com/airbyte/api/models/shared/SourceDelighted.java - src/main/java/com/airbyte/api/models/shared/Dixa.java @@ -961,7 +972,22 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/GainsightPx.java - src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java - src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java - - src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java + - src/main/java/com/airbyte/api/models/shared/ExcelFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java + - src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java + - src/main/java/com/airbyte/api/models/shared/ViaAPI.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java + - src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java - src/main/java/com/airbyte/api/models/shared/SourceGcsUserProvided.java - src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java @@ -971,9 +997,11 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceGcsCSVHeaderDefinition.java - src/main/java/com/airbyte/api/models/shared/SourceGcsInferenceType.java - src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java - src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java - src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java - - src/main/java/com/airbyte/api/models/shared/SourceGCSStreamConfig.java + - src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java - src/main/java/com/airbyte/api/models/shared/SourceGcs.java - src/main/java/com/airbyte/api/models/shared/Getlago.java - src/main/java/com/airbyte/api/models/shared/SourceGetlago.java @@ -1324,8 +1352,14 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java - src/main/java/com/airbyte/api/models/shared/Gridly.java - src/main/java/com/airbyte/api/models/shared/SourceGridly.java + - src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java + - src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java - src/main/java/com/airbyte/api/models/shared/Harvest.java - src/main/java/com/airbyte/api/models/shared/SourceHarvest.java + - src/main/java/com/airbyte/api/models/shared/Hibob.java + - src/main/java/com/airbyte/api/models/shared/SourceHibob.java + - src/main/java/com/airbyte/api/models/shared/HighLevel.java + - src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java - src/main/java/com/airbyte/api/models/shared/Hubplanner.java - src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java - src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java @@ -1361,6 +1395,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceKyve.java - src/main/java/com/airbyte/api/models/shared/Launchdarkly.java - src/main/java/com/airbyte/api/models/shared/SourceLaunchdarkly.java + - src/main/java/com/airbyte/api/models/shared/Leadfeeder.java + - src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java - src/main/java/com/airbyte/api/models/shared/Lemlist.java - src/main/java/com/airbyte/api/models/shared/SourceLemlist.java - src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java @@ -1393,6 +1429,10 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java - src/main/java/com/airbyte/api/models/shared/Lokalise.java - src/main/java/com/airbyte/api/models/shared/SourceLokalise.java + - src/main/java/com/airbyte/api/models/shared/Looker.java + - src/main/java/com/airbyte/api/models/shared/SourceLooker.java + - src/main/java/com/airbyte/api/models/shared/Luma.java + - src/main/java/com/airbyte/api/models/shared/SourceLuma.java - src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/APIKey.java - src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java @@ -1421,7 +1461,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java - - src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java @@ -1448,6 +1488,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java + - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java + - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java @@ -1495,8 +1537,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java - src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java - src/main/java/com/airbyte/api/models/shared/SourceMonday.java - - src/main/java/com/airbyte/api/models/shared/MongodbInternalPoc.java - - src/main/java/com/airbyte/api/models/shared/SourceMongodbInternalPoc.java - src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java - src/main/java/com/airbyte/api/models/shared/MongodbV2.java - src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java @@ -1551,6 +1591,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMysql.java - src/main/java/com/airbyte/api/models/shared/Netsuite.java - src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java + - src/main/java/com/airbyte/api/models/shared/NorthpassLms.java + - src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java - src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceNotionAccessToken.java - src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java @@ -1562,8 +1604,10 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java - src/main/java/com/airbyte/api/models/shared/Nytimes.java - src/main/java/com/airbyte/api/models/shared/SourceNytimes.java - - src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java + - src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java - src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceOktaOAuth20.java - src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java @@ -1615,6 +1659,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourcePaystack.java - src/main/java/com/airbyte/api/models/shared/Pendo.java - src/main/java/com/airbyte/api/models/shared/SourcePendo.java + - src/main/java/com/airbyte/api/models/shared/Pennylane.java + - src/main/java/com/airbyte/api/models/shared/SourcePennylane.java - src/main/java/com/airbyte/api/models/shared/Persistiq.java - src/main/java/com/airbyte/api/models/shared/SourcePersistiq.java - src/main/java/com/airbyte/api/models/shared/PexelsApi.java @@ -1635,6 +1681,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourcePinterest.java - src/main/java/com/airbyte/api/models/shared/Pipedrive.java - src/main/java/com/airbyte/api/models/shared/SourcePipedrive.java + - src/main/java/com/airbyte/api/models/shared/Planhat.java + - src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java - src/main/java/com/airbyte/api/models/shared/ContentType.java - src/main/java/com/airbyte/api/models/shared/DetailType.java - src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java @@ -1680,6 +1728,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceRecruitee.java - src/main/java/com/airbyte/api/models/shared/Recurly.java - src/main/java/com/airbyte/api/models/shared/SourceRecurly.java + - src/main/java/com/airbyte/api/models/shared/Reddit.java + - src/main/java/com/airbyte/api/models/shared/SourceReddit.java - src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java - src/main/java/com/airbyte/api/models/shared/SourceRedshift.java - src/main/java/com/airbyte/api/models/shared/SourceRetentlyRetently.java @@ -1740,6 +1790,10 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java - src/main/java/com/airbyte/api/models/shared/SapFieldglass.java - src/main/java/com/airbyte/api/models/shared/SourceSapFieldglass.java + - src/main/java/com/airbyte/api/models/shared/Savvycal.java + - src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java + - src/main/java/com/airbyte/api/models/shared/Scryfall.java + - src/main/java/com/airbyte/api/models/shared/SourceScryfall.java - src/main/java/com/airbyte/api/models/shared/Secoda.java - src/main/java/com/airbyte/api/models/shared/SourceSecoda.java - src/main/java/com/airbyte/api/models/shared/Sendgrid.java @@ -1763,15 +1817,17 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/AuthenticateViaPassword.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthentication.java - src/main/java/com/airbyte/api/models/shared/SftpBulk.java + - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java + - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java - - src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java - - src/main/java/com/airbyte/api/models/shared/ViaAPI.java + - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java + - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkLocal.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java - - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDocumentFileTypeFormatExperimental.java + - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParquetFormat.java - src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java @@ -1846,7 +1902,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceSquareSquare.java - src/main/java/com/airbyte/api/models/shared/SourceSquare.java - src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java - - src/main/java/com/airbyte/api/models/shared/SourceStravaStrava.java + - src/main/java/com/airbyte/api/models/shared/Strava.java - src/main/java/com/airbyte/api/models/shared/SourceStrava.java - src/main/java/com/airbyte/api/models/shared/Stripe.java - src/main/java/com/airbyte/api/models/shared/SourceStripe.java @@ -2018,7 +2074,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Snowflake.java - src/main/java/com/airbyte/api/models/shared/SquareCredentials.java - src/main/java/com/airbyte/api/models/shared/Square.java - - src/main/java/com/airbyte/api/models/shared/Strava.java - src/main/java/com/airbyte/api/models/shared/SurveymonkeyCredentials.java - src/main/java/com/airbyte/api/models/shared/Surveymonkey.java - src/main/java/com/airbyte/api/models/shared/TiktokMarketingCredentials.java @@ -2182,14 +2237,14 @@ generatedFiles: - docs/models/shared/DestinationAzureBlobStorage.md - docs/models/shared/DatasetLocation.md - docs/models/shared/Bigquery.md - - docs/models/shared/DestinationBigqueryMethod.md - - docs/models/shared/StandardInserts.md - docs/models/shared/DestinationBigqueryCredentialType.md - docs/models/shared/DestinationBigqueryHMACKey.md - docs/models/shared/Credential.md - docs/models/shared/GCSTmpFilesAfterwardProcessing.md - - docs/models/shared/Method.md + - docs/models/shared/DestinationBigqueryMethod.md - docs/models/shared/GCSStaging.md + - docs/models/shared/Method.md + - docs/models/shared/BatchedStandardInserts.md - docs/models/shared/LoadingMethod.md - docs/models/shared/TransformationQueryRunType.md - docs/models/shared/DestinationBigquery.md @@ -2204,14 +2259,11 @@ generatedFiles: - docs/models/shared/DestinationClickhouse.md - docs/models/shared/Convex.md - docs/models/shared/DestinationConvex.md - - docs/models/shared/DestinationDatabricksSchemasDataSourceType.md - - docs/models/shared/DestinationDatabricksAzureBlobStorage.md - - docs/models/shared/DestinationDatabricksDataSourceType.md - - docs/models/shared/DestinationDatabricksS3BucketRegion.md - - docs/models/shared/AmazonS3.md - - docs/models/shared/DataSourceType.md - - docs/models/shared/RecommendedManagedTables.md - - docs/models/shared/DataSource.md + - docs/models/shared/DestinationDatabricksAuthType.md + - docs/models/shared/PersonalAccessToken.md + - docs/models/shared/DestinationDatabricksSchemasAuthType.md + - docs/models/shared/OAuth2Recommended.md + - docs/models/shared/Authentication.md - docs/models/shared/Databricks.md - docs/models/shared/DestinationDatabricks.md - docs/models/shared/DevNull.md @@ -2242,7 +2294,7 @@ generatedFiles: - docs/models/shared/DestinationFirestore.md - docs/models/shared/CredentialType.md - docs/models/shared/HMACKey.md - - docs/models/shared/Authentication.md + - docs/models/shared/DestinationGcsAuthentication.md - docs/models/shared/Gcs.md - docs/models/shared/DestinationGcsCompressionCodec.md - docs/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.md @@ -2523,11 +2575,11 @@ generatedFiles: - docs/models/shared/DestinationS3Glue.md - docs/models/shared/SftpJson.md - docs/models/shared/DestinationSftpJson.md - - docs/models/shared/DestinationSnowflakeSchemasAuthType.md + - docs/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.md - docs/models/shared/DestinationSnowflakeOAuth20.md - - docs/models/shared/DestinationSnowflakeAuthType.md + - docs/models/shared/DestinationSnowflakeSchemasAuthType.md - docs/models/shared/UsernameAndPassword.md - - docs/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.md + - docs/models/shared/DestinationSnowflakeAuthType.md - docs/models/shared/KeyPairAuthentication.md - docs/models/shared/AuthorizationMethod.md - docs/models/shared/DestinationSnowflakeSnowflake.md @@ -2572,6 +2624,8 @@ generatedFiles: - docs/models/shared/DestinationTeradataDisable.md - docs/models/shared/DestinationTeradataSSLModes.md - docs/models/shared/DestinationTeradata.md + - docs/models/shared/Timeplus.md + - docs/models/shared/DestinationTimeplus.md - docs/models/shared/Typesense.md - docs/models/shared/DestinationTypesense.md - docs/models/shared/Vectara.md @@ -2659,10 +2713,12 @@ generatedFiles: - docs/models/shared/SourceConfiguration.md - docs/models/shared/Aha.md - docs/models/shared/SourceAha.md + - docs/models/shared/Airbyte.md + - docs/models/shared/SourceAirbyte.md - docs/models/shared/Aircall.md - docs/models/shared/SourceAircall.md - docs/models/shared/SourceAirtableAuthMethod.md - - docs/models/shared/PersonalAccessToken.md + - docs/models/shared/SourceAirtablePersonalAccessToken.md - docs/models/shared/SourceAirtableSchemasAuthMethod.md - docs/models/shared/SourceAirtableOAuth20.md - docs/models/shared/SourceAirtableAuthentication.md @@ -2746,6 +2802,8 @@ generatedFiles: - docs/models/shared/SourceAzureTable.md - docs/models/shared/BambooHr.md - docs/models/shared/SourceBambooHr.md + - docs/models/shared/Basecamp.md + - docs/models/shared/SourceBasecamp.md - docs/models/shared/SourceBigqueryBigquery.md - docs/models/shared/SourceBigquery.md - docs/models/shared/Operator.md @@ -2760,6 +2818,10 @@ generatedFiles: - docs/models/shared/SourceBraintree.md - docs/models/shared/Braze.md - docs/models/shared/SourceBraze.md + - docs/models/shared/BreezyHr.md + - docs/models/shared/SourceBreezyHr.md + - docs/models/shared/Calendly.md + - docs/models/shared/SourceCalendly.md - docs/models/shared/SourceCartSchemasAuthType.md - docs/models/shared/SingleStoreAccessToken.md - docs/models/shared/SourceCartAuthType.md @@ -2803,13 +2865,17 @@ generatedFiles: - docs/models/shared/SourceConfluence.md - docs/models/shared/SourceConvexConvex.md - docs/models/shared/SourceConvex.md - - docs/models/shared/SourceDatadogDataSource.md + - docs/models/shared/CustomerIo.md + - docs/models/shared/SourceCustomerIo.md + - docs/models/shared/DataSource.md - docs/models/shared/Queries.md - docs/models/shared/Site.md - docs/models/shared/Datadog.md - docs/models/shared/SourceDatadog.md - docs/models/shared/Datascope.md - docs/models/shared/SourceDatascope.md + - docs/models/shared/Dbt.md + - docs/models/shared/SourceDbt.md - docs/models/shared/Delighted.md - docs/models/shared/SourceDelighted.md - docs/models/shared/Dixa.md @@ -2883,7 +2949,22 @@ generatedFiles: - docs/models/shared/GainsightPx.md - docs/models/shared/SourceGainsightPx.md - docs/models/shared/SourceGcsGcs.md - - docs/models/shared/SourceGcsFiletype.md + - docs/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.md + - docs/models/shared/ExcelFormat.md + - docs/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.md + - docs/models/shared/SourceGcsSchemasMode.md + - docs/models/shared/APIParameterConfigModel.md + - docs/models/shared/ViaAPI.md + - docs/models/shared/SourceGcsMode.md + - docs/models/shared/SourceGcsLocal.md + - docs/models/shared/SourceGcsProcessing.md + - docs/models/shared/SourceGcsParsingStrategy.md + - docs/models/shared/UnstructuredDocumentFormat.md + - docs/models/shared/SourceGcsSchemasStreamsFormatFiletype.md + - docs/models/shared/SourceGcsParquetFormat.md + - docs/models/shared/SourceGcsSchemasStreamsFiletype.md + - docs/models/shared/SourceGcsJsonlFormat.md + - docs/models/shared/SourceGcsSchemasFiletype.md - docs/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.md - docs/models/shared/SourceGcsUserProvided.md - docs/models/shared/SourceGcsSchemasHeaderDefinitionType.md @@ -2893,9 +2974,11 @@ generatedFiles: - docs/models/shared/SourceGcsCSVHeaderDefinition.md - docs/models/shared/SourceGcsInferenceType.md - docs/models/shared/SourceGcsCSVFormat.md + - docs/models/shared/SourceGcsFiletype.md + - docs/models/shared/SourceGcsAvroFormat.md - docs/models/shared/SourceGcsFormat.md - docs/models/shared/SourceGcsValidationPolicy.md - - docs/models/shared/SourceGCSStreamConfig.md + - docs/models/shared/SourceGcsFileBasedStreamConfig.md - docs/models/shared/SourceGcs.md - docs/models/shared/Getlago.md - docs/models/shared/SourceGetlago.md @@ -3246,8 +3329,14 @@ generatedFiles: - docs/models/shared/SourceGreenhouse.md - docs/models/shared/Gridly.md - docs/models/shared/SourceGridly.md + - docs/models/shared/HardcodedRecords.md + - docs/models/shared/SourceHardcodedRecords.md - docs/models/shared/Harvest.md - docs/models/shared/SourceHarvest.md + - docs/models/shared/Hibob.md + - docs/models/shared/SourceHibob.md + - docs/models/shared/HighLevel.md + - docs/models/shared/SourceHighLevel.md - docs/models/shared/Hubplanner.md - docs/models/shared/SourceHubplanner.md - docs/models/shared/SourceHubspotSchemasAuthType.md @@ -3283,6 +3372,8 @@ generatedFiles: - docs/models/shared/SourceKyve.md - docs/models/shared/Launchdarkly.md - docs/models/shared/SourceLaunchdarkly.md + - docs/models/shared/Leadfeeder.md + - docs/models/shared/SourceLeadfeeder.md - docs/models/shared/Lemlist.md - docs/models/shared/SourceLemlist.md - docs/models/shared/SourceLeverHiringSchemasAuthType.md @@ -3315,6 +3406,10 @@ generatedFiles: - docs/models/shared/SourceLinnworks.md - docs/models/shared/Lokalise.md - docs/models/shared/SourceLokalise.md + - docs/models/shared/Looker.md + - docs/models/shared/SourceLooker.md + - docs/models/shared/Luma.md + - docs/models/shared/SourceLuma.md - docs/models/shared/SourceMailchimpSchemasAuthType.md - docs/models/shared/APIKey.md - docs/models/shared/SourceMailchimpAuthType.md @@ -3343,7 +3438,7 @@ generatedFiles: - docs/models/shared/SourceMicrosoftOnedriveLocal.md - docs/models/shared/SourceMicrosoftOnedriveProcessing.md - docs/models/shared/SourceMicrosoftOnedriveParsingStrategy.md - - docs/models/shared/UnstructuredDocumentFormat.md + - docs/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.md - docs/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.md - docs/models/shared/SourceMicrosoftOnedriveParquetFormat.md - docs/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.md @@ -3370,6 +3465,8 @@ generatedFiles: - docs/models/shared/SourceMicrosoftSharepointAuthentication.md - docs/models/shared/SourceMicrosoftSharepointSearchScope.md - docs/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.md + - docs/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.md + - docs/models/shared/SourceMicrosoftSharepointExcelFormat.md - docs/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.md - docs/models/shared/SourceMicrosoftSharepointMode.md - docs/models/shared/SourceMicrosoftSharepointLocal.md @@ -3417,8 +3514,6 @@ generatedFiles: - docs/models/shared/SourceMondayAuthorizationMethod.md - docs/models/shared/SourceMondayMonday.md - docs/models/shared/SourceMonday.md - - docs/models/shared/MongodbInternalPoc.md - - docs/models/shared/SourceMongodbInternalPoc.md - docs/models/shared/InvalidCDCPositionBehaviorAdvanced.md - docs/models/shared/MongodbV2.md - docs/models/shared/CaptureModeAdvanced.md @@ -3473,6 +3568,8 @@ generatedFiles: - docs/models/shared/SourceMysql.md - docs/models/shared/Netsuite.md - docs/models/shared/SourceNetsuite.md + - docs/models/shared/NorthpassLms.md + - docs/models/shared/SourceNorthpassLms.md - docs/models/shared/SourceNotionSchemasAuthType.md - docs/models/shared/SourceNotionAccessToken.md - docs/models/shared/SourceNotionAuthType.md @@ -3484,8 +3581,10 @@ generatedFiles: - docs/models/shared/ShareTypeUsedForMostPopularSharedStream.md - docs/models/shared/Nytimes.md - docs/models/shared/SourceNytimes.md - - docs/models/shared/SourceOktaSchemasAuthType.md + - docs/models/shared/SourceOktaSchemasCredentialsAuthType.md - docs/models/shared/SourceOktaAPIToken.md + - docs/models/shared/SourceOktaSchemasAuthType.md + - docs/models/shared/OAuth20WithPrivateKey.md - docs/models/shared/SourceOktaAuthType.md - docs/models/shared/SourceOktaOAuth20.md - docs/models/shared/SourceOktaAuthorizationMethod.md @@ -3537,6 +3636,8 @@ generatedFiles: - docs/models/shared/SourcePaystack.md - docs/models/shared/Pendo.md - docs/models/shared/SourcePendo.md + - docs/models/shared/Pennylane.md + - docs/models/shared/SourcePennylane.md - docs/models/shared/Persistiq.md - docs/models/shared/SourcePersistiq.md - docs/models/shared/PexelsApi.md @@ -3557,6 +3658,8 @@ generatedFiles: - docs/models/shared/SourcePinterest.md - docs/models/shared/Pipedrive.md - docs/models/shared/SourcePipedrive.md + - docs/models/shared/Planhat.md + - docs/models/shared/SourcePlanhat.md - docs/models/shared/ContentType.md - docs/models/shared/DetailType.md - docs/models/shared/SourcePocketSortBy.md @@ -3602,6 +3705,8 @@ generatedFiles: - docs/models/shared/SourceRecruitee.md - docs/models/shared/Recurly.md - docs/models/shared/SourceRecurly.md + - docs/models/shared/Reddit.md + - docs/models/shared/SourceReddit.md - docs/models/shared/SourceRedshiftRedshift.md - docs/models/shared/SourceRedshift.md - docs/models/shared/SourceRetentlyRetently.md @@ -3662,6 +3767,10 @@ generatedFiles: - docs/models/shared/SourceSalesloft.md - docs/models/shared/SapFieldglass.md - docs/models/shared/SourceSapFieldglass.md + - docs/models/shared/Savvycal.md + - docs/models/shared/SourceSavvycal.md + - docs/models/shared/Scryfall.md + - docs/models/shared/SourceScryfall.md - docs/models/shared/Secoda.md - docs/models/shared/SourceSecoda.md - docs/models/shared/Sendgrid.md @@ -3685,15 +3794,17 @@ generatedFiles: - docs/models/shared/AuthenticateViaPassword.md - docs/models/shared/SourceSftpBulkAuthentication.md - docs/models/shared/SftpBulk.md + - docs/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.md + - docs/models/shared/SourceSftpBulkExcelFormat.md - docs/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.md - docs/models/shared/SourceSftpBulkSchemasMode.md - - docs/models/shared/APIParameterConfigModel.md - - docs/models/shared/ViaAPI.md + - docs/models/shared/SourceSftpBulkAPIParameterConfigModel.md + - docs/models/shared/SourceSftpBulkViaAPI.md - docs/models/shared/SourceSftpBulkMode.md - docs/models/shared/SourceSftpBulkLocal.md - docs/models/shared/SourceSftpBulkProcessing.md - docs/models/shared/SourceSftpBulkParsingStrategy.md - - docs/models/shared/SourceSftpBulkDocumentFileTypeFormatExperimental.md + - docs/models/shared/SourceSftpBulkUnstructuredDocumentFormat.md - docs/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.md - docs/models/shared/SourceSftpBulkParquetFormat.md - docs/models/shared/SourceSftpBulkSchemasStreamsFiletype.md @@ -3768,7 +3879,7 @@ generatedFiles: - docs/models/shared/SourceSquareSquare.md - docs/models/shared/SourceSquare.md - docs/models/shared/SourceStravaAuthType.md - - docs/models/shared/SourceStravaStrava.md + - docs/models/shared/Strava.md - docs/models/shared/SourceStrava.md - docs/models/shared/Stripe.md - docs/models/shared/SourceStripe.md @@ -3940,7 +4051,6 @@ generatedFiles: - docs/models/shared/Snowflake.md - docs/models/shared/SquareCredentials.md - docs/models/shared/Square.md - - docs/models/shared/Strava.md - docs/models/shared/SurveymonkeyCredentials.md - docs/models/shared/Surveymonkey.md - docs/models/shared/TiktokMarketingCredentials.md diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 177a479f..28d09921 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - main sample-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:142a69e773ed28c0c8b75b868b2e145ac684c4e4fd9b18e1392e5093f7553c71 - sourceBlobDigest: sha256:729c2bcd66f73c7f0c0433795036408fac38b4842bd9e4c6e31a8fce4d640ad9 + sourceRevisionDigest: sha256:36d8228d8dff7dbba9d36672157e8cc40873b7feabebd86fc52a2d500af9ffcf + sourceBlobDigest: sha256:6b6e5ec987cafa803612cc3f6ebbdea1d9b9d4d14426c10092ac2b459eac7ea5 tags: - latest - main @@ -24,8 +24,8 @@ targets: testing: source: sample-source sourceNamespace: my-source - sourceRevisionDigest: sha256:142a69e773ed28c0c8b75b868b2e145ac684c4e4fd9b18e1392e5093f7553c71 - sourceBlobDigest: sha256:729c2bcd66f73c7f0c0433795036408fac38b4842bd9e4c6e31a8fce4d640ad9 + sourceRevisionDigest: sha256:36d8228d8dff7dbba9d36672157e8cc40873b7feabebd86fc52a2d500af9ffcf + sourceBlobDigest: sha256:6b6e5ec987cafa803612cc3f6ebbdea1d9b9d4d14426c10092ac2b459eac7ea5 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/README.md b/README.md index 74ea2b3d..8f3cb686 100755 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.airbyte:api:1.5.8' +implementation 'com.airbyte:api:1.5.9' ``` Maven: @@ -34,7 +34,7 @@ Maven: com.airbyte api - 1.5.8 + 1.5.9 ``` diff --git a/RELEASES.md b/RELEASES.md index 8f0f1ecd..0f8e2019 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1161,4 +1161,14 @@ Based on: ### Generated - [java v1.5.8] . ### Releases -- [Maven Central v1.5.8] https://central.sonatype.com/artifact/com.airbyte/api/1.5.8 - . \ No newline at end of file +- [Maven Central v1.5.8] https://central.sonatype.com/artifact/com.airbyte/api/1.5.8 - . + +## 2024-09-11 00:14:55 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.395.1 (2.415.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v1.5.9] . +### Releases +- [Maven Central v1.5.9] https://central.sonatype.com/artifact/com.airbyte/api/1.5.9 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index ae2b6a04..9b9fb8e3 100644 --- a/build.gradle +++ b/build.gradle @@ -61,7 +61,7 @@ tasks.withType(Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') } group = "com.airbyte" -version = "1.5.8" +version = "1.5.9" sourcesJar { archiveBaseName = "api" @@ -98,7 +98,7 @@ publishing { maven(MavenPublication) { groupId = 'com.airbyte' artifactId = 'api' - version = '1.5.8' + version = '1.5.9' from components.java diff --git a/docs/models/shared/Airbyte.md b/docs/models/shared/Airbyte.md new file mode 100644 index 00000000..90355271 --- /dev/null +++ b/docs/models/shared/Airbyte.md @@ -0,0 +1,8 @@ +# Airbyte + + +## Values + +| Name | Value | +| --------- | --------- | +| `AIRBYTE` | airbyte | \ No newline at end of file diff --git a/docs/models/shared/AmazonS3.md b/docs/models/shared/AmazonS3.md deleted file mode 100644 index 2808fb0b..00000000 --- a/docs/models/shared/AmazonS3.md +++ /dev/null @@ -1,14 +0,0 @@ -# AmazonS3 - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `dataSourceType` | [com.airbyte.api.models.shared.DestinationDatabricksDataSourceType](../../models/shared/DestinationDatabricksDataSourceType.md) | :heavy_check_mark: | N/A | | -| `fileNamePattern` | *Optional* | :heavy_minus_sign: | The pattern allows you to set the file-name format for the S3 staging file(s) | {date} | -| `s3AccessKeyId` | *String* | :heavy_check_mark: | The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. | A012345678910EXAMPLE | -| `s3BucketName` | *String* | :heavy_check_mark: | The name of the S3 bucket to use for intermittent staging of the data. | airbyte.staging | -| `s3BucketPath` | *String* | :heavy_check_mark: | The directory under the S3 bucket where data will be written. | data_sync/test | -| `s3BucketRegion` | [Optional](../../models/shared/DestinationDatabricksS3BucketRegion.md) | :heavy_minus_sign: | The region of the S3 staging bucket to use if utilising a copy strategy. | | -| `s3SecretAccessKey` | *String* | :heavy_check_mark: | The corresponding secret to the above access key id. | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | \ No newline at end of file diff --git a/docs/models/shared/Authentication.md b/docs/models/shared/Authentication.md index aad29815..0ddb730f 100644 --- a/docs/models/shared/Authentication.md +++ b/docs/models/shared/Authentication.md @@ -1,4 +1,4 @@ # Authentication -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. +Authentication mechanism for Staging files and running queries diff --git a/docs/models/shared/Basecamp.md b/docs/models/shared/Basecamp.md new file mode 100644 index 00000000..6e93afe9 --- /dev/null +++ b/docs/models/shared/Basecamp.md @@ -0,0 +1,8 @@ +# Basecamp + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `BASECAMP` | basecamp | \ No newline at end of file diff --git a/docs/models/shared/BatchedStandardInserts.md b/docs/models/shared/BatchedStandardInserts.md new file mode 100644 index 00000000..9a326219 --- /dev/null +++ b/docs/models/shared/BatchedStandardInserts.md @@ -0,0 +1,10 @@ +# BatchedStandardInserts + +Direct loading using batched SQL INSERT statements. This method uses the BigQuery driver to convert large INSERT statements into file uploads automatically. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `method` | [com.airbyte.api.models.shared.Method](../../models/shared/Method.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/BreezyHr.md b/docs/models/shared/BreezyHr.md new file mode 100644 index 00000000..558c654b --- /dev/null +++ b/docs/models/shared/BreezyHr.md @@ -0,0 +1,8 @@ +# BreezyHr + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `BREEZY_HR` | breezy-hr | \ No newline at end of file diff --git a/docs/models/shared/Calendly.md b/docs/models/shared/Calendly.md new file mode 100644 index 00000000..6c2e2f0c --- /dev/null +++ b/docs/models/shared/Calendly.md @@ -0,0 +1,8 @@ +# Calendly + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `CALENDLY` | calendly | \ No newline at end of file diff --git a/docs/models/shared/CustomerIo.md b/docs/models/shared/CustomerIo.md new file mode 100644 index 00000000..ea634ec8 --- /dev/null +++ b/docs/models/shared/CustomerIo.md @@ -0,0 +1,8 @@ +# CustomerIo + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `CUSTOMER_IO` | customer-io | \ No newline at end of file diff --git a/docs/models/shared/DataSource.md b/docs/models/shared/DataSource.md index 0cd721ce..4643ec7f 100644 --- a/docs/models/shared/DataSource.md +++ b/docs/models/shared/DataSource.md @@ -1,4 +1,13 @@ # DataSource -Storage on which the delta lake is built. +A data source that is powered by the platform. + +## Values + +| Name | Value | +| ------------ | ------------ | +| `METRICS` | metrics | +| `CLOUD_COST` | cloud_cost | +| `LOGS` | logs | +| `RUM` | rum | \ No newline at end of file diff --git a/docs/models/shared/DataSourceType.md b/docs/models/shared/DataSourceType.md deleted file mode 100644 index 829ee000..00000000 --- a/docs/models/shared/DataSourceType.md +++ /dev/null @@ -1,8 +0,0 @@ -# DataSourceType - - -## Values - -| Name | Value | -| ------------------------ | ------------------------ | -| `MANAGED_TABLES_STORAGE` | MANAGED_TABLES_STORAGE | \ No newline at end of file diff --git a/docs/models/shared/Dbt.md b/docs/models/shared/Dbt.md new file mode 100644 index 00000000..a68b5570 --- /dev/null +++ b/docs/models/shared/Dbt.md @@ -0,0 +1,8 @@ +# Dbt + + +## Values + +| Name | Value | +| ----- | ----- | +| `DBT` | dbt | \ No newline at end of file diff --git a/docs/models/shared/DestinationBigqueryMethod.md b/docs/models/shared/DestinationBigqueryMethod.md index 4cc0047c..9483dc54 100644 --- a/docs/models/shared/DestinationBigqueryMethod.md +++ b/docs/models/shared/DestinationBigqueryMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ---------- | ---------- | -| `STANDARD` | Standard | \ No newline at end of file +| Name | Value | +| ------------- | ------------- | +| `GCS_STAGING` | GCS Staging | \ No newline at end of file diff --git a/docs/models/shared/DestinationDatabricks.md b/docs/models/shared/DestinationDatabricks.md index 6a3942ee..f8521b04 100644 --- a/docs/models/shared/DestinationDatabricks.md +++ b/docs/models/shared/DestinationDatabricks.md @@ -6,13 +6,12 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | `acceptTerms` | *Optional* | :heavy_minus_sign: | You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. | | -| `dataSource` | [com.airbyte.api.models.shared.DataSource](../../models/shared/DataSource.md) | :heavy_check_mark: | Storage on which the delta lake is built. | | -| `database` | *Optional* | :heavy_minus_sign: | The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. | | -| `databricksHttpPath` | *String* | :heavy_check_mark: | Databricks Cluster HTTP Path. | sql/protocolvx/o/1234567489/0000-1111111-abcd90 | -| `databricksPersonalAccessToken` | *String* | :heavy_check_mark: | Databricks Personal Access Token for making authenticated requests. | dapi0123456789abcdefghij0123456789AB | -| `databricksPort` | *Optional* | :heavy_minus_sign: | Databricks Cluster Port. | 443 | -| `databricksServerHostname` | *String* | :heavy_check_mark: | Databricks Cluster Server Hostname. | abc-12345678-wxyz.cloud.databricks.com | +| `authentication` | [com.airbyte.api.models.shared.Authentication](../../models/shared/Authentication.md) | :heavy_check_mark: | Authentication mechanism for Staging files and running queries | | +| `database` | *String* | :heavy_check_mark: | The name of the unity catalog for the database | | | `destinationType` | [com.airbyte.api.models.shared.Databricks](../../models/shared/Databricks.md) | :heavy_check_mark: | N/A | | -| `enableSchemaEvolution` | *Optional* | :heavy_minus_sign: | Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. | | +| `hostname` | *String* | :heavy_check_mark: | Databricks Cluster Server Hostname. | abc-12345678-wxyz.cloud.databricks.com | +| `httpPath` | *String* | :heavy_check_mark: | Databricks Cluster HTTP Path. | sql/1.0/warehouses/0000-1111111-abcd90 | +| `port` | *Optional* | :heavy_minus_sign: | Databricks Cluster Port. | 443 | | `purgeStagingData` | *Optional* | :heavy_minus_sign: | Default to 'true'. Switch it to 'false' for debugging purpose. | | +| `rawSchemaOverride` | *Optional* | :heavy_minus_sign: | The schema to write raw tables into (default: airbyte_internal) | | | `schema` | *Optional* | :heavy_minus_sign: | The default schema tables are written. If not specified otherwise, the "default" will be used. | default | \ No newline at end of file diff --git a/docs/models/shared/DestinationDatabricksAuthType.md b/docs/models/shared/DestinationDatabricksAuthType.md new file mode 100644 index 00000000..e88bee48 --- /dev/null +++ b/docs/models/shared/DestinationDatabricksAuthType.md @@ -0,0 +1,8 @@ +# DestinationDatabricksAuthType + + +## Values + +| Name | Value | +| ------- | ------- | +| `BASIC` | BASIC | \ No newline at end of file diff --git a/docs/models/shared/DestinationDatabricksAzureBlobStorage.md b/docs/models/shared/DestinationDatabricksAzureBlobStorage.md deleted file mode 100644 index 82e96623..00000000 --- a/docs/models/shared/DestinationDatabricksAzureBlobStorage.md +++ /dev/null @@ -1,12 +0,0 @@ -# DestinationDatabricksAzureBlobStorage - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `azureBlobStorageAccountName` | *String* | :heavy_check_mark: | The account's name of the Azure Blob Storage. | airbyte5storage | -| `azureBlobStorageContainerName` | *String* | :heavy_check_mark: | The name of the Azure blob storage container. | airbytetestcontainername | -| `azureBlobStorageEndpointDomainName` | *Optional* | :heavy_minus_sign: | 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. | blob.core.windows.net | -| `azureBlobStorageSasToken` | *String* | :heavy_check_mark: | Shared access signature (SAS) token to grant limited access to objects in your storage account. | ?sv=2016-05-31&ss=b&srt=sco&sp=rwdl&se=2018-06-27T10:05:50Z&st=2017-06-27T02:05:50Z&spr=https,http&sig=bgqQwoXwxzuD2GJfagRg7VOS8hzNr3QLT7rhS8OFRLQ%3D | -| `dataSourceType` | [com.airbyte.api.models.shared.DestinationDatabricksSchemasDataSourceType](../../models/shared/DestinationDatabricksSchemasDataSourceType.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/DestinationDatabricksS3BucketRegion.md b/docs/models/shared/DestinationDatabricksS3BucketRegion.md deleted file mode 100644 index b06a06ae..00000000 --- a/docs/models/shared/DestinationDatabricksS3BucketRegion.md +++ /dev/null @@ -1,35 +0,0 @@ -# DestinationDatabricksS3BucketRegion - -The region of the S3 staging bucket to use if utilising a copy strategy. - - -## Values - -| Name | Value | -| --------------- | --------------- | -| `UNKNOWN` | | -| `US_EAST1` | us-east-1 | -| `US_EAST2` | us-east-2 | -| `US_WEST1` | us-west-1 | -| `US_WEST2` | us-west-2 | -| `AF_SOUTH1` | af-south-1 | -| `AP_EAST1` | ap-east-1 | -| `AP_SOUTH1` | ap-south-1 | -| `AP_NORTHEAST1` | ap-northeast-1 | -| `AP_NORTHEAST2` | ap-northeast-2 | -| `AP_NORTHEAST3` | ap-northeast-3 | -| `AP_SOUTHEAST1` | ap-southeast-1 | -| `AP_SOUTHEAST2` | ap-southeast-2 | -| `CA_CENTRAL1` | ca-central-1 | -| `CN_NORTH1` | cn-north-1 | -| `CN_NORTHWEST1` | cn-northwest-1 | -| `EU_CENTRAL1` | eu-central-1 | -| `EU_NORTH1` | eu-north-1 | -| `EU_SOUTH1` | eu-south-1 | -| `EU_WEST1` | eu-west-1 | -| `EU_WEST2` | eu-west-2 | -| `EU_WEST3` | eu-west-3 | -| `SA_EAST1` | sa-east-1 | -| `ME_SOUTH1` | me-south-1 | -| `US_GOV_EAST1` | us-gov-east-1 | -| `US_GOV_WEST1` | us-gov-west-1 | \ No newline at end of file diff --git a/docs/models/shared/DestinationDatabricksSchemasAuthType.md b/docs/models/shared/DestinationDatabricksSchemasAuthType.md new file mode 100644 index 00000000..5dafe852 --- /dev/null +++ b/docs/models/shared/DestinationDatabricksSchemasAuthType.md @@ -0,0 +1,8 @@ +# DestinationDatabricksSchemasAuthType + + +## Values + +| Name | Value | +| ------- | ------- | +| `OAUTH` | OAUTH | \ No newline at end of file diff --git a/docs/models/shared/DestinationDatabricksSchemasDataSourceType.md b/docs/models/shared/DestinationDatabricksSchemasDataSourceType.md deleted file mode 100644 index 2f9cd7ba..00000000 --- a/docs/models/shared/DestinationDatabricksSchemasDataSourceType.md +++ /dev/null @@ -1,8 +0,0 @@ -# DestinationDatabricksSchemasDataSourceType - - -## Values - -| Name | Value | -| -------------------- | -------------------- | -| `AZURE_BLOB_STORAGE` | AZURE_BLOB_STORAGE | \ No newline at end of file diff --git a/docs/models/shared/DestinationGcs.md b/docs/models/shared/DestinationGcs.md index a7383ca9..b0aa98a0 100644 --- a/docs/models/shared/DestinationGcs.md +++ b/docs/models/shared/DestinationGcs.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `credential` | [com.airbyte.api.models.shared.Authentication](../../models/shared/Authentication.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. | | +| `credential` | [com.airbyte.api.models.shared.DestinationGcsAuthentication](../../models/shared/DestinationGcsAuthentication.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. | | | `destinationType` | [com.airbyte.api.models.shared.Gcs](../../models/shared/Gcs.md) | :heavy_check_mark: | N/A | | | `format` | [com.airbyte.api.models.shared.DestinationGcsOutputFormat](../../models/shared/DestinationGcsOutputFormat.md) | :heavy_check_mark: | Output data format. One of the following formats must be selected - AVRO format, PARQUET format, CSV format, or JSONL format. | | | `gcsBucketName` | *String* | :heavy_check_mark: | 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. | airbyte_sync | diff --git a/docs/models/shared/DestinationGcsAuthentication.md b/docs/models/shared/DestinationGcsAuthentication.md new file mode 100644 index 00000000..096d5b9d --- /dev/null +++ b/docs/models/shared/DestinationGcsAuthentication.md @@ -0,0 +1,4 @@ +# 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 here. + diff --git a/docs/models/shared/DestinationSnowflake.md b/docs/models/shared/DestinationSnowflake.md index e4c6a42c..88e031d4 100644 --- a/docs/models/shared/DestinationSnowflake.md +++ b/docs/models/shared/DestinationSnowflake.md @@ -15,5 +15,6 @@ | `retentionPeriodDays` | *Optional* | :heavy_minus_sign: | 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. | | | `role` | *String* | :heavy_check_mark: | Enter the role that you want to use to access Snowflake | AIRBYTE_ROLE | | `schema` | *String* | :heavy_check_mark: | Enter the name of the default schema | AIRBYTE_SCHEMA | +| `useMergeForUpsert` | *Optional* | :heavy_minus_sign: | Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE | | | `username` | *String* | :heavy_check_mark: | Enter the name of the user you want to use to access the database | AIRBYTE_USER | | `warehouse` | *String* | :heavy_check_mark: | Enter the name of the warehouse that you want to use as a compute cluster | AIRBYTE_WAREHOUSE | \ No newline at end of file diff --git a/docs/models/shared/DestinationSnowflakeAuthType.md b/docs/models/shared/DestinationSnowflakeAuthType.md index 6044c963..d3cccfb0 100644 --- a/docs/models/shared/DestinationSnowflakeAuthType.md +++ b/docs/models/shared/DestinationSnowflakeAuthType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ----------------------- | ----------------------- | -| `USERNAME_AND_PASSWORD` | Username and Password | \ 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/DestinationSnowflakeOAuth20.md b/docs/models/shared/DestinationSnowflakeOAuth20.md index 4089d4de..f3e3c025 100644 --- a/docs/models/shared/DestinationSnowflakeOAuth20.md +++ b/docs/models/shared/DestinationSnowflakeOAuth20.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accessToken` | *String* | :heavy_check_mark: | Enter you application's Access Token | -| `authType` | [Optional](../../models/shared/DestinationSnowflakeSchemasAuthType.md) | :heavy_minus_sign: | N/A | -| `clientId` | *Optional* | :heavy_minus_sign: | Enter your application's Client ID | -| `clientSecret` | *Optional* | :heavy_minus_sign: | Enter your application's Client secret | -| `refreshToken` | *String* | :heavy_check_mark: | Enter your application's Refresh Token | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accessToken` | *String* | :heavy_check_mark: | Enter you application's Access Token | +| `authType` | [Optional](../../models/shared/DestinationSnowflakeSchemasCredentialsAuthType.md) | :heavy_minus_sign: | N/A | +| `clientId` | *Optional* | :heavy_minus_sign: | Enter your application's Client ID | +| `clientSecret` | *Optional* | :heavy_minus_sign: | Enter your application's Client secret | +| `refreshToken` | *String* | :heavy_check_mark: | Enter your application's Refresh Token | \ No newline at end of file diff --git a/docs/models/shared/DestinationSnowflakeSchemasAuthType.md b/docs/models/shared/DestinationSnowflakeSchemasAuthType.md index 3d1da085..13439db3 100644 --- a/docs/models/shared/DestinationSnowflakeSchemasAuthType.md +++ b/docs/models/shared/DestinationSnowflakeSchemasAuthType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ---------- | ---------- | -| `O_AUTH20` | OAuth2.0 | \ No newline at end of file +| Name | Value | +| ----------------------- | ----------------------- | +| `USERNAME_AND_PASSWORD` | Username and Password | \ No newline at end of file diff --git a/docs/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.md b/docs/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.md index b2fefb2f..745e157d 100644 --- a/docs/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.md +++ b/docs/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------------- | ------------------------- | -| `KEY_PAIR_AUTHENTICATION` | Key Pair Authentication | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `O_AUTH20` | OAuth2.0 | \ No newline at end of file diff --git a/docs/models/shared/DestinationTimeplus.md b/docs/models/shared/DestinationTimeplus.md new file mode 100644 index 00000000..71277d29 --- /dev/null +++ b/docs/models/shared/DestinationTimeplus.md @@ -0,0 +1,10 @@ +# DestinationTimeplus + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `apikey` | *String* | :heavy_check_mark: | Personal API key | | +| `destinationType` | [com.airbyte.api.models.shared.Timeplus](../../models/shared/Timeplus.md) | :heavy_check_mark: | N/A | | +| `endpoint` | *Optional* | :heavy_minus_sign: | Timeplus workspace endpoint | https://us-west-2.timeplus.cloud/workspace_id | \ No newline at end of file diff --git a/docs/models/shared/DestinationTypesense.md b/docs/models/shared/DestinationTypesense.md index 8b42ff37..50a0a7b9 100644 --- a/docs/models/shared/DestinationTypesense.md +++ b/docs/models/shared/DestinationTypesense.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `apiKey` | *String* | :heavy_check_mark: | Typesense API Key | -| `batchSize` | *Optional* | :heavy_minus_sign: | How many documents should be imported together. Default 1000 | -| `destinationType` | [com.airbyte.api.models.shared.Typesense](../../models/shared/Typesense.md) | :heavy_check_mark: | N/A | -| `host` | *String* | :heavy_check_mark: | Hostname of the Typesense instance without protocol. | -| `path` | *Optional* | :heavy_minus_sign: | Path of the Typesense instance. Default is none | -| `port` | *Optional* | :heavy_minus_sign: | Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443 | -| `protocol` | *Optional* | :heavy_minus_sign: | Protocol of the Typesense instance. Ex: http or https. Default is https | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Typesense API Key | +| `batchSize` | *Optional* | :heavy_minus_sign: | How many documents should be imported together. Default 1000 | +| `destinationType` | [com.airbyte.api.models.shared.Typesense](../../models/shared/Typesense.md) | :heavy_check_mark: | N/A | +| `host` | *String* | :heavy_check_mark: | Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. | +| `path` | *Optional* | :heavy_minus_sign: | Path of the Typesense instance. Default is none | +| `port` | *Optional* | :heavy_minus_sign: | Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443 | +| `protocol` | *Optional* | :heavy_minus_sign: | Protocol of the Typesense instance. Ex: http or https. Default is https | \ No newline at end of file diff --git a/docs/models/shared/ExcelFormat.md b/docs/models/shared/ExcelFormat.md new file mode 100644 index 00000000..598bbe4e --- /dev/null +++ b/docs/models/shared/ExcelFormat.md @@ -0,0 +1,8 @@ +# ExcelFormat + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `filetype` | [Optional](../../models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/GCSStaging.md b/docs/models/shared/GCSStaging.md index c17412bf..30f9e08b 100644 --- a/docs/models/shared/GCSStaging.md +++ b/docs/models/shared/GCSStaging.md @@ -1,6 +1,6 @@ # GCSStaging -(recommended) Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. Provides best-in-class speed, reliability and scalability. Read more about GCS Staging here. +Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. ## Fields @@ -11,4 +11,4 @@ | `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` | [com.airbyte.api.models.shared.Method](../../models/shared/Method.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| `method` | [com.airbyte.api.models.shared.DestinationBigqueryMethod](../../models/shared/DestinationBigqueryMethod.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/HardcodedRecords.md b/docs/models/shared/HardcodedRecords.md new file mode 100644 index 00000000..8b0b26b7 --- /dev/null +++ b/docs/models/shared/HardcodedRecords.md @@ -0,0 +1,8 @@ +# HardcodedRecords + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `HARDCODED_RECORDS` | hardcoded-records | \ No newline at end of file diff --git a/docs/models/shared/Hibob.md b/docs/models/shared/Hibob.md new file mode 100644 index 00000000..7dc36a96 --- /dev/null +++ b/docs/models/shared/Hibob.md @@ -0,0 +1,8 @@ +# Hibob + + +## Values + +| Name | Value | +| ------- | ------- | +| `HIBOB` | hibob | \ No newline at end of file diff --git a/docs/models/shared/DestinationDatabricksDataSourceType.md b/docs/models/shared/HighLevel.md similarity index 52% rename from docs/models/shared/DestinationDatabricksDataSourceType.md rename to docs/models/shared/HighLevel.md index 81c5fa22..69dce037 100644 --- a/docs/models/shared/DestinationDatabricksDataSourceType.md +++ b/docs/models/shared/HighLevel.md @@ -1,8 +1,8 @@ -# DestinationDatabricksDataSourceType +# HighLevel ## Values | Name | Value | | ------------ | ------------ | -| `S3_STORAGE` | S3_STORAGE | \ No newline at end of file +| `HIGH_LEVEL` | high-level | \ No newline at end of file diff --git a/docs/models/shared/KeyPairAuthentication.md b/docs/models/shared/KeyPairAuthentication.md index adf6fc18..ba3cae8b 100644 --- a/docs/models/shared/KeyPairAuthentication.md +++ b/docs/models/shared/KeyPairAuthentication.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authType` | [Optional](../../models/shared/DestinationSnowflakeSchemasCredentialsAuthType.md) | :heavy_minus_sign: | N/A | +| `authType` | [Optional](../../models/shared/DestinationSnowflakeAuthType.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 | \ No newline at end of file diff --git a/docs/models/shared/Leadfeeder.md b/docs/models/shared/Leadfeeder.md new file mode 100644 index 00000000..3fc1bd25 --- /dev/null +++ b/docs/models/shared/Leadfeeder.md @@ -0,0 +1,8 @@ +# Leadfeeder + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `LEADFEEDER` | leadfeeder | \ No newline at end of file diff --git a/docs/models/shared/SourceStravaStrava.md b/docs/models/shared/Looker.md similarity index 58% rename from docs/models/shared/SourceStravaStrava.md rename to docs/models/shared/Looker.md index b80c72ae..142afb00 100644 --- a/docs/models/shared/SourceStravaStrava.md +++ b/docs/models/shared/Looker.md @@ -1,8 +1,8 @@ -# SourceStravaStrava +# Looker ## Values | Name | Value | | -------- | -------- | -| `STRAVA` | strava | \ No newline at end of file +| `LOOKER` | looker | \ No newline at end of file diff --git a/docs/models/shared/Luma.md b/docs/models/shared/Luma.md new file mode 100644 index 00000000..510de29a --- /dev/null +++ b/docs/models/shared/Luma.md @@ -0,0 +1,8 @@ +# Luma + + +## Values + +| Name | Value | +| ------ | ------ | +| `LUMA` | luma | \ No newline at end of file diff --git a/docs/models/shared/Method.md b/docs/models/shared/Method.md index 5601d513..b7dfea67 100644 --- a/docs/models/shared/Method.md +++ b/docs/models/shared/Method.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------- | ------------- | -| `GCS_STAGING` | GCS Staging | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `STANDARD` | Standard | \ No newline at end of file diff --git a/docs/models/shared/MongodbInternalPoc.md b/docs/models/shared/MongodbInternalPoc.md deleted file mode 100644 index b6a77eb4..00000000 --- a/docs/models/shared/MongodbInternalPoc.md +++ /dev/null @@ -1,8 +0,0 @@ -# MongodbInternalPoc - - -## Values - -| Name | Value | -| ---------------------- | ---------------------- | -| `MONGODB_INTERNAL_POC` | mongodb-internal-poc | \ No newline at end of file diff --git a/docs/models/shared/NorthpassLms.md b/docs/models/shared/NorthpassLms.md new file mode 100644 index 00000000..20cc75bf --- /dev/null +++ b/docs/models/shared/NorthpassLms.md @@ -0,0 +1,8 @@ +# NorthpassLms + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `NORTHPASS_LMS` | northpass-lms | \ No newline at end of file diff --git a/docs/models/shared/OAuth20WithPrivateKey.md b/docs/models/shared/OAuth20WithPrivateKey.md new file mode 100644 index 00000000..7116eef0 --- /dev/null +++ b/docs/models/shared/OAuth20WithPrivateKey.md @@ -0,0 +1,12 @@ +# OAuth20WithPrivateKey + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `authType` | [com.airbyte.api.models.shared.SourceOktaSchemasAuthType](../../models/shared/SourceOktaSchemasAuthType.md) | :heavy_check_mark: | N/A | +| `clientId` | *String* | :heavy_check_mark: | The Client ID of your OAuth application. | +| `keyId` | *String* | :heavy_check_mark: | The key ID (kid). | +| `privateKey` | *String* | :heavy_check_mark: | The private key in PEM format | +| `scope` | *String* | :heavy_check_mark: | The OAuth scope. | \ No newline at end of file diff --git a/docs/models/shared/OAuth2Recommended.md b/docs/models/shared/OAuth2Recommended.md new file mode 100644 index 00000000..4b9b92c0 --- /dev/null +++ b/docs/models/shared/OAuth2Recommended.md @@ -0,0 +1,10 @@ +# OAuth2Recommended + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `authType` | [com.airbyte.api.models.shared.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 a474ed44..0fbc9ae7 100644 --- a/docs/models/shared/OAuthActorNames.md +++ b/docs/models/shared/OAuthActorNames.md @@ -38,7 +38,6 @@ | `SNAPCHAT_MARKETING` | snapchat-marketing | | `SNOWFLAKE` | snowflake | | `SQUARE` | square | -| `STRAVA` | strava | | `SURVEYMONKEY` | surveymonkey | | `TIKTOK_MARKETING` | tiktok-marketing | | `TRELLO` | trello | diff --git a/docs/models/shared/Pennylane.md b/docs/models/shared/Pennylane.md new file mode 100644 index 00000000..547d637e --- /dev/null +++ b/docs/models/shared/Pennylane.md @@ -0,0 +1,8 @@ +# Pennylane + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `PENNYLANE` | pennylane | \ No newline at end of file diff --git a/docs/models/shared/PersonalAccessToken.md b/docs/models/shared/PersonalAccessToken.md index f7ce247f..262a9cea 100644 --- a/docs/models/shared/PersonalAccessToken.md +++ b/docs/models/shared/PersonalAccessToken.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `apiKey` | *String* | :heavy_check_mark: | The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token. | key1234567890 | -| `authMethod` | [Optional](../../models/shared/SourceAirtableAuthMethod.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `authType` | [com.airbyte.api.models.shared.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/Planhat.md b/docs/models/shared/Planhat.md new file mode 100644 index 00000000..54550c59 --- /dev/null +++ b/docs/models/shared/Planhat.md @@ -0,0 +1,8 @@ +# Planhat + + +## Values + +| Name | Value | +| --------- | --------- | +| `PLANHAT` | planhat | \ No newline at end of file diff --git a/docs/models/shared/Queries.md b/docs/models/shared/Queries.md index 23882706..b641b98e 100644 --- a/docs/models/shared/Queries.md +++ b/docs/models/shared/Queries.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `dataSource` | [com.airbyte.api.models.shared.SourceDatadogDataSource](../../models/shared/SourceDatadogDataSource.md) | :heavy_check_mark: | A data source that is powered by the platform. | -| `name` | *String* | :heavy_check_mark: | The variable name for use in queries. | -| `query` | *String* | :heavy_check_mark: | A classic query string. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `dataSource` | [com.airbyte.api.models.shared.DataSource](../../models/shared/DataSource.md) | :heavy_check_mark: | A data source that is powered by the platform. | +| `name` | *String* | :heavy_check_mark: | The variable name for use in queries. | +| `query` | *String* | :heavy_check_mark: | A classic query string. | \ No newline at end of file diff --git a/docs/models/shared/ReadChangesUsingChangeDataCaptureCDC.md b/docs/models/shared/ReadChangesUsingChangeDataCaptureCDC.md index 97ea41bd..f7d70656 100644 --- a/docs/models/shared/ReadChangesUsingChangeDataCaptureCDC.md +++ b/docs/models/shared/ReadChangesUsingChangeDataCaptureCDC.md @@ -7,6 +7,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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 3600 seconds. Read about initial waiting time. | | `invalidCdcCursorPositionBehavior` | [Optional](../../models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.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. | | `method` | [com.airbyte.api.models.shared.SourceMssqlMethod](../../models/shared/SourceMssqlMethod.md) | :heavy_check_mark: | N/A | diff --git a/docs/models/shared/RecommendedManagedTables.md b/docs/models/shared/RecommendedManagedTables.md deleted file mode 100644 index 6cf55ad5..00000000 --- a/docs/models/shared/RecommendedManagedTables.md +++ /dev/null @@ -1,8 +0,0 @@ -# RecommendedManagedTables - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `dataSourceType` | [com.airbyte.api.models.shared.DataSourceType](../../models/shared/DataSourceType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Reddit.md b/docs/models/shared/Reddit.md new file mode 100644 index 00000000..35948158 --- /dev/null +++ b/docs/models/shared/Reddit.md @@ -0,0 +1,8 @@ +# Reddit + + +## Values + +| Name | Value | +| -------- | -------- | +| `REDDIT` | reddit | \ No newline at end of file diff --git a/docs/models/shared/Savvycal.md b/docs/models/shared/Savvycal.md new file mode 100644 index 00000000..59f47341 --- /dev/null +++ b/docs/models/shared/Savvycal.md @@ -0,0 +1,8 @@ +# Savvycal + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `SAVVYCAL` | savvycal | \ No newline at end of file diff --git a/docs/models/shared/Scryfall.md b/docs/models/shared/Scryfall.md new file mode 100644 index 00000000..8a6ab0b8 --- /dev/null +++ b/docs/models/shared/Scryfall.md @@ -0,0 +1,8 @@ +# Scryfall + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `SCRYFALL` | scryfall | \ No newline at end of file diff --git a/docs/models/shared/SourceAirbyte.md b/docs/models/shared/SourceAirbyte.md new file mode 100644 index 00000000..e6ab9955 --- /dev/null +++ b/docs/models/shared/SourceAirbyte.md @@ -0,0 +1,11 @@ +# SourceAirbyte + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `clientId` | *String* | :heavy_check_mark: | N/A | +| `clientSecret` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Airbyte](../../models/shared/Airbyte.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/SourceAirtablePersonalAccessToken.md b/docs/models/shared/SourceAirtablePersonalAccessToken.md new file mode 100644 index 00000000..8015d35f --- /dev/null +++ b/docs/models/shared/SourceAirtablePersonalAccessToken.md @@ -0,0 +1,9 @@ +# SourceAirtablePersonalAccessToken + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token. | key1234567890 | +| `authMethod` | [Optional](../../models/shared/SourceAirtableAuthMethod.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceAmazonSellerPartner.md b/docs/models/shared/SourceAmazonSellerPartner.md index 0597925b..e410fc4f 100644 --- a/docs/models/shared/SourceAmazonSellerPartner.md +++ b/docs/models/shared/SourceAmazonSellerPartner.md @@ -3,17 +3,18 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accountType` | [Optional](../../models/shared/AWSSellerPartnerAccountType.md) | :heavy_minus_sign: | Type of the Account you're going to authorize the Airbyte application by | | -| `authType` | [Optional](../../models/shared/SourceAmazonSellerPartnerAuthType.md) | :heavy_minus_sign: | N/A | | -| `awsEnvironment` | [Optional](../../models/shared/AWSEnvironment.md) | :heavy_minus_sign: | Select the AWS Environment. | | -| `lwaAppId` | *String* | :heavy_check_mark: | Your Login with Amazon Client ID. | | -| `lwaClientSecret` | *String* | :heavy_check_mark: | Your Login with Amazon Client Secret. | | -| `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. | | -| `replicationEndDate` | [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 after this date will not be replicated. | 2017-01-25T00:00:00Z | -| `replicationStartDate` | [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 start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. | 2017-01-25T00:00:00Z | -| `reportOptionsList` | List<[com.airbyte.api.models.shared.ReportOptions](../../models/shared/ReportOptions.md)> | :heavy_minus_sign: | Additional information passed to reports. This varies by report type. | | -| `sourceType` | [com.airbyte.api.models.shared.SourceAmazonSellerPartnerAmazonSellerPartner](../../models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `accountType` | [Optional](../../models/shared/AWSSellerPartnerAccountType.md) | :heavy_minus_sign: | Type of the Account you're going to authorize the Airbyte application by | | +| `authType` | [Optional](../../models/shared/SourceAmazonSellerPartnerAuthType.md) | :heavy_minus_sign: | N/A | | +| `awsEnvironment` | [Optional](../../models/shared/AWSEnvironment.md) | :heavy_minus_sign: | Select the AWS Environment. | | +| `lwaAppId` | *String* | :heavy_check_mark: | Your Login with Amazon Client ID. | | +| `lwaClientSecret` | *String* | :heavy_check_mark: | Your Login with Amazon Client Secret. | | +| `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. | | +| `replicationEndDate` | [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 after this date will not be replicated. | 2017-01-25T00:00:00Z | +| `replicationStartDate` | [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 start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. | 2017-01-25T00:00:00Z | +| `reportOptionsList` | List<[com.airbyte.api.models.shared.ReportOptions](../../models/shared/ReportOptions.md)> | :heavy_minus_sign: | Additional information passed to reports. This varies by report type. | | +| `sourceType` | [com.airbyte.api.models.shared.SourceAmazonSellerPartnerAmazonSellerPartner](../../models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.md) | :heavy_check_mark: | N/A | | +| `waitToAvoidFatalErrors` | *Optional* | :heavy_minus_sign: | 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 | | \ No newline at end of file diff --git a/docs/models/shared/SourceBambooHr.md b/docs/models/shared/SourceBambooHr.md index 40605717..6d503e93 100644 --- a/docs/models/shared/SourceBambooHr.md +++ b/docs/models/shared/SourceBambooHr.md @@ -9,4 +9,5 @@ | `customReportsFields` | *Optional* | :heavy_minus_sign: | Comma-separated list of fields to include in custom reports. | | `customReportsIncludeDefaultFields` | *Optional* | :heavy_minus_sign: | If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. | | `sourceType` | [com.airbyte.api.models.shared.BambooHr](../../models/shared/BambooHr.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 | | `subdomain` | *String* | :heavy_check_mark: | Sub Domain of bamboo hr | \ No newline at end of file diff --git a/docs/models/shared/SourceBasecamp.md b/docs/models/shared/SourceBasecamp.md new file mode 100644 index 00000000..7d0530fb --- /dev/null +++ b/docs/models/shared/SourceBasecamp.md @@ -0,0 +1,13 @@ +# SourceBasecamp + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `accountId` | *double* | :heavy_check_mark: | N/A | +| `clientId` | *String* | :heavy_check_mark: | N/A | +| `clientRefreshToken2` | *String* | :heavy_check_mark: | N/A | +| `clientSecret` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Basecamp](../../models/shared/Basecamp.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/SourceBreezyHr.md b/docs/models/shared/SourceBreezyHr.md new file mode 100644 index 00000000..29a100a8 --- /dev/null +++ b/docs/models/shared/SourceBreezyHr.md @@ -0,0 +1,10 @@ +# SourceBreezyHr + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `companyId` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.BreezyHr](../../models/shared/BreezyHr.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceCalendly.md b/docs/models/shared/SourceCalendly.md new file mode 100644 index 00000000..f5e4e2a2 --- /dev/null +++ b/docs/models/shared/SourceCalendly.md @@ -0,0 +1,10 @@ +# SourceCalendly + + +## 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` | [com.airbyte.api.models.shared.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/SourceClickupApi.md b/docs/models/shared/SourceClickupApi.md index c654094b..ceb4cb3c 100644 --- a/docs/models/shared/SourceClickupApi.md +++ b/docs/models/shared/SourceClickupApi.md @@ -3,12 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `apiToken` | *String* | :heavy_check_mark: | Every ClickUp API call required authentication. This field is your personal API token. See here. | -| `folderId` | *Optional* | :heavy_minus_sign: | The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See here. | -| `includeClosedTasks` | *Optional* | :heavy_minus_sign: | Include or exclude closed tasks. By default, they are excluded. See here. | -| `listId` | *Optional* | :heavy_minus_sign: | The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See here. | -| `sourceType` | [com.airbyte.api.models.shared.ClickupApi](../../models/shared/ClickupApi.md) | :heavy_check_mark: | N/A | -| `spaceId` | *Optional* | :heavy_minus_sign: | The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See here. | -| `teamId` | *Optional* | :heavy_minus_sign: | The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See here. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `apiToken` | *String* | :heavy_check_mark: | Every ClickUp API call required authentication. This field is your personal API token. See here. | +| `includeClosedTasks` | *Optional* | :heavy_minus_sign: | Include or exclude closed tasks. By default, they are excluded. See here. | +| `sourceType` | [com.airbyte.api.models.shared.ClickupApi](../../models/shared/ClickupApi.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceCustomerIo.md b/docs/models/shared/SourceCustomerIo.md new file mode 100644 index 00000000..ca315bdc --- /dev/null +++ b/docs/models/shared/SourceCustomerIo.md @@ -0,0 +1,9 @@ +# SourceCustomerIo + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `appApiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.CustomerIo](../../models/shared/CustomerIo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceDatadogDataSource.md b/docs/models/shared/SourceDatadogDataSource.md deleted file mode 100644 index 3fbb8616..00000000 --- a/docs/models/shared/SourceDatadogDataSource.md +++ /dev/null @@ -1,13 +0,0 @@ -# SourceDatadogDataSource - -A data source that is powered by the platform. - - -## Values - -| Name | Value | -| ------------ | ------------ | -| `METRICS` | metrics | -| `CLOUD_COST` | cloud_cost | -| `LOGS` | logs | -| `RUM` | rum | \ No newline at end of file diff --git a/docs/models/shared/SourceDbt.md b/docs/models/shared/SourceDbt.md new file mode 100644 index 00000000..fc19a3cf --- /dev/null +++ b/docs/models/shared/SourceDbt.md @@ -0,0 +1,10 @@ +# SourceDbt + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `accountId` | *String* | :heavy_check_mark: | N/A | +| `apiKey2` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Dbt](../../models/shared/Dbt.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceFacebookMarketing.md b/docs/models/shared/SourceFacebookMarketing.md index f04d6bda..1c9d820a 100644 --- a/docs/models/shared/SourceFacebookMarketing.md +++ b/docs/models/shared/SourceFacebookMarketing.md @@ -13,7 +13,7 @@ | `campaignStatuses` | List<[com.airbyte.api.models.shared.ValidCampaignStatuses](../../models/shared/ValidCampaignStatuses.md)> | :heavy_minus_sign: | 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. | | | `clientId` | *Optional* | :heavy_minus_sign: | The Client Id for your OAuth app | | | `clientSecret` | *Optional* | :heavy_minus_sign: | The Client Secret for your OAuth app | | -| `credentials` | [Optional](../../models/shared/SourceFacebookMarketingAuthentication.md) | :heavy_minus_sign: | Credentials for connecting to the Facebook Marketing API | | +| `credentials` | [com.airbyte.api.models.shared.SourceFacebookMarketingAuthentication](../../models/shared/SourceFacebookMarketingAuthentication.md) | :heavy_check_mark: | Credentials for connecting to the Facebook Marketing API | | | `customInsights` | List<[com.airbyte.api.models.shared.InsightConfig](../../models/shared/InsightConfig.md)> | :heavy_minus_sign: | 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. | | | `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 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. | 2017-01-26T00:00:00Z | | `fetchThumbnailImages` | *Optional* | :heavy_minus_sign: | Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative. | | diff --git a/docs/models/shared/SourceGcs.md b/docs/models/shared/SourceGcs.md index 4d5bf04a..29125348 100644 --- a/docs/models/shared/SourceGcs.md +++ b/docs/models/shared/SourceGcs.md @@ -7,10 +7,10 @@ legacy GCS configs into file based configs using the File-Based CDK. ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `bucket` | *String* | :heavy_check_mark: | Name of the GCS bucket where the file(s) exist. | | -| `serviceAccount` | *String* | :heavy_check_mark: | Enter your Google Cloud service account key in JSON format | | -| `sourceType` | [com.airbyte.api.models.shared.SourceGcsGcs](../../models/shared/SourceGcsGcs.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<[com.airbyte.api.models.shared.SourceGCSStreamConfig](../../models/shared/SourceGCSStreamConfig.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 +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `bucket` | *String* | :heavy_check_mark: | Name of the GCS bucket where the file(s) exist. | | +| `serviceAccount` | *String* | :heavy_check_mark: | Enter your Google Cloud service account key in JSON format | | +| `sourceType` | [com.airbyte.api.models.shared.SourceGcsGcs](../../models/shared/SourceGcsGcs.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<[com.airbyte.api.models.shared.SourceGcsFileBasedStreamConfig](../../models/shared/SourceGcsFileBasedStreamConfig.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/SourceGcsAvroFormat.md b/docs/models/shared/SourceGcsAvroFormat.md new file mode 100644 index 00000000..9a445ec1 --- /dev/null +++ b/docs/models/shared/SourceGcsAvroFormat.md @@ -0,0 +1,9 @@ +# SourceGcsAvroFormat + + +## 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/SourceGcsFiletype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsCSVFormat.md b/docs/models/shared/SourceGcsCSVFormat.md index 26adf5de..f5d725ea 100644 --- a/docs/models/shared/SourceGcsCSVFormat.md +++ b/docs/models/shared/SourceGcsCSVFormat.md @@ -10,7 +10,7 @@ | `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/SourceGcsFiletype.md) | :heavy_minus_sign: | N/A | +| `filetype` | [Optional](../../models/shared/SourceGcsSchemasFiletype.md) | :heavy_minus_sign: | N/A | | `headerDefinition` | [Optional](../../models/shared/SourceGcsCSVHeaderDefinition.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. | | `inferenceType` | [Optional](../../models/shared/SourceGcsInferenceType.md) | :heavy_minus_sign: | How to infer the types of the columns. If none, inference default to strings. | diff --git a/docs/models/shared/SourceGCSStreamConfig.md b/docs/models/shared/SourceGcsFileBasedStreamConfig.md similarity index 90% rename from docs/models/shared/SourceGCSStreamConfig.md rename to docs/models/shared/SourceGcsFileBasedStreamConfig.md index 174ef402..529ace4d 100644 --- a/docs/models/shared/SourceGCSStreamConfig.md +++ b/docs/models/shared/SourceGcsFileBasedStreamConfig.md @@ -1,4 +1,4 @@ -# SourceGCSStreamConfig +# SourceGcsFileBasedStreamConfig ## Fields @@ -9,8 +9,9 @@ | `format` | [com.airbyte.api.models.shared.SourceGcsFormat](../../models/shared/SourceGcsFormat.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. | -| `legacyPrefix` | *Optional* | :heavy_minus_sign: | The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. | +| `legacyPrefix` | *Optional* | :heavy_minus_sign: | The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. | | `name` | *String* | :heavy_check_mark: | The name of the stream. | | `primaryKey` | *Optional* | :heavy_minus_sign: | The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. | +| `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/SourceGcsValidationPolicy.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/SourceGcsFiletype.md b/docs/models/shared/SourceGcsFiletype.md index 9739a879..117ca9b0 100644 --- a/docs/models/shared/SourceGcsFiletype.md +++ b/docs/models/shared/SourceGcsFiletype.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ----- | ----- | -| `CSV` | csv | \ No newline at end of file +| Name | Value | +| ------ | ------ | +| `AVRO` | avro | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsJsonlFormat.md b/docs/models/shared/SourceGcsJsonlFormat.md new file mode 100644 index 00000000..ec59b3a6 --- /dev/null +++ b/docs/models/shared/SourceGcsJsonlFormat.md @@ -0,0 +1,8 @@ +# SourceGcsJsonlFormat + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `filetype` | [Optional](../../models/shared/SourceGcsSchemasStreamsFiletype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsLocal.md b/docs/models/shared/SourceGcsLocal.md new file mode 100644 index 00000000..1b2fc2fa --- /dev/null +++ b/docs/models/shared/SourceGcsLocal.md @@ -0,0 +1,10 @@ +# SourceGcsLocal + +Process files locally, supporting `fast` and `ocr` modes. This is the default option. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `mode` | [Optional](../../models/shared/SourceGcsMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsMode.md b/docs/models/shared/SourceGcsMode.md new file mode 100644 index 00000000..6571a0d1 --- /dev/null +++ b/docs/models/shared/SourceGcsMode.md @@ -0,0 +1,8 @@ +# SourceGcsMode + + +## Values + +| Name | Value | +| ------- | ------- | +| `LOCAL` | local | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsParquetFormat.md b/docs/models/shared/SourceGcsParquetFormat.md new file mode 100644 index 00000000..56da2e42 --- /dev/null +++ b/docs/models/shared/SourceGcsParquetFormat.md @@ -0,0 +1,9 @@ +# SourceGcsParquetFormat + + +## 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/SourceGcsSchemasStreamsFormatFiletype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsParsingStrategy.md b/docs/models/shared/SourceGcsParsingStrategy.md new file mode 100644 index 00000000..ff419bb6 --- /dev/null +++ b/docs/models/shared/SourceGcsParsingStrategy.md @@ -0,0 +1,13 @@ +# 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 + + +## 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/SourceGcsProcessing.md b/docs/models/shared/SourceGcsProcessing.md new file mode 100644 index 00000000..159340b2 --- /dev/null +++ b/docs/models/shared/SourceGcsProcessing.md @@ -0,0 +1,4 @@ +# SourceGcsProcessing + +Processing configuration + diff --git a/docs/models/shared/SourceGcsSchemasFiletype.md b/docs/models/shared/SourceGcsSchemasFiletype.md new file mode 100644 index 00000000..cb5de76a --- /dev/null +++ b/docs/models/shared/SourceGcsSchemasFiletype.md @@ -0,0 +1,8 @@ +# SourceGcsSchemasFiletype + + +## Values + +| Name | Value | +| ----- | ----- | +| `CSV` | csv | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsSchemasMode.md b/docs/models/shared/SourceGcsSchemasMode.md new file mode 100644 index 00000000..113d58ea --- /dev/null +++ b/docs/models/shared/SourceGcsSchemasMode.md @@ -0,0 +1,8 @@ +# SourceGcsSchemasMode + + +## Values + +| Name | Value | +| ----- | ----- | +| `API` | api | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsSchemasStreamsFiletype.md b/docs/models/shared/SourceGcsSchemasStreamsFiletype.md new file mode 100644 index 00000000..08acc708 --- /dev/null +++ b/docs/models/shared/SourceGcsSchemasStreamsFiletype.md @@ -0,0 +1,8 @@ +# SourceGcsSchemasStreamsFiletype + + +## Values + +| Name | Value | +| ------- | ------- | +| `JSONL` | jsonl | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsSchemasStreamsFormatFiletype.md b/docs/models/shared/SourceGcsSchemasStreamsFormatFiletype.md new file mode 100644 index 00000000..791cc155 --- /dev/null +++ b/docs/models/shared/SourceGcsSchemasStreamsFormatFiletype.md @@ -0,0 +1,8 @@ +# SourceGcsSchemasStreamsFormatFiletype + + +## Values + +| Name | Value | +| --------- | --------- | +| `PARQUET` | parquet | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.md b/docs/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.md new file mode 100644 index 00000000..18b8946c --- /dev/null +++ b/docs/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.md @@ -0,0 +1,8 @@ +# SourceGcsSchemasStreamsFormatFormat6Filetype + + +## Values + +| Name | Value | +| ------- | ------- | +| `EXCEL` | excel | \ No newline at end of file diff --git a/docs/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.md b/docs/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.md new file mode 100644 index 00000000..3f893e02 --- /dev/null +++ b/docs/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.md @@ -0,0 +1,8 @@ +# SourceGcsSchemasStreamsFormatFormatFiletype + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `UNSTRUCTURED` | unstructured | \ No newline at end of file diff --git a/docs/models/shared/SourceHardcodedRecords.md b/docs/models/shared/SourceHardcodedRecords.md new file mode 100644 index 00000000..63788659 --- /dev/null +++ b/docs/models/shared/SourceHardcodedRecords.md @@ -0,0 +1,9 @@ +# SourceHardcodedRecords + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `count` | *Optional* | :heavy_minus_sign: | How many records per stream should be generated | +| `sourceType` | [com.airbyte.api.models.shared.HardcodedRecords](../../models/shared/HardcodedRecords.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceHibob.md b/docs/models/shared/SourceHibob.md new file mode 100644 index 00000000..2e06aca9 --- /dev/null +++ b/docs/models/shared/SourceHibob.md @@ -0,0 +1,11 @@ +# SourceHibob + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `isSandbox` | *boolean* | :heavy_check_mark: | Toggle true if this instance is a HiBob sandbox | +| `password` | *Optional* | :heavy_minus_sign: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Hibob](../../models/shared/Hibob.md) | :heavy_check_mark: | N/A | +| `username` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceHighLevel.md b/docs/models/shared/SourceHighLevel.md new file mode 100644 index 00000000..bc0b6a59 --- /dev/null +++ b/docs/models/shared/SourceHighLevel.md @@ -0,0 +1,11 @@ +# SourceHighLevel + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `locationId` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.HighLevel](../../models/shared/HighLevel.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/SourceKlaviyo.md b/docs/models/shared/SourceKlaviyo.md index d51abe2e..d9f5730b 100644 --- a/docs/models/shared/SourceKlaviyo.md +++ b/docs/models/shared/SourceKlaviyo.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `apiKey` | *String* | :heavy_check_mark: | Klaviyo API Key. See our docs if you need help finding this key. | | -| `sourceType` | [com.airbyte.api.models.shared.Klaviyo](../../models/shared/Klaviyo.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. This field is optional - if not provided, all data will be replicated. | 2017-01-25T00:00:00Z | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Klaviyo API Key. See our docs if you need help finding this key. | | +| `disableFetchingPredictiveAnalytics` | *Optional* | :heavy_minus_sign: | 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. | | +| `sourceType` | [com.airbyte.api.models.shared.Klaviyo](../../models/shared/Klaviyo.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. This field is optional - if not provided, all data will be replicated. | 2017-01-25T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceLeadfeeder.md b/docs/models/shared/SourceLeadfeeder.md new file mode 100644 index 00000000..6ce2bb7e --- /dev/null +++ b/docs/models/shared/SourceLeadfeeder.md @@ -0,0 +1,10 @@ +# SourceLeadfeeder + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiToken` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Leadfeeder](../../models/shared/Leadfeeder.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/SourceLooker.md b/docs/models/shared/SourceLooker.md new file mode 100644 index 00000000..8fb9a2db --- /dev/null +++ b/docs/models/shared/SourceLooker.md @@ -0,0 +1,12 @@ +# SourceLooker + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `clientId` | *String* | :heavy_check_mark: | 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. | | +| `clientSecret` | *String* | :heavy_check_mark: | The Client Secret is second part of an API3 key. | | +| `domain` | *String* | :heavy_check_mark: | Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address | domainname.looker.com | +| `runLookIds` | List<*String*> | :heavy_minus_sign: | The IDs of any Looks to run | | +| `sourceType` | [com.airbyte.api.models.shared.Looker](../../models/shared/Looker.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceLuma.md b/docs/models/shared/SourceLuma.md new file mode 100644 index 00000000..eabb8e77 --- /dev/null +++ b/docs/models/shared/SourceLuma.md @@ -0,0 +1,9 @@ +# SourceLuma + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Get your API key on lu.ma Calendars dashboard → Settings. | +| `sourceType` | [com.airbyte.api.models.shared.Luma](../../models/shared/Luma.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceMetabase.md b/docs/models/shared/SourceMetabase.md index 4b05d53d..1473a096 100644 --- a/docs/models/shared/SourceMetabase.md +++ b/docs/models/shared/SourceMetabase.md @@ -9,4 +9,4 @@ | `password` | *Optional* | :heavy_minus_sign: | N/A | | | `sessionToken` | *Optional* | :heavy_minus_sign: | 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
``` 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. | | | `sourceType` | [com.airbyte.api.models.shared.Metabase](../../models/shared/Metabase.md) | :heavy_check_mark: | N/A | | -| `username` | *Optional* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `username` | *String* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.md b/docs/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.md new file mode 100644 index 00000000..1676bd4e --- /dev/null +++ b/docs/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.md @@ -0,0 +1,13 @@ +# SourceMicrosoftOnedriveUnstructuredDocumentFormat + +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/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.md) | :heavy_minus_sign: | N/A | +| `processing` | [Optional](../../models/shared/SourceMicrosoftOnedriveProcessing.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/SourceMicrosoftOnedriveParsingStrategy.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/SourceMicrosoftSharepointExcelFormat.md b/docs/models/shared/SourceMicrosoftSharepointExcelFormat.md new file mode 100644 index 00000000..4d717993 --- /dev/null +++ b/docs/models/shared/SourceMicrosoftSharepointExcelFormat.md @@ -0,0 +1,8 @@ +# SourceMicrosoftSharepointExcelFormat + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `filetype` | [Optional](../../models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.md b/docs/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.md index 47e19aa1..f466b2c1 100644 --- a/docs/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.md +++ b/docs/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.md @@ -11,5 +11,6 @@ | `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. | | `primaryKey` | *Optional* | :heavy_minus_sign: | The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. | +| `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/SourceMicrosoftSharepointValidationPolicy.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/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.md b/docs/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.md new file mode 100644 index 00000000..4eb988d1 --- /dev/null +++ b/docs/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.md @@ -0,0 +1,8 @@ +# SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype + + +## Values + +| Name | Value | +| ------- | ------- | +| `EXCEL` | excel | \ No newline at end of file diff --git a/docs/models/shared/SourceMixpanel.md b/docs/models/shared/SourceMixpanel.md index bf8ecf6f..5a8a9878 100644 --- a/docs/models/shared/SourceMixpanel.md +++ b/docs/models/shared/SourceMixpanel.md @@ -9,6 +9,7 @@ | `credentials` | [com.airbyte.api.models.shared.AuthenticationWildcard](../../models/shared/AuthenticationWildcard.md) | :heavy_check_mark: | Choose how to authenticate to Mixpanel | | | `dateWindowSize` | *Optional* | :heavy_minus_sign: | 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) | | | `endDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | 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 | 2021-11-16 | +| `pageSize` | *Optional* | :heavy_minus_sign: | 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. | | | `projectTimezone` | *Optional* | :heavy_minus_sign: | Time zone in which integer date times are stored. The project timezone may be found in the project settings in the Mixpanel console. | US/Pacific | | `region` | [Optional](../../models/shared/SourceMixpanelRegion.md) | :heavy_minus_sign: | The region of mixpanel domain instance either US or EU. | | | `selectPropertiesByDefault` | *Optional* | :heavy_minus_sign: | Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored. | | diff --git a/docs/models/shared/SourceMongodbInternalPoc.md b/docs/models/shared/SourceMongodbInternalPoc.md deleted file mode 100644 index 54025832..00000000 --- a/docs/models/shared/SourceMongodbInternalPoc.md +++ /dev/null @@ -1,13 +0,0 @@ -# SourceMongodbInternalPoc - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `authSource` | *Optional* | :heavy_minus_sign: | The authentication source where the user information is stored. | admin | -| `connectionString` | *Optional* | :heavy_minus_sign: | The connection string of the database that you want to replicate.. | mongodb+srv://example.mongodb.net | -| `password` | *Optional* | :heavy_minus_sign: | The password associated with this username. | | -| `replicaSet` | *Optional* | :heavy_minus_sign: | The name of the replica set to be replicated. | | -| `sourceType` | [com.airbyte.api.models.shared.MongodbInternalPoc](../../models/shared/MongodbInternalPoc.md) | :heavy_check_mark: | N/A | | -| `user` | *Optional* | :heavy_minus_sign: | The username which is used to access the database. | | \ No newline at end of file diff --git a/docs/models/shared/SourceMongodbV2.md b/docs/models/shared/SourceMongodbV2.md index 3c15c914..cae5d453 100644 --- a/docs/models/shared/SourceMongodbV2.md +++ b/docs/models/shared/SourceMongodbV2.md @@ -7,6 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `databaseConfig` | *java.lang.Object* | :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. | +| `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. | | `queueSize` | *Optional* | :heavy_minus_sign: | The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. | diff --git a/docs/models/shared/SourceNorthpassLms.md b/docs/models/shared/SourceNorthpassLms.md new file mode 100644 index 00000000..15173c61 --- /dev/null +++ b/docs/models/shared/SourceNorthpassLms.md @@ -0,0 +1,9 @@ +# SourceNorthpassLms + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.NorthpassLms](../../models/shared/NorthpassLms.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceOktaAPIToken.md b/docs/models/shared/SourceOktaAPIToken.md index 4387c69d..8ae0ea03 100644 --- a/docs/models/shared/SourceOktaAPIToken.md +++ b/docs/models/shared/SourceOktaAPIToken.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | | `apiToken` | *String* | :heavy_check_mark: | An Okta token. See the docs for instructions on how to generate it. | -| `authType` | [com.airbyte.api.models.shared.SourceOktaSchemasAuthType](../../models/shared/SourceOktaSchemasAuthType.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `authType` | [com.airbyte.api.models.shared.SourceOktaSchemasCredentialsAuthType](../../models/shared/SourceOktaSchemasCredentialsAuthType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceOktaSchemasAuthType.md b/docs/models/shared/SourceOktaSchemasAuthType.md index ced46ddb..ca83cf4d 100644 --- a/docs/models/shared/SourceOktaSchemasAuthType.md +++ b/docs/models/shared/SourceOktaSchemasAuthType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ----------- | ----------- | -| `API_TOKEN` | api_token | \ No newline at end of file +| Name | Value | +| --------------------- | --------------------- | +| `OAUTH20_PRIVATE_KEY` | oauth2.0_private_key | \ No newline at end of file diff --git a/docs/models/shared/SourceOktaSchemasCredentialsAuthType.md b/docs/models/shared/SourceOktaSchemasCredentialsAuthType.md new file mode 100644 index 00000000..d6d72a9b --- /dev/null +++ b/docs/models/shared/SourceOktaSchemasCredentialsAuthType.md @@ -0,0 +1,8 @@ +# SourceOktaSchemasCredentialsAuthType + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `API_TOKEN` | api_token | \ No newline at end of file diff --git a/docs/models/shared/SourcePennylane.md b/docs/models/shared/SourcePennylane.md new file mode 100644 index 00000000..7c00e86d --- /dev/null +++ b/docs/models/shared/SourcePennylane.md @@ -0,0 +1,10 @@ +# SourcePennylane + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Pennylane](../../models/shared/Pennylane.md) | :heavy_check_mark: | N/A | +| `startTime` | [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/SourcePlanhat.md b/docs/models/shared/SourcePlanhat.md new file mode 100644 index 00000000..b05140bf --- /dev/null +++ b/docs/models/shared/SourcePlanhat.md @@ -0,0 +1,9 @@ +# SourcePlanhat + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `apiToken` | *String* | :heavy_check_mark: | Your Planhat API Access Token | +| `sourceType` | [com.airbyte.api.models.shared.Planhat](../../models/shared/Planhat.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceReddit.md b/docs/models/shared/SourceReddit.md new file mode 100644 index 00000000..17f83f81 --- /dev/null +++ b/docs/models/shared/SourceReddit.md @@ -0,0 +1,15 @@ +# SourceReddit + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `exact` | *Optional* | :heavy_minus_sign: | Specifies exact keyword and reduces distractions | +| `includeOver18` | *Optional* | :heavy_minus_sign: | Includes mature content | +| `limit` | *Optional* | :heavy_minus_sign: | Max records per page limit | +| `query` | *Optional* | :heavy_minus_sign: | Specifies the query for searching in reddits and subreddits | +| `sourceType` | [com.airbyte.api.models.shared.Reddit](../../models/shared/Reddit.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 | +| `subreddits` | List<*java.lang.Object*> | :heavy_minus_sign: | Subreddits for exploration | \ No newline at end of file diff --git a/docs/models/shared/SourceS3FileBasedStreamConfig.md b/docs/models/shared/SourceS3FileBasedStreamConfig.md index 88aeff26..0abc4a5f 100644 --- a/docs/models/shared/SourceS3FileBasedStreamConfig.md +++ b/docs/models/shared/SourceS3FileBasedStreamConfig.md @@ -12,5 +12,6 @@ | `legacyPrefix` | *Optional* | :heavy_minus_sign: | The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. | | `name` | *String* | :heavy_check_mark: | The name of the stream. | | `primaryKey` | *Optional* | :heavy_minus_sign: | The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. | +| `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/SourceS3ValidationPolicy.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/SourceSavvycal.md b/docs/models/shared/SourceSavvycal.md new file mode 100644 index 00000000..794ae0ca --- /dev/null +++ b/docs/models/shared/SourceSavvycal.md @@ -0,0 +1,9 @@ +# SourceSavvycal + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private key. https://savvycal.com/developers | +| `sourceType` | [com.airbyte.api.models.shared.Savvycal](../../models/shared/Savvycal.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceScryfall.md b/docs/models/shared/SourceScryfall.md new file mode 100644 index 00000000..87fc525b --- /dev/null +++ b/docs/models/shared/SourceScryfall.md @@ -0,0 +1,8 @@ +# SourceScryfall + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `sourceType` | [com.airbyte.api.models.shared.Scryfall](../../models/shared/Scryfall.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSftpBulkAPIParameterConfigModel.md b/docs/models/shared/SourceSftpBulkAPIParameterConfigModel.md new file mode 100644 index 00000000..142180ed --- /dev/null +++ b/docs/models/shared/SourceSftpBulkAPIParameterConfigModel.md @@ -0,0 +1,9 @@ +# SourceSftpBulkAPIParameterConfigModel + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `name` | *String* | :heavy_check_mark: | The name of the unstructured API parameter to use | combine_under_n_chars | +| `value` | *String* | :heavy_check_mark: | The value of the parameter | true | \ No newline at end of file diff --git a/docs/models/shared/SourceSftpBulkExcelFormat.md b/docs/models/shared/SourceSftpBulkExcelFormat.md new file mode 100644 index 00000000..ac96387e --- /dev/null +++ b/docs/models/shared/SourceSftpBulkExcelFormat.md @@ -0,0 +1,8 @@ +# SourceSftpBulkExcelFormat + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `filetype` | [Optional](../../models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSftpBulkFileBasedStreamConfig.md b/docs/models/shared/SourceSftpBulkFileBasedStreamConfig.md index 3b4afd91..0b24c312 100644 --- a/docs/models/shared/SourceSftpBulkFileBasedStreamConfig.md +++ b/docs/models/shared/SourceSftpBulkFileBasedStreamConfig.md @@ -12,5 +12,6 @@ | `legacyPrefix` | *Optional* | :heavy_minus_sign: | The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. | | `name` | *String* | :heavy_check_mark: | The name of the stream. | | `primaryKey` | *Optional* | :heavy_minus_sign: | The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. | +| `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/SourceSftpBulkValidationPolicy.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/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.md b/docs/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.md new file mode 100644 index 00000000..c956c276 --- /dev/null +++ b/docs/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.md @@ -0,0 +1,8 @@ +# SourceSftpBulkSchemasStreamsFormatFormat6Filetype + + +## Values + +| Name | Value | +| ------- | ------- | +| `EXCEL` | excel | \ No newline at end of file diff --git a/docs/models/shared/SourceSftpBulkDocumentFileTypeFormatExperimental.md b/docs/models/shared/SourceSftpBulkUnstructuredDocumentFormat.md similarity index 99% rename from docs/models/shared/SourceSftpBulkDocumentFileTypeFormatExperimental.md rename to docs/models/shared/SourceSftpBulkUnstructuredDocumentFormat.md index b0f894e4..22e8ef7b 100644 --- a/docs/models/shared/SourceSftpBulkDocumentFileTypeFormatExperimental.md +++ b/docs/models/shared/SourceSftpBulkUnstructuredDocumentFormat.md @@ -1,4 +1,4 @@ -# SourceSftpBulkDocumentFileTypeFormatExperimental +# SourceSftpBulkUnstructuredDocumentFormat Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. diff --git a/docs/models/shared/SourceSftpBulkViaAPI.md b/docs/models/shared/SourceSftpBulkViaAPI.md new file mode 100644 index 00000000..d8cbd00a --- /dev/null +++ b/docs/models/shared/SourceSftpBulkViaAPI.md @@ -0,0 +1,13 @@ +# 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. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *Optional* | :heavy_minus_sign: | The API key to use matching the environment | | +| `apiUrl` | *Optional* | :heavy_minus_sign: | The URL of the unstructured API to use | https://api.unstructured.com | +| `mode` | [Optional](../../models/shared/SourceSftpBulkSchemasMode.md) | :heavy_minus_sign: | N/A | | +| `parameters` | List<[com.airbyte.api.models.shared.SourceSftpBulkAPIParameterConfigModel](../../models/shared/SourceSftpBulkAPIParameterConfigModel.md)> | :heavy_minus_sign: | List of parameters send to the API | | \ No newline at end of file diff --git a/docs/models/shared/SourceShopify.md b/docs/models/shared/SourceShopify.md index 3450e716..98a5a5f5 100644 --- a/docs/models/shared/SourceShopify.md +++ b/docs/models/shared/SourceShopify.md @@ -8,6 +8,8 @@ | `bulkWindowInDays` | *Optional* | :heavy_minus_sign: | Defines what would be a date range per single BULK Job | | | `credentials` | [Optional](../../models/shared/ShopifyAuthorizationMethod.md) | :heavy_minus_sign: | The authorization method to use to retrieve data from Shopify | | | `fetchTransactionsUserId` | *Optional* | :heavy_minus_sign: | 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. | | +| `jobCheckpointInterval` | *Optional* | :heavy_minus_sign: | The threshold, after which the single BULK Job should be checkpointed. | | +| `jobProductVariantsIncludePresPrices` | *Optional* | :heavy_minus_sign: | If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). | | | `jobTerminationThreshold` | *Optional* | :heavy_minus_sign: | 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. | | | `shop` | *String* | :heavy_check_mark: | 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'. | my-store | | `sourceType` | [com.airbyte.api.models.shared.SourceShopifyShopify](../../models/shared/SourceShopifyShopify.md) | :heavy_check_mark: | N/A | | diff --git a/docs/models/shared/SourceStrava.md b/docs/models/shared/SourceStrava.md index 19daf3a3..4d3b1e39 100644 --- a/docs/models/shared/SourceStrava.md +++ b/docs/models/shared/SourceStrava.md @@ -10,5 +10,5 @@ | `clientId` | *String* | :heavy_check_mark: | The Client ID of your Strava developer application. | 12345 | | `clientSecret` | *String* | :heavy_check_mark: | The Client Secret of your Strava developer application. | fc6243f283e51f6ca989aab298b17da125496f50 | | `refreshToken` | *String* | :heavy_check_mark: | The Refresh Token with the activity: read_all permissions. | fc6243f283e51f6ca989aab298b17da125496f50 | -| `sourceType` | [com.airbyte.api.models.shared.SourceStravaStrava](../../models/shared/SourceStravaStrava.md) | :heavy_check_mark: | N/A | | +| `sourceType` | [com.airbyte.api.models.shared.Strava](../../models/shared/Strava.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. Any data before this date will not be replicated. | 2021-03-01T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceTrustpilot.md b/docs/models/shared/SourceTrustpilot.md index 4117ab65..0a5682a9 100644 --- a/docs/models/shared/SourceTrustpilot.md +++ b/docs/models/shared/SourceTrustpilot.md @@ -8,4 +8,4 @@ | `businessUnits` | List<*String*> | :heavy_check_mark: | The names of business units which shall be synchronized. Some streams e.g. configured_business_units or private_reviews use this configuration. | mydomain.com | | `credentials` | [com.airbyte.api.models.shared.SourceTrustpilotAuthorizationMethod](../../models/shared/SourceTrustpilotAuthorizationMethod.md) | :heavy_check_mark: | N/A | | | `sourceType` | [com.airbyte.api.models.shared.Trustpilot](../../models/shared/Trustpilot.md) | :heavy_check_mark: | N/A | | -| `startDate` | *String* | :heavy_check_mark: | For streams with sync. method incremental the start date time to be used | %Y-%m-%dT%H:%M:%S | \ No newline at end of file +| `startDate` | *String* | :heavy_check_mark: | For streams with sync. method incremental the start date time to be used | %Y-%m-%dT%H:%M:%SZ | \ No newline at end of file diff --git a/docs/models/shared/SourceXkcd.md b/docs/models/shared/SourceXkcd.md index 8bb1de81..b273707e 100644 --- a/docs/models/shared/SourceXkcd.md +++ b/docs/models/shared/SourceXkcd.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `sourceType` | [Optional](../../models/shared/Xkcd.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `comicNumber` | *Optional* | :heavy_minus_sign: | Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics | +| `sourceType` | [Optional](../../models/shared/Xkcd.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StandardInserts.md b/docs/models/shared/StandardInserts.md deleted file mode 100644 index 911ac9ea..00000000 --- a/docs/models/shared/StandardInserts.md +++ /dev/null @@ -1,10 +0,0 @@ -# StandardInserts - -(not recommended) Direct loading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In all other cases, you should use GCS staging. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `method` | [com.airbyte.api.models.shared.DestinationBigqueryMethod](../../models/shared/DestinationBigqueryMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Strava.md b/docs/models/shared/Strava.md index 082e6566..c7fa3879 100644 --- a/docs/models/shared/Strava.md +++ b/docs/models/shared/Strava.md @@ -1,9 +1,8 @@ # Strava -## Fields +## Values -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `clientId` | *Optional* | :heavy_minus_sign: | The Client ID of your Strava developer application. | 12345 | -| `clientSecret` | *Optional* | :heavy_minus_sign: | The Client Secret of your Strava developer application. | fc6243f283e51f6ca989aab298b17da125496f50 | \ No newline at end of file +| Name | Value | +| -------- | -------- | +| `STRAVA` | strava | \ No newline at end of file diff --git a/docs/models/shared/Timeplus.md b/docs/models/shared/Timeplus.md new file mode 100644 index 00000000..5c73c4c9 --- /dev/null +++ b/docs/models/shared/Timeplus.md @@ -0,0 +1,8 @@ +# Timeplus + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `TIMEPLUS` | timeplus | \ No newline at end of file diff --git a/docs/models/shared/UnstructuredDocumentFormat.md b/docs/models/shared/UnstructuredDocumentFormat.md index 18d262b4..532c1ece 100644 --- a/docs/models/shared/UnstructuredDocumentFormat.md +++ b/docs/models/shared/UnstructuredDocumentFormat.md @@ -7,7 +7,7 @@ Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one rec | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `filetype` | [Optional](../../models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.md) | :heavy_minus_sign: | N/A | -| `processing` | [Optional](../../models/shared/SourceMicrosoftOnedriveProcessing.md) | :heavy_minus_sign: | Processing configuration | +| `filetype` | [Optional](../../models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.md) | :heavy_minus_sign: | N/A | +| `processing` | [Optional](../../models/shared/SourceGcsProcessing.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/SourceMicrosoftOnedriveParsingStrategy.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 +| `strategy` | [Optional](../../models/shared/SourceGcsParsingStrategy.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/UsernameAndPassword.md b/docs/models/shared/UsernameAndPassword.md index 3e61537a..c0e2ea1a 100644 --- a/docs/models/shared/UsernameAndPassword.md +++ b/docs/models/shared/UsernameAndPassword.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `authType` | [Optional](../../models/shared/DestinationSnowflakeAuthType.md) | :heavy_minus_sign: | N/A | -| `password` | *String* | :heavy_check_mark: | Enter the password associated with the username. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| `authType` | [Optional](../../models/shared/DestinationSnowflakeSchemasAuthType.md) | :heavy_minus_sign: | N/A | +| `password` | *String* | :heavy_check_mark: | Enter the password associated with the username. | \ No newline at end of file diff --git a/docs/models/shared/ViaAPI.md b/docs/models/shared/ViaAPI.md index 921ebdf9..2ef23e1d 100644 --- a/docs/models/shared/ViaAPI.md +++ b/docs/models/shared/ViaAPI.md @@ -5,9 +5,9 @@ Process files via an API, using the `hi_res` mode. This option is useful for inc ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -| `apiKey` | *Optional* | :heavy_minus_sign: | The API key to use matching the environment | | -| `apiUrl` | *Optional* | :heavy_minus_sign: | The URL of the unstructured API to use | https://api.unstructured.com | -| `mode` | [Optional](../../models/shared/SourceSftpBulkSchemasMode.md) | :heavy_minus_sign: | N/A | | -| `parameters` | List<[com.airbyte.api.models.shared.APIParameterConfigModel](../../models/shared/APIParameterConfigModel.md)> | :heavy_minus_sign: | List of parameters send to the API | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *Optional* | :heavy_minus_sign: | The API key to use matching the environment | | +| `apiUrl` | *Optional* | :heavy_minus_sign: | The URL of the unstructured API to use | https://api.unstructured.com | +| `mode` | [Optional](../../models/shared/SourceGcsSchemasMode.md) | :heavy_minus_sign: | N/A | | +| `parameters` | List<[com.airbyte.api.models.shared.APIParameterConfigModel](../../models/shared/APIParameterConfigModel.md)> | :heavy_minus_sign: | List of parameters send to the API | | \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index a856c4f5..b3d05452 100644 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true java: - version: 1.5.8 + version: 1.5.9 additionalDependencies: [] additionalPlugins: [] artifactID: api diff --git a/src/main/java/com/airbyte/api/SDKConfiguration.java b/src/main/java/com/airbyte/api/SDKConfiguration.java index 2b3baccd..d86b36b2 100644 --- a/src/main/java/com/airbyte/api/SDKConfiguration.java +++ b/src/main/java/com/airbyte/api/SDKConfiguration.java @@ -22,9 +22,9 @@ public Optional securitySource() { public int serverIdx = 0; public String language = "java"; public String openapiDocVersion = "1.0.0"; - public String sdkVersion = "1.5.8"; + public String sdkVersion = "1.5.9"; public String genVersion = "2.373.2"; - public String userAgent = "speakeasy-sdk/java 1.5.8 2.373.2 1.0.0 com.airbyte.api"; + public String userAgent = "speakeasy-sdk/java 1.5.9 2.373.2 1.0.0 com.airbyte.api"; private com.airbyte.api.utils.Hooks _hooks = createHooks(); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStravaStrava.java b/src/main/java/com/airbyte/api/models/shared/Airbyte.java similarity index 86% rename from src/main/java/com/airbyte/api/models/shared/SourceStravaStrava.java rename to src/main/java/com/airbyte/api/models/shared/Airbyte.java index 852008da..0e840822 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStravaStrava.java +++ b/src/main/java/com/airbyte/api/models/shared/Airbyte.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum SourceStravaStrava { - STRAVA("strava"); +public enum Airbyte { + AIRBYTE("airbyte"); @JsonValue private final String value; - private SourceStravaStrava(String value) { + private Airbyte(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AmazonS3.java b/src/main/java/com/airbyte/api/models/shared/AmazonS3.java deleted file mode 100644 index 47f57b99..00000000 --- a/src/main/java/com/airbyte/api/models/shared/AmazonS3.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; -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.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; - -public class AmazonS3 { - - @JsonProperty("data_source_type") - private DestinationDatabricksDataSourceType dataSourceType; - - /** - * The pattern allows you to set the file-name format for the S3 staging file(s) - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("file_name_pattern") - private Optional fileNamePattern; - - /** - * The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. - */ - @JsonProperty("s3_access_key_id") - private String s3AccessKeyId; - - /** - * The name of the S3 bucket to use for intermittent staging of the data. - */ - @JsonProperty("s3_bucket_name") - private String s3BucketName; - - /** - * The directory under the S3 bucket where data will be written. - */ - @JsonProperty("s3_bucket_path") - private String s3BucketPath; - - /** - * The region of the S3 staging bucket to use if utilising a copy strategy. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("s3_bucket_region") - private Optional s3BucketRegion; - - /** - * The corresponding secret to the above access key id. - */ - @JsonProperty("s3_secret_access_key") - private String s3SecretAccessKey; - - @JsonCreator - public AmazonS3( - @JsonProperty("file_name_pattern") Optional fileNamePattern, - @JsonProperty("s3_access_key_id") String s3AccessKeyId, - @JsonProperty("s3_bucket_name") String s3BucketName, - @JsonProperty("s3_bucket_path") String s3BucketPath, - @JsonProperty("s3_bucket_region") Optional s3BucketRegion, - @JsonProperty("s3_secret_access_key") String s3SecretAccessKey) { - Utils.checkNotNull(fileNamePattern, "fileNamePattern"); - Utils.checkNotNull(s3AccessKeyId, "s3AccessKeyId"); - Utils.checkNotNull(s3BucketName, "s3BucketName"); - Utils.checkNotNull(s3BucketPath, "s3BucketPath"); - Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); - Utils.checkNotNull(s3SecretAccessKey, "s3SecretAccessKey"); - this.dataSourceType = Builder._SINGLETON_VALUE_DataSourceType.value(); - this.fileNamePattern = fileNamePattern; - this.s3AccessKeyId = s3AccessKeyId; - this.s3BucketName = s3BucketName; - this.s3BucketPath = s3BucketPath; - this.s3BucketRegion = s3BucketRegion; - this.s3SecretAccessKey = s3SecretAccessKey; - } - - public AmazonS3( - String s3AccessKeyId, - String s3BucketName, - String s3BucketPath, - String s3SecretAccessKey) { - this(Optional.empty(), s3AccessKeyId, s3BucketName, s3BucketPath, Optional.empty(), s3SecretAccessKey); - } - - @JsonIgnore - public DestinationDatabricksDataSourceType dataSourceType() { - return dataSourceType; - } - - /** - * The pattern allows you to set the file-name format for the S3 staging file(s) - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional fileNamePattern() { - return (Optional) fileNamePattern; - } - - /** - * The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. - */ - @JsonIgnore - public String s3AccessKeyId() { - return s3AccessKeyId; - } - - /** - * The name of the S3 bucket to use for intermittent staging of the data. - */ - @JsonIgnore - public String s3BucketName() { - return s3BucketName; - } - - /** - * The directory under the S3 bucket where data will be written. - */ - @JsonIgnore - public String s3BucketPath() { - return s3BucketPath; - } - - /** - * The region of the S3 staging bucket to use if utilising a copy strategy. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional s3BucketRegion() { - return (Optional) s3BucketRegion; - } - - /** - * The corresponding secret to the above access key id. - */ - @JsonIgnore - public String s3SecretAccessKey() { - return s3SecretAccessKey; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The pattern allows you to set the file-name format for the S3 staging file(s) - */ - public AmazonS3 withFileNamePattern(String fileNamePattern) { - Utils.checkNotNull(fileNamePattern, "fileNamePattern"); - this.fileNamePattern = Optional.ofNullable(fileNamePattern); - return this; - } - - /** - * The pattern allows you to set the file-name format for the S3 staging file(s) - */ - public AmazonS3 withFileNamePattern(Optional fileNamePattern) { - Utils.checkNotNull(fileNamePattern, "fileNamePattern"); - this.fileNamePattern = fileNamePattern; - return this; - } - - /** - * The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. - */ - public AmazonS3 withS3AccessKeyId(String s3AccessKeyId) { - Utils.checkNotNull(s3AccessKeyId, "s3AccessKeyId"); - this.s3AccessKeyId = s3AccessKeyId; - return this; - } - - /** - * The name of the S3 bucket to use for intermittent staging of the data. - */ - public AmazonS3 withS3BucketName(String s3BucketName) { - Utils.checkNotNull(s3BucketName, "s3BucketName"); - this.s3BucketName = s3BucketName; - return this; - } - - /** - * The directory under the S3 bucket where data will be written. - */ - public AmazonS3 withS3BucketPath(String s3BucketPath) { - Utils.checkNotNull(s3BucketPath, "s3BucketPath"); - this.s3BucketPath = s3BucketPath; - return this; - } - - /** - * The region of the S3 staging bucket to use if utilising a copy strategy. - */ - public AmazonS3 withS3BucketRegion(DestinationDatabricksS3BucketRegion s3BucketRegion) { - Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); - this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); - return this; - } - - /** - * The region of the S3 staging bucket to use if utilising a copy strategy. - */ - public AmazonS3 withS3BucketRegion(Optional s3BucketRegion) { - Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); - this.s3BucketRegion = s3BucketRegion; - return this; - } - - /** - * The corresponding secret to the above access key id. - */ - public AmazonS3 withS3SecretAccessKey(String s3SecretAccessKey) { - Utils.checkNotNull(s3SecretAccessKey, "s3SecretAccessKey"); - this.s3SecretAccessKey = s3SecretAccessKey; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AmazonS3 other = (AmazonS3) o; - return - java.util.Objects.deepEquals(this.dataSourceType, other.dataSourceType) && - java.util.Objects.deepEquals(this.fileNamePattern, other.fileNamePattern) && - java.util.Objects.deepEquals(this.s3AccessKeyId, other.s3AccessKeyId) && - java.util.Objects.deepEquals(this.s3BucketName, other.s3BucketName) && - java.util.Objects.deepEquals(this.s3BucketPath, other.s3BucketPath) && - java.util.Objects.deepEquals(this.s3BucketRegion, other.s3BucketRegion) && - java.util.Objects.deepEquals(this.s3SecretAccessKey, other.s3SecretAccessKey); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - dataSourceType, - fileNamePattern, - s3AccessKeyId, - s3BucketName, - s3BucketPath, - s3BucketRegion, - s3SecretAccessKey); - } - - @Override - public String toString() { - return Utils.toString(AmazonS3.class, - "dataSourceType", dataSourceType, - "fileNamePattern", fileNamePattern, - "s3AccessKeyId", s3AccessKeyId, - "s3BucketName", s3BucketName, - "s3BucketPath", s3BucketPath, - "s3BucketRegion", s3BucketRegion, - "s3SecretAccessKey", s3SecretAccessKey); - } - - public final static class Builder { - - private Optional fileNamePattern = Optional.empty(); - - private String s3AccessKeyId; - - private String s3BucketName; - - private String s3BucketPath; - - private Optional s3BucketRegion; - - private String s3SecretAccessKey; - - private Builder() { - // force use of static builder() method - } - - /** - * The pattern allows you to set the file-name format for the S3 staging file(s) - */ - public Builder fileNamePattern(String fileNamePattern) { - Utils.checkNotNull(fileNamePattern, "fileNamePattern"); - this.fileNamePattern = Optional.ofNullable(fileNamePattern); - return this; - } - - /** - * The pattern allows you to set the file-name format for the S3 staging file(s) - */ - public Builder fileNamePattern(Optional fileNamePattern) { - Utils.checkNotNull(fileNamePattern, "fileNamePattern"); - this.fileNamePattern = fileNamePattern; - return this; - } - - /** - * The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. - */ - public Builder s3AccessKeyId(String s3AccessKeyId) { - Utils.checkNotNull(s3AccessKeyId, "s3AccessKeyId"); - this.s3AccessKeyId = s3AccessKeyId; - return this; - } - - /** - * The name of the S3 bucket to use for intermittent staging of the data. - */ - public Builder s3BucketName(String s3BucketName) { - Utils.checkNotNull(s3BucketName, "s3BucketName"); - this.s3BucketName = s3BucketName; - return this; - } - - /** - * The directory under the S3 bucket where data will be written. - */ - public Builder s3BucketPath(String s3BucketPath) { - Utils.checkNotNull(s3BucketPath, "s3BucketPath"); - this.s3BucketPath = s3BucketPath; - return this; - } - - /** - * The region of the S3 staging bucket to use if utilising a copy strategy. - */ - public Builder s3BucketRegion(DestinationDatabricksS3BucketRegion s3BucketRegion) { - Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); - this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); - return this; - } - - /** - * The region of the S3 staging bucket to use if utilising a copy strategy. - */ - public Builder s3BucketRegion(Optional s3BucketRegion) { - Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); - this.s3BucketRegion = s3BucketRegion; - return this; - } - - /** - * The corresponding secret to the above access key id. - */ - public Builder s3SecretAccessKey(String s3SecretAccessKey) { - Utils.checkNotNull(s3SecretAccessKey, "s3SecretAccessKey"); - this.s3SecretAccessKey = s3SecretAccessKey; - return this; - } - - public AmazonS3 build() { - if (s3BucketRegion == null) { - s3BucketRegion = _SINGLETON_VALUE_S3BucketRegion.value(); - } - return new AmazonS3( - fileNamePattern, - s3AccessKeyId, - s3BucketName, - s3BucketPath, - s3BucketRegion, - s3SecretAccessKey); - } - - private static final LazySingletonValue _SINGLETON_VALUE_DataSourceType = - new LazySingletonValue<>( - "data_source_type", - "\"S3_STORAGE\"", - new TypeReference() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_S3BucketRegion = - new LazySingletonValue<>( - "s3_bucket_region", - "\"\"", - new TypeReference>() {}); - } -} - 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 eb0f42e4..0604d57d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Authentication.java +++ b/src/main/java/com/airbyte/api/models/shared/Authentication.java @@ -22,7 +22,7 @@ import com.airbyte.api.utils.Utils.JsonShape; /** - * Authentication - 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>. + * Authentication - Authentication mechanism for Staging files and running queries */ @JsonDeserialize(using = Authentication._Deserializer.class) @@ -35,15 +35,21 @@ private Authentication(TypedObject value) { this.value = value; } - public static Authentication of(HMACKey value) { + public static Authentication of(OAuth2Recommended value) { Utils.checkNotNull(value, "value"); - return new Authentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new Authentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static Authentication of(PersonalAccessToken value) { + Utils.checkNotNull(value, "value"); + return new Authentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
    - *
  • {@code HMACKey}
  • + *
  • {@code OAuth2Recommended}
  • + *
  • {@code PersonalAccessToken}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -83,7 +89,8 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(Authentication.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DataSourceType.java b/src/main/java/com/airbyte/api/models/shared/Basecamp.java similarity index 84% rename from src/main/java/com/airbyte/api/models/shared/DataSourceType.java rename to src/main/java/com/airbyte/api/models/shared/Basecamp.java index 53217c6f..88c32c83 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataSourceType.java +++ b/src/main/java/com/airbyte/api/models/shared/Basecamp.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum DataSourceType { - MANAGED_TABLES_STORAGE("MANAGED_TABLES_STORAGE"); +public enum Basecamp { + BASECAMP("basecamp"); @JsonValue private final String value; - private DataSourceType(String value) { + private Basecamp(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/StandardInserts.java b/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java similarity index 69% rename from src/main/java/com/airbyte/api/models/shared/StandardInserts.java rename to src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java index 348c00fd..620c7027 100644 --- a/src/main/java/com/airbyte/api/models/shared/StandardInserts.java +++ b/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java @@ -16,22 +16,22 @@ import java.math.BigDecimal; import java.math.BigInteger; /** - * StandardInserts - <i>(not recommended)</i> Direct loading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In all other cases, you should use GCS staging. + * BatchedStandardInserts - Direct loading using batched SQL INSERT statements. This method uses the BigQuery driver to convert large INSERT statements into file uploads automatically. */ -public class StandardInserts { +public class BatchedStandardInserts { @JsonProperty("method") - private DestinationBigqueryMethod method; + private Method method; @JsonCreator - public StandardInserts() { + public BatchedStandardInserts() { this.method = Builder._SINGLETON_VALUE_Method.value(); } @JsonIgnore - public DestinationBigqueryMethod method() { + public Method method() { return method; } @@ -47,7 +47,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StandardInserts other = (StandardInserts) o; + BatchedStandardInserts other = (BatchedStandardInserts) o; return java.util.Objects.deepEquals(this.method, other.method); } @@ -60,7 +60,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(StandardInserts.class, + return Utils.toString(BatchedStandardInserts.class, "method", method); } @@ -70,16 +70,16 @@ private Builder() { // force use of static builder() method } - public StandardInserts build() { - return new StandardInserts( + public BatchedStandardInserts build() { + return new BatchedStandardInserts( ); } - 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/MongodbInternalPoc.java b/src/main/java/com/airbyte/api/models/shared/BreezyHr.java similarity index 83% rename from src/main/java/com/airbyte/api/models/shared/MongodbInternalPoc.java rename to src/main/java/com/airbyte/api/models/shared/BreezyHr.java index a554510e..2e87c808 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongodbInternalPoc.java +++ b/src/main/java/com/airbyte/api/models/shared/BreezyHr.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum MongodbInternalPoc { - MONGODB_INTERNAL_POC("mongodb-internal-poc"); +public enum BreezyHr { + BREEZY_HR("breezy-hr"); @JsonValue private final String value; - private MongodbInternalPoc(String value) { + private BreezyHr(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksDataSourceType.java b/src/main/java/com/airbyte/api/models/shared/Calendly.java similarity index 82% rename from src/main/java/com/airbyte/api/models/shared/DestinationDatabricksDataSourceType.java rename to src/main/java/com/airbyte/api/models/shared/Calendly.java index 0306ca63..a39c3574 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksDataSourceType.java +++ b/src/main/java/com/airbyte/api/models/shared/Calendly.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum DestinationDatabricksDataSourceType { - S3_STORAGE("S3_STORAGE"); +public enum Calendly { + CALENDLY("calendly"); @JsonValue private final String value; - private DestinationDatabricksDataSourceType(String value) { + private Calendly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CustomerIo.java b/src/main/java/com/airbyte/api/models/shared/CustomerIo.java new file mode 100644 index 00000000..76f5ac04 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/CustomerIo.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum CustomerIo { + CUSTOMER_IO("customer-io"); + + @JsonValue + private final String value; + + private CustomerIo(String value) { + this.value = value; + } + + public String value() { + return 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 94b1a0ea..a4c22b3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataSource.java +++ b/src/main/java/com/airbyte/api/models/shared/DataSource.java @@ -8,103 +8,30 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; import java.lang.Deprecated; import java.math.BigDecimal; import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.time.LocalDate; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.airbyte.api.utils.TypedObject; -import com.airbyte.api.utils.Utils.JsonShape; - /** - * DataSource - Storage on which the delta lake is built. + * DataSource - A data source that is powered by the platform. */ +public enum DataSource { + METRICS("metrics"), + CLOUD_COST("cloud_cost"), + LOGS("logs"), + RUM("rum"); -@JsonDeserialize(using = DataSource._Deserializer.class) -public class DataSource { + @JsonValue + private final String value; - @com.fasterxml.jackson.annotation.JsonValue - private TypedObject value; - - private DataSource(TypedObject value) { + private DataSource(String value) { this.value = value; } - - public static DataSource of(RecommendedManagedTables value) { - Utils.checkNotNull(value, "value"); - return new DataSource(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static DataSource of(AmazonS3 value) { - Utils.checkNotNull(value, "value"); - return new DataSource(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static DataSource of(DestinationDatabricksAzureBlobStorage value) { - Utils.checkNotNull(value, "value"); - return new DataSource(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - /** - * Returns an instance of one of these types: - *

    - *
  • {@code RecommendedManagedTables}
  • - *
  • {@code AmazonS3}
  • - *
  • {@code DestinationDatabricksAzureBlobStorage}
  • - *
- * - *

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; - } - DataSource other = (DataSource) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); - } - - @Override - public int hashCode() { - return java.util.Objects.hash(value.value()); - } - - @SuppressWarnings("serial") - public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeserializer { - - public _Deserializer() { - super(DataSource.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); - } - } - @Override - public String toString() { - return Utils.toString(DataSource.class, - "value", value); + public String value() { + return 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 new file mode 100644 index 00000000..b9ae8849 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Dbt.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Dbt { + DBT("dbt"); + + @JsonValue + private final String value; + + private Dbt(String value) { + this.value = value; + } + + public String value() { + return value; + } +} 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 eeea23c9..910d78ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java @@ -16,7 +16,7 @@ import java.math.BigInteger; public enum DestinationBigqueryMethod { - STANDARD("Standard"); + GCS_STAGING("GCS Staging"); @JsonValue private final String value; 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 54e71e87..5b1ab103 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java @@ -195,6 +195,11 @@ public static DestinationConfiguration of(DestinationTeradata value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static DestinationConfiguration of(DestinationTimeplus value) { + Utils.checkNotNull(value, "value"); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static DestinationConfiguration of(DestinationTypesense value) { Utils.checkNotNull(value, "value"); return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -250,6 +255,7 @@ public static DestinationConfiguration of(DestinationYellowbrick value) { *
  • {@code DestinationSnowflake}
  • *
  • {@code DestinationSnowflakeCortex}
  • *
  • {@code DestinationTeradata}
  • + *
  • {@code DestinationTimeplus}
  • *
  • {@code DestinationTypesense}
  • *
  • {@code DestinationVectara}
  • *
  • {@code DestinationWeaviate}
  • @@ -325,6 +331,7 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), 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 84977227..84aa7ae5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java @@ -29,59 +29,52 @@ public class DestinationDatabricks { private Optional acceptTerms; /** - * Storage on which the delta lake is built. + * Authentication mechanism for Staging files and running queries */ - @JsonProperty("data_source") - private DataSource dataSource; + @JsonProperty("authentication") + private Authentication authentication; /** - * The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. + * The name of the unity catalog for the database */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("database") - private Optional database; + private String database; + + @JsonProperty("destinationType") + private Databricks destinationType; /** - * Databricks Cluster HTTP Path. + * Databricks Cluster Server Hostname. */ - @JsonProperty("databricks_http_path") - private String databricksHttpPath; + @JsonProperty("hostname") + private String hostname; /** - * Databricks Personal Access Token for making authenticated requests. + * Databricks Cluster HTTP Path. */ - @JsonProperty("databricks_personal_access_token") - private String databricksPersonalAccessToken; + @JsonProperty("http_path") + private String httpPath; /** * Databricks Cluster Port. */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("databricks_port") - private Optional databricksPort; - - /** - * Databricks Cluster Server Hostname. - */ - @JsonProperty("databricks_server_hostname") - private String databricksServerHostname; - - @JsonProperty("destinationType") - private Databricks destinationType; + @JsonProperty("port") + private Optional port; /** - * Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. + * Default to 'true'. Switch it to 'false' for debugging purpose. */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("enable_schema_evolution") - private Optional enableSchemaEvolution; + @JsonProperty("purge_staging_data") + private Optional purgeStagingData; /** - * Default to 'true'. Switch it to 'false' for debugging purpose. + * The schema to write raw tables into (default: airbyte_internal) */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("purge_staging_data") - private Optional purgeStagingData; + @JsonProperty("raw_schema_override") + private Optional rawSchemaOverride; /** * The default schema tables are written. If not specified otherwise, the "default" will be used. @@ -93,44 +86,41 @@ public class DestinationDatabricks { @JsonCreator public DestinationDatabricks( @JsonProperty("accept_terms") Optional acceptTerms, - @JsonProperty("data_source") DataSource dataSource, - @JsonProperty("database") Optional database, - @JsonProperty("databricks_http_path") String databricksHttpPath, - @JsonProperty("databricks_personal_access_token") String databricksPersonalAccessToken, - @JsonProperty("databricks_port") Optional databricksPort, - @JsonProperty("databricks_server_hostname") String databricksServerHostname, - @JsonProperty("enable_schema_evolution") Optional enableSchemaEvolution, + @JsonProperty("authentication") Authentication authentication, + @JsonProperty("database") String database, + @JsonProperty("hostname") String hostname, + @JsonProperty("http_path") String httpPath, + @JsonProperty("port") Optional port, @JsonProperty("purge_staging_data") Optional purgeStagingData, + @JsonProperty("raw_schema_override") Optional rawSchemaOverride, @JsonProperty("schema") Optional schema) { Utils.checkNotNull(acceptTerms, "acceptTerms"); - Utils.checkNotNull(dataSource, "dataSource"); + Utils.checkNotNull(authentication, "authentication"); Utils.checkNotNull(database, "database"); - Utils.checkNotNull(databricksHttpPath, "databricksHttpPath"); - Utils.checkNotNull(databricksPersonalAccessToken, "databricksPersonalAccessToken"); - Utils.checkNotNull(databricksPort, "databricksPort"); - Utils.checkNotNull(databricksServerHostname, "databricksServerHostname"); - Utils.checkNotNull(enableSchemaEvolution, "enableSchemaEvolution"); + Utils.checkNotNull(hostname, "hostname"); + Utils.checkNotNull(httpPath, "httpPath"); + Utils.checkNotNull(port, "port"); Utils.checkNotNull(purgeStagingData, "purgeStagingData"); + Utils.checkNotNull(rawSchemaOverride, "rawSchemaOverride"); Utils.checkNotNull(schema, "schema"); this.acceptTerms = acceptTerms; - this.dataSource = dataSource; + this.authentication = authentication; this.database = database; - this.databricksHttpPath = databricksHttpPath; - this.databricksPersonalAccessToken = databricksPersonalAccessToken; - this.databricksPort = databricksPort; - this.databricksServerHostname = databricksServerHostname; this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); - this.enableSchemaEvolution = enableSchemaEvolution; + this.hostname = hostname; + this.httpPath = httpPath; + this.port = port; this.purgeStagingData = purgeStagingData; + this.rawSchemaOverride = rawSchemaOverride; this.schema = schema; } public DestinationDatabricks( - DataSource dataSource, - String databricksHttpPath, - String databricksPersonalAccessToken, - String databricksServerHostname) { - this(Optional.empty(), dataSource, Optional.empty(), databricksHttpPath, databricksPersonalAccessToken, Optional.empty(), databricksServerHostname, Optional.empty(), Optional.empty(), Optional.empty()); + Authentication authentication, + String database, + String hostname, + String httpPath) { + this(Optional.empty(), authentication, database, hostname, httpPath, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -143,76 +133,67 @@ public Optional acceptTerms() { } /** - * Storage on which the delta lake is built. + * Authentication mechanism for Staging files and running queries */ @JsonIgnore - public DataSource dataSource() { - return dataSource; + public Authentication authentication() { + return authentication; } /** - * The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. + * The name of the unity catalog for the database */ - @SuppressWarnings("unchecked") @JsonIgnore - public Optional database() { - return (Optional) database; + public String database() { + return database; } - /** - * Databricks Cluster HTTP Path. - */ @JsonIgnore - public String databricksHttpPath() { - return databricksHttpPath; + public Databricks destinationType() { + return destinationType; } /** - * Databricks Personal Access Token for making authenticated requests. + * Databricks Cluster Server Hostname. */ @JsonIgnore - public String databricksPersonalAccessToken() { - return databricksPersonalAccessToken; + public String hostname() { + return hostname; } /** - * Databricks Cluster Port. + * Databricks Cluster HTTP Path. */ - @SuppressWarnings("unchecked") @JsonIgnore - public Optional databricksPort() { - return (Optional) databricksPort; + public String httpPath() { + return httpPath; } /** - * Databricks Cluster Server Hostname. + * Databricks Cluster Port. */ + @SuppressWarnings("unchecked") @JsonIgnore - public String databricksServerHostname() { - return databricksServerHostname; - } - - @JsonIgnore - public Databricks destinationType() { - return destinationType; + public Optional port() { + return (Optional) port; } /** - * Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. + * Default to 'true'. Switch it to 'false' for debugging purpose. */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional enableSchemaEvolution() { - return (Optional) enableSchemaEvolution; + public Optional purgeStagingData() { + return (Optional) purgeStagingData; } /** - * Default to 'true'. Switch it to 'false' for debugging purpose. + * The schema to write raw tables into (default: airbyte_internal) */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional purgeStagingData() { - return (Optional) purgeStagingData; + public Optional rawSchemaOverride() { + return (Optional) rawSchemaOverride; } /** @@ -247,110 +228,92 @@ public DestinationDatabricks withAcceptTerms(Optional acceptT } /** - * Storage on which the delta lake is built. + * Authentication mechanism for Staging files and running queries */ - public DestinationDatabricks withDataSource(DataSource dataSource) { - Utils.checkNotNull(dataSource, "dataSource"); - this.dataSource = dataSource; + public DestinationDatabricks withAuthentication(Authentication authentication) { + Utils.checkNotNull(authentication, "authentication"); + this.authentication = authentication; return this; } /** - * The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. + * The name of the unity catalog for the database */ public DestinationDatabricks withDatabase(String database) { - Utils.checkNotNull(database, "database"); - this.database = Optional.ofNullable(database); - return this; - } - - /** - * The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. - */ - public DestinationDatabricks withDatabase(Optional database) { Utils.checkNotNull(database, "database"); this.database = database; return this; } /** - * Databricks Cluster HTTP Path. + * Databricks Cluster Server Hostname. */ - public DestinationDatabricks withDatabricksHttpPath(String databricksHttpPath) { - Utils.checkNotNull(databricksHttpPath, "databricksHttpPath"); - this.databricksHttpPath = databricksHttpPath; + public DestinationDatabricks withHostname(String hostname) { + Utils.checkNotNull(hostname, "hostname"); + this.hostname = hostname; return this; } /** - * Databricks Personal Access Token for making authenticated requests. + * Databricks Cluster HTTP Path. */ - public DestinationDatabricks withDatabricksPersonalAccessToken(String databricksPersonalAccessToken) { - Utils.checkNotNull(databricksPersonalAccessToken, "databricksPersonalAccessToken"); - this.databricksPersonalAccessToken = databricksPersonalAccessToken; + public DestinationDatabricks withHttpPath(String httpPath) { + Utils.checkNotNull(httpPath, "httpPath"); + this.httpPath = httpPath; return this; } /** * Databricks Cluster Port. */ - public DestinationDatabricks withDatabricksPort(String databricksPort) { - Utils.checkNotNull(databricksPort, "databricksPort"); - this.databricksPort = Optional.ofNullable(databricksPort); + public DestinationDatabricks withPort(String port) { + Utils.checkNotNull(port, "port"); + this.port = Optional.ofNullable(port); return this; } /** * Databricks Cluster Port. */ - public DestinationDatabricks withDatabricksPort(Optional databricksPort) { - Utils.checkNotNull(databricksPort, "databricksPort"); - this.databricksPort = databricksPort; + public DestinationDatabricks withPort(Optional port) { + Utils.checkNotNull(port, "port"); + this.port = port; return this; } /** - * Databricks Cluster Server Hostname. - */ - public DestinationDatabricks withDatabricksServerHostname(String databricksServerHostname) { - Utils.checkNotNull(databricksServerHostname, "databricksServerHostname"); - this.databricksServerHostname = databricksServerHostname; - return this; - } - - /** - * Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. + * Default to 'true'. Switch it to 'false' for debugging purpose. */ - public DestinationDatabricks withEnableSchemaEvolution(boolean enableSchemaEvolution) { - Utils.checkNotNull(enableSchemaEvolution, "enableSchemaEvolution"); - this.enableSchemaEvolution = Optional.ofNullable(enableSchemaEvolution); + public DestinationDatabricks withPurgeStagingData(boolean purgeStagingData) { + Utils.checkNotNull(purgeStagingData, "purgeStagingData"); + this.purgeStagingData = Optional.ofNullable(purgeStagingData); return this; } /** - * Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. + * Default to 'true'. Switch it to 'false' for debugging purpose. */ - public DestinationDatabricks withEnableSchemaEvolution(Optional enableSchemaEvolution) { - Utils.checkNotNull(enableSchemaEvolution, "enableSchemaEvolution"); - this.enableSchemaEvolution = enableSchemaEvolution; + public DestinationDatabricks withPurgeStagingData(Optional purgeStagingData) { + Utils.checkNotNull(purgeStagingData, "purgeStagingData"); + this.purgeStagingData = purgeStagingData; return this; } /** - * Default to 'true'. Switch it to 'false' for debugging purpose. + * The schema to write raw tables into (default: airbyte_internal) */ - public DestinationDatabricks withPurgeStagingData(boolean purgeStagingData) { - Utils.checkNotNull(purgeStagingData, "purgeStagingData"); - this.purgeStagingData = Optional.ofNullable(purgeStagingData); + public DestinationDatabricks withRawSchemaOverride(String rawSchemaOverride) { + Utils.checkNotNull(rawSchemaOverride, "rawSchemaOverride"); + this.rawSchemaOverride = Optional.ofNullable(rawSchemaOverride); return this; } /** - * Default to 'true'. Switch it to 'false' for debugging purpose. + * The schema to write raw tables into (default: airbyte_internal) */ - public DestinationDatabricks withPurgeStagingData(Optional purgeStagingData) { - Utils.checkNotNull(purgeStagingData, "purgeStagingData"); - this.purgeStagingData = purgeStagingData; + public DestinationDatabricks withRawSchemaOverride(Optional rawSchemaOverride) { + Utils.checkNotNull(rawSchemaOverride, "rawSchemaOverride"); + this.rawSchemaOverride = rawSchemaOverride; return this; } @@ -383,15 +346,14 @@ public boolean equals(java.lang.Object o) { DestinationDatabricks other = (DestinationDatabricks) o; return java.util.Objects.deepEquals(this.acceptTerms, other.acceptTerms) && - java.util.Objects.deepEquals(this.dataSource, other.dataSource) && + java.util.Objects.deepEquals(this.authentication, other.authentication) && java.util.Objects.deepEquals(this.database, other.database) && - java.util.Objects.deepEquals(this.databricksHttpPath, other.databricksHttpPath) && - java.util.Objects.deepEquals(this.databricksPersonalAccessToken, other.databricksPersonalAccessToken) && - java.util.Objects.deepEquals(this.databricksPort, other.databricksPort) && - java.util.Objects.deepEquals(this.databricksServerHostname, other.databricksServerHostname) && java.util.Objects.deepEquals(this.destinationType, other.destinationType) && - java.util.Objects.deepEquals(this.enableSchemaEvolution, other.enableSchemaEvolution) && + java.util.Objects.deepEquals(this.hostname, other.hostname) && + java.util.Objects.deepEquals(this.httpPath, other.httpPath) && + java.util.Objects.deepEquals(this.port, other.port) && java.util.Objects.deepEquals(this.purgeStagingData, other.purgeStagingData) && + java.util.Objects.deepEquals(this.rawSchemaOverride, other.rawSchemaOverride) && java.util.Objects.deepEquals(this.schema, other.schema); } @@ -399,15 +361,14 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return java.util.Objects.hash( acceptTerms, - dataSource, + authentication, database, - databricksHttpPath, - databricksPersonalAccessToken, - databricksPort, - databricksServerHostname, destinationType, - enableSchemaEvolution, + hostname, + httpPath, + port, purgeStagingData, + rawSchemaOverride, schema); } @@ -415,15 +376,14 @@ public int hashCode() { public String toString() { return Utils.toString(DestinationDatabricks.class, "acceptTerms", acceptTerms, - "dataSource", dataSource, + "authentication", authentication, "database", database, - "databricksHttpPath", databricksHttpPath, - "databricksPersonalAccessToken", databricksPersonalAccessToken, - "databricksPort", databricksPort, - "databricksServerHostname", databricksServerHostname, "destinationType", destinationType, - "enableSchemaEvolution", enableSchemaEvolution, + "hostname", hostname, + "httpPath", httpPath, + "port", port, "purgeStagingData", purgeStagingData, + "rawSchemaOverride", rawSchemaOverride, "schema", schema); } @@ -431,22 +391,20 @@ public final static class Builder { private Optional acceptTerms; - private DataSource dataSource; - - private Optional database = Optional.empty(); - - private String databricksHttpPath; + private Authentication authentication; - private String databricksPersonalAccessToken; + private String database; - private Optional databricksPort; + private String hostname; - private String databricksServerHostname; + private String httpPath; - private Optional enableSchemaEvolution; + private Optional port; private Optional purgeStagingData; + private Optional rawSchemaOverride; + private Optional schema; private Builder() { @@ -472,110 +430,92 @@ public Builder acceptTerms(Optional acceptTerms) { } /** - * Storage on which the delta lake is built. + * Authentication mechanism for Staging files and running queries */ - public Builder dataSource(DataSource dataSource) { - Utils.checkNotNull(dataSource, "dataSource"); - this.dataSource = dataSource; + public Builder authentication(Authentication authentication) { + Utils.checkNotNull(authentication, "authentication"); + this.authentication = authentication; return this; } /** - * The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. + * The name of the unity catalog for the database */ public Builder database(String database) { - Utils.checkNotNull(database, "database"); - this.database = Optional.ofNullable(database); - return this; - } - - /** - * The name of the catalog. If not specified otherwise, the "hive_metastore" will be used. - */ - public Builder database(Optional database) { Utils.checkNotNull(database, "database"); this.database = database; return this; } /** - * Databricks Cluster HTTP Path. + * Databricks Cluster Server Hostname. */ - public Builder databricksHttpPath(String databricksHttpPath) { - Utils.checkNotNull(databricksHttpPath, "databricksHttpPath"); - this.databricksHttpPath = databricksHttpPath; + public Builder hostname(String hostname) { + Utils.checkNotNull(hostname, "hostname"); + this.hostname = hostname; return this; } /** - * Databricks Personal Access Token for making authenticated requests. + * Databricks Cluster HTTP Path. */ - public Builder databricksPersonalAccessToken(String databricksPersonalAccessToken) { - Utils.checkNotNull(databricksPersonalAccessToken, "databricksPersonalAccessToken"); - this.databricksPersonalAccessToken = databricksPersonalAccessToken; + public Builder httpPath(String httpPath) { + Utils.checkNotNull(httpPath, "httpPath"); + this.httpPath = httpPath; return this; } /** * Databricks Cluster Port. */ - public Builder databricksPort(String databricksPort) { - Utils.checkNotNull(databricksPort, "databricksPort"); - this.databricksPort = Optional.ofNullable(databricksPort); + public Builder port(String port) { + Utils.checkNotNull(port, "port"); + this.port = Optional.ofNullable(port); return this; } /** * Databricks Cluster Port. */ - public Builder databricksPort(Optional databricksPort) { - Utils.checkNotNull(databricksPort, "databricksPort"); - this.databricksPort = databricksPort; + public Builder port(Optional port) { + Utils.checkNotNull(port, "port"); + this.port = port; return this; } /** - * Databricks Cluster Server Hostname. - */ - public Builder databricksServerHostname(String databricksServerHostname) { - Utils.checkNotNull(databricksServerHostname, "databricksServerHostname"); - this.databricksServerHostname = databricksServerHostname; - return this; - } - - /** - * Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. + * Default to 'true'. Switch it to 'false' for debugging purpose. */ - public Builder enableSchemaEvolution(boolean enableSchemaEvolution) { - Utils.checkNotNull(enableSchemaEvolution, "enableSchemaEvolution"); - this.enableSchemaEvolution = Optional.ofNullable(enableSchemaEvolution); + public Builder purgeStagingData(boolean purgeStagingData) { + Utils.checkNotNull(purgeStagingData, "purgeStagingData"); + this.purgeStagingData = Optional.ofNullable(purgeStagingData); return this; } /** - * Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes. + * Default to 'true'. Switch it to 'false' for debugging purpose. */ - public Builder enableSchemaEvolution(Optional enableSchemaEvolution) { - Utils.checkNotNull(enableSchemaEvolution, "enableSchemaEvolution"); - this.enableSchemaEvolution = enableSchemaEvolution; + public Builder purgeStagingData(Optional purgeStagingData) { + Utils.checkNotNull(purgeStagingData, "purgeStagingData"); + this.purgeStagingData = purgeStagingData; return this; } /** - * Default to 'true'. Switch it to 'false' for debugging purpose. + * The schema to write raw tables into (default: airbyte_internal) */ - public Builder purgeStagingData(boolean purgeStagingData) { - Utils.checkNotNull(purgeStagingData, "purgeStagingData"); - this.purgeStagingData = Optional.ofNullable(purgeStagingData); + public Builder rawSchemaOverride(String rawSchemaOverride) { + Utils.checkNotNull(rawSchemaOverride, "rawSchemaOverride"); + this.rawSchemaOverride = Optional.ofNullable(rawSchemaOverride); return this; } /** - * Default to 'true'. Switch it to 'false' for debugging purpose. + * The schema to write raw tables into (default: airbyte_internal) */ - public Builder purgeStagingData(Optional purgeStagingData) { - Utils.checkNotNull(purgeStagingData, "purgeStagingData"); - this.purgeStagingData = purgeStagingData; + public Builder rawSchemaOverride(Optional rawSchemaOverride) { + Utils.checkNotNull(rawSchemaOverride, "rawSchemaOverride"); + this.rawSchemaOverride = rawSchemaOverride; return this; } @@ -601,28 +541,27 @@ public DestinationDatabricks build() { if (acceptTerms == null) { acceptTerms = _SINGLETON_VALUE_AcceptTerms.value(); } - if (databricksPort == null) { - databricksPort = _SINGLETON_VALUE_DatabricksPort.value(); - } - if (enableSchemaEvolution == null) { - enableSchemaEvolution = _SINGLETON_VALUE_EnableSchemaEvolution.value(); + if (port == null) { + port = _SINGLETON_VALUE_Port.value(); } if (purgeStagingData == null) { purgeStagingData = _SINGLETON_VALUE_PurgeStagingData.value(); } + if (rawSchemaOverride == null) { + rawSchemaOverride = _SINGLETON_VALUE_RawSchemaOverride.value(); + } if (schema == null) { schema = _SINGLETON_VALUE_Schema.value(); } return new DestinationDatabricks( acceptTerms, - dataSource, + authentication, database, - databricksHttpPath, - databricksPersonalAccessToken, - databricksPort, - databricksServerHostname, - enableSchemaEvolution, + hostname, + httpPath, + port, purgeStagingData, + rawSchemaOverride, schema); } @@ -632,23 +571,17 @@ public DestinationDatabricks build() { "false", new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_DatabricksPort = - new LazySingletonValue<>( - "databricks_port", - "\"443\"", - new TypeReference>() {}); - private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", "\"databricks\"", new TypeReference() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_EnableSchemaEvolution = + private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( - "enable_schema_evolution", - "false", - new TypeReference>() {}); + "port", + "\"443\"", + new TypeReference>() {}); private static final LazySingletonValue> _SINGLETON_VALUE_PurgeStagingData = new LazySingletonValue<>( @@ -656,6 +589,12 @@ public DestinationDatabricks build() { "true", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_RawSchemaOverride = + new LazySingletonValue<>( + "raw_schema_override", + "\"airbyte_internal\"", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_Schema = new LazySingletonValue<>( "schema", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java new file mode 100644 index 00000000..589b0b37 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum DestinationDatabricksAuthType { + BASIC("BASIC"); + + @JsonValue + private final String value; + + private DestinationDatabricksAuthType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAzureBlobStorage.java deleted file mode 100644 index e7fe5b92..00000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAzureBlobStorage.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; -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.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; - -public class DestinationDatabricksAzureBlobStorage { - - /** - * The account's name of the Azure Blob Storage. - */ - @JsonProperty("azure_blob_storage_account_name") - private String azureBlobStorageAccountName; - - /** - * The name of the Azure blob storage container. - */ - @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. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("azure_blob_storage_endpoint_domain_name") - private Optional azureBlobStorageEndpointDomainName; - - /** - * Shared access signature (SAS) token to grant limited access to objects in your storage account. - */ - @JsonProperty("azure_blob_storage_sas_token") - private String azureBlobStorageSasToken; - - @JsonProperty("data_source_type") - private DestinationDatabricksSchemasDataSourceType dataSourceType; - - @JsonCreator - public DestinationDatabricksAzureBlobStorage( - @JsonProperty("azure_blob_storage_account_name") String azureBlobStorageAccountName, - @JsonProperty("azure_blob_storage_container_name") String azureBlobStorageContainerName, - @JsonProperty("azure_blob_storage_endpoint_domain_name") Optional azureBlobStorageEndpointDomainName, - @JsonProperty("azure_blob_storage_sas_token") String azureBlobStorageSasToken) { - Utils.checkNotNull(azureBlobStorageAccountName, "azureBlobStorageAccountName"); - Utils.checkNotNull(azureBlobStorageContainerName, "azureBlobStorageContainerName"); - Utils.checkNotNull(azureBlobStorageEndpointDomainName, "azureBlobStorageEndpointDomainName"); - Utils.checkNotNull(azureBlobStorageSasToken, "azureBlobStorageSasToken"); - this.azureBlobStorageAccountName = azureBlobStorageAccountName; - this.azureBlobStorageContainerName = azureBlobStorageContainerName; - this.azureBlobStorageEndpointDomainName = azureBlobStorageEndpointDomainName; - this.azureBlobStorageSasToken = azureBlobStorageSasToken; - this.dataSourceType = Builder._SINGLETON_VALUE_DataSourceType.value(); - } - - public DestinationDatabricksAzureBlobStorage( - String azureBlobStorageAccountName, - String azureBlobStorageContainerName, - String azureBlobStorageSasToken) { - this(azureBlobStorageAccountName, azureBlobStorageContainerName, Optional.empty(), azureBlobStorageSasToken); - } - - /** - * The account's name of the Azure Blob Storage. - */ - @JsonIgnore - public String azureBlobStorageAccountName() { - return azureBlobStorageAccountName; - } - - /** - * The name of the Azure blob storage container. - */ - @JsonIgnore - public String azureBlobStorageContainerName() { - return 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. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional azureBlobStorageEndpointDomainName() { - return (Optional) azureBlobStorageEndpointDomainName; - } - - /** - * Shared access signature (SAS) token to grant limited access to objects in your storage account. - */ - @JsonIgnore - public String azureBlobStorageSasToken() { - return azureBlobStorageSasToken; - } - - @JsonIgnore - public DestinationDatabricksSchemasDataSourceType dataSourceType() { - return dataSourceType; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The account's name of the Azure Blob Storage. - */ - public DestinationDatabricksAzureBlobStorage withAzureBlobStorageAccountName(String azureBlobStorageAccountName) { - Utils.checkNotNull(azureBlobStorageAccountName, "azureBlobStorageAccountName"); - this.azureBlobStorageAccountName = azureBlobStorageAccountName; - return this; - } - - /** - * The name of the Azure blob storage container. - */ - public DestinationDatabricksAzureBlobStorage withAzureBlobStorageContainerName(String azureBlobStorageContainerName) { - Utils.checkNotNull(azureBlobStorageContainerName, "azureBlobStorageContainerName"); - this.azureBlobStorageContainerName = azureBlobStorageContainerName; - 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. - */ - public DestinationDatabricksAzureBlobStorage withAzureBlobStorageEndpointDomainName(String azureBlobStorageEndpointDomainName) { - Utils.checkNotNull(azureBlobStorageEndpointDomainName, "azureBlobStorageEndpointDomainName"); - this.azureBlobStorageEndpointDomainName = Optional.ofNullable(azureBlobStorageEndpointDomainName); - 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. - */ - public DestinationDatabricksAzureBlobStorage withAzureBlobStorageEndpointDomainName(Optional azureBlobStorageEndpointDomainName) { - Utils.checkNotNull(azureBlobStorageEndpointDomainName, "azureBlobStorageEndpointDomainName"); - this.azureBlobStorageEndpointDomainName = azureBlobStorageEndpointDomainName; - return this; - } - - /** - * Shared access signature (SAS) token to grant limited access to objects in your storage account. - */ - public DestinationDatabricksAzureBlobStorage withAzureBlobStorageSasToken(String azureBlobStorageSasToken) { - Utils.checkNotNull(azureBlobStorageSasToken, "azureBlobStorageSasToken"); - this.azureBlobStorageSasToken = azureBlobStorageSasToken; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DestinationDatabricksAzureBlobStorage other = (DestinationDatabricksAzureBlobStorage) o; - return - java.util.Objects.deepEquals(this.azureBlobStorageAccountName, other.azureBlobStorageAccountName) && - java.util.Objects.deepEquals(this.azureBlobStorageContainerName, other.azureBlobStorageContainerName) && - java.util.Objects.deepEquals(this.azureBlobStorageEndpointDomainName, other.azureBlobStorageEndpointDomainName) && - java.util.Objects.deepEquals(this.azureBlobStorageSasToken, other.azureBlobStorageSasToken) && - java.util.Objects.deepEquals(this.dataSourceType, other.dataSourceType); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - azureBlobStorageAccountName, - azureBlobStorageContainerName, - azureBlobStorageEndpointDomainName, - azureBlobStorageSasToken, - dataSourceType); - } - - @Override - public String toString() { - return Utils.toString(DestinationDatabricksAzureBlobStorage.class, - "azureBlobStorageAccountName", azureBlobStorageAccountName, - "azureBlobStorageContainerName", azureBlobStorageContainerName, - "azureBlobStorageEndpointDomainName", azureBlobStorageEndpointDomainName, - "azureBlobStorageSasToken", azureBlobStorageSasToken, - "dataSourceType", dataSourceType); - } - - public final static class Builder { - - private String azureBlobStorageAccountName; - - private String azureBlobStorageContainerName; - - private Optional azureBlobStorageEndpointDomainName; - - private String azureBlobStorageSasToken; - - private Builder() { - // force use of static builder() method - } - - /** - * The account's name of the Azure Blob Storage. - */ - public Builder azureBlobStorageAccountName(String azureBlobStorageAccountName) { - Utils.checkNotNull(azureBlobStorageAccountName, "azureBlobStorageAccountName"); - this.azureBlobStorageAccountName = azureBlobStorageAccountName; - return this; - } - - /** - * The name of the Azure blob storage container. - */ - public Builder azureBlobStorageContainerName(String azureBlobStorageContainerName) { - Utils.checkNotNull(azureBlobStorageContainerName, "azureBlobStorageContainerName"); - this.azureBlobStorageContainerName = azureBlobStorageContainerName; - 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. - */ - public Builder azureBlobStorageEndpointDomainName(String azureBlobStorageEndpointDomainName) { - Utils.checkNotNull(azureBlobStorageEndpointDomainName, "azureBlobStorageEndpointDomainName"); - this.azureBlobStorageEndpointDomainName = Optional.ofNullable(azureBlobStorageEndpointDomainName); - 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. - */ - public Builder azureBlobStorageEndpointDomainName(Optional azureBlobStorageEndpointDomainName) { - Utils.checkNotNull(azureBlobStorageEndpointDomainName, "azureBlobStorageEndpointDomainName"); - this.azureBlobStorageEndpointDomainName = azureBlobStorageEndpointDomainName; - return this; - } - - /** - * Shared access signature (SAS) token to grant limited access to objects in your storage account. - */ - public Builder azureBlobStorageSasToken(String azureBlobStorageSasToken) { - Utils.checkNotNull(azureBlobStorageSasToken, "azureBlobStorageSasToken"); - this.azureBlobStorageSasToken = azureBlobStorageSasToken; - return this; - } - - public DestinationDatabricksAzureBlobStorage build() { - if (azureBlobStorageEndpointDomainName == null) { - azureBlobStorageEndpointDomainName = _SINGLETON_VALUE_AzureBlobStorageEndpointDomainName.value(); - } - return new DestinationDatabricksAzureBlobStorage( - azureBlobStorageAccountName, - azureBlobStorageContainerName, - azureBlobStorageEndpointDomainName, - azureBlobStorageSasToken); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_AzureBlobStorageEndpointDomainName = - new LazySingletonValue<>( - "azure_blob_storage_endpoint_domain_name", - "\"blob.core.windows.net\"", - new TypeReference>() {}); - - private static final LazySingletonValue _SINGLETON_VALUE_DataSourceType = - new LazySingletonValue<>( - "data_source_type", - "\"AZURE_BLOB_STORAGE\"", - new TypeReference() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksS3BucketRegion.java deleted file mode 100644 index 701b3d93..00000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksS3BucketRegion.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; - -/** - * DestinationDatabricksS3BucketRegion - The region of the S3 staging bucket to use if utilising a copy strategy. - */ -public enum DestinationDatabricksS3BucketRegion { - UNKNOWN(""), - US_EAST1("us-east-1"), - US_EAST2("us-east-2"), - US_WEST1("us-west-1"), - US_WEST2("us-west-2"), - AF_SOUTH1("af-south-1"), - AP_EAST1("ap-east-1"), - AP_SOUTH1("ap-south-1"), - AP_NORTHEAST1("ap-northeast-1"), - AP_NORTHEAST2("ap-northeast-2"), - AP_NORTHEAST3("ap-northeast-3"), - AP_SOUTHEAST1("ap-southeast-1"), - AP_SOUTHEAST2("ap-southeast-2"), - CA_CENTRAL1("ca-central-1"), - CN_NORTH1("cn-north-1"), - CN_NORTHWEST1("cn-northwest-1"), - EU_CENTRAL1("eu-central-1"), - EU_NORTH1("eu-north-1"), - EU_SOUTH1("eu-south-1"), - EU_WEST1("eu-west-1"), - EU_WEST2("eu-west-2"), - EU_WEST3("eu-west-3"), - SA_EAST1("sa-east-1"), - ME_SOUTH1("me-south-1"), - US_GOV_EAST1("us-gov-east-1"), - US_GOV_WEST1("us-gov-west-1"); - - @JsonValue - private final String value; - - private DestinationDatabricksS3BucketRegion(String value) { - this.value = value; - } - - public String value() { - return 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 new file mode 100644 index 00000000..a7a2dfd0 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum DestinationDatabricksSchemasAuthType { + OAUTH("OAUTH"); + + @JsonValue + private final String value; + + private DestinationDatabricksSchemasAuthType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} 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 692eb48e..809740c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java @@ -25,7 +25,7 @@ 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>. */ @JsonProperty("credential") - private Authentication credential; + private DestinationGcsAuthentication credential; @JsonProperty("destinationType") private Gcs destinationType; @@ -57,7 +57,7 @@ public class DestinationGcs { @JsonCreator public DestinationGcs( - @JsonProperty("credential") Authentication credential, + @JsonProperty("credential") DestinationGcsAuthentication credential, @JsonProperty("format") DestinationGcsOutputFormat format, @JsonProperty("gcs_bucket_name") String gcsBucketName, @JsonProperty("gcs_bucket_path") String gcsBucketPath, @@ -76,7 +76,7 @@ public DestinationGcs( } public DestinationGcs( - Authentication credential, + DestinationGcsAuthentication credential, DestinationGcsOutputFormat format, String gcsBucketName, String gcsBucketPath) { @@ -87,7 +87,7 @@ public 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>. */ @JsonIgnore - public Authentication credential() { + public DestinationGcsAuthentication credential() { return credential; } @@ -136,7 +136,7 @@ public final static Builder 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>. */ - public DestinationGcs withCredential(Authentication credential) { + public DestinationGcs withCredential(DestinationGcsAuthentication credential) { Utils.checkNotNull(credential, "credential"); this.credential = credential; return this; @@ -229,7 +229,7 @@ public String toString() { public final static class Builder { - private Authentication credential; + private DestinationGcsAuthentication credential; private DestinationGcsOutputFormat format; @@ -246,7 +246,7 @@ private 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>. */ - public Builder credential(Authentication credential) { + public Builder credential(DestinationGcsAuthentication credential) { Utils.checkNotNull(credential, "credential"); this.credential = credential; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java new file mode 100644 index 00000000..30cfca71 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java @@ -0,0 +1,96 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +import java.time.OffsetDateTime; +import java.time.LocalDate; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; + +/** + * 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>. + */ + +@JsonDeserialize(using = DestinationGcsAuthentication._Deserializer.class) +public class DestinationGcsAuthentication { + + @com.fasterxml.jackson.annotation.JsonValue + private TypedObject value; + + private DestinationGcsAuthentication(TypedObject value) { + this.value = value; + } + + public static DestinationGcsAuthentication of(HMACKey value) { + Utils.checkNotNull(value, "value"); + return new DestinationGcsAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *
      + *
    • {@code HMACKey}
    • + *
    + * + *

    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; + } + DestinationGcsAuthentication other = (DestinationGcsAuthentication) o; + return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return java.util.Objects.hash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeserializer { + + public _Deserializer() { + super(DestinationGcsAuthentication.class, + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(DestinationGcsAuthentication.class, + "value", value); + } + +} 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 f833cd5f..59ad262b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java @@ -80,6 +80,13 @@ public class DestinationSnowflake { @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 + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("use_merge_for_upsert") + private Optional useMergeForUpsert; + /** * Enter the name of the user you want to use to access the database */ @@ -103,6 +110,7 @@ public DestinationSnowflake( @JsonProperty("retention_period_days") Optional retentionPeriodDays, @JsonProperty("role") String role, @JsonProperty("schema") String schema, + @JsonProperty("use_merge_for_upsert") Optional useMergeForUpsert, @JsonProperty("username") String username, @JsonProperty("warehouse") String warehouse) { Utils.checkNotNull(credentials, "credentials"); @@ -114,6 +122,7 @@ public DestinationSnowflake( Utils.checkNotNull(retentionPeriodDays, "retentionPeriodDays"); Utils.checkNotNull(role, "role"); Utils.checkNotNull(schema, "schema"); + Utils.checkNotNull(useMergeForUpsert, "useMergeForUpsert"); Utils.checkNotNull(username, "username"); Utils.checkNotNull(warehouse, "warehouse"); this.credentials = credentials; @@ -126,6 +135,7 @@ public DestinationSnowflake( this.retentionPeriodDays = retentionPeriodDays; this.role = role; this.schema = schema; + this.useMergeForUpsert = useMergeForUpsert; this.username = username; this.warehouse = warehouse; } @@ -137,7 +147,7 @@ public DestinationSnowflake( String schema, String username, String warehouse) { - this(Optional.empty(), database, Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), role, schema, username, warehouse); + this(Optional.empty(), database, Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), role, schema, Optional.empty(), username, warehouse); } @SuppressWarnings("unchecked") @@ -219,6 +229,15 @@ public String schema() { return schema; } + /** + * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional useMergeForUpsert() { + return (Optional) useMergeForUpsert; + } + /** * Enter the name of the user you want to use to access the database */ @@ -359,6 +378,24 @@ public DestinationSnowflake withSchema(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 + */ + public DestinationSnowflake withUseMergeForUpsert(boolean useMergeForUpsert) { + Utils.checkNotNull(useMergeForUpsert, "useMergeForUpsert"); + this.useMergeForUpsert = Optional.ofNullable(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 + */ + public DestinationSnowflake withUseMergeForUpsert(Optional useMergeForUpsert) { + Utils.checkNotNull(useMergeForUpsert, "useMergeForUpsert"); + this.useMergeForUpsert = useMergeForUpsert; + return this; + } + /** * Enter the name of the user you want to use to access the database */ @@ -397,6 +434,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.retentionPeriodDays, other.retentionPeriodDays) && java.util.Objects.deepEquals(this.role, other.role) && java.util.Objects.deepEquals(this.schema, other.schema) && + java.util.Objects.deepEquals(this.useMergeForUpsert, other.useMergeForUpsert) && java.util.Objects.deepEquals(this.username, other.username) && java.util.Objects.deepEquals(this.warehouse, other.warehouse); } @@ -414,6 +452,7 @@ public int hashCode() { retentionPeriodDays, role, schema, + useMergeForUpsert, username, warehouse); } @@ -431,6 +470,7 @@ public String toString() { "retentionPeriodDays", retentionPeriodDays, "role", role, "schema", schema, + "useMergeForUpsert", useMergeForUpsert, "username", username, "warehouse", warehouse); } @@ -455,6 +495,8 @@ public final static class Builder { private String schema; + private Optional useMergeForUpsert; + private String username; private String warehouse; @@ -583,6 +625,24 @@ 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 + */ + public Builder useMergeForUpsert(boolean useMergeForUpsert) { + Utils.checkNotNull(useMergeForUpsert, "useMergeForUpsert"); + this.useMergeForUpsert = Optional.ofNullable(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 + */ + public Builder useMergeForUpsert(Optional useMergeForUpsert) { + Utils.checkNotNull(useMergeForUpsert, "useMergeForUpsert"); + this.useMergeForUpsert = useMergeForUpsert; + return this; + } + /** * Enter the name of the user you want to use to access the database */ @@ -608,6 +668,9 @@ public DestinationSnowflake build() { if (retentionPeriodDays == null) { retentionPeriodDays = _SINGLETON_VALUE_RetentionPeriodDays.value(); } + if (useMergeForUpsert == null) { + useMergeForUpsert = _SINGLETON_VALUE_UseMergeForUpsert.value(); + } return new DestinationSnowflake( credentials, database, @@ -618,6 +681,7 @@ public DestinationSnowflake build() { retentionPeriodDays, role, schema, + useMergeForUpsert, username, warehouse); } @@ -639,6 +703,12 @@ public DestinationSnowflake build() { "retention_period_days", "1", new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_UseMergeForUpsert = + new LazySingletonValue<>( + "use_merge_for_upsert", + "false", + new TypeReference>() {}); } } 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 2e1a81f0..fc9cbfff 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java @@ -16,7 +16,7 @@ import java.math.BigInteger; public enum DestinationSnowflakeAuthType { - USERNAME_AND_PASSWORD("Username and Password"); + KEY_PAIR_AUTHENTICATION("Key Pair Authentication"); @JsonValue private final String value; 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 a8a39039..8726c8f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java @@ -29,7 +29,7 @@ public class DestinationSnowflakeOAuth20 { @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") - private Optional authType; + private Optional authType; /** * Enter your application's Client ID @@ -84,8 +84,8 @@ public String accessToken() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional authType() { - return (Optional) authType; + public Optional authType() { + return (Optional) authType; } /** @@ -285,11 +285,11 @@ public DestinationSnowflakeOAuth20 build() { refreshToken); } - private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"OAuth2.0\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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 088f3739..b1f3f9c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java @@ -16,7 +16,7 @@ import java.math.BigInteger; public enum DestinationSnowflakeSchemasAuthType { - O_AUTH20("OAuth2.0"); + USERNAME_AND_PASSWORD("Username and Password"); @JsonValue private final String 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 1841974b..f19292bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java @@ -16,7 +16,7 @@ import java.math.BigInteger; public enum DestinationSnowflakeSchemasCredentialsAuthType { - KEY_PAIR_AUTHENTICATION("Key Pair Authentication"); + O_AUTH20("OAuth2.0"); @JsonValue private final String value; diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java b/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java new file mode 100644 index 00000000..f6842906 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java @@ -0,0 +1,199 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +public class DestinationTimeplus { + + /** + * Personal API key + */ + @JsonProperty("apikey") + private String apikey; + + @JsonProperty("destinationType") + private Timeplus destinationType; + + /** + * Timeplus workspace endpoint + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("endpoint") + private Optional endpoint; + + @JsonCreator + public DestinationTimeplus( + @JsonProperty("apikey") String apikey, + @JsonProperty("endpoint") Optional endpoint) { + Utils.checkNotNull(apikey, "apikey"); + Utils.checkNotNull(endpoint, "endpoint"); + this.apikey = apikey; + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.endpoint = endpoint; + } + + public DestinationTimeplus( + String apikey) { + this(apikey, Optional.empty()); + } + + /** + * Personal API key + */ + @JsonIgnore + public String apikey() { + return apikey; + } + + @JsonIgnore + public Timeplus destinationType() { + return destinationType; + } + + /** + * Timeplus workspace endpoint + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional endpoint() { + return (Optional) endpoint; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Personal API key + */ + public DestinationTimeplus withApikey(String apikey) { + Utils.checkNotNull(apikey, "apikey"); + this.apikey = apikey; + return this; + } + + /** + * Timeplus workspace endpoint + */ + public DestinationTimeplus withEndpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = Optional.ofNullable(endpoint); + return this; + } + + /** + * Timeplus workspace endpoint + */ + public DestinationTimeplus withEndpoint(Optional 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; + } + DestinationTimeplus other = (DestinationTimeplus) o; + return + java.util.Objects.deepEquals(this.apikey, other.apikey) && + java.util.Objects.deepEquals(this.destinationType, other.destinationType) && + java.util.Objects.deepEquals(this.endpoint, other.endpoint); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apikey, + destinationType, + endpoint); + } + + @Override + public String toString() { + return Utils.toString(DestinationTimeplus.class, + "apikey", apikey, + "destinationType", destinationType, + "endpoint", endpoint); + } + + public final static class Builder { + + private String apikey; + + private Optional endpoint; + + private Builder() { + // force use of static builder() method + } + + /** + * Personal API key + */ + public Builder apikey(String apikey) { + Utils.checkNotNull(apikey, "apikey"); + this.apikey = apikey; + return this; + } + + /** + * Timeplus workspace endpoint + */ + public Builder endpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = Optional.ofNullable(endpoint); + return this; + } + + /** + * Timeplus workspace endpoint + */ + public Builder endpoint(Optional endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = endpoint; + return this; + } + + public DestinationTimeplus build() { + if (endpoint == null) { + endpoint = _SINGLETON_VALUE_Endpoint.value(); + } + return new DestinationTimeplus( + apikey, + endpoint); + } + + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"timeplus\"", + new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Endpoint = + new LazySingletonValue<>( + "endpoint", + "\"https://us-west-2.timeplus.cloud/\"", + new TypeReference>() {}); + } +} + 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 47f193a1..e5927da0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java @@ -38,7 +38,7 @@ public class DestinationTypesense { private Typesense destinationType; /** - * Hostname of the Typesense instance without protocol. + * Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. */ @JsonProperty("host") private String host; @@ -116,7 +116,7 @@ public Typesense destinationType() { } /** - * Hostname of the Typesense instance without protocol. + * Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. */ @JsonIgnore public String host() { @@ -182,7 +182,7 @@ public DestinationTypesense withBatchSize(Optional batchSize) { } /** - * Hostname of the Typesense instance without protocol. + * Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. */ public DestinationTypesense withHost(String host) { Utils.checkNotNull(host, "host"); @@ -333,7 +333,7 @@ public Builder batchSize(Optional batchSize) { } /** - * Hostname of the Typesense instance without protocol. + * Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. */ public Builder host(String host) { Utils.checkNotNull(host, "host"); diff --git a/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java new file mode 100644 index 00000000..e1d830ee --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +public class ExcelFormat { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public ExcelFormat() { + + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public final 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; + } + ExcelFormat other = (ExcelFormat) o; + return + java.util.Objects.deepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + filetype); + } + + @Override + public String toString() { + return Utils.toString(ExcelFormat.class, + "filetype", filetype); + } + + 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", + "\"excel\"", + new TypeReference>() {}); + } +} + 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 436ffa5f..0a6b19c0 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSStaging.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSStaging.java @@ -19,7 +19,7 @@ import java.math.BigInteger; import java.util.Optional; /** - * GCSStaging - <i>(recommended)</i> Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. Provides best-in-class speed, reliability and scalability. Read more about GCS Staging <a href="https://docs.airbyte.com/integrations/destinations/bigquery#gcs-staging">here</a>. + * GCSStaging - 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 { @@ -50,7 +50,7 @@ public class GCSStaging { private Optional keepFilesInGcsBucket; @JsonProperty("method") - private Method method; + private DestinationBigqueryMethod method; @JsonCreator public GCSStaging( @@ -110,7 +110,7 @@ public Optional keepFilesInGcsBucket() { } @JsonIgnore - public Method method() { + public DestinationBigqueryMethod method() { return method; } @@ -276,11 +276,11 @@ public GCSStaging build() { "\"Delete all tmp files from GCS\"", 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/HardcodedRecords.java b/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java new file mode 100644 index 00000000..f1f4895d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum HardcodedRecords { + HARDCODED_RECORDS("hardcoded-records"); + + @JsonValue + private final String value; + + private HardcodedRecords(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..1dc64fc6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Hibob.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Hibob { + HIBOB("hibob"); + + @JsonValue + private final String value; + + private Hibob(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..0439346b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/HighLevel.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum HighLevel { + HIGH_LEVEL("high-level"); + + @JsonValue + private final String value; + + private HighLevel(String value) { + this.value = value; + } + + public String value() { + return 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 897cd2c2..cc748427 100644 --- a/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java @@ -23,7 +23,7 @@ public class KeyPairAuthentication { @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/destinations/snowflake">docs</a> for more information on how to obtain this key. @@ -56,8 +56,8 @@ public KeyPairAuthentication( @SuppressWarnings("unchecked") @JsonIgnore - public Optional authType() { - return (Optional) authType; + public Optional authType() { + return (Optional) authType; } /** @@ -182,11 +182,11 @@ public KeyPairAuthentication build() { privateKeyPassword); } - 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/Leadfeeder.java b/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java new file mode 100644 index 00000000..5013ffdc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Leadfeeder { + LEADFEEDER("leadfeeder"); + + @JsonValue + private final String value; + + private Leadfeeder(String value) { + this.value = value; + } + + public String value() { + return value; + } +} 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 6054a0f7..7c436f1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java @@ -35,21 +35,21 @@ private LoadingMethod(TypedObject value) { this.value = value; } - public static LoadingMethod of(GCSStaging value) { + public static LoadingMethod of(BatchedStandardInserts value) { Utils.checkNotNull(value, "value"); - return new LoadingMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new LoadingMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static LoadingMethod of(StandardInserts value) { + public static LoadingMethod of(GCSStaging value) { Utils.checkNotNull(value, "value"); - return new LoadingMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new LoadingMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
      + *
    • {@code BatchedStandardInserts}
    • *
    • {@code GCSStaging}
    • - *
    • {@code StandardInserts}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -89,8 +89,8 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(LoadingMethod.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Looker.java b/src/main/java/com/airbyte/api/models/shared/Looker.java new file mode 100644 index 00000000..255209b1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Looker.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Looker { + LOOKER("looker"); + + @JsonValue + private final String value; + + private Looker(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..4602d931 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Luma.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Luma { + LUMA("luma"); + + @JsonValue + private final String value; + + private Luma(String value) { + this.value = value; + } + + public String value() { + return 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 382583e1..df66ea98 100644 --- a/src/main/java/com/airbyte/api/models/shared/Method.java +++ b/src/main/java/com/airbyte/api/models/shared/Method.java @@ -16,7 +16,7 @@ import java.math.BigInteger; public enum Method { - GCS_STAGING("GCS Staging"); + STANDARD("Standard"); @JsonValue private final String 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 new file mode 100644 index 00000000..85c3c91e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum NorthpassLms { + NORTHPASS_LMS("northpass-lms"); + + @JsonValue + private final String value; + + private NorthpassLms(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java b/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java new file mode 100644 index 00000000..b3636049 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java @@ -0,0 +1,244 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class OAuth20WithPrivateKey { + + @JsonProperty("auth_type") + private SourceOktaSchemasAuthType authType; + + /** + * The Client ID of your OAuth application. + */ + @JsonProperty("client_id") + private String clientId; + + /** + * The key ID (kid). + */ + @JsonProperty("key_id") + private String keyId; + + /** + * The private key in PEM format + */ + @JsonProperty("private_key") + private String privateKey; + + /** + * The OAuth scope. + */ + @JsonProperty("scope") + private String scope; + + @JsonCreator + public OAuth20WithPrivateKey( + @JsonProperty("client_id") String clientId, + @JsonProperty("key_id") String keyId, + @JsonProperty("private_key") String privateKey, + @JsonProperty("scope") String scope) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(keyId, "keyId"); + Utils.checkNotNull(privateKey, "privateKey"); + Utils.checkNotNull(scope, "scope"); + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.clientId = clientId; + this.keyId = keyId; + this.privateKey = privateKey; + this.scope = scope; + } + + @JsonIgnore + public SourceOktaSchemasAuthType authType() { + return authType; + } + + /** + * The Client ID of your OAuth application. + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * The key ID (kid). + */ + @JsonIgnore + public String keyId() { + return keyId; + } + + /** + * The private key in PEM format + */ + @JsonIgnore + public String privateKey() { + return privateKey; + } + + /** + * The OAuth scope. + */ + @JsonIgnore + public String scope() { + return scope; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The Client ID of your OAuth application. + */ + public OAuth20WithPrivateKey withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The key ID (kid). + */ + public OAuth20WithPrivateKey withKeyId(String keyId) { + Utils.checkNotNull(keyId, "keyId"); + this.keyId = keyId; + return this; + } + + /** + * The private key in PEM format + */ + public OAuth20WithPrivateKey withPrivateKey(String privateKey) { + Utils.checkNotNull(privateKey, "privateKey"); + this.privateKey = privateKey; + return this; + } + + /** + * The OAuth scope. + */ + public OAuth20WithPrivateKey withScope(String scope) { + Utils.checkNotNull(scope, "scope"); + this.scope = scope; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OAuth20WithPrivateKey other = (OAuth20WithPrivateKey) o; + return + java.util.Objects.deepEquals(this.authType, other.authType) && + java.util.Objects.deepEquals(this.clientId, other.clientId) && + java.util.Objects.deepEquals(this.keyId, other.keyId) && + java.util.Objects.deepEquals(this.privateKey, other.privateKey) && + java.util.Objects.deepEquals(this.scope, other.scope); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + authType, + clientId, + keyId, + privateKey, + scope); + } + + @Override + public String toString() { + return Utils.toString(OAuth20WithPrivateKey.class, + "authType", authType, + "clientId", clientId, + "keyId", keyId, + "privateKey", privateKey, + "scope", scope); + } + + 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. + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The key ID (kid). + */ + public Builder keyId(String keyId) { + Utils.checkNotNull(keyId, "keyId"); + this.keyId = keyId; + return this; + } + + /** + * The private key in PEM format + */ + public Builder privateKey(String privateKey) { + Utils.checkNotNull(privateKey, "privateKey"); + this.privateKey = privateKey; + return this; + } + + /** + * The OAuth scope. + */ + public Builder scope(String scope) { + Utils.checkNotNull(scope, "scope"); + this.scope = scope; + return this; + } + + public OAuth20WithPrivateKey build() { + return new OAuth20WithPrivateKey( + clientId, + keyId, + privateKey, + scope); + } + + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"oauth2.0_private_key\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java b/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java new file mode 100644 index 00000000..84b2a01e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class OAuth2Recommended { + + @JsonProperty("auth_type") + private DestinationDatabricksSchemasAuthType authType; + + @JsonProperty("client_id") + private String clientId; + + @JsonProperty("secret") + private String secret; + + @JsonCreator + public OAuth2Recommended( + @JsonProperty("client_id") String clientId, + @JsonProperty("secret") String secret) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(secret, "secret"); + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.clientId = clientId; + this.secret = secret; + } + + @JsonIgnore + public DestinationDatabricksSchemasAuthType authType() { + return authType; + } + + @JsonIgnore + public String clientId() { + return clientId; + } + + @JsonIgnore + public String secret() { + return secret; + } + + public final static Builder builder() { + return new Builder(); + } + + public OAuth2Recommended withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public OAuth2Recommended withSecret(String secret) { + Utils.checkNotNull(secret, "secret"); + this.secret = secret; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OAuth2Recommended other = (OAuth2Recommended) o; + return + java.util.Objects.deepEquals(this.authType, other.authType) && + java.util.Objects.deepEquals(this.clientId, other.clientId) && + java.util.Objects.deepEquals(this.secret, other.secret); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + authType, + clientId, + secret); + } + + @Override + public String toString() { + return Utils.toString(OAuth2Recommended.class, + "authType", authType, + "clientId", clientId, + "secret", secret); + } + + 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); + } + + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"OAUTH\"", + 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 f6e41389..eebe7498 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java @@ -49,7 +49,6 @@ public enum OAuthActorNames { SNAPCHAT_MARKETING("snapchat-marketing"), SNOWFLAKE("snowflake"), SQUARE("square"), - STRAVA("strava"), SURVEYMONKEY("surveymonkey"), TIKTOK_MARKETING("tiktok-marketing"), TRELLO("trello"), diff --git a/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java b/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java index 28d73beb..bd95ffe7 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java @@ -205,11 +205,6 @@ public static OAuthCredentialsConfiguration of(Square value) { return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static OAuthCredentialsConfiguration of(Strava 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(){})); @@ -292,7 +287,6 @@ public static OAuthCredentialsConfiguration of(ZendeskTalk value) { *

  • {@code SnapchatMarketing}
  • *
  • {@code Snowflake}
  • *
  • {@code Square}
  • - *
  • {@code Strava}
  • *
  • {@code Surveymonkey}
  • *
  • {@code TiktokMarketing}
  • *
  • {@code java.lang.Object}
  • @@ -375,7 +369,6 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), diff --git a/src/main/java/com/airbyte/api/models/shared/Pennylane.java b/src/main/java/com/airbyte/api/models/shared/Pennylane.java new file mode 100644 index 00000000..ef2167cc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Pennylane.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Pennylane { + PENNYLANE("pennylane"); + + @JsonValue + private final String value; + + private Pennylane(String value) { + this.value = value; + } + + public String value() { + return 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 f7bffd2b..559ff39b 100644 --- a/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java @@ -9,60 +9,46 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonFormat; 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.io.InputStream; import java.lang.Deprecated; import java.math.BigDecimal; import java.math.BigInteger; -import java.util.Optional; public class PersonalAccessToken { - /** - * 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. - */ - @JsonProperty("api_key") - private String apiKey; + @JsonProperty("auth_type") + private DestinationDatabricksAuthType authType; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("auth_method") - private Optional authMethod; + @JsonProperty("personal_access_token") + private String personalAccessToken; @JsonCreator public PersonalAccessToken( - @JsonProperty("api_key") String apiKey) { - Utils.checkNotNull(apiKey, "apiKey"); - this.apiKey = apiKey; - this.authMethod = Builder._SINGLETON_VALUE_AuthMethod.value(); + @JsonProperty("personal_access_token") String personalAccessToken) { + Utils.checkNotNull(personalAccessToken, "personalAccessToken"); + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.personalAccessToken = personalAccessToken; } - /** - * 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. - */ @JsonIgnore - public String apiKey() { - return apiKey; + public DestinationDatabricksAuthType authType() { + return authType; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional authMethod() { - return (Optional) authMethod; + public String personalAccessToken() { + return personalAccessToken; } public final 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. - */ - public PersonalAccessToken withApiKey(String apiKey) { - Utils.checkNotNull(apiKey, "apiKey"); - this.apiKey = apiKey; + public PersonalAccessToken withPersonalAccessToken(String personalAccessToken) { + Utils.checkNotNull(personalAccessToken, "personalAccessToken"); + this.personalAccessToken = personalAccessToken; return this; } @@ -76,51 +62,48 @@ public boolean equals(java.lang.Object o) { } PersonalAccessToken other = (PersonalAccessToken) o; return - java.util.Objects.deepEquals(this.apiKey, other.apiKey) && - java.util.Objects.deepEquals(this.authMethod, other.authMethod); + java.util.Objects.deepEquals(this.authType, other.authType) && + java.util.Objects.deepEquals(this.personalAccessToken, other.personalAccessToken); } @Override public int hashCode() { return java.util.Objects.hash( - apiKey, - authMethod); + authType, + personalAccessToken); } @Override public String toString() { return Utils.toString(PersonalAccessToken.class, - "apiKey", apiKey, - "authMethod", authMethod); + "authType", authType, + "personalAccessToken", personalAccessToken); } public final static class Builder { - private String apiKey; + private String personalAccessToken; 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. - */ - public Builder apiKey(String apiKey) { - Utils.checkNotNull(apiKey, "apiKey"); - this.apiKey = apiKey; + public Builder personalAccessToken(String personalAccessToken) { + Utils.checkNotNull(personalAccessToken, "personalAccessToken"); + this.personalAccessToken = personalAccessToken; return this; } public PersonalAccessToken build() { return new PersonalAccessToken( - apiKey); + personalAccessToken); } - private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( - "auth_method", - "\"api_key\"", - new TypeReference>() {}); + "auth_type", + "\"BASIC\"", + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Planhat.java b/src/main/java/com/airbyte/api/models/shared/Planhat.java new file mode 100644 index 00000000..5b8bb138 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Planhat.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Planhat { + PLANHAT("planhat"); + + @JsonValue + private final String value; + + private Planhat(String value) { + this.value = value; + } + + public String value() { + return 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 c9fac755..3f043083 100644 --- a/src/main/java/com/airbyte/api/models/shared/Queries.java +++ b/src/main/java/com/airbyte/api/models/shared/Queries.java @@ -21,7 +21,7 @@ public class Queries { * A data source that is powered by the platform. */ @JsonProperty("data_source") - private SourceDatadogDataSource dataSource; + private DataSource dataSource; /** * The variable name for use in queries. @@ -37,7 +37,7 @@ public class Queries { @JsonCreator public Queries( - @JsonProperty("data_source") SourceDatadogDataSource dataSource, + @JsonProperty("data_source") DataSource dataSource, @JsonProperty("name") String name, @JsonProperty("query") String query) { Utils.checkNotNull(dataSource, "dataSource"); @@ -52,7 +52,7 @@ public Queries( * A data source that is powered by the platform. */ @JsonIgnore - public SourceDatadogDataSource dataSource() { + public DataSource dataSource() { return dataSource; } @@ -79,7 +79,7 @@ public final static Builder builder() { /** * A data source that is powered by the platform. */ - public Queries withDataSource(SourceDatadogDataSource dataSource) { + public Queries withDataSource(DataSource dataSource) { Utils.checkNotNull(dataSource, "dataSource"); this.dataSource = dataSource; return this; @@ -136,7 +136,7 @@ public String toString() { public final static class Builder { - private SourceDatadogDataSource dataSource; + private DataSource dataSource; private String name; @@ -149,7 +149,7 @@ private Builder() { /** * A data source that is powered by the platform. */ - public Builder dataSource(SourceDatadogDataSource dataSource) { + public Builder dataSource(DataSource dataSource) { Utils.checkNotNull(dataSource, "dataSource"); this.dataSource = dataSource; return this; 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 756055fd..f7658289 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java @@ -24,6 +24,13 @@ public class ReadChangesUsingChangeDataCaptureCDC { + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("initial_load_timeout_hours") + 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>. */ @@ -50,12 +57,15 @@ public class ReadChangesUsingChangeDataCaptureCDC { @JsonCreator public ReadChangesUsingChangeDataCaptureCDC( + @JsonProperty("initial_load_timeout_hours") Optional initialLoadTimeoutHours, @JsonProperty("initial_waiting_seconds") Optional initialWaitingSeconds, @JsonProperty("invalid_cdc_cursor_position_behavior") Optional invalidCdcCursorPositionBehavior, @JsonProperty("queue_size") Optional queueSize) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); Utils.checkNotNull(queueSize, "queueSize"); + this.initialLoadTimeoutHours = initialLoadTimeoutHours; this.initialWaitingSeconds = initialWaitingSeconds; this.invalidCdcCursorPositionBehavior = invalidCdcCursorPositionBehavior; this.method = Builder._SINGLETON_VALUE_Method.value(); @@ -63,7 +73,16 @@ public ReadChangesUsingChangeDataCaptureCDC( } public ReadChangesUsingChangeDataCaptureCDC() { - this(Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional initialLoadTimeoutHours() { + return (Optional) initialLoadTimeoutHours; } /** @@ -102,6 +121,24 @@ public final static Builder builder() { return new Builder(); } + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public ReadChangesUsingChangeDataCaptureCDC withInitialLoadTimeoutHours(long initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = Optional.ofNullable(initialLoadTimeoutHours); + return this; + } + + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public ReadChangesUsingChangeDataCaptureCDC withInitialLoadTimeoutHours(Optional initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = 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>. */ @@ -166,6 +203,7 @@ public boolean equals(java.lang.Object o) { } ReadChangesUsingChangeDataCaptureCDC other = (ReadChangesUsingChangeDataCaptureCDC) o; return + java.util.Objects.deepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && java.util.Objects.deepEquals(this.initialWaitingSeconds, other.initialWaitingSeconds) && java.util.Objects.deepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && java.util.Objects.deepEquals(this.method, other.method) && @@ -175,6 +213,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return java.util.Objects.hash( + initialLoadTimeoutHours, initialWaitingSeconds, invalidCdcCursorPositionBehavior, method, @@ -184,6 +223,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(ReadChangesUsingChangeDataCaptureCDC.class, + "initialLoadTimeoutHours", initialLoadTimeoutHours, "initialWaitingSeconds", initialWaitingSeconds, "invalidCdcCursorPositionBehavior", invalidCdcCursorPositionBehavior, "method", method, @@ -192,6 +232,8 @@ public String toString() { public final static class Builder { + private Optional initialLoadTimeoutHours; + private Optional initialWaitingSeconds; private Optional invalidCdcCursorPositionBehavior; @@ -202,6 +244,24 @@ 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. + */ + public Builder initialLoadTimeoutHours(long initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = Optional.ofNullable(initialLoadTimeoutHours); + return this; + } + + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public Builder initialLoadTimeoutHours(Optional initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = 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>. */ @@ -257,6 +317,9 @@ public Builder queueSize(Optional queueSize) { } public ReadChangesUsingChangeDataCaptureCDC build() { + if (initialLoadTimeoutHours == null) { + initialLoadTimeoutHours = _SINGLETON_VALUE_InitialLoadTimeoutHours.value(); + } if (initialWaitingSeconds == null) { initialWaitingSeconds = _SINGLETON_VALUE_InitialWaitingSeconds.value(); } @@ -267,11 +330,18 @@ public ReadChangesUsingChangeDataCaptureCDC build() { queueSize = _SINGLETON_VALUE_QueueSize.value(); } return new ReadChangesUsingChangeDataCaptureCDC( + initialLoadTimeoutHours, initialWaitingSeconds, invalidCdcCursorPositionBehavior, queueSize); } + private static final LazySingletonValue> _SINGLETON_VALUE_InitialLoadTimeoutHours = + new LazySingletonValue<>( + "initial_load_timeout_hours", + "8", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_InitialWaitingSeconds = new LazySingletonValue<>( "initial_waiting_seconds", diff --git a/src/main/java/com/airbyte/api/models/shared/Reddit.java b/src/main/java/com/airbyte/api/models/shared/Reddit.java new file mode 100644 index 00000000..88e0cb93 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Reddit.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Reddit { + REDDIT("reddit"); + + @JsonValue + private final String value; + + private Reddit(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..f6415528 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Savvycal.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Savvycal { + SAVVYCAL("savvycal"); + + @JsonValue + private final String value; + + private Savvycal(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Scryfall.java b/src/main/java/com/airbyte/api/models/shared/Scryfall.java new file mode 100644 index 00000000..5187ec20 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Scryfall.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Scryfall { + SCRYFALL("scryfall"); + + @JsonValue + private final String value; + + private Scryfall(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java b/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java new file mode 100644 index 00000000..af659249 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java @@ -0,0 +1,170 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.OffsetDateTime; + +public class SourceAirbyte { + + @JsonProperty("client_id") + private String clientId; + + @JsonProperty("client_secret") + private String clientSecret; + + @JsonProperty("sourceType") + private Airbyte sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceAirbyte( + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(startDate, "startDate"); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public String clientId() { + return clientId; + } + + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + @JsonIgnore + public Airbyte sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceAirbyte withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public SourceAirbyte withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public SourceAirbyte 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; + } + SourceAirbyte other = (SourceAirbyte) o; + return + java.util.Objects.deepEquals(this.clientId, other.clientId) && + java.util.Objects.deepEquals(this.clientSecret, other.clientSecret) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + clientId, + clientSecret, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceAirbyte.class, + "clientId", clientId, + "clientSecret", clientSecret, + "sourceType", sourceType, + "startDate", startDate); + } + + 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 SourceAirbyte build() { + return new SourceAirbyte( + clientId, + clientSecret, + startDate); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"airbyte\"", + new TypeReference() {}); + } +} + 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 638dee51..4cf412d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java @@ -37,16 +37,16 @@ public static SourceAirtableAuthentication of(SourceAirtableOAuth20 value) { return new SourceAirtableAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceAirtableAuthentication of(PersonalAccessToken value) { + public static SourceAirtableAuthentication of(SourceAirtablePersonalAccessToken value) { Utils.checkNotNull(value, "value"); - return new SourceAirtableAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceAirtableAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
      *
    • {@code SourceAirtableOAuth20}
    • - *
    • {@code PersonalAccessToken}
    • + *
    • {@code SourceAirtablePersonalAccessToken}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -87,7 +87,7 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(SourceAirtableAuthentication.class, Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java new file mode 100644 index 00000000..dfc4c23e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java @@ -0,0 +1,126 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +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. + */ + @JsonProperty("api_key") + private String apiKey; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("auth_method") + private Optional authMethod; + + @JsonCreator + public SourceAirtablePersonalAccessToken( + @JsonProperty("api_key") String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + this.authMethod = Builder._SINGLETON_VALUE_AuthMethod.value(); + } + + /** + * 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. + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional authMethod() { + return (Optional) authMethod; + } + + public final 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. + */ + public SourceAirtablePersonalAccessToken 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; + } + SourceAirtablePersonalAccessToken other = (SourceAirtablePersonalAccessToken) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.authMethod, other.authMethod); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + authMethod); + } + + @Override + public String toString() { + return Utils.toString(SourceAirtablePersonalAccessToken.class, + "apiKey", apiKey, + "authMethod", authMethod); + } + + 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. + */ + 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", + "\"api_key\"", + new TypeReference>() {}); + } +} + 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 e9bc27b4..00fc5c05 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java @@ -98,6 +98,13 @@ public class SourceAmazonSellerPartner { @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 + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("wait_to_avoid_fatal_errors") + private Optional waitToAvoidFatalErrors; + @JsonCreator public SourceAmazonSellerPartner( @JsonProperty("account_type") Optional accountType, @@ -109,7 +116,8 @@ public SourceAmazonSellerPartner( @JsonProperty("region") Optional region, @JsonProperty("replication_end_date") Optional replicationEndDate, @JsonProperty("replication_start_date") Optional replicationStartDate, - @JsonProperty("report_options_list") Optional> reportOptionsList) { + @JsonProperty("report_options_list") Optional> reportOptionsList, + @JsonProperty("wait_to_avoid_fatal_errors") Optional waitToAvoidFatalErrors) { Utils.checkNotNull(accountType, "accountType"); Utils.checkNotNull(awsEnvironment, "awsEnvironment"); Utils.checkNotNull(lwaAppId, "lwaAppId"); @@ -120,6 +128,7 @@ public SourceAmazonSellerPartner( Utils.checkNotNull(replicationEndDate, "replicationEndDate"); Utils.checkNotNull(replicationStartDate, "replicationStartDate"); Utils.checkNotNull(reportOptionsList, "reportOptionsList"); + Utils.checkNotNull(waitToAvoidFatalErrors, "waitToAvoidFatalErrors"); this.accountType = accountType; this.authType = Builder._SINGLETON_VALUE_AuthType.value(); this.awsEnvironment = awsEnvironment; @@ -132,13 +141,14 @@ public SourceAmazonSellerPartner( this.replicationStartDate = replicationStartDate; this.reportOptionsList = reportOptionsList; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.waitToAvoidFatalErrors = waitToAvoidFatalErrors; } public SourceAmazonSellerPartner( String lwaAppId, String lwaClientSecret, String refreshToken) { - this(Optional.empty(), Optional.empty(), lwaAppId, lwaClientSecret, Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), lwaAppId, lwaClientSecret, Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -239,6 +249,15 @@ public SourceAmazonSellerPartnerAmazonSellerPartner sourceType() { return 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 + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional waitToAvoidFatalErrors() { + return (Optional) waitToAvoidFatalErrors; + } + public final static Builder builder() { return new Builder(); } @@ -395,6 +414,24 @@ public SourceAmazonSellerPartner withReportOptionsList(Optional waitToAvoidFatalErrors) { + Utils.checkNotNull(waitToAvoidFatalErrors, "waitToAvoidFatalErrors"); + this.waitToAvoidFatalErrors = waitToAvoidFatalErrors; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -417,7 +454,8 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.replicationEndDate, other.replicationEndDate) && java.util.Objects.deepEquals(this.replicationStartDate, other.replicationStartDate) && java.util.Objects.deepEquals(this.reportOptionsList, other.reportOptionsList) && - java.util.Objects.deepEquals(this.sourceType, other.sourceType); + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.waitToAvoidFatalErrors, other.waitToAvoidFatalErrors); } @Override @@ -434,7 +472,8 @@ public int hashCode() { replicationEndDate, replicationStartDate, reportOptionsList, - sourceType); + sourceType, + waitToAvoidFatalErrors); } @Override @@ -451,7 +490,8 @@ public String toString() { "replicationEndDate", replicationEndDate, "replicationStartDate", replicationStartDate, "reportOptionsList", reportOptionsList, - "sourceType", sourceType); + "sourceType", sourceType, + "waitToAvoidFatalErrors", waitToAvoidFatalErrors); } public final static class Builder { @@ -474,7 +514,9 @@ public final static class Builder { private Optional replicationStartDate = Optional.empty(); - private Optional> reportOptionsList = Optional.empty(); + private Optional> reportOptionsList = Optional.empty(); + + private Optional waitToAvoidFatalErrors; private Builder() { // force use of static builder() method @@ -632,6 +674,24 @@ public Builder reportOptionsList(Optional waitToAvoidFatalErrors) { + Utils.checkNotNull(waitToAvoidFatalErrors, "waitToAvoidFatalErrors"); + this.waitToAvoidFatalErrors = waitToAvoidFatalErrors; + return this; + } public SourceAmazonSellerPartner build() { if (accountType == null) { @@ -646,6 +706,9 @@ public SourceAmazonSellerPartner build() { if (region == null) { region = _SINGLETON_VALUE_Region.value(); } + if (waitToAvoidFatalErrors == null) { + waitToAvoidFatalErrors = _SINGLETON_VALUE_WaitToAvoidFatalErrors.value(); + } return new SourceAmazonSellerPartner( accountType, awsEnvironment, @@ -656,7 +719,8 @@ public SourceAmazonSellerPartner build() { region, replicationEndDate, replicationStartDate, - reportOptionsList); + reportOptionsList, + waitToAvoidFatalErrors); } private static final LazySingletonValue> _SINGLETON_VALUE_AccountType = @@ -694,6 +758,12 @@ public SourceAmazonSellerPartner build() { "sourceType", "\"amazon-seller-partner\"", new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_WaitToAvoidFatalErrors = + new LazySingletonValue<>( + "wait_to_avoid_fatal_errors", + "false", + new TypeReference>() {}); } } 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 22a0536e..e8eccf2a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java @@ -13,10 +13,13 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.io.InputStream; import java.lang.Deprecated; import java.math.BigDecimal; import java.math.BigInteger; +import java.time.OffsetDateTime; import java.util.Optional; public class SourceBambooHr { @@ -44,6 +47,10 @@ public class SourceBambooHr { @JsonProperty("sourceType") private BambooHr sourceType; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start_date") + private Optional startDate; + /** * Sub Domain of bamboo hr */ @@ -55,22 +62,25 @@ public SourceBambooHr( @JsonProperty("api_key") String apiKey, @JsonProperty("custom_reports_fields") Optional customReportsFields, @JsonProperty("custom_reports_include_default_fields") Optional customReportsIncludeDefaultFields, + @JsonProperty("start_date") Optional startDate, @JsonProperty("subdomain") String subdomain) { Utils.checkNotNull(apiKey, "apiKey"); Utils.checkNotNull(customReportsFields, "customReportsFields"); Utils.checkNotNull(customReportsIncludeDefaultFields, "customReportsIncludeDefaultFields"); + Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(subdomain, "subdomain"); this.apiKey = apiKey; this.customReportsFields = customReportsFields; this.customReportsIncludeDefaultFields = customReportsIncludeDefaultFields; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; this.subdomain = subdomain; } public SourceBambooHr( String apiKey, String subdomain) { - this(apiKey, Optional.empty(), Optional.empty(), subdomain); + this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), subdomain); } /** @@ -104,6 +114,12 @@ public BambooHr sourceType() { return sourceType; } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional startDate() { + return (Optional) startDate; + } + /** * Sub Domain of bamboo hr */ @@ -161,6 +177,18 @@ public SourceBambooHr withCustomReportsIncludeDefaultFields(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + /** * Sub Domain of bamboo hr */ @@ -184,6 +212,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.customReportsFields, other.customReportsFields) && java.util.Objects.deepEquals(this.customReportsIncludeDefaultFields, other.customReportsIncludeDefaultFields) && java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.startDate, other.startDate) && java.util.Objects.deepEquals(this.subdomain, other.subdomain); } @@ -194,6 +223,7 @@ public int hashCode() { customReportsFields, customReportsIncludeDefaultFields, sourceType, + startDate, subdomain); } @@ -204,6 +234,7 @@ public String toString() { "customReportsFields", customReportsFields, "customReportsIncludeDefaultFields", customReportsIncludeDefaultFields, "sourceType", sourceType, + "startDate", startDate, "subdomain", subdomain); } @@ -215,6 +246,8 @@ public final static class Builder { private Optional customReportsIncludeDefaultFields; + private Optional startDate = Optional.empty(); + private String subdomain; private Builder() { @@ -266,6 +299,18 @@ public Builder customReportsIncludeDefaultFields(Optional cus 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; + } + /** * Sub Domain of bamboo hr */ @@ -283,6 +328,7 @@ public SourceBambooHr build() { apiKey, customReportsFields, customReportsIncludeDefaultFields, + startDate, subdomain); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java b/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java new file mode 100644 index 00000000..dd969a5e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java @@ -0,0 +1,228 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.OffsetDateTime; + +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; + + @JsonCreator + public SourceBasecamp( + @JsonProperty("account_id") double accountId, + @JsonProperty("client_id") String clientId, + @JsonProperty("client_refresh_token_2") String clientRefreshToken2, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(accountId, "accountId"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientRefreshToken2, "clientRefreshToken2"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(startDate, "startDate"); + this.accountId = accountId; + this.clientId = clientId; + this.clientRefreshToken2 = clientRefreshToken2; + this.clientSecret = clientSecret; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public double accountId() { + return accountId; + } + + @JsonIgnore + public String clientId() { + return clientId; + } + + @JsonIgnore + public String clientRefreshToken2() { + return clientRefreshToken2; + } + + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + @JsonIgnore + public Basecamp sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceBasecamp withAccountId(double accountId) { + Utils.checkNotNull(accountId, "accountId"); + this.accountId = accountId; + return this; + } + + public SourceBasecamp withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public SourceBasecamp withClientRefreshToken2(String clientRefreshToken2) { + Utils.checkNotNull(clientRefreshToken2, "clientRefreshToken2"); + this.clientRefreshToken2 = clientRefreshToken2; + return this; + } + + public SourceBasecamp withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public SourceBasecamp 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; + } + SourceBasecamp other = (SourceBasecamp) o; + return + java.util.Objects.deepEquals(this.accountId, other.accountId) && + java.util.Objects.deepEquals(this.clientId, other.clientId) && + java.util.Objects.deepEquals(this.clientRefreshToken2, other.clientRefreshToken2) && + java.util.Objects.deepEquals(this.clientSecret, other.clientSecret) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + accountId, + clientId, + clientRefreshToken2, + clientSecret, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceBasecamp.class, + "accountId", accountId, + "clientId", clientId, + "clientRefreshToken2", clientRefreshToken2, + "clientSecret", clientSecret, + "sourceType", sourceType, + "startDate", startDate); + } + + 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); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"basecamp\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java b/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java new file mode 100644 index 00000000..b17fe1e2 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourceBreezyHr { + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("company_id") + private String companyId; + + @JsonProperty("sourceType") + private BreezyHr sourceType; + + @JsonCreator + public SourceBreezyHr( + @JsonProperty("api_key") String apiKey, + @JsonProperty("company_id") String companyId) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(companyId, "companyId"); + this.apiKey = apiKey; + this.companyId = companyId; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public String companyId() { + return companyId; + } + + @JsonIgnore + public BreezyHr sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceBreezyHr withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceBreezyHr withCompanyId(String companyId) { + Utils.checkNotNull(companyId, "companyId"); + this.companyId = companyId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceBreezyHr other = (SourceBreezyHr) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.companyId, other.companyId) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + companyId, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceBreezyHr.class, + "apiKey", apiKey, + "companyId", companyId, + "sourceType", sourceType); + } + + 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); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"breezy-hr\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java b/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java new file mode 100644 index 00000000..b0197ccb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java @@ -0,0 +1,153 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.OffsetDateTime; + +public class SourceCalendly { + + /** + * Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks + */ + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Calendly sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceCalendly( + @JsonProperty("api_key") String apiKey, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + /** + * Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Calendly sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * 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"); + this.apiKey = apiKey; + 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) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceCalendly other = (SourceCalendly) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceCalendly.class, + "apiKey", apiKey, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String apiKey; + + 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 + */ + 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 SourceCalendly build() { + return new SourceCalendly( + apiKey, + startDate); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"calendly\"", + new TypeReference() {}); + } +} + 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 ee400cf7..be3a37f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java @@ -27,13 +27,6 @@ public class SourceClickupApi { @JsonProperty("api_token") private String apiToken; - /** - * The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetFolders/">here</a>. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("folder_id") - private Optional folderId; - /** * 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>. */ @@ -41,56 +34,23 @@ public class SourceClickupApi { @JsonProperty("include_closed_tasks") private Optional includeClosedTasks; - /** - * The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetLists/">here</a>. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("list_id") - private Optional listId; - @JsonProperty("sourceType") private ClickupApi sourceType; - /** - * The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetSpaces/">here</a>. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("space_id") - private Optional spaceId; - - /** - * The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetAuthorizedTeams/">here</a>. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("team_id") - private Optional teamId; - @JsonCreator public SourceClickupApi( @JsonProperty("api_token") String apiToken, - @JsonProperty("folder_id") Optional folderId, - @JsonProperty("include_closed_tasks") Optional includeClosedTasks, - @JsonProperty("list_id") Optional listId, - @JsonProperty("space_id") Optional spaceId, - @JsonProperty("team_id") Optional teamId) { + @JsonProperty("include_closed_tasks") Optional includeClosedTasks) { Utils.checkNotNull(apiToken, "apiToken"); - Utils.checkNotNull(folderId, "folderId"); Utils.checkNotNull(includeClosedTasks, "includeClosedTasks"); - Utils.checkNotNull(listId, "listId"); - Utils.checkNotNull(spaceId, "spaceId"); - Utils.checkNotNull(teamId, "teamId"); this.apiToken = apiToken; - this.folderId = folderId; this.includeClosedTasks = includeClosedTasks; - this.listId = listId; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); - this.spaceId = spaceId; - this.teamId = teamId; } public SourceClickupApi( String apiToken) { - this(apiToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(apiToken, Optional.empty()); } /** @@ -101,15 +61,6 @@ public String apiToken() { return apiToken; } - /** - * The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetFolders/">here</a>. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional folderId() { - return (Optional) folderId; - } - /** * 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>. */ @@ -119,38 +70,11 @@ public Optional includeClosedTasks() { return (Optional) includeClosedTasks; } - /** - * The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetLists/">here</a>. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional listId() { - return (Optional) listId; - } - @JsonIgnore public ClickupApi sourceType() { return sourceType; } - /** - * The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetSpaces/">here</a>. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional spaceId() { - return (Optional) spaceId; - } - - /** - * The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetAuthorizedTeams/">here</a>. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional teamId() { - return (Optional) teamId; - } - public final static Builder builder() { return new Builder(); } @@ -164,24 +88,6 @@ public SourceClickupApi withApiToken(String apiToken) { return this; } - /** - * The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetFolders/">here</a>. - */ - public SourceClickupApi withFolderId(String folderId) { - Utils.checkNotNull(folderId, "folderId"); - this.folderId = Optional.ofNullable(folderId); - return this; - } - - /** - * The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetFolders/">here</a>. - */ - public SourceClickupApi withFolderId(Optional folderId) { - Utils.checkNotNull(folderId, "folderId"); - this.folderId = folderId; - 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>. */ @@ -199,60 +105,6 @@ public SourceClickupApi withIncludeClosedTasks(Optional inclu this.includeClosedTasks = includeClosedTasks; return this; } - - /** - * The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetLists/">here</a>. - */ - public SourceClickupApi withListId(String listId) { - Utils.checkNotNull(listId, "listId"); - this.listId = Optional.ofNullable(listId); - return this; - } - - /** - * The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetLists/">here</a>. - */ - public SourceClickupApi withListId(Optional listId) { - Utils.checkNotNull(listId, "listId"); - this.listId = listId; - return this; - } - - /** - * The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetSpaces/">here</a>. - */ - public SourceClickupApi withSpaceId(String spaceId) { - Utils.checkNotNull(spaceId, "spaceId"); - this.spaceId = Optional.ofNullable(spaceId); - return this; - } - - /** - * The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetSpaces/">here</a>. - */ - public SourceClickupApi withSpaceId(Optional spaceId) { - Utils.checkNotNull(spaceId, "spaceId"); - this.spaceId = spaceId; - return this; - } - - /** - * The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetAuthorizedTeams/">here</a>. - */ - public SourceClickupApi withTeamId(String teamId) { - Utils.checkNotNull(teamId, "teamId"); - this.teamId = Optional.ofNullable(teamId); - return this; - } - - /** - * The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetAuthorizedTeams/">here</a>. - */ - public SourceClickupApi withTeamId(Optional teamId) { - Utils.checkNotNull(teamId, "teamId"); - this.teamId = teamId; - return this; - } @Override public boolean equals(java.lang.Object o) { @@ -265,51 +117,31 @@ public boolean equals(java.lang.Object o) { SourceClickupApi other = (SourceClickupApi) o; return java.util.Objects.deepEquals(this.apiToken, other.apiToken) && - java.util.Objects.deepEquals(this.folderId, other.folderId) && java.util.Objects.deepEquals(this.includeClosedTasks, other.includeClosedTasks) && - java.util.Objects.deepEquals(this.listId, other.listId) && - java.util.Objects.deepEquals(this.sourceType, other.sourceType) && - java.util.Objects.deepEquals(this.spaceId, other.spaceId) && - java.util.Objects.deepEquals(this.teamId, other.teamId); + java.util.Objects.deepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { return java.util.Objects.hash( apiToken, - folderId, includeClosedTasks, - listId, - sourceType, - spaceId, - teamId); + sourceType); } @Override public String toString() { return Utils.toString(SourceClickupApi.class, "apiToken", apiToken, - "folderId", folderId, "includeClosedTasks", includeClosedTasks, - "listId", listId, - "sourceType", sourceType, - "spaceId", spaceId, - "teamId", teamId); + "sourceType", sourceType); } public final static class Builder { private String apiToken; - private Optional folderId = Optional.empty(); - - private Optional includeClosedTasks; - - private Optional listId = Optional.empty(); - - private Optional spaceId = Optional.empty(); - - private Optional teamId = Optional.empty(); + private Optional includeClosedTasks; private Builder() { // force use of static builder() method @@ -324,24 +156,6 @@ public Builder apiToken(String apiToken) { return this; } - /** - * The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetFolders/">here</a>. - */ - public Builder folderId(String folderId) { - Utils.checkNotNull(folderId, "folderId"); - this.folderId = Optional.ofNullable(folderId); - return this; - } - - /** - * The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetFolders/">here</a>. - */ - public Builder folderId(Optional folderId) { - Utils.checkNotNull(folderId, "folderId"); - this.folderId = folderId; - 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>. */ @@ -359,60 +173,6 @@ public Builder includeClosedTasks(Optional includeClosedTasks this.includeClosedTasks = includeClosedTasks; return this; } - - /** - * The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetLists/">here</a>. - */ - public Builder listId(String listId) { - Utils.checkNotNull(listId, "listId"); - this.listId = Optional.ofNullable(listId); - return this; - } - - /** - * The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetLists/">here</a>. - */ - public Builder listId(Optional listId) { - Utils.checkNotNull(listId, "listId"); - this.listId = listId; - return this; - } - - /** - * The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetSpaces/">here</a>. - */ - public Builder spaceId(String spaceId) { - Utils.checkNotNull(spaceId, "spaceId"); - this.spaceId = Optional.ofNullable(spaceId); - return this; - } - - /** - * The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetSpaces/">here</a>. - */ - public Builder spaceId(Optional spaceId) { - Utils.checkNotNull(spaceId, "spaceId"); - this.spaceId = spaceId; - return this; - } - - /** - * The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetAuthorizedTeams/">here</a>. - */ - public Builder teamId(String teamId) { - Utils.checkNotNull(teamId, "teamId"); - this.teamId = Optional.ofNullable(teamId); - return this; - } - - /** - * The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See <a href="https://clickup.com/api/clickupreference/operation/GetAuthorizedTeams/">here</a>. - */ - public Builder teamId(Optional teamId) { - Utils.checkNotNull(teamId, "teamId"); - this.teamId = teamId; - return this; - } public SourceClickupApi build() { if (includeClosedTasks == null) { @@ -420,11 +180,7 @@ public SourceClickupApi build() { } return new SourceClickupApi( apiToken, - folderId, - includeClosedTasks, - listId, - spaceId, - teamId); + includeClosedTasks); } private static final LazySingletonValue> _SINGLETON_VALUE_IncludeClosedTasks = 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 3510c9d5..9de0be4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java @@ -40,6 +40,11 @@ public static SourceConfiguration of(SourceAha value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceAirbyte value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceAircall value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -110,6 +115,11 @@ public static SourceConfiguration of(SourceBambooHr value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceBasecamp value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceBigquery value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -130,6 +140,16 @@ public static SourceConfiguration of(SourceBraze value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceBreezyHr value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceConfiguration of(SourceCalendly value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceCart value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -200,6 +220,11 @@ public static SourceConfiguration of(SourceConvex value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceCustomerIo value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceDatadog value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -210,6 +235,11 @@ public static SourceConfiguration of(SourceDatascope value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceDbt value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceDelighted value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -385,11 +415,26 @@ public static SourceConfiguration of(SourceGridly value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceHardcodedRecords value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceHarvest value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceHibob value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceConfiguration of(SourceHighLevel value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceHubplanner value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -460,6 +505,11 @@ public static SourceConfiguration of(SourceLaunchdarkly value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceLeadfeeder value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceLemlist value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -490,6 +540,16 @@ public static SourceConfiguration of(SourceLokalise value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceLooker value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceConfiguration of(SourceLuma value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceMailchimp value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -540,11 +600,6 @@ public static SourceConfiguration of(SourceMonday value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceConfiguration of(SourceMongodbInternalPoc value) { - Utils.checkNotNull(value, "value"); - return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - public static SourceConfiguration of(SourceMongodbV2 value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -570,6 +625,11 @@ public static SourceConfiguration of(SourceNetsuite value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceNorthpassLms value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceNotion value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -635,6 +695,11 @@ public static SourceConfiguration of(SourcePendo value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourcePennylane value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourcePersistiq value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -655,6 +720,11 @@ public static SourceConfiguration of(SourcePipedrive value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourcePlanhat value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourcePocket value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -725,6 +795,11 @@ public static SourceConfiguration of(SourceRecurly value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceReddit value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceRedshift value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -765,6 +840,16 @@ public static SourceConfiguration of(SourceSapFieldglass value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceSavvycal value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceConfiguration of(SourceScryfall value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceSecoda value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1019,6 +1104,7 @@ public static SourceConfiguration of(SourceZoom value) { * Returns an instance of one of these types: *

      *
    • {@code SourceAha}
    • + *
    • {@code SourceAirbyte}
    • *
    • {@code SourceAircall}
    • *
    • {@code SourceAirtable}
    • *
    • {@code SourceAmazonAds}
    • @@ -1033,10 +1119,13 @@ public static SourceConfiguration of(SourceZoom value) { *
    • {@code SourceAzureBlobStorage}
    • *
    • {@code SourceAzureTable}
    • *
    • {@code SourceBambooHr}
    • + *
    • {@code SourceBasecamp}
    • *
    • {@code SourceBigquery}
    • *
    • {@code SourceBingAds}
    • *
    • {@code SourceBraintree}
    • *
    • {@code SourceBraze}
    • + *
    • {@code SourceBreezyHr}
    • + *
    • {@code SourceCalendly}
    • *
    • {@code SourceCart}
    • *
    • {@code SourceChargebee}
    • *
    • {@code SourceChartmogul}
    • @@ -1051,8 +1140,10 @@ public static SourceConfiguration of(SourceZoom value) { *
    • {@code SourceConfigcat}
    • *
    • {@code SourceConfluence}
    • *
    • {@code SourceConvex}
    • + *
    • {@code SourceCustomerIo}
    • *
    • {@code SourceDatadog}
    • *
    • {@code SourceDatascope}
    • + *
    • {@code SourceDbt}
    • *
    • {@code SourceDelighted}
    • *
    • {@code SourceDixa}
    • *
    • {@code SourceDockerhub}
    • @@ -1088,7 +1179,10 @@ public static SourceConfiguration of(SourceZoom value) { *
    • {@code SourceGoogleWebfonts}
    • *
    • {@code SourceGreenhouse}
    • *
    • {@code SourceGridly}
    • + *
    • {@code SourceHardcodedRecords}
    • *
    • {@code SourceHarvest}
    • + *
    • {@code SourceHibob}
    • + *
    • {@code SourceHighLevel}
    • *
    • {@code SourceHubplanner}
    • *
    • {@code SourceHubspot}
    • *
    • {@code SourceInsightly}
    • @@ -1103,12 +1197,15 @@ public static SourceConfiguration of(SourceZoom value) { *
    • {@code SourceKlaviyo}
    • *
    • {@code SourceKyve}
    • *
    • {@code SourceLaunchdarkly}
    • + *
    • {@code SourceLeadfeeder}
    • *
    • {@code SourceLemlist}
    • *
    • {@code SourceLeverHiring}
    • *
    • {@code SourceLinkedinAds}
    • *
    • {@code SourceLinkedinPages}
    • *
    • {@code SourceLinnworks}
    • *
    • {@code SourceLokalise}
    • + *
    • {@code SourceLooker}
    • + *
    • {@code SourceLuma}
    • *
    • {@code SourceMailchimp}
    • *
    • {@code SourceMailgun}
    • *
    • {@code SourceMailjetSms}
    • @@ -1119,12 +1216,12 @@ public static SourceConfiguration of(SourceZoom value) { *
    • {@code SourceMicrosoftTeams}
    • *
    • {@code SourceMixpanel}
    • *
    • {@code SourceMonday}
    • - *
    • {@code SourceMongodbInternalPoc}
    • *
    • {@code SourceMongodbV2}
    • *
    • {@code SourceMssql}
    • *
    • {@code SourceMyHours}
    • *
    • {@code SourceMysql}
    • *
    • {@code SourceNetsuite}
    • + *
    • {@code SourceNorthpassLms}
    • *
    • {@code SourceNotion}
    • *
    • {@code SourceNytimes}
    • *
    • {@code SourceOkta}
    • @@ -1138,10 +1235,12 @@ public static SourceConfiguration of(SourceZoom value) { *
    • {@code SourcePaypalTransaction}
    • *
    • {@code SourcePaystack}
    • *
    • {@code SourcePendo}
    • + *
    • {@code SourcePennylane}
    • *
    • {@code SourcePersistiq}
    • *
    • {@code SourcePexelsApi}
    • *
    • {@code SourcePinterest}
    • *
    • {@code SourcePipedrive}
    • + *
    • {@code SourcePlanhat}
    • *
    • {@code SourcePocket}
    • *
    • {@code SourcePokeapi}
    • *
    • {@code SourcePolygonStockApi}
    • @@ -1156,6 +1255,7 @@ public static SourceConfiguration of(SourceZoom value) { *
    • {@code SourceRecreation}
    • *
    • {@code SourceRecruitee}
    • *
    • {@code SourceRecurly}
    • + *
    • {@code SourceReddit}
    • *
    • {@code SourceRedshift}
    • *
    • {@code SourceRetently}
    • *
    • {@code SourceRkiCovid}
    • @@ -1164,6 +1264,8 @@ public static SourceConfiguration of(SourceZoom value) { *
    • {@code SourceSalesforce}
    • *
    • {@code SourceSalesloft}
    • *
    • {@code SourceSapFieldglass}
    • + *
    • {@code SourceSavvycal}
    • + *
    • {@code SourceScryfall}
    • *
    • {@code SourceSecoda}
    • *
    • {@code SourceSendgrid}
    • *
    • {@code SourceSendinblue}
    • @@ -1254,6 +1356,7 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(SourceConfiguration.class, Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), @@ -1268,10 +1371,13 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), @@ -1286,8 +1392,10 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), @@ -1323,7 +1431,10 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), @@ -1338,12 +1449,15 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), @@ -1354,12 +1468,12 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), @@ -1373,10 +1487,12 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), @@ -1391,6 +1507,7 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), @@ -1399,6 +1516,8 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java b/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java new file mode 100644 index 00000000..1f31a472 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java @@ -0,0 +1,109 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourceCustomerIo { + + @JsonProperty("app_api_key") + private String appApiKey; + + @JsonProperty("sourceType") + private CustomerIo sourceType; + + @JsonCreator + public SourceCustomerIo( + @JsonProperty("app_api_key") String appApiKey) { + Utils.checkNotNull(appApiKey, "appApiKey"); + this.appApiKey = appApiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String appApiKey() { + return appApiKey; + } + + @JsonIgnore + public CustomerIo sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceCustomerIo withAppApiKey(String appApiKey) { + Utils.checkNotNull(appApiKey, "appApiKey"); + this.appApiKey = appApiKey; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceCustomerIo other = (SourceCustomerIo) o; + return + java.util.Objects.deepEquals(this.appApiKey, other.appApiKey) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + appApiKey, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceCustomerIo.class, + "appApiKey", appApiKey, + "sourceType", sourceType); + } + + 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 = + new LazySingletonValue<>( + "sourceType", + "\"customer-io\"", + new TypeReference() {}); + } +} + 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 df20c029..92221ddf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java @@ -373,7 +373,7 @@ public final static class Builder { private String applicationKey; - private Optional endDate = Optional.empty(); + private Optional endDate; private Optional maxRecordsPerRequest; @@ -383,7 +383,7 @@ public final static class Builder { private Optional site; - private Optional startDate = Optional.empty(); + private Optional startDate; private Builder() { // force use of static builder() method @@ -516,12 +516,18 @@ public Builder startDate(Optional startDate) { } public SourceDatadog build() { + if (endDate == null) { + endDate = _SINGLETON_VALUE_EndDate.value(); + } if (maxRecordsPerRequest == null) { maxRecordsPerRequest = _SINGLETON_VALUE_MaxRecordsPerRequest.value(); } if (site == null) { site = _SINGLETON_VALUE_Site.value(); } + if (startDate == null) { + startDate = _SINGLETON_VALUE_StartDate.value(); + } return new SourceDatadog( apiKey, applicationKey, @@ -533,6 +539,12 @@ public SourceDatadog build() { startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_EndDate = + new LazySingletonValue<>( + "end_date", + "\"2024-01-01T00:00:00Z\"", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_MaxRecordsPerRequest = new LazySingletonValue<>( "max_records_per_request", @@ -550,6 +562,12 @@ public SourceDatadog build() { "sourceType", "\"datadog\"", new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StartDate = + new LazySingletonValue<>( + "start_date", + "\"2023-12-01T00:00:00Z\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDbt.java b/src/main/java/com/airbyte/api/models/shared/SourceDbt.java new file mode 100644 index 00000000..ae1578eb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceDbt.java @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourceDbt { + + @JsonProperty("account_id") + private String accountId; + + @JsonProperty("api_key_2") + private String apiKey2; + + @JsonProperty("sourceType") + private Dbt sourceType; + + @JsonCreator + public SourceDbt( + @JsonProperty("account_id") String accountId, + @JsonProperty("api_key_2") String apiKey2) { + Utils.checkNotNull(accountId, "accountId"); + Utils.checkNotNull(apiKey2, "apiKey2"); + this.accountId = accountId; + this.apiKey2 = apiKey2; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String accountId() { + return accountId; + } + + @JsonIgnore + public String apiKey2() { + return apiKey2; + } + + @JsonIgnore + public Dbt sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceDbt withAccountId(String accountId) { + Utils.checkNotNull(accountId, "accountId"); + this.accountId = accountId; + return this; + } + + public SourceDbt withApiKey2(String apiKey2) { + Utils.checkNotNull(apiKey2, "apiKey2"); + this.apiKey2 = apiKey2; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceDbt other = (SourceDbt) o; + return + java.util.Objects.deepEquals(this.accountId, other.accountId) && + java.util.Objects.deepEquals(this.apiKey2, other.apiKey2) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + accountId, + apiKey2, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceDbt.class, + "accountId", accountId, + "apiKey2", apiKey2, + "sourceType", sourceType); + } + + 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); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"dbt\"", + new TypeReference() {}); + } +} + 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 67946cdb..bdebfcae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java @@ -82,9 +82,8 @@ public class SourceFacebookMarketing { /** * Credentials for connecting to the Facebook Marketing API */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") - private Optional credentials; + 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. @@ -148,7 +147,7 @@ public SourceFacebookMarketing( @JsonProperty("campaign_statuses") Optional> campaignStatuses, @JsonProperty("client_id") Optional clientId, @JsonProperty("client_secret") Optional clientSecret, - @JsonProperty("credentials") Optional credentials, + @JsonProperty("credentials") SourceFacebookMarketingAuthentication credentials, @JsonProperty("custom_insights") Optional> customInsights, @JsonProperty("end_date") Optional endDate, @JsonProperty("fetch_thumbnail_images") Optional fetchThumbnailImages, @@ -192,8 +191,9 @@ public SourceFacebookMarketing( } public SourceFacebookMarketing( - java.util.List accountIds) { - this(Optional.empty(), accountIds, 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(), Optional.empty()); + java.util.List accountIds, + SourceFacebookMarketingAuthentication credentials) { + this(Optional.empty(), accountIds, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), credentials, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -270,10 +270,9 @@ public Optional clientSecret() { /** * Credentials for connecting to the Facebook Marketing API */ - @SuppressWarnings("unchecked") @JsonIgnore - public Optional credentials() { - return (Optional) credentials; + public SourceFacebookMarketingAuthentication credentials() { + return credentials; } /** @@ -487,15 +486,6 @@ public SourceFacebookMarketing withClientSecret(Optional clien * Credentials for connecting to the Facebook Marketing API */ public SourceFacebookMarketing withCredentials(SourceFacebookMarketingAuthentication credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = Optional.ofNullable(credentials); - return this; - } - - /** - * Credentials for connecting to the Facebook Marketing API - */ - public SourceFacebookMarketing withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; @@ -718,7 +708,7 @@ public final static class Builder { private Optional clientSecret = Optional.empty(); - private Optional credentials = Optional.empty(); + private SourceFacebookMarketingAuthentication credentials; private Optional> customInsights = Optional.empty(); @@ -877,15 +867,6 @@ public Builder clientSecret(Optional clientSecret) { * Credentials for connecting to the Facebook Marketing API */ public Builder credentials(SourceFacebookMarketingAuthentication credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = Optional.ofNullable(credentials); - return this; - } - - /** - * Credentials for connecting to the Facebook Marketing API - */ - public Builder credentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; 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 9d6d883f..ff9db02b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcs.java @@ -52,17 +52,17 @@ public class SourceGcs { 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 <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. */ @JsonProperty("streams") - private java.util.List streams; + private java.util.List streams; @JsonCreator public SourceGcs( @JsonProperty("bucket") String bucket, @JsonProperty("service_account") String serviceAccount, @JsonProperty("start_date") Optional startDate, - @JsonProperty("streams") java.util.List streams) { + @JsonProperty("streams") java.util.List streams) { Utils.checkNotNull(bucket, "bucket"); Utils.checkNotNull(serviceAccount, "serviceAccount"); Utils.checkNotNull(startDate, "startDate"); @@ -77,7 +77,7 @@ public SourceGcs( public SourceGcs( String bucket, String serviceAccount, - java.util.List streams) { + java.util.List streams) { this(bucket, serviceAccount, Optional.empty(), streams); } @@ -112,10 +112,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 <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. */ @JsonIgnore - public java.util.List streams() { + public java.util.List streams() { return streams; } @@ -160,9 +160,9 @@ 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 <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. */ - public SourceGcs withStreams(java.util.List streams) { + public SourceGcs withStreams(java.util.List streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; @@ -213,7 +213,7 @@ public final static class Builder { private Optional startDate = Optional.empty(); - private java.util.List streams; + private java.util.List streams; private Builder() { // force use of static builder() method @@ -256,9 +256,9 @@ public Builder startDate(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 <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. */ - public Builder streams(java.util.List streams) { + public Builder streams(java.util.List streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java new file mode 100644 index 00000000..57388ea4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java @@ -0,0 +1,159 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +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. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("double_as_string") + private Optional doubleAsString; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public SourceGcsAvroFormat( + @JsonProperty("double_as_string") Optional doubleAsString) { + Utils.checkNotNull(doubleAsString, "doubleAsString"); + this.doubleAsString = doubleAsString; + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + public SourceGcsAvroFormat() { + 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. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional doubleAsString() { + return (Optional) doubleAsString; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public final 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 SourceGcsAvroFormat 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 SourceGcsAvroFormat 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; + } + SourceGcsAvroFormat other = (SourceGcsAvroFormat) o; + return + java.util.Objects.deepEquals(this.doubleAsString, other.doubleAsString) && + java.util.Objects.deepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + doubleAsString, + filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceGcsAvroFormat.class, + "doubleAsString", doubleAsString, + "filetype", filetype); + } + + 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 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", + "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/SourceGcsCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java index 26074841..54dfa4ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java @@ -58,7 +58,7 @@ public class SourceGcsCSVFormat { @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") - private Optional 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. @@ -221,8 +221,8 @@ public Optional> falseValues() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional filetype() { - return (Optional) filetype; + public Optional filetype() { + return (Optional) filetype; } /** @@ -978,11 +978,11 @@ public SourceGcsCSVFormat build() { "\"utf8\"", new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", "\"csv\"", - new TypeReference>() {}); + new TypeReference>() {}); private static final LazySingletonValue> _SINGLETON_VALUE_IgnoreErrorsOnFieldsMismatch = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGCSStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java similarity index 78% rename from src/main/java/com/airbyte/api/models/shared/SourceGCSStreamConfig.java rename to src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java index 965ed1e8..a49ac18e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGCSStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java @@ -19,7 +19,7 @@ import java.math.BigInteger; import java.util.Optional; -public class SourceGCSStreamConfig { +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. @@ -49,7 +49,7 @@ public class SourceGCSStreamConfig { private Optional inputSchema; /** - * The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. + * The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("legacy_prefix") @@ -68,6 +68,13 @@ public class SourceGCSStreamConfig { @JsonProperty("primary_key") private Optional primaryKey; + /** + * 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. */ @@ -83,7 +90,7 @@ public class SourceGCSStreamConfig { private Optional validationPolicy; @JsonCreator - public SourceGCSStreamConfig( + public SourceGcsFileBasedStreamConfig( @JsonProperty("days_to_sync_if_history_is_full") Optional daysToSyncIfHistoryIsFull, @JsonProperty("format") SourceGcsFormat format, @JsonProperty("globs") Optional> globs, @@ -91,6 +98,7 @@ public SourceGCSStreamConfig( @JsonProperty("legacy_prefix") Optional legacyPrefix, @JsonProperty("name") String name, @JsonProperty("primary_key") Optional primaryKey, + @JsonProperty("recent_n_files_to_read_for_schema_discovery") Optional recentNFilesToReadForSchemaDiscovery, @JsonProperty("schemaless") Optional schemaless, @JsonProperty("validation_policy") Optional validationPolicy) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -100,6 +108,7 @@ public SourceGCSStreamConfig( Utils.checkNotNull(legacyPrefix, "legacyPrefix"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(primaryKey, "primaryKey"); + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); Utils.checkNotNull(schemaless, "schemaless"); Utils.checkNotNull(validationPolicy, "validationPolicy"); this.daysToSyncIfHistoryIsFull = daysToSyncIfHistoryIsFull; @@ -109,14 +118,15 @@ public SourceGCSStreamConfig( this.legacyPrefix = legacyPrefix; this.name = name; this.primaryKey = primaryKey; + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; this.schemaless = schemaless; this.validationPolicy = validationPolicy; } - public SourceGCSStreamConfig( + public SourceGcsFileBasedStreamConfig( SourceGcsFormat format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -155,7 +165,7 @@ public Optional inputSchema() { } /** - * The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. + * The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -180,6 +190,15 @@ public Optional primaryKey() { return (Optional) primaryKey; } + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional recentNFilesToReadForSchemaDiscovery() { + return (Optional) recentNFilesToReadForSchemaDiscovery; + } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -205,7 +224,7 @@ public final static Builder 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 SourceGCSStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { + public SourceGcsFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); this.daysToSyncIfHistoryIsFull = Optional.ofNullable(daysToSyncIfHistoryIsFull); return this; @@ -214,7 +233,7 @@ public SourceGCSStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHist /** * 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 SourceGCSStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { + public SourceGcsFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); this.daysToSyncIfHistoryIsFull = daysToSyncIfHistoryIsFull; return this; @@ -223,7 +242,7 @@ public SourceGCSStreamConfig withDaysToSyncIfHistoryIsFull(Optional globs) { + public SourceGcsFileBasedStreamConfig withGlobs(java.util.List globs) { Utils.checkNotNull(globs, "globs"); this.globs = Optional.ofNullable(globs); return this; @@ -241,7 +260,7 @@ public SourceGCSStreamConfig withGlobs(java.util.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>. */ - public SourceGCSStreamConfig withGlobs(Optional> globs) { + public SourceGcsFileBasedStreamConfig withGlobs(Optional> globs) { Utils.checkNotNull(globs, "globs"); this.globs = globs; return this; @@ -250,7 +269,7 @@ public SourceGCSStreamConfig 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. */ - public SourceGCSStreamConfig withInputSchema(String inputSchema) { + public SourceGcsFileBasedStreamConfig withInputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); this.inputSchema = Optional.ofNullable(inputSchema); return this; @@ -259,25 +278,25 @@ public SourceGCSStreamConfig withInputSchema(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. */ - public SourceGCSStreamConfig withInputSchema(Optional inputSchema) { + public SourceGcsFileBasedStreamConfig withInputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); this.inputSchema = inputSchema; return this; } /** - * The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. + * The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. */ - public SourceGCSStreamConfig withLegacyPrefix(String legacyPrefix) { + public SourceGcsFileBasedStreamConfig withLegacyPrefix(String legacyPrefix) { Utils.checkNotNull(legacyPrefix, "legacyPrefix"); this.legacyPrefix = Optional.ofNullable(legacyPrefix); return this; } /** - * The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. + * The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. */ - public SourceGCSStreamConfig withLegacyPrefix(Optional legacyPrefix) { + public SourceGcsFileBasedStreamConfig withLegacyPrefix(Optional legacyPrefix) { Utils.checkNotNull(legacyPrefix, "legacyPrefix"); this.legacyPrefix = legacyPrefix; return this; @@ -286,7 +305,7 @@ public SourceGCSStreamConfig withLegacyPrefix(Optional legacyP /** * The name of the stream. */ - public SourceGCSStreamConfig withName(String name) { + public SourceGcsFileBasedStreamConfig withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -295,7 +314,7 @@ public SourceGCSStreamConfig withName(String name) { /** * The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. */ - public SourceGCSStreamConfig withPrimaryKey(String primaryKey) { + public SourceGcsFileBasedStreamConfig withPrimaryKey(String primaryKey) { Utils.checkNotNull(primaryKey, "primaryKey"); this.primaryKey = Optional.ofNullable(primaryKey); return this; @@ -304,16 +323,34 @@ public SourceGCSStreamConfig withPrimaryKey(String primaryKey) { /** * The column or columns (for a composite key) that serves as the unique identifier of a record. If empty, the primary key will default to the parser's default primary key. */ - public SourceGCSStreamConfig withPrimaryKey(Optional primaryKey) { + public SourceGcsFileBasedStreamConfig withPrimaryKey(Optional primaryKey) { Utils.checkNotNull(primaryKey, "primaryKey"); this.primaryKey = primaryKey; return this; } + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public SourceGcsFileBasedStreamConfig 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 SourceGcsFileBasedStreamConfig 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 SourceGCSStreamConfig withSchemaless(boolean schemaless) { + public SourceGcsFileBasedStreamConfig withSchemaless(boolean schemaless) { Utils.checkNotNull(schemaless, "schemaless"); this.schemaless = Optional.ofNullable(schemaless); return this; @@ -322,7 +359,7 @@ public SourceGCSStreamConfig withSchemaless(boolean schemaless) { /** * When enabled, syncs will not validate or structure records against the stream's schema. */ - public SourceGCSStreamConfig withSchemaless(Optional schemaless) { + public SourceGcsFileBasedStreamConfig withSchemaless(Optional schemaless) { Utils.checkNotNull(schemaless, "schemaless"); this.schemaless = schemaless; return this; @@ -331,7 +368,7 @@ public SourceGCSStreamConfig withSchemaless(Optional schemale /** * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. */ - public SourceGCSStreamConfig withValidationPolicy(SourceGcsValidationPolicy validationPolicy) { + public SourceGcsFileBasedStreamConfig withValidationPolicy(SourceGcsValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); this.validationPolicy = Optional.ofNullable(validationPolicy); return this; @@ -340,7 +377,7 @@ public SourceGCSStreamConfig withValidationPolicy(SourceGcsValidationPolicy vali /** * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. */ - public SourceGCSStreamConfig withValidationPolicy(Optional validationPolicy) { + public SourceGcsFileBasedStreamConfig withValidationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); this.validationPolicy = validationPolicy; return this; @@ -354,7 +391,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceGCSStreamConfig other = (SourceGCSStreamConfig) o; + SourceGcsFileBasedStreamConfig other = (SourceGcsFileBasedStreamConfig) o; return java.util.Objects.deepEquals(this.daysToSyncIfHistoryIsFull, other.daysToSyncIfHistoryIsFull) && java.util.Objects.deepEquals(this.format, other.format) && @@ -363,6 +400,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.legacyPrefix, other.legacyPrefix) && java.util.Objects.deepEquals(this.name, other.name) && java.util.Objects.deepEquals(this.primaryKey, other.primaryKey) && + java.util.Objects.deepEquals(this.recentNFilesToReadForSchemaDiscovery, other.recentNFilesToReadForSchemaDiscovery) && java.util.Objects.deepEquals(this.schemaless, other.schemaless) && java.util.Objects.deepEquals(this.validationPolicy, other.validationPolicy); } @@ -377,13 +415,14 @@ public int hashCode() { legacyPrefix, name, primaryKey, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } @Override public String toString() { - return Utils.toString(SourceGCSStreamConfig.class, + return Utils.toString(SourceGcsFileBasedStreamConfig.class, "daysToSyncIfHistoryIsFull", daysToSyncIfHistoryIsFull, "format", format, "globs", globs, @@ -391,6 +430,7 @@ public String toString() { "legacyPrefix", legacyPrefix, "name", name, "primaryKey", primaryKey, + "recentNFilesToReadForSchemaDiscovery", recentNFilesToReadForSchemaDiscovery, "schemaless", schemaless, "validationPolicy", validationPolicy); } @@ -411,6 +451,8 @@ public final static class Builder { private Optional primaryKey = Optional.empty(); + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); + private Optional schemaless; private Optional validationPolicy; @@ -483,7 +525,7 @@ public Builder inputSchema(Optional inputSchema) { } /** - * The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. + * The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. */ public Builder legacyPrefix(String legacyPrefix) { Utils.checkNotNull(legacyPrefix, "legacyPrefix"); @@ -492,7 +534,7 @@ public Builder legacyPrefix(String legacyPrefix) { } /** - * The path prefix configured in previous versions of the GCS connector. This option is deprecated in favor of a single glob. + * The path prefix configured in v3 versions of the S3 connector. This option is deprecated in favor of a single glob. */ public Builder legacyPrefix(Optional legacyPrefix) { Utils.checkNotNull(legacyPrefix, "legacyPrefix"); @@ -527,6 +569,24 @@ public Builder primaryKey(Optional primaryKey) { 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. */ @@ -563,7 +623,7 @@ public Builder validationPolicy(Optional va return this; } - public SourceGCSStreamConfig build() { + public SourceGcsFileBasedStreamConfig build() { if (daysToSyncIfHistoryIsFull == null) { daysToSyncIfHistoryIsFull = _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull.value(); } @@ -573,7 +633,7 @@ public SourceGCSStreamConfig build() { if (validationPolicy == null) { validationPolicy = _SINGLETON_VALUE_ValidationPolicy.value(); } - return new SourceGCSStreamConfig( + return new SourceGcsFileBasedStreamConfig( daysToSyncIfHistoryIsFull, format, globs, @@ -581,6 +641,7 @@ public SourceGCSStreamConfig build() { legacyPrefix, name, primaryKey, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } 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 cd4ae94b..076733a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java @@ -16,7 +16,7 @@ import java.math.BigInteger; public enum SourceGcsFiletype { - CSV("csv"); + AVRO("avro"); @JsonValue private final String 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 f3cf08af..c176a133 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java @@ -35,15 +35,45 @@ private SourceGcsFormat(TypedObject value) { this.value = value; } + public static SourceGcsFormat of(SourceGcsAvroFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceGcsFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceGcsFormat of(SourceGcsCSVFormat value) { Utils.checkNotNull(value, "value"); return new SourceGcsFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + + public static SourceGcsFormat of(SourceGcsJsonlFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceGcsFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceGcsFormat of(SourceGcsParquetFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceGcsFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceGcsFormat of(UnstructuredDocumentFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceGcsFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceGcsFormat of(ExcelFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceGcsFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } /** * Returns an instance of one of these types: *
        + *
      • {@code SourceGcsAvroFormat}
      • *
      • {@code SourceGcsCSVFormat}
      • + *
      • {@code SourceGcsJsonlFormat}
      • + *
      • {@code SourceGcsParquetFormat}
      • + *
      • {@code UnstructuredDocumentFormat}
      • + *
      • {@code ExcelFormat}
      • *
      * *

      Use {@code instanceof} to determine what type is returned. For example: @@ -83,7 +113,12 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(SourceGcsFormat.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java new file mode 100644 index 00000000..0119c322 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +public class SourceGcsJsonlFormat { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public SourceGcsJsonlFormat() { + + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public final 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; + } + SourceGcsJsonlFormat other = (SourceGcsJsonlFormat) o; + return + java.util.Objects.deepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceGcsJsonlFormat.class, + "filetype", filetype); + } + + 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", + "\"jsonl\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java new file mode 100644 index 00000000..3e6963b6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; +/** + * SourceGcsLocal - Process files locally, supporting `fast` and `ocr` modes. This is the default option. + */ + +public class SourceGcsLocal { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mode") + private Optional mode; + + @JsonCreator + public SourceGcsLocal() { + + this.mode = Builder._SINGLETON_VALUE_Mode.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional mode() { + return (Optional) mode; + } + + public final 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; + } + SourceGcsLocal other = (SourceGcsLocal) o; + return + java.util.Objects.deepEquals(this.mode, other.mode); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + mode); + } + + @Override + public String toString() { + return Utils.toString(SourceGcsLocal.class, + "mode", mode); + } + + 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", + "\"local\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java new file mode 100644 index 00000000..d1b5f596 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum SourceGcsMode { + LOCAL("local"); + + @JsonValue + private final String value; + + private SourceGcsMode(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..56989879 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java @@ -0,0 +1,159 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +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. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("decimal_as_float") + private Optional decimalAsFloat; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public SourceGcsParquetFormat( + @JsonProperty("decimal_as_float") Optional decimalAsFloat) { + Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); + this.decimalAsFloat = decimalAsFloat; + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + public SourceGcsParquetFormat() { + 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. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional decimalAsFloat() { + return (Optional) decimalAsFloat; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public final 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 SourceGcsParquetFormat 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 SourceGcsParquetFormat 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; + } + SourceGcsParquetFormat other = (SourceGcsParquetFormat) o; + return + java.util.Objects.deepEquals(this.decimalAsFloat, other.decimalAsFloat) && + java.util.Objects.deepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + decimalAsFloat, + filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceGcsParquetFormat.class, + "decimalAsFloat", decimalAsFloat, + "filetype", filetype); + } + + 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 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", + "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/SourceDatadogDataSource.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java similarity index 52% rename from src/main/java/com/airbyte/api/models/shared/SourceDatadogDataSource.java rename to src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java index f3bc95a0..252a18cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDatadogDataSource.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java @@ -16,18 +16,18 @@ import java.math.BigInteger; /** - * SourceDatadogDataSource - A data source that is powered by the platform. + * 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 */ -public enum SourceDatadogDataSource { - METRICS("metrics"), - CLOUD_COST("cloud_cost"), - LOGS("logs"), - RUM("rum"); +public enum SourceGcsParsingStrategy { + AUTO("auto"), + FAST("fast"), + OCR_ONLY("ocr_only"), + HI_RES("hi_res"); @JsonValue private final String value; - private SourceDatadogDataSource(String value) { + private 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 new file mode 100644 index 00000000..a3c4a89a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java @@ -0,0 +1,103 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +import java.time.OffsetDateTime; +import java.time.LocalDate; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; + +/** + * SourceGcsProcessing - Processing configuration + */ + +@JsonDeserialize(using = SourceGcsProcessing._Deserializer.class) +public class SourceGcsProcessing { + + @com.fasterxml.jackson.annotation.JsonValue + private TypedObject value; + + private SourceGcsProcessing(TypedObject value) { + this.value = value; + } + + public static SourceGcsProcessing of(SourceGcsLocal value) { + Utils.checkNotNull(value, "value"); + return new SourceGcsProcessing(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceGcsProcessing of(ViaAPI value) { + Utils.checkNotNull(value, "value"); + return new SourceGcsProcessing(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

        + *
      • {@code SourceGcsLocal}
      • + *
      • {@code ViaAPI}
      • + *
      + * + *

      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; + } + SourceGcsProcessing other = (SourceGcsProcessing) o; + return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return java.util.Objects.hash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeserializer { + + public _Deserializer() { + super(SourceGcsProcessing.class, + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceGcsProcessing.class, + "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 new file mode 100644 index 00000000..89e028ed --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum SourceGcsSchemasFiletype { + CSV("csv"); + + @JsonValue + private final String value; + + private SourceGcsSchemasFiletype(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..7f53d7e6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum SourceGcsSchemasMode { + API("api"); + + @JsonValue + private final String value; + + private SourceGcsSchemasMode(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..576d161a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum SourceGcsSchemasStreamsFiletype { + JSONL("jsonl"); + + @JsonValue + private final String value; + + private SourceGcsSchemasStreamsFiletype(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..6aa12e0a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum SourceGcsSchemasStreamsFormatFiletype { + PARQUET("parquet"); + + @JsonValue + private final String value; + + private SourceGcsSchemasStreamsFormatFiletype(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..fdf3dac8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum SourceGcsSchemasStreamsFormatFormat6Filetype { + EXCEL("excel"); + + @JsonValue + private final String value; + + private SourceGcsSchemasStreamsFormatFormat6Filetype(String value) { + this.value = value; + } + + public String value() { + return 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 new file mode 100644 index 00000000..20073fa3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum SourceGcsSchemasStreamsFormatFormatFiletype { + UNSTRUCTURED("unstructured"); + + @JsonValue + private final String value; + + private SourceGcsSchemasStreamsFormatFormatFiletype(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java new file mode 100644 index 00000000..34f02de8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +public class SourceHardcodedRecords { + + /** + * How many records per stream should be generated + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("count") + private Optional count; + + @JsonProperty("sourceType") + private HardcodedRecords sourceType; + + @JsonCreator + public SourceHardcodedRecords( + @JsonProperty("count") Optional count) { + Utils.checkNotNull(count, "count"); + this.count = count; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + public SourceHardcodedRecords() { + this(Optional.empty()); + } + + /** + * How many records per stream should be generated + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional count() { + return (Optional) count; + } + + @JsonIgnore + public HardcodedRecords sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * How many records per stream should be generated + */ + public SourceHardcodedRecords withCount(long count) { + Utils.checkNotNull(count, "count"); + this.count = Optional.ofNullable(count); + return this; + } + + /** + * How many records per stream should be generated + */ + public SourceHardcodedRecords withCount(Optional count) { + Utils.checkNotNull(count, "count"); + this.count = count; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceHardcodedRecords other = (SourceHardcodedRecords) o; + return + java.util.Objects.deepEquals(this.count, other.count) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + count, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceHardcodedRecords.class, + "count", count, + "sourceType", sourceType); + } + + public final static class Builder { + + private Optional count; + + private Builder() { + // force use of static builder() method + } + + /** + * How many records per stream should be generated + */ + public Builder count(long count) { + Utils.checkNotNull(count, "count"); + this.count = Optional.ofNullable(count); + return this; + } + + /** + * How many records per stream should be generated + */ + public Builder count(Optional count) { + Utils.checkNotNull(count, "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", + "1000", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"hardcoded-records\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHibob.java b/src/main/java/com/airbyte/api/models/shared/SourceHibob.java new file mode 100644 index 00000000..efe5a475 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceHibob.java @@ -0,0 +1,202 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +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; + + @JsonCreator + public SourceHibob( + @JsonProperty("is_sandbox") boolean isSandbox, + @JsonProperty("password") Optional password, + @JsonProperty("username") String username) { + Utils.checkNotNull(isSandbox, "isSandbox"); + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(username, "username"); + this.isSandbox = isSandbox; + this.password = password; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.username = username; + } + + public SourceHibob( + boolean isSandbox, + String username) { + this(isSandbox, Optional.empty(), username); + } + + /** + * Toggle true if this instance is a HiBob sandbox + */ + @JsonIgnore + public boolean isSandbox() { + return isSandbox; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional password() { + return (Optional) password; + } + + @JsonIgnore + public Hibob sourceType() { + return sourceType; + } + + @JsonIgnore + public String username() { + return username; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Toggle true if this instance is a HiBob sandbox + */ + public SourceHibob withIsSandbox(boolean isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = isSandbox; + return this; + } + + public SourceHibob withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + public SourceHibob withPassword(Optional password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public SourceHibob 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; + } + SourceHibob other = (SourceHibob) o; + return + java.util.Objects.deepEquals(this.isSandbox, other.isSandbox) && + java.util.Objects.deepEquals(this.password, other.password) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + isSandbox, + password, + sourceType, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceHibob.class, + "isSandbox", isSandbox, + "password", password, + "sourceType", sourceType, + "username", username); + } + + 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 + */ + public Builder isSandbox(boolean isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = isSandbox; + return this; + } + + 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 username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceHibob build() { + return new SourceHibob( + isSandbox, + password, + username); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"hibob\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java b/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java new file mode 100644 index 00000000..2cbc0107 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java @@ -0,0 +1,170 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.OffsetDateTime; + +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; + + @JsonCreator + public SourceHighLevel( + @JsonProperty("api_key") String apiKey, + @JsonProperty("location_id") String locationId, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(locationId, "locationId"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.locationId = locationId; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public String locationId() { + return locationId; + } + + @JsonIgnore + public HighLevel sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceHighLevel withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceHighLevel withLocationId(String locationId) { + Utils.checkNotNull(locationId, "locationId"); + this.locationId = locationId; + return this; + } + + public SourceHighLevel 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; + } + SourceHighLevel other = (SourceHighLevel) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.locationId, other.locationId) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + locationId, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceHighLevel.class, + "apiKey", apiKey, + "locationId", locationId, + "sourceType", sourceType, + "startDate", startDate); + } + + 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); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"high-level\"", + new TypeReference() {}); + } +} + 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 4d4676f7..9c5b35d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java @@ -30,6 +30,13 @@ public class SourceKlaviyo { @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. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("disable_fetching_predictive_analytics") + private Optional disableFetchingPredictiveAnalytics; + @JsonProperty("sourceType") private Klaviyo sourceType; @@ -43,17 +50,20 @@ public class SourceKlaviyo { @JsonCreator public SourceKlaviyo( @JsonProperty("api_key") String apiKey, + @JsonProperty("disable_fetching_predictive_analytics") Optional disableFetchingPredictiveAnalytics, @JsonProperty("start_date") Optional startDate) { Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(disableFetchingPredictiveAnalytics, "disableFetchingPredictiveAnalytics"); Utils.checkNotNull(startDate, "startDate"); this.apiKey = apiKey; + this.disableFetchingPredictiveAnalytics = disableFetchingPredictiveAnalytics; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; } public SourceKlaviyo( String apiKey) { - this(apiKey, Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty()); } /** @@ -64,6 +74,15 @@ public String apiKey() { return 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. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional disableFetchingPredictiveAnalytics() { + return (Optional) disableFetchingPredictiveAnalytics; + } + @JsonIgnore public Klaviyo sourceType() { return sourceType; @@ -91,6 +110,24 @@ public SourceKlaviyo withApiKey(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. + */ + public SourceKlaviyo withDisableFetchingPredictiveAnalytics(boolean disableFetchingPredictiveAnalytics) { + Utils.checkNotNull(disableFetchingPredictiveAnalytics, "disableFetchingPredictiveAnalytics"); + this.disableFetchingPredictiveAnalytics = Optional.ofNullable(disableFetchingPredictiveAnalytics); + 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. + */ + public SourceKlaviyo withDisableFetchingPredictiveAnalytics(Optional disableFetchingPredictiveAnalytics) { + Utils.checkNotNull(disableFetchingPredictiveAnalytics, "disableFetchingPredictiveAnalytics"); + this.disableFetchingPredictiveAnalytics = disableFetchingPredictiveAnalytics; + 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. */ @@ -120,6 +157,7 @@ public boolean equals(java.lang.Object o) { SourceKlaviyo other = (SourceKlaviyo) o; return java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.disableFetchingPredictiveAnalytics, other.disableFetchingPredictiveAnalytics) && java.util.Objects.deepEquals(this.sourceType, other.sourceType) && java.util.Objects.deepEquals(this.startDate, other.startDate); } @@ -128,6 +166,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return java.util.Objects.hash( apiKey, + disableFetchingPredictiveAnalytics, sourceType, startDate); } @@ -136,6 +175,7 @@ public int hashCode() { public String toString() { return Utils.toString(SourceKlaviyo.class, "apiKey", apiKey, + "disableFetchingPredictiveAnalytics", disableFetchingPredictiveAnalytics, "sourceType", sourceType, "startDate", startDate); } @@ -144,6 +184,8 @@ public final static class Builder { private String apiKey; + private Optional disableFetchingPredictiveAnalytics = Optional.empty(); + private Optional startDate = Optional.empty(); private Builder() { @@ -159,6 +201,24 @@ 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. + */ + public Builder disableFetchingPredictiveAnalytics(boolean disableFetchingPredictiveAnalytics) { + Utils.checkNotNull(disableFetchingPredictiveAnalytics, "disableFetchingPredictiveAnalytics"); + this.disableFetchingPredictiveAnalytics = Optional.ofNullable(disableFetchingPredictiveAnalytics); + 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. + */ + public Builder disableFetchingPredictiveAnalytics(Optional disableFetchingPredictiveAnalytics) { + Utils.checkNotNull(disableFetchingPredictiveAnalytics, "disableFetchingPredictiveAnalytics"); + this.disableFetchingPredictiveAnalytics = disableFetchingPredictiveAnalytics; + 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. */ @@ -180,6 +240,7 @@ public Builder startDate(Optional startDate) { public SourceKlaviyo build() { return new SourceKlaviyo( apiKey, + disableFetchingPredictiveAnalytics, startDate); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java b/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java new file mode 100644 index 00000000..5b8cb8c3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.OffsetDateTime; + +public class SourceLeadfeeder { + + @JsonProperty("api_token") + private String apiToken; + + @JsonProperty("sourceType") + private Leadfeeder sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceLeadfeeder( + @JsonProperty("api_token") String apiToken, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(apiToken, "apiToken"); + Utils.checkNotNull(startDate, "startDate"); + this.apiToken = apiToken; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public String apiToken() { + return apiToken; + } + + @JsonIgnore + public Leadfeeder sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceLeadfeeder withApiToken(String apiToken) { + Utils.checkNotNull(apiToken, "apiToken"); + this.apiToken = apiToken; + return this; + } + + public SourceLeadfeeder 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; + } + SourceLeadfeeder other = (SourceLeadfeeder) o; + return + java.util.Objects.deepEquals(this.apiToken, other.apiToken) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiToken, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceLeadfeeder.class, + "apiToken", apiToken, + "sourceType", sourceType, + "startDate", startDate); + } + + 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); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"leadfeeder\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLooker.java b/src/main/java/com/airbyte/api/models/shared/SourceLooker.java new file mode 100644 index 00000000..a1c8a78d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceLooker.java @@ -0,0 +1,274 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +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. + */ + @JsonProperty("client_id") + private String clientId; + + /** + * The Client Secret is second part of an API3 key. + */ + @JsonProperty("client_secret") + private String clientSecret; + + /** + * Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address + */ + @JsonProperty("domain") + private String domain; + + /** + * The IDs of any Looks to run + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("run_look_ids") + private Optional> runLookIds; + + @JsonProperty("sourceType") + private Looker sourceType; + + @JsonCreator + public SourceLooker( + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("domain") String domain, + @JsonProperty("run_look_ids") Optional> runLookIds) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(domain, "domain"); + Utils.checkNotNull(runLookIds, "runLookIds"); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.domain = domain; + this.runLookIds = runLookIds; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + public SourceLooker( + String clientId, + String clientSecret, + String domain) { + 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. + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * The Client Secret is second part of an API3 key. + */ + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + /** + * Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address + */ + @JsonIgnore + public String domain() { + return domain; + } + + /** + * The IDs of any Looks to run + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> runLookIds() { + return (Optional>) runLookIds; + } + + @JsonIgnore + public Looker sourceType() { + return sourceType; + } + + public final 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. + */ + public SourceLooker withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The Client Secret is second part of an API3 key. + */ + public SourceLooker withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address + */ + public SourceLooker withDomain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * The IDs of any Looks to run + */ + public SourceLooker withRunLookIds(java.util.List runLookIds) { + Utils.checkNotNull(runLookIds, "runLookIds"); + this.runLookIds = Optional.ofNullable(runLookIds); + return this; + } + + /** + * The IDs of any Looks to run + */ + public SourceLooker withRunLookIds(Optional> runLookIds) { + Utils.checkNotNull(runLookIds, "runLookIds"); + this.runLookIds = runLookIds; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceLooker other = (SourceLooker) o; + return + java.util.Objects.deepEquals(this.clientId, other.clientId) && + java.util.Objects.deepEquals(this.clientSecret, other.clientSecret) && + java.util.Objects.deepEquals(this.domain, other.domain) && + java.util.Objects.deepEquals(this.runLookIds, other.runLookIds) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + clientId, + clientSecret, + domain, + runLookIds, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceLooker.class, + "clientId", clientId, + "clientSecret", clientSecret, + "domain", domain, + "runLookIds", runLookIds, + "sourceType", sourceType); + } + + 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. + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The Client Secret is second part of an API3 key. + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address + */ + public Builder domain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * The IDs of any Looks to run + */ + public Builder runLookIds(java.util.List runLookIds) { + Utils.checkNotNull(runLookIds, "runLookIds"); + this.runLookIds = Optional.ofNullable(runLookIds); + return this; + } + + /** + * The IDs of any Looks to run + */ + public Builder runLookIds(Optional> runLookIds) { + Utils.checkNotNull(runLookIds, "runLookIds"); + this.runLookIds = runLookIds; + return this; + } + + public SourceLooker build() { + return new SourceLooker( + clientId, + clientSecret, + domain, + runLookIds); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"looker\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLuma.java b/src/main/java/com/airbyte/api/models/shared/SourceLuma.java new file mode 100644 index 00000000..235f019a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceLuma.java @@ -0,0 +1,121 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourceLuma { + + /** + * Get your API key on lu.ma Calendars dashboard → Settings. + */ + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Luma sourceType; + + @JsonCreator + public SourceLuma( + @JsonProperty("api_key") String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * Get your API key on lu.ma Calendars dashboard → Settings. + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Luma sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Get your API key on lu.ma Calendars dashboard → Settings. + */ + public SourceLuma 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; + } + SourceLuma other = (SourceLuma) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceLuma.class, + "apiKey", apiKey, + "sourceType", sourceType); + } + + 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. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceLuma build() { + return new SourceLuma( + apiKey); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"luma\"", + new TypeReference() {}); + } +} + 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 a0ebc24b..890d535d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java @@ -46,16 +46,15 @@ public class SourceMetabase { @JsonProperty("sourceType") private Metabase sourceType; - @JsonInclude(Include.NON_ABSENT) @JsonProperty("username") - private Optional username; + private String username; @JsonCreator public SourceMetabase( @JsonProperty("instance_api_url") String instanceApiUrl, @JsonProperty("password") Optional password, @JsonProperty("session_token") Optional sessionToken, - @JsonProperty("username") Optional username) { + @JsonProperty("username") String username) { Utils.checkNotNull(instanceApiUrl, "instanceApiUrl"); Utils.checkNotNull(password, "password"); Utils.checkNotNull(sessionToken, "sessionToken"); @@ -68,8 +67,9 @@ public SourceMetabase( } public SourceMetabase( - String instanceApiUrl) { - this(instanceApiUrl, Optional.empty(), Optional.empty(), Optional.empty()); + String instanceApiUrl, + String username) { + this(instanceApiUrl, Optional.empty(), Optional.empty(), username); } /** @@ -105,10 +105,9 @@ public Metabase sourceType() { return sourceType; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional username() { - return (Optional) username; + public String username() { + return username; } public final static Builder builder() { @@ -165,12 +164,6 @@ public SourceMetabase withSessionToken(Optional sessionToken) } public SourceMetabase withUsername(String username) { - Utils.checkNotNull(username, "username"); - this.username = Optional.ofNullable(username); - return this; - } - - public SourceMetabase withUsername(Optional username) { Utils.checkNotNull(username, "username"); this.username = username; return this; @@ -221,7 +214,7 @@ public final static class Builder { private Optional sessionToken = Optional.empty(); - private Optional username = Optional.empty(); + private String username; private Builder() { // force use of static builder() method @@ -277,12 +270,6 @@ public Builder sessionToken(Optional sessionToken) { } public Builder username(String username) { - Utils.checkNotNull(username, "username"); - this.username = Optional.ofNullable(username); - return this; - } - - public Builder username(Optional username) { Utils.checkNotNull(username, "username"); this.username = username; return this; 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 e74635a6..ad1b6467 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java @@ -55,9 +55,9 @@ public static SourceMicrosoftOnedriveFormat of(SourceMicrosoftOnedriveParquetFor return new SourceMicrosoftOnedriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceMicrosoftOnedriveFormat of(UnstructuredDocumentFormat value) { + public static SourceMicrosoftOnedriveFormat of(SourceMicrosoftOnedriveUnstructuredDocumentFormat value) { Utils.checkNotNull(value, "value"); - return new SourceMicrosoftOnedriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceMicrosoftOnedriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** @@ -67,7 +67,7 @@ public static SourceMicrosoftOnedriveFormat of(UnstructuredDocumentFormat value) *
    • {@code SourceMicrosoftOnedriveCSVFormat}
    • *
    • {@code SourceMicrosoftOnedriveJsonlFormat}
    • *
    • {@code SourceMicrosoftOnedriveParquetFormat}
    • - *
    • {@code UnstructuredDocumentFormat}
    • + *
    • {@code SourceMicrosoftOnedriveUnstructuredDocumentFormat}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -111,7 +111,7 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java new file mode 100644 index 00000000..dbebc13f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java @@ -0,0 +1,293 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; +/** + * SourceMicrosoftOnedriveUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. + */ + +public class SourceMicrosoftOnedriveUnstructuredDocumentFormat { + + @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 SourceMicrosoftOnedriveUnstructuredDocumentFormat( + @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 SourceMicrosoftOnedriveUnstructuredDocumentFormat() { + 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. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional skipUnprocessableFiles() { + return (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 + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional strategy() { + return (Optional) strategy; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Processing configuration + */ + public SourceMicrosoftOnedriveUnstructuredDocumentFormat withProcessing(SourceMicrosoftOnedriveProcessing processing) { + Utils.checkNotNull(processing, "processing"); + this.processing = Optional.ofNullable(processing); + return this; + } + + /** + * Processing configuration + */ + public SourceMicrosoftOnedriveUnstructuredDocumentFormat 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 SourceMicrosoftOnedriveUnstructuredDocumentFormat 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 SourceMicrosoftOnedriveUnstructuredDocumentFormat 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 SourceMicrosoftOnedriveUnstructuredDocumentFormat withStrategy(SourceMicrosoftOnedriveParsingStrategy 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 SourceMicrosoftOnedriveUnstructuredDocumentFormat 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; + } + SourceMicrosoftOnedriveUnstructuredDocumentFormat other = (SourceMicrosoftOnedriveUnstructuredDocumentFormat) o; + return + java.util.Objects.deepEquals(this.filetype, other.filetype) && + java.util.Objects.deepEquals(this.processing, other.processing) && + java.util.Objects.deepEquals(this.skipUnprocessableFiles, other.skipUnprocessableFiles) && + java.util.Objects.deepEquals(this.strategy, other.strategy); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + filetype, + processing, + skipUnprocessableFiles, + strategy); + } + + @Override + public String toString() { + return Utils.toString(SourceMicrosoftOnedriveUnstructuredDocumentFormat.class, + "filetype", filetype, + "processing", processing, + "skipUnprocessableFiles", skipUnprocessableFiles, + "strategy", strategy); + } + + 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(SourceMicrosoftOnedriveProcessing 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(SourceMicrosoftOnedriveParsingStrategy 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 SourceMicrosoftOnedriveUnstructuredDocumentFormat build() { + if (skipUnprocessableFiles == null) { + skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); + } + if (strategy == null) { + strategy = _SINGLETON_VALUE_Strategy.value(); + } + return new SourceMicrosoftOnedriveUnstructuredDocumentFormat( + 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/SourceMicrosoftSharepointExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java new file mode 100644 index 00000000..09b81f2e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +public class SourceMicrosoftSharepointExcelFormat { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public SourceMicrosoftSharepointExcelFormat() { + + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public final 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; + } + SourceMicrosoftSharepointExcelFormat other = (SourceMicrosoftSharepointExcelFormat) o; + return + java.util.Objects.deepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceMicrosoftSharepointExcelFormat.class, + "filetype", filetype); + } + + 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", + "\"excel\"", + new TypeReference>() {}); + } +} + 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 42a8e5d2..f8ee2756 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java @@ -61,6 +61,13 @@ public class SourceMicrosoftSharepointFileBasedStreamConfig { @JsonProperty("primary_key") private Optional primaryKey; + /** + * 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. */ @@ -83,6 +90,7 @@ public SourceMicrosoftSharepointFileBasedStreamConfig( @JsonProperty("input_schema") Optional inputSchema, @JsonProperty("name") String name, @JsonProperty("primary_key") Optional primaryKey, + @JsonProperty("recent_n_files_to_read_for_schema_discovery") Optional recentNFilesToReadForSchemaDiscovery, @JsonProperty("schemaless") Optional schemaless, @JsonProperty("validation_policy") Optional validationPolicy) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -91,6 +99,7 @@ public SourceMicrosoftSharepointFileBasedStreamConfig( Utils.checkNotNull(inputSchema, "inputSchema"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(primaryKey, "primaryKey"); + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); Utils.checkNotNull(schemaless, "schemaless"); Utils.checkNotNull(validationPolicy, "validationPolicy"); this.daysToSyncIfHistoryIsFull = daysToSyncIfHistoryIsFull; @@ -99,6 +108,7 @@ public SourceMicrosoftSharepointFileBasedStreamConfig( this.inputSchema = inputSchema; this.name = name; this.primaryKey = primaryKey; + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; this.schemaless = schemaless; this.validationPolicy = validationPolicy; } @@ -106,7 +116,7 @@ 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(), Optional.empty()); } /** @@ -161,6 +171,15 @@ public Optional primaryKey() { return (Optional) primaryKey; } + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional recentNFilesToReadForSchemaDiscovery() { + return (Optional) recentNFilesToReadForSchemaDiscovery; + } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -273,6 +292,24 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withPrimaryKey(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. */ @@ -325,6 +362,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.inputSchema, other.inputSchema) && java.util.Objects.deepEquals(this.name, other.name) && java.util.Objects.deepEquals(this.primaryKey, other.primaryKey) && + java.util.Objects.deepEquals(this.recentNFilesToReadForSchemaDiscovery, other.recentNFilesToReadForSchemaDiscovery) && java.util.Objects.deepEquals(this.schemaless, other.schemaless) && java.util.Objects.deepEquals(this.validationPolicy, other.validationPolicy); } @@ -338,6 +376,7 @@ public int hashCode() { inputSchema, name, primaryKey, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } @@ -351,6 +390,7 @@ public String toString() { "inputSchema", inputSchema, "name", name, "primaryKey", primaryKey, + "recentNFilesToReadForSchemaDiscovery", recentNFilesToReadForSchemaDiscovery, "schemaless", schemaless, "validationPolicy", validationPolicy); } @@ -369,6 +409,8 @@ public final static class Builder { private Optional primaryKey = Optional.empty(); + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); + private Optional schemaless; private Optional validationPolicy; @@ -467,6 +509,24 @@ public Builder primaryKey(Optional primaryKey) { 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. */ @@ -520,6 +580,7 @@ public SourceMicrosoftSharepointFileBasedStreamConfig build() { inputSchema, name, primaryKey, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } 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 384093c1..4b799adc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java @@ -59,6 +59,11 @@ public static SourceMicrosoftSharepointFormat of(SourceMicrosoftSharepointUnstru Utils.checkNotNull(value, "value"); return new SourceMicrosoftSharepointFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + + public static SourceMicrosoftSharepointFormat of(SourceMicrosoftSharepointExcelFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceMicrosoftSharepointFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } /** * Returns an instance of one of these types: @@ -68,6 +73,7 @@ public static SourceMicrosoftSharepointFormat of(SourceMicrosoftSharepointUnstru *

  • {@code SourceMicrosoftSharepointJsonlFormat}
  • *
  • {@code SourceMicrosoftSharepointParquetFormat}
  • *
  • {@code SourceMicrosoftSharepointUnstructuredDocumentFormat}
  • + *
  • {@code SourceMicrosoftSharepointExcelFormat}
  • * * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -111,7 +117,8 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasDataSourceType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java similarity index 78% rename from src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasDataSourceType.java rename to src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java index 7bc2ce95..bfae2ac5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasDataSourceType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum DestinationDatabricksSchemasDataSourceType { - AZURE_BLOB_STORAGE("AZURE_BLOB_STORAGE"); +public enum SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype { + EXCEL("excel"); @JsonValue private final String value; - private DestinationDatabricksSchemasDataSourceType(String value) { + private SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype(String value) { this.value = value; } 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 340a7a50..95711ea3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java @@ -51,6 +51,13 @@ public class SourceMixpanel { @JsonProperty("end_date") private Optional endDate; + /** + * 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>. */ @@ -88,6 +95,7 @@ public SourceMixpanel( @JsonProperty("credentials") AuthenticationWildcard credentials, @JsonProperty("date_window_size") Optional dateWindowSize, @JsonProperty("end_date") Optional endDate, + @JsonProperty("page_size") Optional pageSize, @JsonProperty("project_timezone") Optional projectTimezone, @JsonProperty("region") Optional region, @JsonProperty("select_properties_by_default") Optional selectPropertiesByDefault, @@ -96,6 +104,7 @@ public SourceMixpanel( Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(dateWindowSize, "dateWindowSize"); Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(projectTimezone, "projectTimezone"); Utils.checkNotNull(region, "region"); Utils.checkNotNull(selectPropertiesByDefault, "selectPropertiesByDefault"); @@ -104,6 +113,7 @@ public SourceMixpanel( this.credentials = credentials; this.dateWindowSize = dateWindowSize; this.endDate = endDate; + this.pageSize = pageSize; this.projectTimezone = projectTimezone; this.region = region; this.selectPropertiesByDefault = selectPropertiesByDefault; @@ -113,7 +123,7 @@ public SourceMixpanel( public SourceMixpanel( AuthenticationWildcard credentials) { - this(Optional.empty(), credentials, 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()); } /** @@ -151,6 +161,15 @@ public Optional endDate() { return (Optional) endDate; } + /** + * 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. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional pageSize() { + return (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>. */ @@ -259,6 +278,24 @@ public SourceMixpanel withEndDate(Optional endDate) { 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. + */ + public SourceMixpanel withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(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. + */ + public SourceMixpanel withPageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = 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>. */ @@ -345,6 +382,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.credentials, other.credentials) && java.util.Objects.deepEquals(this.dateWindowSize, other.dateWindowSize) && java.util.Objects.deepEquals(this.endDate, other.endDate) && + java.util.Objects.deepEquals(this.pageSize, other.pageSize) && java.util.Objects.deepEquals(this.projectTimezone, other.projectTimezone) && java.util.Objects.deepEquals(this.region, other.region) && java.util.Objects.deepEquals(this.selectPropertiesByDefault, other.selectPropertiesByDefault) && @@ -359,6 +397,7 @@ public int hashCode() { credentials, dateWindowSize, endDate, + pageSize, projectTimezone, region, selectPropertiesByDefault, @@ -373,6 +412,7 @@ public String toString() { "credentials", credentials, "dateWindowSize", dateWindowSize, "endDate", endDate, + "pageSize", pageSize, "projectTimezone", projectTimezone, "region", region, "selectPropertiesByDefault", selectPropertiesByDefault, @@ -390,6 +430,8 @@ public final static class Builder { private Optional endDate = Optional.empty(); + private Optional pageSize; + private Optional projectTimezone; private Optional region; @@ -465,6 +507,24 @@ public Builder endDate(Optional endDate) { 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. + */ + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(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. + */ + public Builder pageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = 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>. */ @@ -544,6 +604,9 @@ public SourceMixpanel build() { if (dateWindowSize == null) { dateWindowSize = _SINGLETON_VALUE_DateWindowSize.value(); } + if (pageSize == null) { + pageSize = _SINGLETON_VALUE_PageSize.value(); + } if (projectTimezone == null) { projectTimezone = _SINGLETON_VALUE_ProjectTimezone.value(); } @@ -558,6 +621,7 @@ public SourceMixpanel build() { credentials, dateWindowSize, endDate, + pageSize, projectTimezone, region, selectPropertiesByDefault, @@ -576,6 +640,12 @@ public SourceMixpanel build() { "30", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_PageSize = + new LazySingletonValue<>( + "page_size", + "1000", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_ProjectTimezone = new LazySingletonValue<>( "project_timezone", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMongodbInternalPoc.java b/src/main/java/com/airbyte/api/models/shared/SourceMongodbInternalPoc.java deleted file mode 100644 index 97ca1dfd..00000000 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbInternalPoc.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; -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.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; - -public class SourceMongodbInternalPoc { - - /** - * The authentication source where the user information is stored. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("auth_source") - private Optional authSource; - - /** - * The connection string of the database that you want to replicate.. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("connection_string") - private Optional connectionString; - - /** - * The password associated with this username. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("password") - private Optional password; - - /** - * The name of the replica set to be replicated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("replica_set") - private Optional replicaSet; - - @JsonProperty("sourceType") - private MongodbInternalPoc sourceType; - - /** - * The username which is used to access the database. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("user") - private Optional user; - - @JsonCreator - public SourceMongodbInternalPoc( - @JsonProperty("auth_source") Optional authSource, - @JsonProperty("connection_string") Optional connectionString, - @JsonProperty("password") Optional password, - @JsonProperty("replica_set") Optional replicaSet, - @JsonProperty("user") Optional user) { - Utils.checkNotNull(authSource, "authSource"); - Utils.checkNotNull(connectionString, "connectionString"); - Utils.checkNotNull(password, "password"); - Utils.checkNotNull(replicaSet, "replicaSet"); - Utils.checkNotNull(user, "user"); - this.authSource = authSource; - this.connectionString = connectionString; - this.password = password; - this.replicaSet = replicaSet; - this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); - this.user = user; - } - - public SourceMongodbInternalPoc() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * The authentication source where the user information is stored. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional authSource() { - return (Optional) authSource; - } - - /** - * The connection string of the database that you want to replicate.. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional connectionString() { - return (Optional) connectionString; - } - - /** - * The password associated with this username. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional password() { - return (Optional) password; - } - - /** - * The name of the replica set to be replicated. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional replicaSet() { - return (Optional) replicaSet; - } - - @JsonIgnore - public MongodbInternalPoc sourceType() { - return sourceType; - } - - /** - * The username which is used to access the database. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional user() { - return (Optional) user; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The authentication source where the user information is stored. - */ - public SourceMongodbInternalPoc withAuthSource(String authSource) { - Utils.checkNotNull(authSource, "authSource"); - this.authSource = Optional.ofNullable(authSource); - return this; - } - - /** - * The authentication source where the user information is stored. - */ - public SourceMongodbInternalPoc withAuthSource(Optional authSource) { - Utils.checkNotNull(authSource, "authSource"); - this.authSource = authSource; - return this; - } - - /** - * The connection string of the database that you want to replicate.. - */ - public SourceMongodbInternalPoc withConnectionString(String connectionString) { - Utils.checkNotNull(connectionString, "connectionString"); - this.connectionString = Optional.ofNullable(connectionString); - return this; - } - - /** - * The connection string of the database that you want to replicate.. - */ - public SourceMongodbInternalPoc withConnectionString(Optional connectionString) { - Utils.checkNotNull(connectionString, "connectionString"); - this.connectionString = connectionString; - return this; - } - - /** - * The password associated with this username. - */ - public SourceMongodbInternalPoc withPassword(String password) { - Utils.checkNotNull(password, "password"); - this.password = Optional.ofNullable(password); - return this; - } - - /** - * The password associated with this username. - */ - public SourceMongodbInternalPoc withPassword(Optional password) { - Utils.checkNotNull(password, "password"); - this.password = password; - return this; - } - - /** - * The name of the replica set to be replicated. - */ - public SourceMongodbInternalPoc withReplicaSet(String replicaSet) { - Utils.checkNotNull(replicaSet, "replicaSet"); - this.replicaSet = Optional.ofNullable(replicaSet); - return this; - } - - /** - * The name of the replica set to be replicated. - */ - public SourceMongodbInternalPoc withReplicaSet(Optional replicaSet) { - Utils.checkNotNull(replicaSet, "replicaSet"); - this.replicaSet = replicaSet; - return this; - } - - /** - * The username which is used to access the database. - */ - public SourceMongodbInternalPoc withUser(String user) { - Utils.checkNotNull(user, "user"); - this.user = Optional.ofNullable(user); - return this; - } - - /** - * The username which is used to access the database. - */ - public SourceMongodbInternalPoc withUser(Optional user) { - Utils.checkNotNull(user, "user"); - this.user = user; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SourceMongodbInternalPoc other = (SourceMongodbInternalPoc) o; - return - java.util.Objects.deepEquals(this.authSource, other.authSource) && - java.util.Objects.deepEquals(this.connectionString, other.connectionString) && - java.util.Objects.deepEquals(this.password, other.password) && - java.util.Objects.deepEquals(this.replicaSet, other.replicaSet) && - java.util.Objects.deepEquals(this.sourceType, other.sourceType) && - java.util.Objects.deepEquals(this.user, other.user); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - authSource, - connectionString, - password, - replicaSet, - sourceType, - user); - } - - @Override - public String toString() { - return Utils.toString(SourceMongodbInternalPoc.class, - "authSource", authSource, - "connectionString", connectionString, - "password", password, - "replicaSet", replicaSet, - "sourceType", sourceType, - "user", user); - } - - public final static class Builder { - - private Optional authSource; - - private Optional connectionString = Optional.empty(); - - private Optional password = Optional.empty(); - - private Optional replicaSet = Optional.empty(); - - private Optional user = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The authentication source where the user information is stored. - */ - public Builder authSource(String authSource) { - Utils.checkNotNull(authSource, "authSource"); - this.authSource = Optional.ofNullable(authSource); - return this; - } - - /** - * The authentication source where the user information is stored. - */ - public Builder authSource(Optional authSource) { - Utils.checkNotNull(authSource, "authSource"); - this.authSource = authSource; - return this; - } - - /** - * The connection string of the database that you want to replicate.. - */ - public Builder connectionString(String connectionString) { - Utils.checkNotNull(connectionString, "connectionString"); - this.connectionString = Optional.ofNullable(connectionString); - return this; - } - - /** - * The connection string of the database that you want to replicate.. - */ - public Builder connectionString(Optional connectionString) { - Utils.checkNotNull(connectionString, "connectionString"); - this.connectionString = connectionString; - return this; - } - - /** - * The password associated with this username. - */ - public Builder password(String password) { - Utils.checkNotNull(password, "password"); - this.password = Optional.ofNullable(password); - return this; - } - - /** - * The password associated with this username. - */ - public Builder password(Optional password) { - Utils.checkNotNull(password, "password"); - this.password = password; - return this; - } - - /** - * The name of the replica set to be replicated. - */ - public Builder replicaSet(String replicaSet) { - Utils.checkNotNull(replicaSet, "replicaSet"); - this.replicaSet = Optional.ofNullable(replicaSet); - return this; - } - - /** - * The name of the replica set to be replicated. - */ - public Builder replicaSet(Optional replicaSet) { - Utils.checkNotNull(replicaSet, "replicaSet"); - this.replicaSet = replicaSet; - return this; - } - - /** - * The username which is used to access the database. - */ - public Builder user(String user) { - Utils.checkNotNull(user, "user"); - this.user = Optional.ofNullable(user); - return this; - } - - /** - * The username which is used to access the database. - */ - public Builder user(Optional user) { - Utils.checkNotNull(user, "user"); - this.user = user; - return this; - } - - public SourceMongodbInternalPoc build() { - if (authSource == null) { - authSource = _SINGLETON_VALUE_AuthSource.value(); - } - return new SourceMongodbInternalPoc( - authSource, - connectionString, - password, - replicaSet, - user); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_AuthSource = - new LazySingletonValue<>( - "auth_source", - "\"admin\"", - new TypeReference>() {}); - - private static final LazySingletonValue _SINGLETON_VALUE_SourceType = - new LazySingletonValue<>( - "sourceType", - "\"mongodb-internal-poc\"", - new TypeReference() {}); - } -} - 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 59caf7b2..a9d33eb4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java @@ -34,6 +34,13 @@ public class SourceMongodbV2 { @JsonProperty("discover_sample_size") private Optional discoverSampleSize; + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("initial_load_timeout_hours") + 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. */ @@ -69,18 +76,21 @@ public class SourceMongodbV2 { public SourceMongodbV2( @JsonProperty("database_config") java.lang.Object databaseConfig, @JsonProperty("discover_sample_size") Optional discoverSampleSize, + @JsonProperty("initial_load_timeout_hours") Optional initialLoadTimeoutHours, @JsonProperty("initial_waiting_seconds") Optional initialWaitingSeconds, @JsonProperty("invalid_cdc_cursor_position_behavior") Optional invalidCdcCursorPositionBehavior, @JsonProperty("queue_size") Optional queueSize, @JsonProperty("update_capture_mode") Optional updateCaptureMode) { Utils.checkNotNull(databaseConfig, "databaseConfig"); Utils.checkNotNull(discoverSampleSize, "discoverSampleSize"); + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); Utils.checkNotNull(queueSize, "queueSize"); Utils.checkNotNull(updateCaptureMode, "updateCaptureMode"); this.databaseConfig = databaseConfig; this.discoverSampleSize = discoverSampleSize; + this.initialLoadTimeoutHours = initialLoadTimeoutHours; this.initialWaitingSeconds = initialWaitingSeconds; this.invalidCdcCursorPositionBehavior = invalidCdcCursorPositionBehavior; this.queueSize = queueSize; @@ -90,7 +100,7 @@ public SourceMongodbV2( public SourceMongodbV2( java.lang.Object databaseConfig) { - this(databaseConfig, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(databaseConfig, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -110,6 +120,15 @@ public Optional discoverSampleSize() { return (Optional) discoverSampleSize; } + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional initialLoadTimeoutHours() { + return (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. */ @@ -182,6 +201,24 @@ public SourceMongodbV2 withDiscoverSampleSize(Optional discoverS return this; } + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public SourceMongodbV2 withInitialLoadTimeoutHours(long initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = Optional.ofNullable(initialLoadTimeoutHours); + return this; + } + + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public SourceMongodbV2 withInitialLoadTimeoutHours(Optional initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = 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. */ @@ -266,6 +303,7 @@ public boolean equals(java.lang.Object o) { return java.util.Objects.deepEquals(this.databaseConfig, other.databaseConfig) && java.util.Objects.deepEquals(this.discoverSampleSize, other.discoverSampleSize) && + java.util.Objects.deepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && java.util.Objects.deepEquals(this.initialWaitingSeconds, other.initialWaitingSeconds) && java.util.Objects.deepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && java.util.Objects.deepEquals(this.queueSize, other.queueSize) && @@ -278,6 +316,7 @@ public int hashCode() { return java.util.Objects.hash( databaseConfig, discoverSampleSize, + initialLoadTimeoutHours, initialWaitingSeconds, invalidCdcCursorPositionBehavior, queueSize, @@ -290,6 +329,7 @@ public String toString() { return Utils.toString(SourceMongodbV2.class, "databaseConfig", databaseConfig, "discoverSampleSize", discoverSampleSize, + "initialLoadTimeoutHours", initialLoadTimeoutHours, "initialWaitingSeconds", initialWaitingSeconds, "invalidCdcCursorPositionBehavior", invalidCdcCursorPositionBehavior, "queueSize", queueSize, @@ -303,6 +343,8 @@ public final static class Builder { private Optional discoverSampleSize; + private Optional initialLoadTimeoutHours; + private Optional initialWaitingSeconds; private Optional invalidCdcCursorPositionBehavior; @@ -342,6 +384,24 @@ public Builder discoverSampleSize(Optional discoverSampleSize) { return this; } + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public Builder initialLoadTimeoutHours(long initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = Optional.ofNullable(initialLoadTimeoutHours); + return this; + } + + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public Builder initialLoadTimeoutHours(Optional initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = 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. */ @@ -418,6 +478,9 @@ public SourceMongodbV2 build() { if (discoverSampleSize == null) { discoverSampleSize = _SINGLETON_VALUE_DiscoverSampleSize.value(); } + if (initialLoadTimeoutHours == null) { + initialLoadTimeoutHours = _SINGLETON_VALUE_InitialLoadTimeoutHours.value(); + } if (initialWaitingSeconds == null) { initialWaitingSeconds = _SINGLETON_VALUE_InitialWaitingSeconds.value(); } @@ -433,6 +496,7 @@ public SourceMongodbV2 build() { return new SourceMongodbV2( databaseConfig, discoverSampleSize, + initialLoadTimeoutHours, initialWaitingSeconds, invalidCdcCursorPositionBehavior, queueSize, @@ -445,6 +509,12 @@ public SourceMongodbV2 build() { "10000", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_InitialLoadTimeoutHours = + new LazySingletonValue<>( + "initial_load_timeout_hours", + "8", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_InitialWaitingSeconds = new LazySingletonValue<>( "initial_waiting_seconds", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java b/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java new file mode 100644 index 00000000..33e17920 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java @@ -0,0 +1,109 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourceNorthpassLms { + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private NorthpassLms sourceType; + + @JsonCreator + public SourceNorthpassLms( + @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 NorthpassLms sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceNorthpassLms 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; + } + SourceNorthpassLms other = (SourceNorthpassLms) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceNorthpassLms.class, + "apiKey", apiKey, + "sourceType", sourceType); + } + + 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", + "\"northpass-lms\"", + new TypeReference() {}); + } +} + 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 e30fd528..3cd38053 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java @@ -25,7 +25,7 @@ public class SourceOktaAPIToken { private String apiToken; @JsonProperty("auth_type") - private SourceOktaSchemasAuthType authType; + private SourceOktaSchemasCredentialsAuthType authType; @JsonCreator public SourceOktaAPIToken( @@ -44,7 +44,7 @@ public String apiToken() { } @JsonIgnore - public SourceOktaSchemasAuthType authType() { + public SourceOktaSchemasCredentialsAuthType authType() { return authType; } @@ -111,11 +111,11 @@ public SourceOktaAPIToken build() { apiToken); } - private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"api_token\"", - new TypeReference() {}); + new TypeReference() {}); } } 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 22d43b13..0e7d11ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java @@ -37,6 +37,11 @@ public static SourceOktaAuthorizationMethod of(SourceOktaOAuth20 value) { return new SourceOktaAuthorizationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceOktaAuthorizationMethod of(OAuth20WithPrivateKey value) { + Utils.checkNotNull(value, "value"); + return new SourceOktaAuthorizationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceOktaAuthorizationMethod of(SourceOktaAPIToken value) { Utils.checkNotNull(value, "value"); return new SourceOktaAuthorizationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -46,6 +51,7 @@ public static SourceOktaAuthorizationMethod of(SourceOktaAPIToken value) { * Returns an instance of one of these types: *

      *
    • {@code SourceOktaOAuth20}
    • + *
    • {@code OAuth20WithPrivateKey}
    • *
    • {@code SourceOktaAPIToken}
    • *
    * @@ -87,6 +93,7 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(SourceOktaAuthorizationMethod.class, Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } 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 68e50eaa..fcd245a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java @@ -16,7 +16,7 @@ import java.math.BigInteger; public enum SourceOktaSchemasAuthType { - API_TOKEN("api_token"); + OAUTH20_PRIVATE_KEY("oauth2.0_private_key"); @JsonValue private final String 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 new file mode 100644 index 00000000..52e483d7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum SourceOktaSchemasCredentialsAuthType { + API_TOKEN("api_token"); + + @JsonValue + private final String value; + + private SourceOktaSchemasCredentialsAuthType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java b/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java new file mode 100644 index 00000000..eb8acde1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.OffsetDateTime; + +public class SourcePennylane { + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Pennylane sourceType; + + @JsonProperty("start_time") + private OffsetDateTime startTime; + + @JsonCreator + public SourcePennylane( + @JsonProperty("api_key") String apiKey, + @JsonProperty("start_time") OffsetDateTime startTime) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(startTime, "startTime"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startTime = startTime; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Pennylane sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startTime() { + return startTime; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourcePennylane withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourcePennylane withStartTime(OffsetDateTime startTime) { + Utils.checkNotNull(startTime, "startTime"); + this.startTime = startTime; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourcePennylane other = (SourcePennylane) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.startTime, other.startTime); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + sourceType, + startTime); + } + + @Override + public String toString() { + return Utils.toString(SourcePennylane.class, + "apiKey", apiKey, + "sourceType", sourceType, + "startTime", startTime); + } + + 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); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"pennylane\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java b/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java new file mode 100644 index 00000000..c458e16f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java @@ -0,0 +1,121 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourcePlanhat { + + /** + * Your Planhat <a href="https://docs.planhat.com/#authentication">API Access Token</a> + */ + @JsonProperty("api_token") + private String apiToken; + + @JsonProperty("sourceType") + private Planhat sourceType; + + @JsonCreator + public SourcePlanhat( + @JsonProperty("api_token") String apiToken) { + Utils.checkNotNull(apiToken, "apiToken"); + this.apiToken = apiToken; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * Your Planhat <a href="https://docs.planhat.com/#authentication">API Access Token</a> + */ + @JsonIgnore + public String apiToken() { + return apiToken; + } + + @JsonIgnore + public Planhat sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Your Planhat <a href="https://docs.planhat.com/#authentication">API Access Token</a> + */ + public SourcePlanhat withApiToken(String apiToken) { + Utils.checkNotNull(apiToken, "apiToken"); + this.apiToken = apiToken; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourcePlanhat other = (SourcePlanhat) o; + return + java.util.Objects.deepEquals(this.apiToken, other.apiToken) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiToken, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourcePlanhat.class, + "apiToken", apiToken, + "sourceType", sourceType); + } + + 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> + */ + 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", + "\"planhat\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceReddit.java b/src/main/java/com/airbyte/api/models/shared/SourceReddit.java new file mode 100644 index 00000000..c7f2ff84 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceReddit.java @@ -0,0 +1,482 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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 com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.Optional; + +public class SourceReddit { + + @JsonProperty("api_key") + private String apiKey; + + /** + * Specifies exact keyword and reduces distractions + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("exact") + private Optional exact; + + /** + * Includes mature content + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("include_over_18") + private Optional includeOver18; + + /** + * Max records per page limit + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("limit") + private Optional limit; + + /** + * Specifies the query for searching in reddits and subreddits + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("query") + private Optional query; + + @JsonProperty("sourceType") + private Reddit sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + /** + * Subreddits for exploration + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subreddits") + private Optional> subreddits; + + @JsonCreator + public SourceReddit( + @JsonProperty("api_key") String apiKey, + @JsonProperty("exact") Optional exact, + @JsonProperty("include_over_18") Optional includeOver18, + @JsonProperty("limit") Optional limit, + @JsonProperty("query") Optional query, + @JsonProperty("start_date") OffsetDateTime startDate, + @JsonProperty("subreddits") Optional> subreddits) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(exact, "exact"); + Utils.checkNotNull(includeOver18, "includeOver18"); + Utils.checkNotNull(limit, "limit"); + Utils.checkNotNull(query, "query"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(subreddits, "subreddits"); + this.apiKey = apiKey; + this.exact = exact; + this.includeOver18 = includeOver18; + this.limit = limit; + this.query = query; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + this.subreddits = subreddits; + } + + public SourceReddit( + String apiKey, + OffsetDateTime startDate) { + this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate, Optional.empty()); + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Specifies exact keyword and reduces distractions + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional exact() { + return (Optional) exact; + } + + /** + * Includes mature content + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional includeOver18() { + return (Optional) includeOver18; + } + + /** + * Max records per page limit + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional limit() { + return (Optional) limit; + } + + /** + * Specifies the query for searching in reddits and subreddits + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional query() { + return (Optional) query; + } + + @JsonIgnore + public Reddit sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + /** + * Subreddits for exploration + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> subreddits() { + return (Optional>) subreddits; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceReddit withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Specifies exact keyword and reduces distractions + */ + public SourceReddit withExact(boolean exact) { + Utils.checkNotNull(exact, "exact"); + this.exact = Optional.ofNullable(exact); + return this; + } + + /** + * Specifies exact keyword and reduces distractions + */ + public SourceReddit withExact(Optional exact) { + Utils.checkNotNull(exact, "exact"); + this.exact = exact; + return this; + } + + /** + * Includes mature content + */ + public SourceReddit withIncludeOver18(boolean includeOver18) { + Utils.checkNotNull(includeOver18, "includeOver18"); + this.includeOver18 = Optional.ofNullable(includeOver18); + return this; + } + + /** + * Includes mature content + */ + public SourceReddit withIncludeOver18(Optional includeOver18) { + Utils.checkNotNull(includeOver18, "includeOver18"); + this.includeOver18 = includeOver18; + return this; + } + + /** + * Max records per page limit + */ + public SourceReddit withLimit(double limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = Optional.ofNullable(limit); + return this; + } + + /** + * Max records per page limit + */ + public SourceReddit withLimit(Optional limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = limit; + return this; + } + + /** + * Specifies the query for searching in reddits and subreddits + */ + public SourceReddit withQuery(String query) { + Utils.checkNotNull(query, "query"); + this.query = Optional.ofNullable(query); + return this; + } + + /** + * Specifies the query for searching in reddits and subreddits + */ + public SourceReddit withQuery(Optional query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + public SourceReddit withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Subreddits for exploration + */ + public SourceReddit withSubreddits(java.util.List subreddits) { + Utils.checkNotNull(subreddits, "subreddits"); + this.subreddits = Optional.ofNullable(subreddits); + return this; + } + + /** + * Subreddits for exploration + */ + public SourceReddit withSubreddits(Optional> subreddits) { + Utils.checkNotNull(subreddits, "subreddits"); + this.subreddits = subreddits; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceReddit other = (SourceReddit) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.exact, other.exact) && + java.util.Objects.deepEquals(this.includeOver18, other.includeOver18) && + java.util.Objects.deepEquals(this.limit, other.limit) && + java.util.Objects.deepEquals(this.query, other.query) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.startDate, other.startDate) && + java.util.Objects.deepEquals(this.subreddits, other.subreddits); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + exact, + includeOver18, + limit, + query, + sourceType, + startDate, + subreddits); + } + + @Override + public String toString() { + return Utils.toString(SourceReddit.class, + "apiKey", apiKey, + "exact", exact, + "includeOver18", includeOver18, + "limit", limit, + "query", query, + "sourceType", sourceType, + "startDate", startDate, + "subreddits", subreddits); + } + + 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 + */ + public Builder exact(boolean exact) { + Utils.checkNotNull(exact, "exact"); + this.exact = Optional.ofNullable(exact); + return this; + } + + /** + * Specifies exact keyword and reduces distractions + */ + public Builder exact(Optional exact) { + Utils.checkNotNull(exact, "exact"); + this.exact = exact; + return this; + } + + /** + * Includes mature content + */ + public Builder includeOver18(boolean includeOver18) { + Utils.checkNotNull(includeOver18, "includeOver18"); + this.includeOver18 = Optional.ofNullable(includeOver18); + return this; + } + + /** + * Includes mature content + */ + public Builder includeOver18(Optional includeOver18) { + Utils.checkNotNull(includeOver18, "includeOver18"); + this.includeOver18 = includeOver18; + return this; + } + + /** + * Max records per page limit + */ + public Builder limit(double limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = Optional.ofNullable(limit); + return this; + } + + /** + * Max records per page limit + */ + public Builder limit(Optional limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = limit; + return this; + } + + /** + * Specifies the query for searching in reddits and subreddits + */ + public Builder query(String query) { + Utils.checkNotNull(query, "query"); + this.query = Optional.ofNullable(query); + return this; + } + + /** + * Specifies the query for searching in reddits and subreddits + */ + public Builder query(Optional query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Subreddits for exploration + */ + public Builder subreddits(java.util.List subreddits) { + Utils.checkNotNull(subreddits, "subreddits"); + this.subreddits = Optional.ofNullable(subreddits); + return this; + } + + /** + * Subreddits for exploration + */ + public Builder subreddits(Optional> subreddits) { + Utils.checkNotNull(subreddits, "subreddits"); + this.subreddits = subreddits; + return this; + } + + public SourceReddit build() { + if (includeOver18 == null) { + includeOver18 = _SINGLETON_VALUE_IncludeOver18.value(); + } + if (limit == null) { + limit = _SINGLETON_VALUE_Limit.value(); + } + if (query == null) { + query = _SINGLETON_VALUE_Query.value(); + } + return new SourceReddit( + apiKey, + exact, + includeOver18, + limit, + query, + startDate, + subreddits); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeOver18 = + new LazySingletonValue<>( + "include_over_18", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + new LazySingletonValue<>( + "limit", + "\"1000\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Query = + new LazySingletonValue<>( + "query", + "\"airbyte\"", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"reddit\"", + new TypeReference() {}); + } +} + 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 85b1ef95..706b7229 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java @@ -68,6 +68,13 @@ public class SourceS3FileBasedStreamConfig { @JsonProperty("primary_key") private Optional primaryKey; + /** + * 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. */ @@ -91,6 +98,7 @@ public SourceS3FileBasedStreamConfig( @JsonProperty("legacy_prefix") Optional legacyPrefix, @JsonProperty("name") String name, @JsonProperty("primary_key") Optional primaryKey, + @JsonProperty("recent_n_files_to_read_for_schema_discovery") Optional recentNFilesToReadForSchemaDiscovery, @JsonProperty("schemaless") Optional schemaless, @JsonProperty("validation_policy") Optional validationPolicy) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -100,6 +108,7 @@ public SourceS3FileBasedStreamConfig( Utils.checkNotNull(legacyPrefix, "legacyPrefix"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(primaryKey, "primaryKey"); + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); Utils.checkNotNull(schemaless, "schemaless"); Utils.checkNotNull(validationPolicy, "validationPolicy"); this.daysToSyncIfHistoryIsFull = daysToSyncIfHistoryIsFull; @@ -109,6 +118,7 @@ public SourceS3FileBasedStreamConfig( this.legacyPrefix = legacyPrefix; this.name = name; this.primaryKey = primaryKey; + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; this.schemaless = schemaless; this.validationPolicy = validationPolicy; } @@ -116,7 +126,7 @@ public SourceS3FileBasedStreamConfig( public SourceS3FileBasedStreamConfig( SourceS3Format format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -180,6 +190,15 @@ public Optional primaryKey() { return (Optional) primaryKey; } + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional recentNFilesToReadForSchemaDiscovery() { + return (Optional) recentNFilesToReadForSchemaDiscovery; + } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -310,6 +329,24 @@ public SourceS3FileBasedStreamConfig withPrimaryKey(Optional p return this; } + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public SourceS3FileBasedStreamConfig 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 SourceS3FileBasedStreamConfig 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. */ @@ -363,6 +400,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.legacyPrefix, other.legacyPrefix) && java.util.Objects.deepEquals(this.name, other.name) && java.util.Objects.deepEquals(this.primaryKey, other.primaryKey) && + java.util.Objects.deepEquals(this.recentNFilesToReadForSchemaDiscovery, other.recentNFilesToReadForSchemaDiscovery) && java.util.Objects.deepEquals(this.schemaless, other.schemaless) && java.util.Objects.deepEquals(this.validationPolicy, other.validationPolicy); } @@ -377,6 +415,7 @@ public int hashCode() { legacyPrefix, name, primaryKey, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } @@ -391,6 +430,7 @@ public String toString() { "legacyPrefix", legacyPrefix, "name", name, "primaryKey", primaryKey, + "recentNFilesToReadForSchemaDiscovery", recentNFilesToReadForSchemaDiscovery, "schemaless", schemaless, "validationPolicy", validationPolicy); } @@ -411,6 +451,8 @@ public final static class Builder { private Optional primaryKey = Optional.empty(); + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); + private Optional schemaless; private Optional validationPolicy; @@ -527,6 +569,24 @@ public Builder primaryKey(Optional primaryKey) { 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. */ @@ -581,6 +641,7 @@ public SourceS3FileBasedStreamConfig build() { legacyPrefix, name, primaryKey, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java b/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java new file mode 100644 index 00000000..9c3692d7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java @@ -0,0 +1,121 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourceSavvycal { + + /** + * 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; + + @JsonCreator + public SourceSavvycal( + @JsonProperty("api_key") String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * 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() { + return apiKey; + } + + @JsonIgnore + public Savvycal sourceType() { + return sourceType; + } + + public final 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 + */ + public SourceSavvycal 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; + } + SourceSavvycal other = (SourceSavvycal) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceSavvycal.class, + "apiKey", apiKey, + "sourceType", sourceType); + } + + 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 + */ + 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", + "\"savvycal\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/RecommendedManagedTables.java b/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java similarity index 58% rename from src/main/java/com/airbyte/api/models/shared/RecommendedManagedTables.java rename to src/main/java/com/airbyte/api/models/shared/SourceScryfall.java index be09cdcf..a0d65119 100644 --- a/src/main/java/com/airbyte/api/models/shared/RecommendedManagedTables.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java @@ -16,20 +16,20 @@ import java.math.BigDecimal; import java.math.BigInteger; -public class RecommendedManagedTables { +public class SourceScryfall { - @JsonProperty("data_source_type") - private DataSourceType dataSourceType; + @JsonProperty("sourceType") + private Scryfall sourceType; @JsonCreator - public RecommendedManagedTables() { + public SourceScryfall() { - this.dataSourceType = Builder._SINGLETON_VALUE_DataSourceType.value(); + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); } @JsonIgnore - public DataSourceType dataSourceType() { - return dataSourceType; + public Scryfall sourceType() { + return sourceType; } public final static Builder builder() { @@ -44,21 +44,21 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RecommendedManagedTables other = (RecommendedManagedTables) o; + SourceScryfall other = (SourceScryfall) o; return - java.util.Objects.deepEquals(this.dataSourceType, other.dataSourceType); + java.util.Objects.deepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { return java.util.Objects.hash( - dataSourceType); + sourceType); } @Override public String toString() { - return Utils.toString(RecommendedManagedTables.class, - "dataSourceType", dataSourceType); + return Utils.toString(SourceScryfall.class, + "sourceType", sourceType); } public final static class Builder { @@ -67,16 +67,16 @@ private Builder() { // force use of static builder() method } - public RecommendedManagedTables build() { - return new RecommendedManagedTables( + public SourceScryfall build() { + return new SourceScryfall( ); } - private static final LazySingletonValue _SINGLETON_VALUE_DataSourceType = + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( - "data_source_type", - "\"MANAGED_TABLES_STORAGE\"", - new TypeReference() {}); + "sourceType", + "\"scryfall\"", + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java new file mode 100644 index 00000000..0bb1e4b7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java @@ -0,0 +1,143 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourceSftpBulkAPIParameterConfigModel { + + /** + * The name of the unstructured API parameter to use + */ + @JsonProperty("name") + private String name; + + /** + * The value of the parameter + */ + @JsonProperty("value") + private String value; + + @JsonCreator + public SourceSftpBulkAPIParameterConfigModel( + @JsonProperty("name") String name, + @JsonProperty("value") String value) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(value, "value"); + this.name = name; + this.value = value; + } + + /** + * The name of the unstructured API parameter to use + */ + @JsonIgnore + public String name() { + return name; + } + + /** + * The value of the parameter + */ + @JsonIgnore + public String value() { + return value; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The name of the unstructured API parameter to use + */ + public SourceSftpBulkAPIParameterConfigModel withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * The value of the parameter + */ + public SourceSftpBulkAPIParameterConfigModel withValue(String value) { + Utils.checkNotNull(value, "value"); + this.value = value; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSftpBulkAPIParameterConfigModel other = (SourceSftpBulkAPIParameterConfigModel) o; + return + java.util.Objects.deepEquals(this.name, other.name) && + java.util.Objects.deepEquals(this.value, other.value); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + name, + value); + } + + @Override + public String toString() { + return Utils.toString(SourceSftpBulkAPIParameterConfigModel.class, + "name", name, + "value", value); + } + + 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 + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * The value of the parameter + */ + public Builder value(String value) { + Utils.checkNotNull(value, "value"); + this.value = value; + return this; + } + + public SourceSftpBulkAPIParameterConfigModel build() { + return new SourceSftpBulkAPIParameterConfigModel( + name, + 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 new file mode 100644 index 00000000..d38de04f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; + +public class SourceSftpBulkExcelFormat { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public SourceSftpBulkExcelFormat() { + + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public final 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; + } + SourceSftpBulkExcelFormat other = (SourceSftpBulkExcelFormat) o; + return + java.util.Objects.deepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceSftpBulkExcelFormat.class, + "filetype", filetype); + } + + 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", + "\"excel\"", + new TypeReference>() {}); + } +} + 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 59338861..bcf20748 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java @@ -68,6 +68,13 @@ public class SourceSftpBulkFileBasedStreamConfig { @JsonProperty("primary_key") private Optional primaryKey; + /** + * 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. */ @@ -91,6 +98,7 @@ public SourceSftpBulkFileBasedStreamConfig( @JsonProperty("legacy_prefix") Optional legacyPrefix, @JsonProperty("name") String name, @JsonProperty("primary_key") Optional primaryKey, + @JsonProperty("recent_n_files_to_read_for_schema_discovery") Optional recentNFilesToReadForSchemaDiscovery, @JsonProperty("schemaless") Optional schemaless, @JsonProperty("validation_policy") Optional validationPolicy) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -100,6 +108,7 @@ public SourceSftpBulkFileBasedStreamConfig( Utils.checkNotNull(legacyPrefix, "legacyPrefix"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(primaryKey, "primaryKey"); + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); Utils.checkNotNull(schemaless, "schemaless"); Utils.checkNotNull(validationPolicy, "validationPolicy"); this.daysToSyncIfHistoryIsFull = daysToSyncIfHistoryIsFull; @@ -109,6 +118,7 @@ public SourceSftpBulkFileBasedStreamConfig( this.legacyPrefix = legacyPrefix; this.name = name; this.primaryKey = primaryKey; + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; this.schemaless = schemaless; this.validationPolicy = validationPolicy; } @@ -116,7 +126,7 @@ public SourceSftpBulkFileBasedStreamConfig( public SourceSftpBulkFileBasedStreamConfig( SourceSftpBulkFormat format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -180,6 +190,15 @@ public Optional primaryKey() { return (Optional) primaryKey; } + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional recentNFilesToReadForSchemaDiscovery() { + return (Optional) recentNFilesToReadForSchemaDiscovery; + } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -310,6 +329,24 @@ public SourceSftpBulkFileBasedStreamConfig withPrimaryKey(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. */ @@ -363,6 +400,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.legacyPrefix, other.legacyPrefix) && java.util.Objects.deepEquals(this.name, other.name) && java.util.Objects.deepEquals(this.primaryKey, other.primaryKey) && + java.util.Objects.deepEquals(this.recentNFilesToReadForSchemaDiscovery, other.recentNFilesToReadForSchemaDiscovery) && java.util.Objects.deepEquals(this.schemaless, other.schemaless) && java.util.Objects.deepEquals(this.validationPolicy, other.validationPolicy); } @@ -377,6 +415,7 @@ public int hashCode() { legacyPrefix, name, primaryKey, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } @@ -391,6 +430,7 @@ public String toString() { "legacyPrefix", legacyPrefix, "name", name, "primaryKey", primaryKey, + "recentNFilesToReadForSchemaDiscovery", recentNFilesToReadForSchemaDiscovery, "schemaless", schemaless, "validationPolicy", validationPolicy); } @@ -411,6 +451,8 @@ public final static class Builder { private Optional primaryKey = Optional.empty(); + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); + private Optional schemaless; private Optional validationPolicy; @@ -527,6 +569,24 @@ public Builder primaryKey(Optional primaryKey) { 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. */ @@ -581,6 +641,7 @@ public SourceSftpBulkFileBasedStreamConfig build() { legacyPrefix, name, primaryKey, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } 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 cafccd81..34bae956 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java @@ -55,9 +55,14 @@ public static SourceSftpBulkFormat of(SourceSftpBulkParquetFormat value) { return new SourceSftpBulkFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceSftpBulkFormat of(SourceSftpBulkDocumentFileTypeFormatExperimental value) { + public static SourceSftpBulkFormat of(SourceSftpBulkUnstructuredDocumentFormat value) { Utils.checkNotNull(value, "value"); - return new SourceSftpBulkFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceSftpBulkFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSftpBulkFormat of(SourceSftpBulkExcelFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceSftpBulkFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** @@ -67,7 +72,8 @@ public static SourceSftpBulkFormat of(SourceSftpBulkDocumentFileTypeFormatExperi *
  • {@code SourceSftpBulkCSVFormat}
  • *
  • {@code SourceSftpBulkJsonlFormat}
  • *
  • {@code SourceSftpBulkParquetFormat}
  • - *
  • {@code SourceSftpBulkDocumentFileTypeFormatExperimental}
  • + *
  • {@code SourceSftpBulkUnstructuredDocumentFormat}
  • + *
  • {@code SourceSftpBulkExcelFormat}
  • * * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -111,7 +117,8 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } 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 a15e3c72..154b523c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java @@ -40,16 +40,16 @@ public static SourceSftpBulkProcessing of(SourceSftpBulkLocal value) { return new SourceSftpBulkProcessing(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceSftpBulkProcessing of(ViaAPI value) { + public static SourceSftpBulkProcessing of(SourceSftpBulkViaAPI value) { Utils.checkNotNull(value, "value"); - return new SourceSftpBulkProcessing(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceSftpBulkProcessing(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *

      *
    • {@code SourceSftpBulkLocal}
    • - *
    • {@code ViaAPI}
    • + *
    • {@code SourceSftpBulkViaAPI}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -90,7 +90,7 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(SourceSftpBulkProcessing.class, Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java new file mode 100644 index 00000000..51f82b47 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum SourceSftpBulkSchemasStreamsFormatFormat6Filetype { + EXCEL("excel"); + + @JsonValue + private final String value; + + private SourceSftpBulkSchemasStreamsFormatFormat6Filetype(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDocumentFileTypeFormatExperimental.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java similarity index 89% rename from src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDocumentFileTypeFormatExperimental.java rename to src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java index 84064444..f01bbf69 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDocumentFileTypeFormatExperimental.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java @@ -19,10 +19,10 @@ import java.math.BigInteger; import java.util.Optional; /** - * SourceSftpBulkDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. + * SourceSftpBulkUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ -public class SourceSftpBulkDocumentFileTypeFormatExperimental { +public class SourceSftpBulkUnstructuredDocumentFormat { @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") @@ -50,7 +50,7 @@ public class SourceSftpBulkDocumentFileTypeFormatExperimental { private Optional strategy; @JsonCreator - public SourceSftpBulkDocumentFileTypeFormatExperimental( + public SourceSftpBulkUnstructuredDocumentFormat( @JsonProperty("processing") Optional processing, @JsonProperty("skip_unprocessable_files") Optional skipUnprocessableFiles, @JsonProperty("strategy") Optional strategy) { @@ -63,7 +63,7 @@ public SourceSftpBulkDocumentFileTypeFormatExperimental( this.strategy = strategy; } - public SourceSftpBulkDocumentFileTypeFormatExperimental() { + public SourceSftpBulkUnstructuredDocumentFormat() { this(Optional.empty(), Optional.empty(), Optional.empty()); } @@ -107,7 +107,7 @@ public final static Builder builder() { /** * Processing configuration */ - public SourceSftpBulkDocumentFileTypeFormatExperimental withProcessing(SourceSftpBulkProcessing processing) { + public SourceSftpBulkUnstructuredDocumentFormat withProcessing(SourceSftpBulkProcessing processing) { Utils.checkNotNull(processing, "processing"); this.processing = Optional.ofNullable(processing); return this; @@ -116,7 +116,7 @@ public SourceSftpBulkDocumentFileTypeFormatExperimental withProcessing(SourceSft /** * Processing configuration */ - public SourceSftpBulkDocumentFileTypeFormatExperimental withProcessing(Optional processing) { + public SourceSftpBulkUnstructuredDocumentFormat withProcessing(Optional processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; @@ -125,7 +125,7 @@ public SourceSftpBulkDocumentFileTypeFormatExperimental 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. */ - public SourceSftpBulkDocumentFileTypeFormatExperimental withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { + public SourceSftpBulkUnstructuredDocumentFormat withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); this.skipUnprocessableFiles = Optional.ofNullable(skipUnprocessableFiles); return this; @@ -134,7 +134,7 @@ public SourceSftpBulkDocumentFileTypeFormatExperimental withSkipUnprocessableFil /** * 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 SourceSftpBulkDocumentFileTypeFormatExperimental withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { + public SourceSftpBulkUnstructuredDocumentFormat withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); this.skipUnprocessableFiles = skipUnprocessableFiles; return this; @@ -143,7 +143,7 @@ public SourceSftpBulkDocumentFileTypeFormatExperimental withSkipUnprocessableFil /** * 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 SourceSftpBulkDocumentFileTypeFormatExperimental withStrategy(SourceSftpBulkParsingStrategy strategy) { + public SourceSftpBulkUnstructuredDocumentFormat withStrategy(SourceSftpBulkParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = Optional.ofNullable(strategy); return this; @@ -152,7 +152,7 @@ public SourceSftpBulkDocumentFileTypeFormatExperimental withStrategy(SourceSftpB /** * 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 SourceSftpBulkDocumentFileTypeFormatExperimental withStrategy(Optional strategy) { + public SourceSftpBulkUnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; @@ -166,7 +166,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceSftpBulkDocumentFileTypeFormatExperimental other = (SourceSftpBulkDocumentFileTypeFormatExperimental) o; + SourceSftpBulkUnstructuredDocumentFormat other = (SourceSftpBulkUnstructuredDocumentFormat) o; return java.util.Objects.deepEquals(this.filetype, other.filetype) && java.util.Objects.deepEquals(this.processing, other.processing) && @@ -185,7 +185,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SourceSftpBulkDocumentFileTypeFormatExperimental.class, + return Utils.toString(SourceSftpBulkUnstructuredDocumentFormat.class, "filetype", filetype, "processing", processing, "skipUnprocessableFiles", skipUnprocessableFiles, @@ -258,14 +258,14 @@ public Builder strategy(Optional strate return this; } - public SourceSftpBulkDocumentFileTypeFormatExperimental build() { + public SourceSftpBulkUnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); } if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); } - return new SourceSftpBulkDocumentFileTypeFormatExperimental( + return new SourceSftpBulkUnstructuredDocumentFormat( processing, skipUnprocessableFiles, strategy); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java new file mode 100644 index 00000000..2a300546 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java @@ -0,0 +1,293 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +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.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +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. + */ + +public class SourceSftpBulkViaAPI { + + /** + * The API key to use matching the environment + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("api_key") + private Optional apiKey; + + /** + * The URL of the unstructured API to use + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("api_url") + private Optional apiUrl; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mode") + private Optional mode; + + /** + * List of parameters send to the API + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("parameters") + private Optional> parameters; + + @JsonCreator + public SourceSftpBulkViaAPI( + @JsonProperty("api_key") Optional apiKey, + @JsonProperty("api_url") Optional apiUrl, + @JsonProperty("parameters") Optional> parameters) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(apiUrl, "apiUrl"); + Utils.checkNotNull(parameters, "parameters"); + this.apiKey = apiKey; + this.apiUrl = apiUrl; + this.mode = Builder._SINGLETON_VALUE_Mode.value(); + this.parameters = parameters; + } + + public SourceSftpBulkViaAPI() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * The API key to use matching the environment + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional apiKey() { + return (Optional) apiKey; + } + + /** + * The URL of the unstructured API to use + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional apiUrl() { + return (Optional) apiUrl; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional mode() { + return (Optional) mode; + } + + /** + * List of parameters send to the API + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> parameters() { + return (Optional>) parameters; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The API key to use matching the environment + */ + public SourceSftpBulkViaAPI withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = Optional.ofNullable(apiKey); + return this; + } + + /** + * The API key to use matching the environment + */ + public SourceSftpBulkViaAPI withApiKey(Optional apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * The URL of the unstructured API to use + */ + public SourceSftpBulkViaAPI withApiUrl(String apiUrl) { + Utils.checkNotNull(apiUrl, "apiUrl"); + this.apiUrl = Optional.ofNullable(apiUrl); + return this; + } + + /** + * The URL of the unstructured API to use + */ + public SourceSftpBulkViaAPI withApiUrl(Optional apiUrl) { + Utils.checkNotNull(apiUrl, "apiUrl"); + this.apiUrl = apiUrl; + return this; + } + + /** + * List of parameters send to the API + */ + public SourceSftpBulkViaAPI withParameters(java.util.List parameters) { + Utils.checkNotNull(parameters, "parameters"); + this.parameters = Optional.ofNullable(parameters); + return this; + } + + /** + * List of parameters send to the API + */ + public SourceSftpBulkViaAPI withParameters(Optional> parameters) { + Utils.checkNotNull(parameters, "parameters"); + this.parameters = parameters; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSftpBulkViaAPI other = (SourceSftpBulkViaAPI) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.apiUrl, other.apiUrl) && + java.util.Objects.deepEquals(this.mode, other.mode) && + java.util.Objects.deepEquals(this.parameters, other.parameters); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + apiKey, + apiUrl, + mode, + parameters); + } + + @Override + public String toString() { + return Utils.toString(SourceSftpBulkViaAPI.class, + "apiKey", apiKey, + "apiUrl", apiUrl, + "mode", mode, + "parameters", parameters); + } + + 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 + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = Optional.ofNullable(apiKey); + return this; + } + + /** + * The API key to use matching the environment + */ + public Builder apiKey(Optional apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * The URL of the unstructured API to use + */ + public Builder apiUrl(String apiUrl) { + Utils.checkNotNull(apiUrl, "apiUrl"); + this.apiUrl = Optional.ofNullable(apiUrl); + return this; + } + + /** + * The URL of the unstructured API to use + */ + public Builder apiUrl(Optional apiUrl) { + Utils.checkNotNull(apiUrl, "apiUrl"); + this.apiUrl = apiUrl; + return this; + } + + /** + * List of parameters send to the API + */ + public Builder parameters(java.util.List parameters) { + Utils.checkNotNull(parameters, "parameters"); + this.parameters = Optional.ofNullable(parameters); + return this; + } + + /** + * List of parameters send to the API + */ + public Builder parameters(Optional> parameters) { + Utils.checkNotNull(parameters, "parameters"); + this.parameters = parameters; + return this; + } + + public SourceSftpBulkViaAPI build() { + if (apiKey == null) { + apiKey = _SINGLETON_VALUE_ApiKey.value(); + } + if (apiUrl == null) { + apiUrl = _SINGLETON_VALUE_ApiUrl.value(); + } + return new SourceSftpBulkViaAPI( + apiKey, + apiUrl, + parameters); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = + new LazySingletonValue<>( + "api_key", + "\"\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_ApiUrl = + new LazySingletonValue<>( + "api_url", + "\"https://api.unstructured.io\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + new LazySingletonValue<>( + "mode", + "\"api\"", + new TypeReference>() {}); + } +} + 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 655f2968..dc1a828b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopify.java @@ -43,6 +43,20 @@ public class SourceShopify { @JsonProperty("fetch_transactions_user_id") private Optional fetchTransactionsUserId; + /** + * The threshold, after which the single BULK Job should be checkpointed. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("job_checkpoint_interval") + private Optional jobCheckpointInterval; + + /** + * 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. */ @@ -71,18 +85,24 @@ public SourceShopify( @JsonProperty("bulk_window_in_days") Optional bulkWindowInDays, @JsonProperty("credentials") Optional credentials, @JsonProperty("fetch_transactions_user_id") Optional fetchTransactionsUserId, + @JsonProperty("job_checkpoint_interval") Optional jobCheckpointInterval, + @JsonProperty("job_product_variants_include_pres_prices") Optional jobProductVariantsIncludePresPrices, @JsonProperty("job_termination_threshold") Optional jobTerminationThreshold, @JsonProperty("shop") String shop, @JsonProperty("start_date") Optional startDate) { Utils.checkNotNull(bulkWindowInDays, "bulkWindowInDays"); Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(fetchTransactionsUserId, "fetchTransactionsUserId"); + Utils.checkNotNull(jobCheckpointInterval, "jobCheckpointInterval"); + Utils.checkNotNull(jobProductVariantsIncludePresPrices, "jobProductVariantsIncludePresPrices"); Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); Utils.checkNotNull(shop, "shop"); Utils.checkNotNull(startDate, "startDate"); this.bulkWindowInDays = bulkWindowInDays; this.credentials = credentials; this.fetchTransactionsUserId = fetchTransactionsUserId; + this.jobCheckpointInterval = jobCheckpointInterval; + this.jobProductVariantsIncludePresPrices = jobProductVariantsIncludePresPrices; this.jobTerminationThreshold = jobTerminationThreshold; this.shop = shop; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); @@ -91,7 +111,7 @@ public SourceShopify( public SourceShopify( String shop) { - this(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()); } /** @@ -121,6 +141,24 @@ public Optional fetchTransactionsUserId() { return (Optional) fetchTransactionsUserId; } + /** + * The threshold, after which the single BULK Job should be checkpointed. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional jobCheckpointInterval() { + return (Optional) jobCheckpointInterval; + } + + /** + * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional jobProductVariantsIncludePresPrices() { + return (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. */ @@ -210,6 +248,42 @@ public SourceShopify withFetchTransactionsUserId(Optional fet return this; } + /** + * The threshold, after which the single BULK Job should be checkpointed. + */ + public SourceShopify withJobCheckpointInterval(long jobCheckpointInterval) { + Utils.checkNotNull(jobCheckpointInterval, "jobCheckpointInterval"); + this.jobCheckpointInterval = Optional.ofNullable(jobCheckpointInterval); + return this; + } + + /** + * The threshold, after which the single BULK Job should be checkpointed. + */ + public SourceShopify withJobCheckpointInterval(Optional jobCheckpointInterval) { + Utils.checkNotNull(jobCheckpointInterval, "jobCheckpointInterval"); + this.jobCheckpointInterval = jobCheckpointInterval; + return this; + } + + /** + * 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"); + this.jobProductVariantsIncludePresPrices = Optional.ofNullable(jobProductVariantsIncludePresPrices); + return this; + } + + /** + * 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"); + this.jobProductVariantsIncludePresPrices = jobProductVariantsIncludePresPrices; + 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. */ @@ -268,6 +342,8 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.bulkWindowInDays, other.bulkWindowInDays) && java.util.Objects.deepEquals(this.credentials, other.credentials) && java.util.Objects.deepEquals(this.fetchTransactionsUserId, other.fetchTransactionsUserId) && + java.util.Objects.deepEquals(this.jobCheckpointInterval, other.jobCheckpointInterval) && + java.util.Objects.deepEquals(this.jobProductVariantsIncludePresPrices, other.jobProductVariantsIncludePresPrices) && java.util.Objects.deepEquals(this.jobTerminationThreshold, other.jobTerminationThreshold) && java.util.Objects.deepEquals(this.shop, other.shop) && java.util.Objects.deepEquals(this.sourceType, other.sourceType) && @@ -280,6 +356,8 @@ public int hashCode() { bulkWindowInDays, credentials, fetchTransactionsUserId, + jobCheckpointInterval, + jobProductVariantsIncludePresPrices, jobTerminationThreshold, shop, sourceType, @@ -292,6 +370,8 @@ public String toString() { "bulkWindowInDays", bulkWindowInDays, "credentials", credentials, "fetchTransactionsUserId", fetchTransactionsUserId, + "jobCheckpointInterval", jobCheckpointInterval, + "jobProductVariantsIncludePresPrices", jobProductVariantsIncludePresPrices, "jobTerminationThreshold", jobTerminationThreshold, "shop", shop, "sourceType", sourceType, @@ -306,6 +386,10 @@ public final static class Builder { private Optional fetchTransactionsUserId; + private Optional jobCheckpointInterval; + + private Optional jobProductVariantsIncludePresPrices; + private Optional jobTerminationThreshold; private String shop; @@ -370,6 +454,42 @@ public Builder fetchTransactionsUserId(Optional fetchTransact return this; } + /** + * The threshold, after which the single BULK Job should be checkpointed. + */ + public Builder jobCheckpointInterval(long jobCheckpointInterval) { + Utils.checkNotNull(jobCheckpointInterval, "jobCheckpointInterval"); + this.jobCheckpointInterval = Optional.ofNullable(jobCheckpointInterval); + return this; + } + + /** + * The threshold, after which the single BULK Job should be checkpointed. + */ + public Builder jobCheckpointInterval(Optional jobCheckpointInterval) { + Utils.checkNotNull(jobCheckpointInterval, "jobCheckpointInterval"); + this.jobCheckpointInterval = jobCheckpointInterval; + return this; + } + + /** + * 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"); + this.jobProductVariantsIncludePresPrices = Optional.ofNullable(jobProductVariantsIncludePresPrices); + return this; + } + + /** + * 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"); + this.jobProductVariantsIncludePresPrices = jobProductVariantsIncludePresPrices; + 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. */ @@ -422,6 +542,12 @@ public SourceShopify build() { if (fetchTransactionsUserId == null) { fetchTransactionsUserId = _SINGLETON_VALUE_FetchTransactionsUserId.value(); } + if (jobCheckpointInterval == null) { + jobCheckpointInterval = _SINGLETON_VALUE_JobCheckpointInterval.value(); + } + if (jobProductVariantsIncludePresPrices == null) { + jobProductVariantsIncludePresPrices = _SINGLETON_VALUE_JobProductVariantsIncludePresPrices.value(); + } if (jobTerminationThreshold == null) { jobTerminationThreshold = _SINGLETON_VALUE_JobTerminationThreshold.value(); } @@ -432,6 +558,8 @@ public SourceShopify build() { bulkWindowInDays, credentials, fetchTransactionsUserId, + jobCheckpointInterval, + jobProductVariantsIncludePresPrices, jobTerminationThreshold, shop, startDate); @@ -449,10 +577,22 @@ public SourceShopify build() { "false", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_JobCheckpointInterval = + new LazySingletonValue<>( + "job_checkpoint_interval", + "100000", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_JobProductVariantsIncludePresPrices = + new LazySingletonValue<>( + "job_product_variants_include_pres_prices", + "true", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_JobTerminationThreshold = new LazySingletonValue<>( "job_termination_threshold", - "3600", + "7200", new TypeReference>() {}); private static final LazySingletonValue _SINGLETON_VALUE_SourceType = 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 daf20e59..753ec04f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStrava.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStrava.java @@ -53,7 +53,7 @@ public class SourceStrava { private String refreshToken; @JsonProperty("sourceType") - private SourceStravaStrava sourceType; + private Strava sourceType; /** * UTC date and time. Any data before this date will not be replicated. @@ -121,7 +121,7 @@ public String refreshToken() { } @JsonIgnore - public SourceStravaStrava sourceType() { + public Strava sourceType() { return sourceType; } @@ -301,11 +301,11 @@ public SourceStrava build() { "\"Client\"", new TypeReference>() {}); - private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"strava\"", - new TypeReference() {}); + new TypeReference() {}); } } 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 d5bb4f67..f280adac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java @@ -21,15 +21,37 @@ 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 + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("comic_number") + private Optional comicNumber; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") private Optional sourceType; @JsonCreator - public SourceXkcd() { - + public SourceXkcd( + @JsonProperty("comic_number") Optional comicNumber) { + Utils.checkNotNull(comicNumber, "comicNumber"); + this.comicNumber = comicNumber; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); } + + public SourceXkcd() { + this(Optional.empty()); + } + + /** + * Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional comicNumber() { + return (Optional) comicNumber; + } @SuppressWarnings("unchecked") @JsonIgnore @@ -40,6 +62,24 @@ public Optional sourceType() { public final 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 + */ + public SourceXkcd withComicNumber(String comicNumber) { + Utils.checkNotNull(comicNumber, "comicNumber"); + this.comicNumber = Optional.ofNullable(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 + */ + public SourceXkcd withComicNumber(Optional comicNumber) { + Utils.checkNotNull(comicNumber, "comicNumber"); + this.comicNumber = comicNumber; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -51,32 +91,64 @@ public boolean equals(java.lang.Object o) { } SourceXkcd other = (SourceXkcd) o; return + java.util.Objects.deepEquals(this.comicNumber, other.comicNumber) && java.util.Objects.deepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { return java.util.Objects.hash( + comicNumber, sourceType); } @Override public String toString() { return Utils.toString(SourceXkcd.class, + "comicNumber", comicNumber, "sourceType", sourceType); } - public final static class Builder { + 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 + */ + public Builder comicNumber(String comicNumber) { + Utils.checkNotNull(comicNumber, "comicNumber"); + this.comicNumber = Optional.ofNullable(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 + */ + 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", + "\"2960\"", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", 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 9ce0b3bd..2bad9021 100644 --- a/src/main/java/com/airbyte/api/models/shared/Strava.java +++ b/src/main/java/com/airbyte/api/models/shared/Strava.java @@ -8,183 +8,24 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonFormat; 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.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; import java.lang.Deprecated; import java.math.BigDecimal; import java.math.BigInteger; -import java.util.Optional; -public class Strava { +public enum Strava { + STRAVA("strava"); - /** - * The Client ID of your Strava developer application. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("client_id") - private Optional clientId; + @JsonValue + private final String value; - /** - * The Client Secret of your Strava developer application. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("client_secret") - private Optional clientSecret; - - @JsonCreator - public Strava( - @JsonProperty("client_id") Optional clientId, - @JsonProperty("client_secret") Optional clientSecret) { - Utils.checkNotNull(clientId, "clientId"); - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientId = clientId; - this.clientSecret = clientSecret; - } - - public Strava() { - this(Optional.empty(), Optional.empty()); - } - - /** - * The Client ID of your Strava developer application. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional clientId() { - return (Optional) clientId; - } - - /** - * The Client Secret of your Strava developer application. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional clientSecret() { - return (Optional) clientSecret; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The Client ID of your Strava developer application. - */ - public Strava withClientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = Optional.ofNullable(clientId); - return this; - } - - /** - * The Client ID of your Strava developer application. - */ - public Strava withClientId(Optional clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * The Client Secret of your Strava developer application. - */ - public Strava withClientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = Optional.ofNullable(clientSecret); - return this; - } - - /** - * The Client Secret of your Strava developer application. - */ - public Strava 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; - } - Strava other = (Strava) o; - return - java.util.Objects.deepEquals(this.clientId, other.clientId) && - java.util.Objects.deepEquals(this.clientSecret, other.clientSecret); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - clientId, - clientSecret); + private Strava(String value) { + this.value = value; } - @Override - public String toString() { - return Utils.toString(Strava.class, - "clientId", clientId, - "clientSecret", clientSecret); - } - - 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 Strava developer application. - */ - public Builder clientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = Optional.ofNullable(clientId); - return this; - } - - /** - * The Client ID of your Strava developer application. - */ - public Builder clientId(Optional clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * The Client Secret of your Strava developer application. - */ - public Builder clientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = Optional.ofNullable(clientSecret); - return this; - } - - /** - * The Client Secret of your Strava developer application. - */ - public Builder clientSecret(Optional clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; - return this; - } - - public Strava build() { - return new Strava( - clientId, - clientSecret); - } + public String value() { + return 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 new file mode 100644 index 00000000..29bebf33 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Timeplus.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). 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.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public enum Timeplus { + TIMEPLUS("timeplus"); + + @JsonValue + private final String value; + + private Timeplus(String value) { + this.value = value; + } + + public String value() { + return 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 c16296f8..c14dddfc 100644 --- a/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java @@ -26,14 +26,14 @@ public class UnstructuredDocumentFormat { @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") - private Optional filetype; + private Optional filetype; /** * Processing configuration */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("processing") - private Optional 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. @@ -47,13 +47,13 @@ public class UnstructuredDocumentFormat { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strategy") - private Optional strategy; + private Optional strategy; @JsonCreator public UnstructuredDocumentFormat( - @JsonProperty("processing") Optional processing, + @JsonProperty("processing") Optional processing, @JsonProperty("skip_unprocessable_files") Optional skipUnprocessableFiles, - @JsonProperty("strategy") Optional strategy) { + @JsonProperty("strategy") Optional strategy) { Utils.checkNotNull(processing, "processing"); Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); Utils.checkNotNull(strategy, "strategy"); @@ -69,8 +69,8 @@ public UnstructuredDocumentFormat() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional filetype() { - return (Optional) filetype; + public Optional filetype() { + return (Optional) filetype; } /** @@ -78,8 +78,8 @@ public Optional filet */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional processing() { - return (Optional) processing; + public Optional processing() { + return (Optional) processing; } /** @@ -96,8 +96,8 @@ public Optional skipUnprocessableFiles() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional strategy() { - return (Optional) strategy; + public Optional strategy() { + return (Optional) strategy; } public final static Builder builder() { @@ -107,7 +107,7 @@ public final static Builder builder() { /** * Processing configuration */ - public UnstructuredDocumentFormat withProcessing(SourceMicrosoftOnedriveProcessing processing) { + public UnstructuredDocumentFormat withProcessing(SourceGcsProcessing processing) { Utils.checkNotNull(processing, "processing"); this.processing = Optional.ofNullable(processing); return this; @@ -116,7 +116,7 @@ public UnstructuredDocumentFormat withProcessing(SourceMicrosoftOnedriveProcessi /** * Processing configuration */ - public UnstructuredDocumentFormat withProcessing(Optional processing) { + public UnstructuredDocumentFormat withProcessing(Optional processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; @@ -143,7 +143,7 @@ public UnstructuredDocumentFormat withSkipUnprocessableFiles(Optional strategy) { + public UnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; @@ -194,11 +194,11 @@ public String toString() { public final static class Builder { - private Optional processing = Optional.empty(); + private Optional processing = Optional.empty(); private Optional skipUnprocessableFiles; - private Optional strategy; + private Optional strategy; private Builder() { // force use of static builder() method @@ -207,7 +207,7 @@ private Builder() { /** * Processing configuration */ - public Builder processing(SourceMicrosoftOnedriveProcessing processing) { + public Builder processing(SourceGcsProcessing processing) { Utils.checkNotNull(processing, "processing"); this.processing = Optional.ofNullable(processing); return this; @@ -216,7 +216,7 @@ public Builder processing(SourceMicrosoftOnedriveProcessing processing) { /** * Processing configuration */ - public Builder processing(Optional processing) { + public Builder processing(Optional processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; @@ -243,7 +243,7 @@ public Builder skipUnprocessableFiles(Optional skipUnprocessa /** * 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) { + public Builder strategy(SourceGcsParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = Optional.ofNullable(strategy); return this; @@ -252,7 +252,7 @@ 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 */ - public Builder strategy(Optional strategy) { + public Builder strategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; @@ -271,11 +271,11 @@ public UnstructuredDocumentFormat build() { strategy); } - private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", "\"unstructured\"", - new TypeReference>() {}); + new TypeReference>() {}); private static final LazySingletonValue> _SINGLETON_VALUE_SkipUnprocessableFiles = new LazySingletonValue<>( @@ -283,11 +283,11 @@ public UnstructuredDocumentFormat build() { "true", new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_Strategy = + private static final LazySingletonValue> _SINGLETON_VALUE_Strategy = new LazySingletonValue<>( "strategy", "\"auto\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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 7f7c6ac4..1f9d2e2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java @@ -23,7 +23,7 @@ public class UsernameAndPassword { @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") - private Optional authType; + private Optional authType; /** * Enter the password associated with the username. @@ -41,8 +41,8 @@ public UsernameAndPassword( @SuppressWarnings("unchecked") @JsonIgnore - public Optional authType() { - return (Optional) authType; + public Optional authType() { + return (Optional) authType; } /** @@ -116,11 +116,11 @@ public UsernameAndPassword build() { password); } - private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"Username and Password\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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 321d6cf4..cace4e80 100644 --- a/src/main/java/com/airbyte/api/models/shared/ViaAPI.java +++ b/src/main/java/com/airbyte/api/models/shared/ViaAPI.java @@ -40,7 +40,7 @@ public class ViaAPI { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; /** * List of parameters send to the API @@ -87,8 +87,8 @@ public Optional apiUrl() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } /** @@ -283,11 +283,11 @@ public ViaAPI build() { "\"https://api.unstructured.io\"", new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"api\"", - new TypeReference>() {}); + new TypeReference>() {}); } }