From 1716e3301070e0faefc4a1c3213fcde257d44f2e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 23 Oct 2024 00:18:47 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.337.1 --- .speakeasy/gen.lock | 128 ++++- .speakeasy/workflow.lock | 10 +- README.md | 4 +- RELEASES.md | 12 +- build.gradle | 4 +- docs/models/shared/Algolia.md | 8 + docs/models/shared/Beamer.md | 8 + docs/models/shared/CatalogType.md | 8 + docs/models/shared/DestinationDevNull.md | 9 + .../shared/DestinationDevNullLoggingType.md | 8 + .../DestinationDevNullSchemasLoggingType.md | 8 + ...hemasTestDestinationTestDestinationType.md | 8 + ...nationDevNullSchemasTestDestinationType.md | 8 + .../DestinationDevNullTestDestinationType.md | 8 + docs/models/shared/DestinationIceberg.md | 11 + .../shared/DestinationIcebergCatalogType.md | 8 + docs/models/shared/DestinationIcebergS3.md | 16 + .../DestinationIcebergS3BucketRegion.md | 43 ++ ...nIcebergSchemasCatalogConfigCatalogType.md | 8 + ...ogConfigIcebergCatalogConfigCatalogType.md | 8 + .../DestinationIcebergSchemasCatalogType.md | 8 + .../shared/DestinationIcebergStorageType.md | 8 + docs/models/shared/DevNull.md | 8 + docs/models/shared/DropboxSign.md | 8 + docs/models/shared/Eventbrite.md | 8 + docs/models/shared/EveryNThEntry.md | 12 + docs/models/shared/Failing.md | 9 + docs/models/shared/FileFormat.md | 21 +- docs/models/shared/FileStorageFormat.md | 9 + docs/models/shared/FirstNEntries.md | 11 + docs/models/shared/Freshchat.md | 8 + docs/models/shared/GlueCatalog.md | 11 + ...rchicalFileSystemsAsSameAsStorageConfig.md | 11 + .../HiveCatalogUseApacheHiveMetaStore.md | 10 + docs/models/shared/Iceberg.md | 8 + docs/models/shared/IcebergCatalogConfig.md | 4 + .../JdbcCatalogUseRelationalDatabase.md | 16 + docs/models/shared/Kissmetrics.md | 8 + docs/models/shared/Lob.md | 8 + docs/models/shared/Logging.md | 9 + docs/models/shared/LoggingConfiguration.md | 4 + docs/models/shared/LoggingType.md | 8 + docs/models/shared/PostgresConnection.md | 4 +- docs/models/shared/RESTCatalog.md | 13 + docs/models/shared/RandomSampling.md | 13 + docs/models/shared/Rollbar.md | 8 + docs/models/shared/ServerManaged.md | 11 + docs/models/shared/Silent.md | 8 + docs/models/shared/SourceAlgolia.md | 13 + docs/models/shared/SourceBeamer.md | 10 + docs/models/shared/SourceDropboxSign.md | 10 + docs/models/shared/SourceEventbrite.md | 10 + docs/models/shared/SourceFile.md | 2 +- docs/models/shared/SourceFileFileFormat.md | 18 + docs/models/shared/SourceFreshchat.md | 11 + docs/models/shared/SourceKissmetrics.md | 10 + docs/models/shared/SourceLob.md | 11 + docs/models/shared/SourceRollbar.md | 11 + docs/models/shared/SourceSplitIo.md | 10 + docs/models/shared/SourceVwo.md | 10 + docs/models/shared/SplitIo.md | 8 + docs/models/shared/StorageConfig.md | 4 + docs/models/shared/StorageType.md | 8 + docs/models/shared/TestDestination.md | 4 + docs/models/shared/TestDestinationType.md | 8 + docs/models/shared/Throttled.md | 9 + docs/models/shared/Vwo.md | 8 + gen.yaml | 2 +- .../com/airbyte/api/SDKConfiguration.java | 4 +- .../airbyte/api/models/shared/Algolia.java | 31 ++ .../com/airbyte/api/models/shared/Beamer.java | 31 ++ .../api/models/shared/CatalogType.java | 31 ++ .../shared/DestinationConfiguration.java | 14 + .../api/models/shared/DestinationDevNull.java | 121 +++++ .../shared/DestinationDevNullLoggingType.java | 31 ++ .../DestinationDevNullSchemasLoggingType.java | 31 ++ ...masTestDestinationTestDestinationType.java | 31 ++ ...tionDevNullSchemasTestDestinationType.java | 31 ++ ...DestinationDevNullTestDestinationType.java | 31 ++ .../api/models/shared/DestinationIceberg.java | 203 +++++++ .../shared/DestinationIcebergCatalogType.java | 31 ++ .../models/shared/DestinationIcebergS3.java | 460 ++++++++++++++++ .../DestinationIcebergS3BucketRegion.java | 67 +++ ...cebergSchemasCatalogConfigCatalogType.java | 31 ++ ...ConfigIcebergCatalogConfigCatalogType.java | 31 ++ .../DestinationIcebergSchemasCatalogType.java | 31 ++ .../shared/DestinationIcebergStorageType.java | 31 ++ .../airbyte/api/models/shared/DevNull.java | 31 ++ .../api/models/shared/DropboxSign.java | 31 ++ .../airbyte/api/models/shared/Eventbrite.java | 31 ++ .../api/models/shared/EveryNThEntry.java | 236 +++++++++ .../airbyte/api/models/shared/Failing.java | 126 +++++ .../airbyte/api/models/shared/FileFormat.java | 334 +++++++++++- .../api/models/shared/FileStorageFormat.java | 32 ++ .../api/models/shared/FirstNEntries.java | 194 +++++++ .../airbyte/api/models/shared/Freshchat.java | 31 ++ .../api/models/shared/GlueCatalog.java | 194 +++++++ ...hicalFileSystemsAsSameAsStorageConfig.java | 194 +++++++ .../HiveCatalogUseApacheHiveMetaStore.java | 233 ++++++++ .../airbyte/api/models/shared/Iceberg.java | 31 ++ .../models/shared/IcebergCatalogConfig.java | 124 +++++ .../JdbcCatalogUseRelationalDatabase.java | 499 ++++++++++++++++++ .../api/models/shared/Kissmetrics.java | 31 ++ .../com/airbyte/api/models/shared/Lob.java | 31 ++ .../airbyte/api/models/shared/Logging.java | 126 +++++ .../models/shared/LoggingConfiguration.java | 110 ++++ .../api/models/shared/LoggingType.java | 31 ++ .../api/models/shared/PostgresConnection.java | 90 +++- .../api/models/shared/RESTCatalog.java | 240 +++++++++ .../api/models/shared/RandomSampling.java | 325 ++++++++++++ .../airbyte/api/models/shared/Rollbar.java | 31 ++ .../api/models/shared/ServerManaged.java | 166 ++++++ .../com/airbyte/api/models/shared/Silent.java | 87 +++ .../api/models/shared/SourceAlgolia.java | 332 ++++++++++++ .../api/models/shared/SourceBeamer.java | 141 +++++ .../models/shared/SourceConfiguration.java | 70 +++ .../api/models/shared/SourceDropboxSign.java | 153 ++++++ .../api/models/shared/SourceEventbrite.java | 153 ++++++ .../airbyte/api/models/shared/SourceFile.java | 22 +- .../models/shared/SourceFileFileFormat.java | 42 ++ .../api/models/shared/SourceFreshchat.java | 182 +++++++ .../api/models/shared/SourceKissmetrics.java | 160 ++++++ .../airbyte/api/models/shared/SourceLob.java | 232 ++++++++ .../api/models/shared/SourceRollbar.java | 170 ++++++ .../api/models/shared/SourceSplitIo.java | 141 +++++ .../airbyte/api/models/shared/SourceVwo.java | 141 +++++ .../airbyte/api/models/shared/SplitIo.java | 31 ++ .../api/models/shared/StorageConfig.java | 103 ++++ .../api/models/shared/StorageType.java | 31 ++ .../api/models/shared/TestDestination.java | 117 ++++ .../models/shared/TestDestinationType.java | 31 ++ .../airbyte/api/models/shared/Throttled.java | 126 +++++ .../com/airbyte/api/models/shared/Vwo.java | 31 ++ 133 files changed, 7960 insertions(+), 76 deletions(-) create mode 100644 docs/models/shared/Algolia.md create mode 100644 docs/models/shared/Beamer.md create mode 100644 docs/models/shared/CatalogType.md create mode 100644 docs/models/shared/DestinationDevNull.md create mode 100644 docs/models/shared/DestinationDevNullLoggingType.md create mode 100644 docs/models/shared/DestinationDevNullSchemasLoggingType.md create mode 100644 docs/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.md create mode 100644 docs/models/shared/DestinationDevNullSchemasTestDestinationType.md create mode 100644 docs/models/shared/DestinationDevNullTestDestinationType.md create mode 100644 docs/models/shared/DestinationIceberg.md create mode 100644 docs/models/shared/DestinationIcebergCatalogType.md create mode 100644 docs/models/shared/DestinationIcebergS3.md create mode 100644 docs/models/shared/DestinationIcebergS3BucketRegion.md create mode 100644 docs/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.md create mode 100644 docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.md create mode 100644 docs/models/shared/DestinationIcebergSchemasCatalogType.md create mode 100644 docs/models/shared/DestinationIcebergStorageType.md create mode 100644 docs/models/shared/DevNull.md create mode 100644 docs/models/shared/DropboxSign.md create mode 100644 docs/models/shared/Eventbrite.md create mode 100644 docs/models/shared/EveryNThEntry.md create mode 100644 docs/models/shared/Failing.md create mode 100644 docs/models/shared/FileStorageFormat.md create mode 100644 docs/models/shared/FirstNEntries.md create mode 100644 docs/models/shared/Freshchat.md create mode 100644 docs/models/shared/GlueCatalog.md create mode 100644 docs/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.md create mode 100644 docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md create mode 100644 docs/models/shared/Iceberg.md create mode 100644 docs/models/shared/IcebergCatalogConfig.md create mode 100644 docs/models/shared/JdbcCatalogUseRelationalDatabase.md create mode 100644 docs/models/shared/Kissmetrics.md create mode 100644 docs/models/shared/Lob.md create mode 100644 docs/models/shared/Logging.md create mode 100644 docs/models/shared/LoggingConfiguration.md create mode 100644 docs/models/shared/LoggingType.md create mode 100644 docs/models/shared/RESTCatalog.md create mode 100644 docs/models/shared/RandomSampling.md create mode 100644 docs/models/shared/Rollbar.md create mode 100644 docs/models/shared/ServerManaged.md create mode 100644 docs/models/shared/Silent.md create mode 100644 docs/models/shared/SourceAlgolia.md create mode 100644 docs/models/shared/SourceBeamer.md create mode 100644 docs/models/shared/SourceDropboxSign.md create mode 100644 docs/models/shared/SourceEventbrite.md create mode 100644 docs/models/shared/SourceFileFileFormat.md create mode 100644 docs/models/shared/SourceFreshchat.md create mode 100644 docs/models/shared/SourceKissmetrics.md create mode 100644 docs/models/shared/SourceLob.md create mode 100644 docs/models/shared/SourceRollbar.md create mode 100644 docs/models/shared/SourceSplitIo.md create mode 100644 docs/models/shared/SourceVwo.md create mode 100644 docs/models/shared/SplitIo.md create mode 100644 docs/models/shared/StorageConfig.md create mode 100644 docs/models/shared/StorageType.md create mode 100644 docs/models/shared/TestDestination.md create mode 100644 docs/models/shared/TestDestinationType.md create mode 100644 docs/models/shared/Throttled.md create mode 100644 docs/models/shared/Vwo.md create mode 100644 src/main/java/com/airbyte/api/models/shared/Algolia.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Beamer.java create mode 100644 src/main/java/com/airbyte/api/models/shared/CatalogType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationIceberg.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DevNull.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DropboxSign.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Eventbrite.java create mode 100644 src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Failing.java create mode 100644 src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java create mode 100644 src/main/java/com/airbyte/api/models/shared/FirstNEntries.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Freshchat.java create mode 100644 src/main/java/com/airbyte/api/models/shared/GlueCatalog.java create mode 100644 src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java create mode 100644 src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Iceberg.java create mode 100644 src/main/java/com/airbyte/api/models/shared/IcebergCatalogConfig.java create mode 100644 src/main/java/com/airbyte/api/models/shared/JdbcCatalogUseRelationalDatabase.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Kissmetrics.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Lob.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Logging.java create mode 100644 src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java create mode 100644 src/main/java/com/airbyte/api/models/shared/LoggingType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/RESTCatalog.java create mode 100644 src/main/java/com/airbyte/api/models/shared/RandomSampling.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Rollbar.java create mode 100644 src/main/java/com/airbyte/api/models/shared/ServerManaged.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Silent.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceBeamer.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceLob.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceRollbar.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceVwo.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SplitIo.java create mode 100644 src/main/java/com/airbyte/api/models/shared/StorageConfig.java create mode 100644 src/main/java/com/airbyte/api/models/shared/StorageType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/TestDestination.java create mode 100644 src/main/java/com/airbyte/api/models/shared/TestDestinationType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Throttled.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Vwo.java diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1bb125054..733bf90be 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: 1308fa7ec8504c6d50430974d4647f3f + docChecksum: 6596a842605e55092c4ef088c92feba8 docVersion: 1.0.0 speakeasyVersion: 1.337.1 generationVersion: 2.373.2 - releaseVersion: 1.5.10 - configChecksum: 849346c40e6723c0675b0bacc97f7073 + releaseVersion: 1.5.11 + configChecksum: ff7da1556d633e1b2358345ff1fc8dd4 repoURL: https://github.com/airbytehq/airbyte-api-java-sdk.git repoSubDirectory: . published: true @@ -289,6 +289,24 @@ generatedFiles: - 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 + - src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java + - src/main/java/com/airbyte/api/models/shared/Failing.java + - src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java + - src/main/java/com/airbyte/api/models/shared/Throttled.java + - src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java + - src/main/java/com/airbyte/api/models/shared/Silent.java + - src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java + - src/main/java/com/airbyte/api/models/shared/RandomSampling.java + - src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java + - src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java + - src/main/java/com/airbyte/api/models/shared/LoggingType.java + - src/main/java/com/airbyte/api/models/shared/FirstNEntries.java + - src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java + - src/main/java/com/airbyte/api/models/shared/TestDestinationType.java + - src/main/java/com/airbyte/api/models/shared/Logging.java + - src/main/java/com/airbyte/api/models/shared/TestDestination.java + - src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java - src/main/java/com/airbyte/api/models/shared/Duckdb.java - src/main/java/com/airbyte/api/models/shared/DestinationDuckdb.java - src/main/java/com/airbyte/api/models/shared/Dynamodb.java @@ -359,6 +377,27 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationGcsOutputFormat.java - src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java - src/main/java/com/airbyte/api/models/shared/DestinationGcs.java + - src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java + - src/main/java/com/airbyte/api/models/shared/GlueCatalog.java + - src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java + - src/main/java/com/airbyte/api/models/shared/RESTCatalog.java + - src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java + - src/main/java/com/airbyte/api/models/shared/JdbcCatalogUseRelationalDatabase.java + - src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java + - src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java + - src/main/java/com/airbyte/api/models/shared/CatalogType.java + - src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java + - src/main/java/com/airbyte/api/models/shared/IcebergCatalogConfig.java + - src/main/java/com/airbyte/api/models/shared/Iceberg.java + - src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java + - src/main/java/com/airbyte/api/models/shared/FileFormat.java + - src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java + - src/main/java/com/airbyte/api/models/shared/ServerManaged.java + - src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java + - src/main/java/com/airbyte/api/models/shared/StorageType.java + - src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java + - src/main/java/com/airbyte/api/models/shared/StorageConfig.java + - src/main/java/com/airbyte/api/models/shared/DestinationIceberg.java - src/main/java/com/airbyte/api/models/shared/Milvus.java - src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java - src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAICompatible.java @@ -788,6 +827,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java - src/main/java/com/airbyte/api/models/shared/SourceAirtable.java + - src/main/java/com/airbyte/api/models/shared/Algolia.java + - src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java - src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java - src/main/java/com/airbyte/api/models/shared/Region.java - src/main/java/com/airbyte/api/models/shared/ReportRecordTypes.java @@ -872,6 +913,8 @@ generatedFiles: - 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/Beamer.java + - src/main/java/com/airbyte/api/models/shared/SourceBeamer.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 @@ -969,11 +1012,15 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java - src/main/java/com/airbyte/api/models/shared/Dremio.java - src/main/java/com/airbyte/api/models/shared/SourceDremio.java + - src/main/java/com/airbyte/api/models/shared/DropboxSign.java + - src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java - src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java - src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java - src/main/java/com/airbyte/api/models/shared/SourceDynamodb.java - src/main/java/com/airbyte/api/models/shared/Emailoctopus.java - src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java + - src/main/java/com/airbyte/api/models/shared/Eventbrite.java + - src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java - src/main/java/com/airbyte/api/models/shared/ExchangeRates.java - src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java - src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java @@ -1004,7 +1051,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Collection.java - src/main/java/com/airbyte/api/models/shared/Fauna.java - src/main/java/com/airbyte/api/models/shared/SourceFauna.java - - src/main/java/com/airbyte/api/models/shared/FileFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java - src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java - src/main/java/com/airbyte/api/models/shared/LocalFilesystemLimited.java - src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java @@ -1030,6 +1077,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceFleetio.java - src/main/java/com/airbyte/api/models/shared/Freshcaller.java - src/main/java/com/airbyte/api/models/shared/SourceFreshcaller.java + - src/main/java/com/airbyte/api/models/shared/Freshchat.java + - src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java - src/main/java/com/airbyte/api/models/shared/Freshdesk.java - src/main/java/com/airbyte/api/models/shared/SourceFreshdesk.java - src/main/java/com/airbyte/api/models/shared/Freshsales.java @@ -1465,6 +1514,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceJotform.java - src/main/java/com/airbyte/api/models/shared/K6Cloud.java - src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java + - src/main/java/com/airbyte/api/models/shared/Kissmetrics.java + - src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java - src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java - src/main/java/com/airbyte/api/models/shared/Klarna.java - src/main/java/com/airbyte/api/models/shared/SourceKlarna.java @@ -1506,6 +1557,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java - src/main/java/com/airbyte/api/models/shared/Linnworks.java - src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java + - src/main/java/com/airbyte/api/models/shared/Lob.java + - src/main/java/com/airbyte/api/models/shared/SourceLob.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 @@ -1828,6 +1881,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceRetently.java - src/main/java/com/airbyte/api/models/shared/RkiCovid.java - src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java + - src/main/java/com/airbyte/api/models/shared/Rollbar.java + - src/main/java/com/airbyte/api/models/shared/SourceRollbar.java - src/main/java/com/airbyte/api/models/shared/Rss.java - src/main/java/com/airbyte/api/models/shared/SourceRss.java - src/main/java/com/airbyte/api/models/shared/SourceS3S3.java @@ -1975,6 +2030,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java - src/main/java/com/airbyte/api/models/shared/SpacexApi.java - src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java + - src/main/java/com/airbyte/api/models/shared/SplitIo.java + - src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java - src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java - src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java @@ -2042,6 +2099,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java - src/main/java/com/airbyte/api/models/shared/Vantage.java - src/main/java/com/airbyte/api/models/shared/SourceVantage.java + - src/main/java/com/airbyte/api/models/shared/Vwo.java + - src/main/java/com/airbyte/api/models/shared/SourceVwo.java - src/main/java/com/airbyte/api/models/shared/Webflow.java - src/main/java/com/airbyte/api/models/shared/SourceWebflow.java - src/main/java/com/airbyte/api/models/shared/WhenIWork.java @@ -2351,6 +2410,24 @@ generatedFiles: - docs/models/shared/Authentication.md - docs/models/shared/Databricks.md - docs/models/shared/DestinationDatabricks.md + - docs/models/shared/DevNull.md + - docs/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.md + - docs/models/shared/Failing.md + - docs/models/shared/DestinationDevNullSchemasTestDestinationType.md + - docs/models/shared/Throttled.md + - docs/models/shared/DestinationDevNullTestDestinationType.md + - docs/models/shared/Silent.md + - docs/models/shared/DestinationDevNullSchemasLoggingType.md + - docs/models/shared/RandomSampling.md + - docs/models/shared/DestinationDevNullLoggingType.md + - docs/models/shared/EveryNThEntry.md + - docs/models/shared/LoggingType.md + - docs/models/shared/FirstNEntries.md + - docs/models/shared/LoggingConfiguration.md + - docs/models/shared/TestDestinationType.md + - docs/models/shared/Logging.md + - docs/models/shared/TestDestination.md + - docs/models/shared/DestinationDevNull.md - docs/models/shared/Duckdb.md - docs/models/shared/DestinationDuckdb.md - docs/models/shared/Dynamodb.md @@ -2421,6 +2498,27 @@ generatedFiles: - docs/models/shared/DestinationGcsOutputFormat.md - docs/models/shared/GCSBucketRegion.md - docs/models/shared/DestinationGcs.md + - docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.md + - docs/models/shared/GlueCatalog.md + - docs/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.md + - docs/models/shared/RESTCatalog.md + - docs/models/shared/DestinationIcebergSchemasCatalogType.md + - docs/models/shared/JdbcCatalogUseRelationalDatabase.md + - docs/models/shared/DestinationIcebergCatalogType.md + - docs/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.md + - docs/models/shared/CatalogType.md + - docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md + - docs/models/shared/IcebergCatalogConfig.md + - docs/models/shared/Iceberg.md + - docs/models/shared/FileStorageFormat.md + - docs/models/shared/FileFormat.md + - docs/models/shared/DestinationIcebergStorageType.md + - docs/models/shared/ServerManaged.md + - docs/models/shared/DestinationIcebergS3BucketRegion.md + - docs/models/shared/StorageType.md + - docs/models/shared/DestinationIcebergS3.md + - docs/models/shared/StorageConfig.md + - docs/models/shared/DestinationIceberg.md - docs/models/shared/Milvus.md - docs/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.md - docs/models/shared/DestinationMilvusOpenAICompatible.md @@ -2850,6 +2948,8 @@ generatedFiles: - docs/models/shared/SourceAirtableAuthentication.md - docs/models/shared/SourceAirtableAirtable.md - docs/models/shared/SourceAirtable.md + - docs/models/shared/Algolia.md + - docs/models/shared/SourceAlgolia.md - docs/models/shared/SourceAmazonAdsAuthType.md - docs/models/shared/Region.md - docs/models/shared/ReportRecordTypes.md @@ -2934,6 +3034,8 @@ generatedFiles: - docs/models/shared/SourceBambooHr.md - docs/models/shared/Basecamp.md - docs/models/shared/SourceBasecamp.md + - docs/models/shared/Beamer.md + - docs/models/shared/SourceBeamer.md - docs/models/shared/SourceBigqueryBigquery.md - docs/models/shared/SourceBigquery.md - docs/models/shared/Operator.md @@ -3031,11 +3133,15 @@ generatedFiles: - docs/models/shared/SourceDockerhub.md - docs/models/shared/Dremio.md - docs/models/shared/SourceDremio.md + - docs/models/shared/DropboxSign.md + - docs/models/shared/SourceDropboxSign.md - docs/models/shared/SourceDynamodbDynamodbRegion.md - docs/models/shared/SourceDynamodbDynamodb.md - docs/models/shared/SourceDynamodb.md - docs/models/shared/Emailoctopus.md - docs/models/shared/SourceEmailoctopus.md + - docs/models/shared/Eventbrite.md + - docs/models/shared/SourceEventbrite.md - docs/models/shared/ExchangeRates.md - docs/models/shared/SourceExchangeRates.md - docs/models/shared/Ezofficeinventory.md @@ -3066,7 +3172,7 @@ generatedFiles: - docs/models/shared/Collection.md - docs/models/shared/Fauna.md - docs/models/shared/SourceFauna.md - - docs/models/shared/FileFormat.md + - docs/models/shared/SourceFileFileFormat.md - docs/models/shared/SourceFileSchemasProviderStorageProvider8Storage.md - docs/models/shared/LocalFilesystemLimited.md - docs/models/shared/SourceFileSchemasProviderStorageProvider7Storage.md @@ -3092,6 +3198,8 @@ generatedFiles: - docs/models/shared/SourceFleetio.md - docs/models/shared/Freshcaller.md - docs/models/shared/SourceFreshcaller.md + - docs/models/shared/Freshchat.md + - docs/models/shared/SourceFreshchat.md - docs/models/shared/Freshdesk.md - docs/models/shared/SourceFreshdesk.md - docs/models/shared/Freshsales.md @@ -3527,6 +3635,8 @@ generatedFiles: - docs/models/shared/SourceJotform.md - docs/models/shared/K6Cloud.md - docs/models/shared/SourceK6Cloud.md + - docs/models/shared/Kissmetrics.md + - docs/models/shared/SourceKissmetrics.md - docs/models/shared/SourceKlarnaRegion.md - docs/models/shared/Klarna.md - docs/models/shared/SourceKlarna.md @@ -3568,6 +3678,8 @@ generatedFiles: - docs/models/shared/SourceLinkedinPages.md - docs/models/shared/Linnworks.md - docs/models/shared/SourceLinnworks.md + - docs/models/shared/Lob.md + - docs/models/shared/SourceLob.md - docs/models/shared/Lokalise.md - docs/models/shared/SourceLokalise.md - docs/models/shared/Looker.md @@ -3890,6 +4002,8 @@ generatedFiles: - docs/models/shared/SourceRetently.md - docs/models/shared/RkiCovid.md - docs/models/shared/SourceRkiCovid.md + - docs/models/shared/Rollbar.md + - docs/models/shared/SourceRollbar.md - docs/models/shared/Rss.md - docs/models/shared/SourceRss.md - docs/models/shared/SourceS3S3.md @@ -4037,6 +4151,8 @@ generatedFiles: - docs/models/shared/SourceSonarCloud.md - docs/models/shared/SpacexApi.md - docs/models/shared/SourceSpacexApi.md + - docs/models/shared/SplitIo.md + - docs/models/shared/SourceSplitIo.md - docs/models/shared/SourceSquareSchemasAuthType.md - docs/models/shared/SourceSquareAPIKey.md - docs/models/shared/SourceSquareAuthType.md @@ -4104,6 +4220,8 @@ generatedFiles: - docs/models/shared/SourceUsCensus.md - docs/models/shared/Vantage.md - docs/models/shared/SourceVantage.md + - docs/models/shared/Vwo.md + - docs/models/shared/SourceVwo.md - docs/models/shared/Webflow.md - docs/models/shared/SourceWebflow.md - docs/models/shared/WhenIWork.md diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9524f4d34..ec1b27974 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - main sample-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:27e4375e203d81089b86b92c0bc91c23a882561d7e4e046850919adc9f3e1ba6 - sourceBlobDigest: sha256:1ce4f661fa0156427ebe8ef1f969f98fb1bf7385c584d42a38c11b494face66e + sourceRevisionDigest: sha256:a3d6818a8c82c472872aaf86f57f58a4ecbedec8cb31e27aa5d4ebfc522befd5 + sourceBlobDigest: sha256:7b9f312ae5c781860244381a058bebaa93de0f673befc0b098bddf45f5a6c981 tags: - latest - main @@ -24,8 +24,8 @@ targets: testing: source: sample-source sourceNamespace: my-source - sourceRevisionDigest: sha256:27e4375e203d81089b86b92c0bc91c23a882561d7e4e046850919adc9f3e1ba6 - sourceBlobDigest: sha256:1ce4f661fa0156427ebe8ef1f969f98fb1bf7385c584d42a38c11b494face66e + sourceRevisionDigest: sha256:a3d6818a8c82c472872aaf86f57f58a4ecbedec8cb31e27aa5d4ebfc522befd5 + sourceBlobDigest: sha256:7b9f312ae5c781860244381a058bebaa93de0f673befc0b098bddf45f5a6c981 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 @@ -33,7 +33,7 @@ workflow: sources: sample-source: inputs: - - location: https://raw.githubusercontent.com/airbytehq/airbyte-api-python-sdk/main/airbyte-api.openapi.yaml + - location: https://raw.githubusercontent.com/airbytehq/airbyte-platform/refs/heads/main/airbyte-api/server-api/src/main/openapi/api_sdk.yaml registry: location: registry.speakeasyapi.dev/airbyte/airbyte-prod/my-source targets: diff --git a/README.md b/README.md index 80422d664..eceea8665 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.10' +implementation 'com.airbyte:api:1.5.11' ``` Maven: @@ -34,7 +34,7 @@ Maven: com.airbyte api - 1.5.10 + 1.5.11 ``` diff --git a/RELEASES.md b/RELEASES.md index e210209d9..c531f6d94 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1181,4 +1181,14 @@ Based on: ### Generated - [java v1.5.10] . ### Releases -- [Maven Central v1.5.10] https://central.sonatype.com/artifact/com.airbyte/api/1.5.10 - . \ No newline at end of file +- [Maven Central v1.5.10] https://central.sonatype.com/artifact/com.airbyte/api/1.5.10 - . + +## 2024-10-23 00:16:08 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.337.1 (2.373.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v1.5.11] . +### Releases +- [Maven Central v1.5.11] https://central.sonatype.com/artifact/com.airbyte/api/1.5.11 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index fbe15df4d..a652669ec 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.10" +version = "1.5.11" sourcesJar { archiveBaseName = "api" @@ -98,7 +98,7 @@ publishing { maven(MavenPublication) { groupId = 'com.airbyte' artifactId = 'api' - version = '1.5.10' + version = '1.5.11' from components.java diff --git a/docs/models/shared/Algolia.md b/docs/models/shared/Algolia.md new file mode 100644 index 000000000..b414d3787 --- /dev/null +++ b/docs/models/shared/Algolia.md @@ -0,0 +1,8 @@ +# Algolia + + +## Values + +| Name | Value | +| --------- | --------- | +| `ALGOLIA` | algolia | \ No newline at end of file diff --git a/docs/models/shared/Beamer.md b/docs/models/shared/Beamer.md new file mode 100644 index 000000000..0a46101a4 --- /dev/null +++ b/docs/models/shared/Beamer.md @@ -0,0 +1,8 @@ +# Beamer + + +## Values + +| Name | Value | +| -------- | -------- | +| `BEAMER` | beamer | \ No newline at end of file diff --git a/docs/models/shared/CatalogType.md b/docs/models/shared/CatalogType.md new file mode 100644 index 000000000..0b4ef3e65 --- /dev/null +++ b/docs/models/shared/CatalogType.md @@ -0,0 +1,8 @@ +# CatalogType + + +## Values + +| Name | Value | +| ------ | ------ | +| `HIVE` | Hive | \ No newline at end of file diff --git a/docs/models/shared/DestinationDevNull.md b/docs/models/shared/DestinationDevNull.md new file mode 100644 index 000000000..e81343e60 --- /dev/null +++ b/docs/models/shared/DestinationDevNull.md @@ -0,0 +1,9 @@ +# DestinationDevNull + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `destinationType` | [com.airbyte.api.models.shared.DevNull](../../models/shared/DevNull.md) | :heavy_check_mark: | N/A | +| `testDestination` | [com.airbyte.api.models.shared.TestDestination](../../models/shared/TestDestination.md) | :heavy_check_mark: | The type of destination to be used | \ No newline at end of file diff --git a/docs/models/shared/DestinationDevNullLoggingType.md b/docs/models/shared/DestinationDevNullLoggingType.md new file mode 100644 index 000000000..091bb6035 --- /dev/null +++ b/docs/models/shared/DestinationDevNullLoggingType.md @@ -0,0 +1,8 @@ +# DestinationDevNullLoggingType + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `EVERY_NTH` | EveryNth | \ No newline at end of file diff --git a/docs/models/shared/DestinationDevNullSchemasLoggingType.md b/docs/models/shared/DestinationDevNullSchemasLoggingType.md new file mode 100644 index 000000000..4e31a93cf --- /dev/null +++ b/docs/models/shared/DestinationDevNullSchemasLoggingType.md @@ -0,0 +1,8 @@ +# DestinationDevNullSchemasLoggingType + + +## Values + +| Name | Value | +| ----------------- | ----------------- | +| `RANDOM_SAMPLING` | RandomSampling | \ No newline at end of file diff --git a/docs/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.md b/docs/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.md new file mode 100644 index 000000000..65eeed810 --- /dev/null +++ b/docs/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.md @@ -0,0 +1,8 @@ +# DestinationDevNullSchemasTestDestinationTestDestinationType + + +## Values + +| Name | Value | +| --------- | --------- | +| `FAILING` | FAILING | \ No newline at end of file diff --git a/docs/models/shared/DestinationDevNullSchemasTestDestinationType.md b/docs/models/shared/DestinationDevNullSchemasTestDestinationType.md new file mode 100644 index 000000000..4704b947c --- /dev/null +++ b/docs/models/shared/DestinationDevNullSchemasTestDestinationType.md @@ -0,0 +1,8 @@ +# DestinationDevNullSchemasTestDestinationType + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `THROTTLED` | THROTTLED | \ No newline at end of file diff --git a/docs/models/shared/DestinationDevNullTestDestinationType.md b/docs/models/shared/DestinationDevNullTestDestinationType.md new file mode 100644 index 000000000..335378f1b --- /dev/null +++ b/docs/models/shared/DestinationDevNullTestDestinationType.md @@ -0,0 +1,8 @@ +# DestinationDevNullTestDestinationType + + +## Values + +| Name | Value | +| -------- | -------- | +| `SILENT` | SILENT | \ No newline at end of file diff --git a/docs/models/shared/DestinationIceberg.md b/docs/models/shared/DestinationIceberg.md new file mode 100644 index 000000000..f6397143f --- /dev/null +++ b/docs/models/shared/DestinationIceberg.md @@ -0,0 +1,11 @@ +# DestinationIceberg + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `catalogConfig` | [com.airbyte.api.models.shared.IcebergCatalogConfig](../../models/shared/IcebergCatalogConfig.md) | :heavy_check_mark: | Catalog config of Iceberg. | +| `destinationType` | [com.airbyte.api.models.shared.Iceberg](../../models/shared/Iceberg.md) | :heavy_check_mark: | N/A | +| `formatConfig` | [com.airbyte.api.models.shared.FileFormat](../../models/shared/FileFormat.md) | :heavy_check_mark: | File format of Iceberg storage. | +| `storageConfig` | [com.airbyte.api.models.shared.StorageConfig](../../models/shared/StorageConfig.md) | :heavy_check_mark: | Storage config of Iceberg. | \ No newline at end of file diff --git a/docs/models/shared/DestinationIcebergCatalogType.md b/docs/models/shared/DestinationIcebergCatalogType.md new file mode 100644 index 000000000..c84f42206 --- /dev/null +++ b/docs/models/shared/DestinationIcebergCatalogType.md @@ -0,0 +1,8 @@ +# DestinationIcebergCatalogType + + +## Values + +| Name | Value | +| -------- | -------- | +| `HADOOP` | Hadoop | \ No newline at end of file diff --git a/docs/models/shared/DestinationIcebergS3.md b/docs/models/shared/DestinationIcebergS3.md new file mode 100644 index 000000000..cfe8694b4 --- /dev/null +++ b/docs/models/shared/DestinationIcebergS3.md @@ -0,0 +1,16 @@ +# DestinationIcebergS3 + +S3 object storage + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accessKeyId` | *String* | :heavy_check_mark: | The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here. | A012345678910EXAMPLE | +| `s3BucketRegion` | [Optional](../../models/shared/DestinationIcebergS3BucketRegion.md) | :heavy_minus_sign: | The region of the S3 bucket. See here for all region codes. | | +| `s3Endpoint` | *Optional* | :heavy_minus_sign: | Your S3 endpoint url. Read more here | http://localhost:9000 | +| `s3PathStyleAccess` | *Optional* | :heavy_minus_sign: | Use path style access | true | +| `s3WarehouseUri` | *String* | :heavy_check_mark: | The Warehouse Uri for Iceberg | s3a://my-bucket/path/to/warehouse | +| `secretAccessKey` | *String* | :heavy_check_mark: | The corresponding secret to the access key ID. Read more here | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | +| `storageType` | [Optional](../../models/shared/StorageType.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/DestinationIcebergS3BucketRegion.md b/docs/models/shared/DestinationIcebergS3BucketRegion.md new file mode 100644 index 000000000..837b818c3 --- /dev/null +++ b/docs/models/shared/DestinationIcebergS3BucketRegion.md @@ -0,0 +1,43 @@ +# DestinationIcebergS3BucketRegion + +The region of the S3 bucket. See here for all region codes. + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `UNKNOWN` | | +| `AF_SOUTH1` | af-south-1 | +| `AP_EAST1` | ap-east-1 | +| `AP_NORTHEAST1` | ap-northeast-1 | +| `AP_NORTHEAST2` | ap-northeast-2 | +| `AP_NORTHEAST3` | ap-northeast-3 | +| `AP_SOUTH1` | ap-south-1 | +| `AP_SOUTH2` | ap-south-2 | +| `AP_SOUTHEAST1` | ap-southeast-1 | +| `AP_SOUTHEAST2` | ap-southeast-2 | +| `AP_SOUTHEAST3` | ap-southeast-3 | +| `AP_SOUTHEAST4` | ap-southeast-4 | +| `CA_CENTRAL1` | ca-central-1 | +| `CA_WEST1` | ca-west-1 | +| `CN_NORTH1` | cn-north-1 | +| `CN_NORTHWEST1` | cn-northwest-1 | +| `EU_CENTRAL1` | eu-central-1 | +| `EU_CENTRAL2` | eu-central-2 | +| `EU_NORTH1` | eu-north-1 | +| `EU_SOUTH1` | eu-south-1 | +| `EU_SOUTH2` | eu-south-2 | +| `EU_WEST1` | eu-west-1 | +| `EU_WEST2` | eu-west-2 | +| `EU_WEST3` | eu-west-3 | +| `IL_CENTRAL1` | il-central-1 | +| `ME_CENTRAL1` | me-central-1 | +| `ME_SOUTH1` | me-south-1 | +| `SA_EAST1` | sa-east-1 | +| `US_EAST1` | us-east-1 | +| `US_EAST2` | us-east-2 | +| `US_GOV_EAST1` | us-gov-east-1 | +| `US_GOV_WEST1` | us-gov-west-1 | +| `US_WEST1` | us-west-1 | +| `US_WEST2` | us-west-2 | \ No newline at end of file diff --git a/docs/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.md b/docs/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.md new file mode 100644 index 000000000..d80e87da0 --- /dev/null +++ b/docs/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.md @@ -0,0 +1,8 @@ +# DestinationIcebergSchemasCatalogConfigCatalogType + + +## Values + +| Name | Value | +| ------ | ------ | +| `REST` | Rest | \ No newline at end of file diff --git a/docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.md b/docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.md new file mode 100644 index 000000000..147f35b6a --- /dev/null +++ b/docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.md @@ -0,0 +1,8 @@ +# DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType + + +## Values + +| Name | Value | +| ------ | ------ | +| `GLUE` | Glue | \ No newline at end of file diff --git a/docs/models/shared/DestinationIcebergSchemasCatalogType.md b/docs/models/shared/DestinationIcebergSchemasCatalogType.md new file mode 100644 index 000000000..180428ea9 --- /dev/null +++ b/docs/models/shared/DestinationIcebergSchemasCatalogType.md @@ -0,0 +1,8 @@ +# DestinationIcebergSchemasCatalogType + + +## Values + +| Name | Value | +| ------ | ------ | +| `JDBC` | Jdbc | \ No newline at end of file diff --git a/docs/models/shared/DestinationIcebergStorageType.md b/docs/models/shared/DestinationIcebergStorageType.md new file mode 100644 index 000000000..5b14ef185 --- /dev/null +++ b/docs/models/shared/DestinationIcebergStorageType.md @@ -0,0 +1,8 @@ +# DestinationIcebergStorageType + + +## Values + +| Name | Value | +| --------- | --------- | +| `MANAGED` | MANAGED | \ No newline at end of file diff --git a/docs/models/shared/DevNull.md b/docs/models/shared/DevNull.md new file mode 100644 index 000000000..4b1d8ea4a --- /dev/null +++ b/docs/models/shared/DevNull.md @@ -0,0 +1,8 @@ +# DevNull + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `DEV_NULL` | dev-null | \ No newline at end of file diff --git a/docs/models/shared/DropboxSign.md b/docs/models/shared/DropboxSign.md new file mode 100644 index 000000000..ad9f4bc5d --- /dev/null +++ b/docs/models/shared/DropboxSign.md @@ -0,0 +1,8 @@ +# DropboxSign + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `DROPBOX_SIGN` | dropbox-sign | \ No newline at end of file diff --git a/docs/models/shared/Eventbrite.md b/docs/models/shared/Eventbrite.md new file mode 100644 index 000000000..26a4bac77 --- /dev/null +++ b/docs/models/shared/Eventbrite.md @@ -0,0 +1,8 @@ +# Eventbrite + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `EVENTBRITE` | eventbrite | \ No newline at end of file diff --git a/docs/models/shared/EveryNThEntry.md b/docs/models/shared/EveryNThEntry.md new file mode 100644 index 000000000..ae55174eb --- /dev/null +++ b/docs/models/shared/EveryNThEntry.md @@ -0,0 +1,12 @@ +# EveryNThEntry + +For each stream, log every N-th entry with a maximum cap. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `loggingType` | [Optional](../../models/shared/DestinationDevNullLoggingType.md) | :heavy_minus_sign: | N/A | | +| `maxEntryCount` | *Optional* | :heavy_minus_sign: | Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. | 100 | +| `nthEntryToLog` | *double* | :heavy_check_mark: | The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. | [
3
] | \ No newline at end of file diff --git a/docs/models/shared/Failing.md b/docs/models/shared/Failing.md new file mode 100644 index 000000000..a0d95b90b --- /dev/null +++ b/docs/models/shared/Failing.md @@ -0,0 +1,9 @@ +# Failing + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `numMessages` | *long* | :heavy_check_mark: | Number of messages after which to fail. | +| `testDestinationType` | [Optional](../../models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/FileFormat.md b/docs/models/shared/FileFormat.md index 6ba7f6b25..07d1682a6 100644 --- a/docs/models/shared/FileFormat.md +++ b/docs/models/shared/FileFormat.md @@ -1,18 +1,13 @@ # FileFormat -The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). +File format of Iceberg storage. -## Values +## Fields -| Name | Value | -| -------------- | -------------- | -| `CSV` | csv | -| `JSON` | json | -| `JSONL` | jsonl | -| `EXCEL` | excel | -| `EXCEL_BINARY` | excel_binary | -| `FWF` | fwf | -| `FEATHER` | feather | -| `PARQUET` | parquet | -| `YAML` | yaml | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `autoCompact` | *Optional* | :heavy_minus_sign: | Auto compact data files when stream close | +| `compactTargetFileSizeInMb` | *Optional* | :heavy_minus_sign: | Specify the target size of Iceberg data file when performing a compaction action. | +| `flushBatchSize` | *Optional* | :heavy_minus_sign: | Iceberg data file flush batch size. Incoming rows write to cache firstly; When cache size reaches this 'batch size', flush into real Iceberg data file. | +| `format` | [Optional](../../models/shared/FileStorageFormat.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/FileStorageFormat.md b/docs/models/shared/FileStorageFormat.md new file mode 100644 index 000000000..536b5dca4 --- /dev/null +++ b/docs/models/shared/FileStorageFormat.md @@ -0,0 +1,9 @@ +# FileStorageFormat + + +## Values + +| Name | Value | +| --------- | --------- | +| `PARQUET` | Parquet | +| `AVRO` | Avro | \ No newline at end of file diff --git a/docs/models/shared/FirstNEntries.md b/docs/models/shared/FirstNEntries.md new file mode 100644 index 000000000..358ec24a8 --- /dev/null +++ b/docs/models/shared/FirstNEntries.md @@ -0,0 +1,11 @@ +# FirstNEntries + +Log first N entries per stream. + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `loggingType` | [Optional](../../models/shared/LoggingType.md) | :heavy_minus_sign: | N/A | | +| `maxEntryCount` | *Optional* | :heavy_minus_sign: | Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. | 100 | \ No newline at end of file diff --git a/docs/models/shared/Freshchat.md b/docs/models/shared/Freshchat.md new file mode 100644 index 000000000..414819495 --- /dev/null +++ b/docs/models/shared/Freshchat.md @@ -0,0 +1,8 @@ +# Freshchat + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `FRESHCHAT` | freshchat | \ No newline at end of file diff --git a/docs/models/shared/GlueCatalog.md b/docs/models/shared/GlueCatalog.md new file mode 100644 index 000000000..807396a61 --- /dev/null +++ b/docs/models/shared/GlueCatalog.md @@ -0,0 +1,11 @@ +# GlueCatalog + +The GlueCatalog connects to a AWS Glue Catalog + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `catalogType` | [Optional](../../models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.md) | :heavy_minus_sign: | N/A | | +| `database` | *Optional* | :heavy_minus_sign: | The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". | public | \ No newline at end of file diff --git a/docs/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.md b/docs/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.md new file mode 100644 index 000000000..7f73ddc55 --- /dev/null +++ b/docs/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.md @@ -0,0 +1,11 @@ +# HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig + +A Hadoop catalog doesn’t need to connect to a Hive MetaStore, but can only be used with HDFS or similar file systems that support atomic rename. + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `catalogType` | [Optional](../../models/shared/DestinationIcebergCatalogType.md) | :heavy_minus_sign: | N/A | | +| `database` | *Optional* | :heavy_minus_sign: | The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". | default | \ No newline at end of file diff --git a/docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md b/docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md new file mode 100644 index 000000000..efe05ccda --- /dev/null +++ b/docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md @@ -0,0 +1,10 @@ +# HiveCatalogUseApacheHiveMetaStore + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `catalogType` | [Optional](../../models/shared/CatalogType.md) | :heavy_minus_sign: | N/A | | +| `database` | *Optional* | :heavy_minus_sign: | The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". | default | +| `hiveThriftUri` | *String* | :heavy_check_mark: | Hive MetaStore thrift server uri of iceberg catalog. | host:port | \ No newline at end of file diff --git a/docs/models/shared/Iceberg.md b/docs/models/shared/Iceberg.md new file mode 100644 index 000000000..34ec189ea --- /dev/null +++ b/docs/models/shared/Iceberg.md @@ -0,0 +1,8 @@ +# Iceberg + + +## Values + +| Name | Value | +| --------- | --------- | +| `ICEBERG` | iceberg | \ No newline at end of file diff --git a/docs/models/shared/IcebergCatalogConfig.md b/docs/models/shared/IcebergCatalogConfig.md new file mode 100644 index 000000000..6eeeda860 --- /dev/null +++ b/docs/models/shared/IcebergCatalogConfig.md @@ -0,0 +1,4 @@ +# IcebergCatalogConfig + +Catalog config of Iceberg. + diff --git a/docs/models/shared/JdbcCatalogUseRelationalDatabase.md b/docs/models/shared/JdbcCatalogUseRelationalDatabase.md new file mode 100644 index 000000000..3a7d9423a --- /dev/null +++ b/docs/models/shared/JdbcCatalogUseRelationalDatabase.md @@ -0,0 +1,16 @@ +# JdbcCatalogUseRelationalDatabase + +Using a table in a relational database to manage Iceberg tables through JDBC. Read more here. Supporting: PostgreSQL + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `catalogSchema` | *Optional* | :heavy_minus_sign: | Iceberg catalog metadata tables are written to catalog schema. The usual value for this field is "public". | public | +| `catalogType` | [Optional](../../models/shared/DestinationIcebergSchemasCatalogType.md) | :heavy_minus_sign: | N/A | | +| `database` | *Optional* | :heavy_minus_sign: | The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". | public | +| `jdbcUrl` | *Optional* | :heavy_minus_sign: | N/A | jdbc:postgresql://{host}:{port}/{database} | +| `password` | *Optional* | :heavy_minus_sign: | Password associated with the username. | | +| `ssl` | *Optional* | :heavy_minus_sign: | Encrypt data using SSL. When activating SSL, please select one of the connection modes. | | +| `username` | *Optional* | :heavy_minus_sign: | Username to use to access the database. | | \ No newline at end of file diff --git a/docs/models/shared/Kissmetrics.md b/docs/models/shared/Kissmetrics.md new file mode 100644 index 000000000..b1de7841c --- /dev/null +++ b/docs/models/shared/Kissmetrics.md @@ -0,0 +1,8 @@ +# Kissmetrics + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `KISSMETRICS` | kissmetrics | \ No newline at end of file diff --git a/docs/models/shared/Lob.md b/docs/models/shared/Lob.md new file mode 100644 index 000000000..626b4ec36 --- /dev/null +++ b/docs/models/shared/Lob.md @@ -0,0 +1,8 @@ +# Lob + + +## Values + +| Name | Value | +| ----- | ----- | +| `LOB` | lob | \ No newline at end of file diff --git a/docs/models/shared/Logging.md b/docs/models/shared/Logging.md new file mode 100644 index 000000000..5c811bd1f --- /dev/null +++ b/docs/models/shared/Logging.md @@ -0,0 +1,9 @@ +# Logging + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `loggingConfig` | [com.airbyte.api.models.shared.LoggingConfiguration](../../models/shared/LoggingConfiguration.md) | :heavy_check_mark: | Configurate how the messages are logged. | +| `testDestinationType` | [Optional](../../models/shared/TestDestinationType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/LoggingConfiguration.md b/docs/models/shared/LoggingConfiguration.md new file mode 100644 index 000000000..d6d710b13 --- /dev/null +++ b/docs/models/shared/LoggingConfiguration.md @@ -0,0 +1,4 @@ +# LoggingConfiguration + +Configurate how the messages are logged. + diff --git a/docs/models/shared/LoggingType.md b/docs/models/shared/LoggingType.md new file mode 100644 index 000000000..ed1a76b26 --- /dev/null +++ b/docs/models/shared/LoggingType.md @@ -0,0 +1,8 @@ +# LoggingType + + +## Values + +| Name | Value | +| --------- | --------- | +| `FIRST_N` | FirstN | \ No newline at end of file diff --git a/docs/models/shared/PostgresConnection.md b/docs/models/shared/PostgresConnection.md index 918a65430..1b9d70906 100644 --- a/docs/models/shared/PostgresConnection.md +++ b/docs/models/shared/PostgresConnection.md @@ -9,7 +9,7 @@ Postgres can be used to store vector data and retrieve embeddings. | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | | `credentials` | [com.airbyte.api.models.shared.DestinationPgvectorCredentials](../../models/shared/DestinationPgvectorCredentials.md) | :heavy_check_mark: | N/A | | | `database` | *String* | :heavy_check_mark: | Enter the name of the database that you want to sync data into | AIRBYTE_DATABASE | -| `defaultSchema` | *String* | :heavy_check_mark: | Enter the name of the default schema | AIRBYTE_SCHEMA | +| `defaultSchema` | *Optional* | :heavy_minus_sign: | Enter the name of the default schema | AIRBYTE_SCHEMA | | `host` | *String* | :heavy_check_mark: | Enter the account name you want to use to access the database. | AIRBYTE_ACCOUNT | -| `port` | *long* | :heavy_check_mark: | Enter the port you want to use to access the database | 5432 | +| `port` | *Optional* | :heavy_minus_sign: | Enter the port you want to use to access the database | 5432 | | `username` | *String* | :heavy_check_mark: | Enter the name of the user you want to use to access the database | AIRBYTE_USER | \ No newline at end of file diff --git a/docs/models/shared/RESTCatalog.md b/docs/models/shared/RESTCatalog.md new file mode 100644 index 000000000..568b54590 --- /dev/null +++ b/docs/models/shared/RESTCatalog.md @@ -0,0 +1,13 @@ +# RESTCatalog + +The RESTCatalog connects to a REST server at the specified URI + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `catalogType` | [Optional](../../models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.md) | :heavy_minus_sign: | N/A | | +| `restCredential` | *Optional* | :heavy_minus_sign: | N/A | username:password | +| `restToken` | *Optional* | :heavy_minus_sign: | N/A | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | +| `restUri` | *String* | :heavy_check_mark: | N/A | http://localhost:12345 | \ No newline at end of file diff --git a/docs/models/shared/RandomSampling.md b/docs/models/shared/RandomSampling.md new file mode 100644 index 000000000..93153e473 --- /dev/null +++ b/docs/models/shared/RandomSampling.md @@ -0,0 +1,13 @@ +# RandomSampling + +For each stream, randomly log a percentage of the entries with a maximum cap. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `loggingType` | [Optional](../../models/shared/DestinationDevNullSchemasLoggingType.md) | :heavy_minus_sign: | N/A | | +| `maxEntryCount` | *Optional* | :heavy_minus_sign: | Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. | 100 | +| `samplingRatio` | *Optional* | :heavy_minus_sign: | A positive floating number smaller than 1. | 0.001 | +| `seed` | *Optional* | :heavy_minus_sign: | When the seed is unspecified, the current time millis will be used as the seed. | 1900 | \ No newline at end of file diff --git a/docs/models/shared/Rollbar.md b/docs/models/shared/Rollbar.md new file mode 100644 index 000000000..75aef120c --- /dev/null +++ b/docs/models/shared/Rollbar.md @@ -0,0 +1,8 @@ +# Rollbar + + +## Values + +| Name | Value | +| --------- | --------- | +| `ROLLBAR` | rollbar | \ No newline at end of file diff --git a/docs/models/shared/ServerManaged.md b/docs/models/shared/ServerManaged.md new file mode 100644 index 000000000..e1d010189 --- /dev/null +++ b/docs/models/shared/ServerManaged.md @@ -0,0 +1,11 @@ +# ServerManaged + +Server-managed object storage + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `managedWarehouseName` | *String* | :heavy_check_mark: | The name of the managed warehouse | +| `storageType` | [Optional](../../models/shared/DestinationIcebergStorageType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Silent.md b/docs/models/shared/Silent.md new file mode 100644 index 000000000..7f1bfb533 --- /dev/null +++ b/docs/models/shared/Silent.md @@ -0,0 +1,8 @@ +# Silent + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `testDestinationType` | [Optional](../../models/shared/DestinationDevNullTestDestinationType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceAlgolia.md b/docs/models/shared/SourceAlgolia.md new file mode 100644 index 000000000..99766d5fc --- /dev/null +++ b/docs/models/shared/SourceAlgolia.md @@ -0,0 +1,13 @@ +# SourceAlgolia + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `applicationId` | *String* | :heavy_check_mark: | The application ID for your application found in settings | +| `objectId` | *Optional* | :heavy_minus_sign: | Object ID within index for search queries | +| `searchQuery` | *Optional* | :heavy_minus_sign: | Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` | +| `sourceType` | [com.airbyte.api.models.shared.Algolia](../../models/shared/Algolia.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/SourceBeamer.md b/docs/models/shared/SourceBeamer.md new file mode 100644 index 000000000..a5632228b --- /dev/null +++ b/docs/models/shared/SourceBeamer.md @@ -0,0 +1,10 @@ +# SourceBeamer + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Beamer](../../models/shared/Beamer.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/SourceDropboxSign.md b/docs/models/shared/SourceDropboxSign.md new file mode 100644 index 000000000..abbe75cba --- /dev/null +++ b/docs/models/shared/SourceDropboxSign.md @@ -0,0 +1,10 @@ +# SourceDropboxSign + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | API key to use. Find it at https://app.hellosign.com/home/myAccount#api | +| `sourceType` | [com.airbyte.api.models.shared.DropboxSign](../../models/shared/DropboxSign.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/SourceEventbrite.md b/docs/models/shared/SourceEventbrite.md new file mode 100644 index 000000000..4ffdbaf14 --- /dev/null +++ b/docs/models/shared/SourceEventbrite.md @@ -0,0 +1,10 @@ +# SourceEventbrite + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `privateToken` | *String* | :heavy_check_mark: | The private token to use for authenticating API requests. | +| `sourceType` | [com.airbyte.api.models.shared.Eventbrite](../../models/shared/Eventbrite.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/SourceFile.md b/docs/models/shared/SourceFile.md index 5b27ec4ef..56efe21b3 100644 --- a/docs/models/shared/SourceFile.md +++ b/docs/models/shared/SourceFile.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | `datasetName` | *String* | :heavy_check_mark: | The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only). | | -| `format` | [Optional](../../models/shared/FileFormat.md) | :heavy_minus_sign: | The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). | | +| `format` | [Optional](../../models/shared/SourceFileFileFormat.md) | :heavy_minus_sign: | The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). | | | `provider` | [com.airbyte.api.models.shared.StorageProvider](../../models/shared/StorageProvider.md) | :heavy_check_mark: | The storage Provider or Location of the file(s) which should be replicated. | | | `readerOptions` | *Optional* | :heavy_minus_sign: | This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior. | {} | | `sourceType` | [com.airbyte.api.models.shared.File](../../models/shared/File.md) | :heavy_check_mark: | N/A | | diff --git a/docs/models/shared/SourceFileFileFormat.md b/docs/models/shared/SourceFileFileFormat.md new file mode 100644 index 000000000..73e28e471 --- /dev/null +++ b/docs/models/shared/SourceFileFileFormat.md @@ -0,0 +1,18 @@ +# SourceFileFileFormat + +The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `CSV` | csv | +| `JSON` | json | +| `JSONL` | jsonl | +| `EXCEL` | excel | +| `EXCEL_BINARY` | excel_binary | +| `FWF` | fwf | +| `FEATHER` | feather | +| `PARQUET` | parquet | +| `YAML` | yaml | \ No newline at end of file diff --git a/docs/models/shared/SourceFreshchat.md b/docs/models/shared/SourceFreshchat.md new file mode 100644 index 000000000..87869308d --- /dev/null +++ b/docs/models/shared/SourceFreshchat.md @@ -0,0 +1,11 @@ +# SourceFreshchat + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `accountName` | *String* | :heavy_check_mark: | The unique account name for your Freshchat instance | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Freshchat](../../models/shared/Freshchat.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/SourceKissmetrics.md b/docs/models/shared/SourceKissmetrics.md new file mode 100644 index 000000000..d1c9d6985 --- /dev/null +++ b/docs/models/shared/SourceKissmetrics.md @@ -0,0 +1,10 @@ +# SourceKissmetrics + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `password` | *Optional* | :heavy_minus_sign: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Kissmetrics](../../models/shared/Kissmetrics.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/SourceLob.md b/docs/models/shared/SourceLob.md new file mode 100644 index 000000000..957c17832 --- /dev/null +++ b/docs/models/shared/SourceLob.md @@ -0,0 +1,11 @@ +# SourceLob + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | API key to use for authentication. You can find your account's API keys in your Dashboard Settings at https://dashboard.lob.com/settings/api-keys. | +| `limit` | *Optional* | :heavy_minus_sign: | Max records per page limit | +| `sourceType` | [com.airbyte.api.models.shared.Lob](../../models/shared/Lob.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/SourceRollbar.md b/docs/models/shared/SourceRollbar.md new file mode 100644 index 000000000..9351becb2 --- /dev/null +++ b/docs/models/shared/SourceRollbar.md @@ -0,0 +1,11 @@ +# SourceRollbar + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `accountAccessToken` | *String* | :heavy_check_mark: | N/A | +| `projectAccessToken` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Rollbar](../../models/shared/Rollbar.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/SourceSplitIo.md b/docs/models/shared/SourceSplitIo.md new file mode 100644 index 000000000..aeb475653 --- /dev/null +++ b/docs/models/shared/SourceSplitIo.md @@ -0,0 +1,10 @@ +# SourceSplitIo + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.SplitIo](../../models/shared/SplitIo.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/SourceVwo.md b/docs/models/shared/SourceVwo.md new file mode 100644 index 000000000..0c4d6f40e --- /dev/null +++ b/docs/models/shared/SourceVwo.md @@ -0,0 +1,10 @@ +# SourceVwo + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Vwo](../../models/shared/Vwo.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/SplitIo.md b/docs/models/shared/SplitIo.md new file mode 100644 index 000000000..b7ee3f847 --- /dev/null +++ b/docs/models/shared/SplitIo.md @@ -0,0 +1,8 @@ +# SplitIo + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `SPLIT_IO` | split-io | \ No newline at end of file diff --git a/docs/models/shared/StorageConfig.md b/docs/models/shared/StorageConfig.md new file mode 100644 index 000000000..4ae5c3a39 --- /dev/null +++ b/docs/models/shared/StorageConfig.md @@ -0,0 +1,4 @@ +# StorageConfig + +Storage config of Iceberg. + diff --git a/docs/models/shared/StorageType.md b/docs/models/shared/StorageType.md new file mode 100644 index 000000000..47e50aa71 --- /dev/null +++ b/docs/models/shared/StorageType.md @@ -0,0 +1,8 @@ +# StorageType + + +## Values + +| Name | Value | +| ----- | ----- | +| `S3` | S3 | \ No newline at end of file diff --git a/docs/models/shared/TestDestination.md b/docs/models/shared/TestDestination.md new file mode 100644 index 000000000..0cb393709 --- /dev/null +++ b/docs/models/shared/TestDestination.md @@ -0,0 +1,4 @@ +# TestDestination + +The type of destination to be used + diff --git a/docs/models/shared/TestDestinationType.md b/docs/models/shared/TestDestinationType.md new file mode 100644 index 000000000..2ad56cb2c --- /dev/null +++ b/docs/models/shared/TestDestinationType.md @@ -0,0 +1,8 @@ +# TestDestinationType + + +## Values + +| Name | Value | +| --------- | --------- | +| `LOGGING` | LOGGING | \ No newline at end of file diff --git a/docs/models/shared/Throttled.md b/docs/models/shared/Throttled.md new file mode 100644 index 000000000..1c45bf77f --- /dev/null +++ b/docs/models/shared/Throttled.md @@ -0,0 +1,9 @@ +# Throttled + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `millisPerRecord` | *long* | :heavy_check_mark: | Number of milli-second to pause in between records. | +| `testDestinationType` | [Optional](../../models/shared/DestinationDevNullSchemasTestDestinationType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Vwo.md b/docs/models/shared/Vwo.md new file mode 100644 index 000000000..0ac11ef7b --- /dev/null +++ b/docs/models/shared/Vwo.md @@ -0,0 +1,8 @@ +# Vwo + + +## Values + +| Name | Value | +| ----- | ----- | +| `VWO` | vwo | \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 6740c6346..b7ef89406 100644 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true java: - version: 1.5.10 + version: 1.5.11 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 490825561..866f7383a 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.10"; + public String sdkVersion = "1.5.11"; public String genVersion = "2.373.2"; - public String userAgent = "speakeasy-sdk/java 1.5.10 2.373.2 1.0.0 com.airbyte.api"; + public String userAgent = "speakeasy-sdk/java 1.5.11 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/Algolia.java b/src/main/java/com/airbyte/api/models/shared/Algolia.java new file mode 100644 index 000000000..23a4b1bf6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Algolia.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 Algolia { + ALGOLIA("algolia"); + + @JsonValue + private final String value; + + private Algolia(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Beamer.java b/src/main/java/com/airbyte/api/models/shared/Beamer.java new file mode 100644 index 000000000..8bc7918dc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Beamer.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 Beamer { + BEAMER("beamer"); + + @JsonValue + private final String value; + + private Beamer(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/CatalogType.java b/src/main/java/com/airbyte/api/models/shared/CatalogType.java new file mode 100644 index 000000000..e4e4c7d95 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/CatalogType.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 CatalogType { + HIVE("Hive"); + + @JsonValue + private final String value; + + private CatalogType(String value) { + this.value = value; + } + + public String value() { + return 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 b24eb559b..cd73e1eac 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java @@ -75,6 +75,11 @@ public static DestinationConfiguration of(DestinationDatabricks value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static DestinationConfiguration of(DestinationDevNull value) { + Utils.checkNotNull(value, "value"); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static DestinationConfiguration of(DestinationDuckdb value) { Utils.checkNotNull(value, "value"); return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -105,6 +110,11 @@ public static DestinationConfiguration of(DestinationGcs value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static DestinationConfiguration of(DestinationIceberg value) { + Utils.checkNotNull(value, "value"); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static DestinationConfiguration of(DestinationMilvus value) { Utils.checkNotNull(value, "value"); return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -231,12 +241,14 @@ public static DestinationConfiguration of(DestinationYellowbrick value) { *
  • {@code DestinationClickhouse}
  • *
  • {@code DestinationConvex}
  • *
  • {@code DestinationDatabricks}
  • + *
  • {@code DestinationDevNull}
  • *
  • {@code DestinationDuckdb}
  • *
  • {@code DestinationDynamodb}
  • *
  • {@code DestinationElasticsearch}
  • *
  • {@code DestinationFirebolt}
  • *
  • {@code DestinationFirestore}
  • *
  • {@code DestinationGcs}
  • + *
  • {@code DestinationIceberg}
  • *
  • {@code DestinationMilvus}
  • *
  • {@code DestinationMongodb}
  • *
  • {@code DestinationMssql}
  • @@ -307,12 +319,14 @@ 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), diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java new file mode 100644 index 000000000..3cc3c65b6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.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 DestinationDevNull { + + @JsonProperty("destinationType") + private DevNull destinationType; + + /** + * The type of destination to be used + */ + @JsonProperty("test_destination") + private TestDestination testDestination; + + @JsonCreator + public DestinationDevNull( + @JsonProperty("test_destination") TestDestination testDestination) { + Utils.checkNotNull(testDestination, "testDestination"); + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.testDestination = testDestination; + } + + @JsonIgnore + public DevNull destinationType() { + return destinationType; + } + + /** + * The type of destination to be used + */ + @JsonIgnore + public TestDestination testDestination() { + return testDestination; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The type of destination to be used + */ + public DestinationDevNull withTestDestination(TestDestination testDestination) { + Utils.checkNotNull(testDestination, "testDestination"); + this.testDestination = testDestination; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationDevNull other = (DestinationDevNull) o; + return + java.util.Objects.deepEquals(this.destinationType, other.destinationType) && + java.util.Objects.deepEquals(this.testDestination, other.testDestination); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + destinationType, + testDestination); + } + + @Override + public String toString() { + return Utils.toString(DestinationDevNull.class, + "destinationType", destinationType, + "testDestination", testDestination); + } + + public final static class Builder { + + private TestDestination testDestination; + + private Builder() { + // force use of static builder() method + } + + /** + * The type of destination to be used + */ + public Builder testDestination(TestDestination testDestination) { + Utils.checkNotNull(testDestination, "testDestination"); + this.testDestination = testDestination; + return this; + } + + public DestinationDevNull build() { + return new DestinationDevNull( + testDestination); + } + + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"dev-null\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java new file mode 100644 index 000000000..51c58c40c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.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 DestinationDevNullLoggingType { + EVERY_NTH("EveryNth"); + + @JsonValue + private final String value; + + private DestinationDevNullLoggingType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java new file mode 100644 index 000000000..dfcefef04 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.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 DestinationDevNullSchemasLoggingType { + RANDOM_SAMPLING("RandomSampling"); + + @JsonValue + private final String value; + + private DestinationDevNullSchemasLoggingType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java new file mode 100644 index 000000000..fdadf65b2 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.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 DestinationDevNullSchemasTestDestinationTestDestinationType { + FAILING("FAILING"); + + @JsonValue + private final String value; + + private DestinationDevNullSchemasTestDestinationTestDestinationType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java new file mode 100644 index 000000000..b4bcc1a09 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.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 DestinationDevNullSchemasTestDestinationType { + THROTTLED("THROTTLED"); + + @JsonValue + private final String value; + + private DestinationDevNullSchemasTestDestinationType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java new file mode 100644 index 000000000..2187ce90b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.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 DestinationDevNullTestDestinationType { + SILENT("SILENT"); + + @JsonValue + private final String value; + + private DestinationDevNullTestDestinationType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIceberg.java b/src/main/java/com/airbyte/api/models/shared/DestinationIceberg.java new file mode 100644 index 000000000..c0ba833f3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIceberg.java @@ -0,0 +1,203 @@ +/* + * 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 DestinationIceberg { + + /** + * Catalog config of Iceberg. + */ + @JsonProperty("catalog_config") + private IcebergCatalogConfig catalogConfig; + + @JsonProperty("destinationType") + private Iceberg destinationType; + + /** + * File format of Iceberg storage. + */ + @JsonProperty("format_config") + private FileFormat formatConfig; + + /** + * Storage config of Iceberg. + */ + @JsonProperty("storage_config") + private StorageConfig storageConfig; + + @JsonCreator + public DestinationIceberg( + @JsonProperty("catalog_config") IcebergCatalogConfig catalogConfig, + @JsonProperty("format_config") FileFormat formatConfig, + @JsonProperty("storage_config") StorageConfig storageConfig) { + Utils.checkNotNull(catalogConfig, "catalogConfig"); + Utils.checkNotNull(formatConfig, "formatConfig"); + Utils.checkNotNull(storageConfig, "storageConfig"); + this.catalogConfig = catalogConfig; + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.formatConfig = formatConfig; + this.storageConfig = storageConfig; + } + + /** + * Catalog config of Iceberg. + */ + @JsonIgnore + public IcebergCatalogConfig catalogConfig() { + return catalogConfig; + } + + @JsonIgnore + public Iceberg destinationType() { + return destinationType; + } + + /** + * File format of Iceberg storage. + */ + @JsonIgnore + public FileFormat formatConfig() { + return formatConfig; + } + + /** + * Storage config of Iceberg. + */ + @JsonIgnore + public StorageConfig storageConfig() { + return storageConfig; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Catalog config of Iceberg. + */ + public DestinationIceberg withCatalogConfig(IcebergCatalogConfig catalogConfig) { + Utils.checkNotNull(catalogConfig, "catalogConfig"); + this.catalogConfig = catalogConfig; + return this; + } + + /** + * File format of Iceberg storage. + */ + public DestinationIceberg withFormatConfig(FileFormat formatConfig) { + Utils.checkNotNull(formatConfig, "formatConfig"); + this.formatConfig = formatConfig; + return this; + } + + /** + * Storage config of Iceberg. + */ + public DestinationIceberg withStorageConfig(StorageConfig storageConfig) { + Utils.checkNotNull(storageConfig, "storageConfig"); + this.storageConfig = storageConfig; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationIceberg other = (DestinationIceberg) o; + return + java.util.Objects.deepEquals(this.catalogConfig, other.catalogConfig) && + java.util.Objects.deepEquals(this.destinationType, other.destinationType) && + java.util.Objects.deepEquals(this.formatConfig, other.formatConfig) && + java.util.Objects.deepEquals(this.storageConfig, other.storageConfig); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + catalogConfig, + destinationType, + formatConfig, + storageConfig); + } + + @Override + public String toString() { + return Utils.toString(DestinationIceberg.class, + "catalogConfig", catalogConfig, + "destinationType", destinationType, + "formatConfig", formatConfig, + "storageConfig", storageConfig); + } + + public final static class Builder { + + private IcebergCatalogConfig catalogConfig; + + private FileFormat formatConfig; + + private StorageConfig storageConfig; + + private Builder() { + // force use of static builder() method + } + + /** + * Catalog config of Iceberg. + */ + public Builder catalogConfig(IcebergCatalogConfig catalogConfig) { + Utils.checkNotNull(catalogConfig, "catalogConfig"); + this.catalogConfig = catalogConfig; + return this; + } + + /** + * File format of Iceberg storage. + */ + public Builder formatConfig(FileFormat formatConfig) { + Utils.checkNotNull(formatConfig, "formatConfig"); + this.formatConfig = formatConfig; + return this; + } + + /** + * Storage config of Iceberg. + */ + public Builder storageConfig(StorageConfig storageConfig) { + Utils.checkNotNull(storageConfig, "storageConfig"); + this.storageConfig = storageConfig; + return this; + } + + public DestinationIceberg build() { + return new DestinationIceberg( + catalogConfig, + formatConfig, + storageConfig); + } + + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"iceberg\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java new file mode 100644 index 000000000..8ecb7ff54 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.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 DestinationIcebergCatalogType { + HADOOP("Hadoop"); + + @JsonValue + private final String value; + + private DestinationIcebergCatalogType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java new file mode 100644 index 000000000..dc4ca5f12 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java @@ -0,0 +1,460 @@ +/* + * 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; +/** + * DestinationIcebergS3 - S3 object storage + */ + +public class DestinationIcebergS3 { + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + */ + @JsonProperty("access_key_id") + private String accessKeyId; + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_bucket_region") + private Optional s3BucketRegion; + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_endpoint") + private Optional s3Endpoint; + + /** + * Use path style access + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_path_style_access") + private Optional s3PathStyleAccess; + + /** + * The Warehouse Uri for Iceberg + */ + @JsonProperty("s3_warehouse_uri") + private String s3WarehouseUri; + + /** + * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + */ + @JsonProperty("secret_access_key") + private String secretAccessKey; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("storage_type") + private Optional storageType; + + @JsonCreator + public DestinationIcebergS3( + @JsonProperty("access_key_id") String accessKeyId, + @JsonProperty("s3_bucket_region") Optional s3BucketRegion, + @JsonProperty("s3_endpoint") Optional s3Endpoint, + @JsonProperty("s3_path_style_access") Optional s3PathStyleAccess, + @JsonProperty("s3_warehouse_uri") String s3WarehouseUri, + @JsonProperty("secret_access_key") String secretAccessKey, + @JsonProperty("storage_type") Optional storageType) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + Utils.checkNotNull(s3PathStyleAccess, "s3PathStyleAccess"); + Utils.checkNotNull(s3WarehouseUri, "s3WarehouseUri"); + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + Utils.checkNotNull(storageType, "storageType"); + this.accessKeyId = accessKeyId; + this.s3BucketRegion = s3BucketRegion; + this.s3Endpoint = s3Endpoint; + this.s3PathStyleAccess = s3PathStyleAccess; + this.s3WarehouseUri = s3WarehouseUri; + this.secretAccessKey = secretAccessKey; + this.storageType = storageType; + } + + public DestinationIcebergS3( + String accessKeyId, + String s3WarehouseUri, + String secretAccessKey) { + this(accessKeyId, Optional.empty(), Optional.empty(), Optional.empty(), s3WarehouseUri, secretAccessKey, Optional.empty()); + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + */ + @JsonIgnore + public String accessKeyId() { + return accessKeyId; + } + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional s3BucketRegion() { + return (Optional) s3BucketRegion; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional s3Endpoint() { + return (Optional) s3Endpoint; + } + + /** + * Use path style access + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional s3PathStyleAccess() { + return (Optional) s3PathStyleAccess; + } + + /** + * The Warehouse Uri for Iceberg + */ + @JsonIgnore + public String s3WarehouseUri() { + return s3WarehouseUri; + } + + /** + * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + */ + @JsonIgnore + public String secretAccessKey() { + return secretAccessKey; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional storageType() { + return (Optional) storageType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + */ + public DestinationIcebergS3 withAccessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + public DestinationIcebergS3 withS3BucketRegion(DestinationIcebergS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); + return this; + } + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + public DestinationIcebergS3 withS3BucketRegion(Optional s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + public DestinationIcebergS3 withS3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + public DestinationIcebergS3 withS3Endpoint(Optional s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + /** + * Use path style access + */ + public DestinationIcebergS3 withS3PathStyleAccess(boolean s3PathStyleAccess) { + Utils.checkNotNull(s3PathStyleAccess, "s3PathStyleAccess"); + this.s3PathStyleAccess = Optional.ofNullable(s3PathStyleAccess); + return this; + } + + /** + * Use path style access + */ + public DestinationIcebergS3 withS3PathStyleAccess(Optional s3PathStyleAccess) { + Utils.checkNotNull(s3PathStyleAccess, "s3PathStyleAccess"); + this.s3PathStyleAccess = s3PathStyleAccess; + return this; + } + + /** + * The Warehouse Uri for Iceberg + */ + public DestinationIcebergS3 withS3WarehouseUri(String s3WarehouseUri) { + Utils.checkNotNull(s3WarehouseUri, "s3WarehouseUri"); + this.s3WarehouseUri = s3WarehouseUri; + return this; + } + + /** + * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + */ + public DestinationIcebergS3 withSecretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + public DestinationIcebergS3 withStorageType(StorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public DestinationIcebergS3 withStorageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationIcebergS3 other = (DestinationIcebergS3) o; + return + java.util.Objects.deepEquals(this.accessKeyId, other.accessKeyId) && + java.util.Objects.deepEquals(this.s3BucketRegion, other.s3BucketRegion) && + java.util.Objects.deepEquals(this.s3Endpoint, other.s3Endpoint) && + java.util.Objects.deepEquals(this.s3PathStyleAccess, other.s3PathStyleAccess) && + java.util.Objects.deepEquals(this.s3WarehouseUri, other.s3WarehouseUri) && + java.util.Objects.deepEquals(this.secretAccessKey, other.secretAccessKey) && + java.util.Objects.deepEquals(this.storageType, other.storageType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + accessKeyId, + s3BucketRegion, + s3Endpoint, + s3PathStyleAccess, + s3WarehouseUri, + secretAccessKey, + storageType); + } + + @Override + public String toString() { + return Utils.toString(DestinationIcebergS3.class, + "accessKeyId", accessKeyId, + "s3BucketRegion", s3BucketRegion, + "s3Endpoint", s3Endpoint, + "s3PathStyleAccess", s3PathStyleAccess, + "s3WarehouseUri", s3WarehouseUri, + "secretAccessKey", secretAccessKey, + "storageType", storageType); + } + + public final static class Builder { + + private String accessKeyId; + + private Optional s3BucketRegion; + + private Optional s3Endpoint; + + private Optional s3PathStyleAccess; + + private String s3WarehouseUri; + + private String secretAccessKey; + + private Optional storageType; + + private Builder() { + // force use of static builder() method + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + */ + public Builder accessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + public Builder s3BucketRegion(DestinationIcebergS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); + return this; + } + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + public Builder s3BucketRegion(Optional s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + public Builder s3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + public Builder s3Endpoint(Optional s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + /** + * Use path style access + */ + public Builder s3PathStyleAccess(boolean s3PathStyleAccess) { + Utils.checkNotNull(s3PathStyleAccess, "s3PathStyleAccess"); + this.s3PathStyleAccess = Optional.ofNullable(s3PathStyleAccess); + return this; + } + + /** + * Use path style access + */ + public Builder s3PathStyleAccess(Optional s3PathStyleAccess) { + Utils.checkNotNull(s3PathStyleAccess, "s3PathStyleAccess"); + this.s3PathStyleAccess = s3PathStyleAccess; + return this; + } + + /** + * The Warehouse Uri for Iceberg + */ + public Builder s3WarehouseUri(String s3WarehouseUri) { + Utils.checkNotNull(s3WarehouseUri, "s3WarehouseUri"); + this.s3WarehouseUri = s3WarehouseUri; + return this; + } + + /** + * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + */ + public Builder secretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + public Builder storageType(StorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public Builder storageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + public DestinationIcebergS3 build() { + if (s3BucketRegion == null) { + s3BucketRegion = _SINGLETON_VALUE_S3BucketRegion.value(); + } + if (s3Endpoint == null) { + s3Endpoint = _SINGLETON_VALUE_S3Endpoint.value(); + } + if (s3PathStyleAccess == null) { + s3PathStyleAccess = _SINGLETON_VALUE_S3PathStyleAccess.value(); + } + if (storageType == null) { + storageType = _SINGLETON_VALUE_StorageType.value(); + } + return new DestinationIcebergS3( + accessKeyId, + s3BucketRegion, + s3Endpoint, + s3PathStyleAccess, + s3WarehouseUri, + secretAccessKey, + storageType); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_S3BucketRegion = + new LazySingletonValue<>( + "s3_bucket_region", + "\"\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_S3Endpoint = + new LazySingletonValue<>( + "s3_endpoint", + "\"\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_S3PathStyleAccess = + new LazySingletonValue<>( + "s3_path_style_access", + "true", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StorageType = + new LazySingletonValue<>( + "storage_type", + "\"S3\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java new file mode 100644 index 000000000..c69934bfb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * DestinationIcebergS3BucketRegion - The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ +public enum DestinationIcebergS3BucketRegion { + UNKNOWN(""), + AF_SOUTH1("af-south-1"), + AP_EAST1("ap-east-1"), + AP_NORTHEAST1("ap-northeast-1"), + AP_NORTHEAST2("ap-northeast-2"), + AP_NORTHEAST3("ap-northeast-3"), + AP_SOUTH1("ap-south-1"), + AP_SOUTH2("ap-south-2"), + AP_SOUTHEAST1("ap-southeast-1"), + AP_SOUTHEAST2("ap-southeast-2"), + AP_SOUTHEAST3("ap-southeast-3"), + AP_SOUTHEAST4("ap-southeast-4"), + CA_CENTRAL1("ca-central-1"), + CA_WEST1("ca-west-1"), + CN_NORTH1("cn-north-1"), + CN_NORTHWEST1("cn-northwest-1"), + EU_CENTRAL1("eu-central-1"), + EU_CENTRAL2("eu-central-2"), + EU_NORTH1("eu-north-1"), + EU_SOUTH1("eu-south-1"), + EU_SOUTH2("eu-south-2"), + EU_WEST1("eu-west-1"), + EU_WEST2("eu-west-2"), + EU_WEST3("eu-west-3"), + IL_CENTRAL1("il-central-1"), + ME_CENTRAL1("me-central-1"), + ME_SOUTH1("me-south-1"), + SA_EAST1("sa-east-1"), + US_EAST1("us-east-1"), + US_EAST2("us-east-2"), + US_GOV_EAST1("us-gov-east-1"), + US_GOV_WEST1("us-gov-west-1"), + US_WEST1("us-west-1"), + US_WEST2("us-west-2"); + + @JsonValue + private final String value; + + private DestinationIcebergS3BucketRegion(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java new file mode 100644 index 000000000..12882abf4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.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 DestinationIcebergSchemasCatalogConfigCatalogType { + REST("Rest"); + + @JsonValue + private final String value; + + private DestinationIcebergSchemasCatalogConfigCatalogType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java new file mode 100644 index 000000000..1833f60be --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.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 DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType { + GLUE("Glue"); + + @JsonValue + private final String value; + + private DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java new file mode 100644 index 000000000..2da5bf301 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.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 DestinationIcebergSchemasCatalogType { + JDBC("Jdbc"); + + @JsonValue + private final String value; + + private DestinationIcebergSchemasCatalogType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java new file mode 100644 index 000000000..c68a0d619 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.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 DestinationIcebergStorageType { + MANAGED("MANAGED"); + + @JsonValue + private final String value; + + private DestinationIcebergStorageType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DevNull.java b/src/main/java/com/airbyte/api/models/shared/DevNull.java new file mode 100644 index 000000000..3a1b8f67d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DevNull.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 DevNull { + DEV_NULL("dev-null"); + + @JsonValue + private final String value; + + private DevNull(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DropboxSign.java b/src/main/java/com/airbyte/api/models/shared/DropboxSign.java new file mode 100644 index 000000000..f29dbcfc1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DropboxSign.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 DropboxSign { + DROPBOX_SIGN("dropbox-sign"); + + @JsonValue + private final String value; + + private DropboxSign(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Eventbrite.java b/src/main/java/com/airbyte/api/models/shared/Eventbrite.java new file mode 100644 index 000000000..b459e9f20 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Eventbrite.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 Eventbrite { + EVENTBRITE("eventbrite"); + + @JsonValue + private final String value; + + private Eventbrite(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java b/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java new file mode 100644 index 000000000..f7817fae5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java @@ -0,0 +1,236 @@ +/* + * 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; +/** + * EveryNThEntry - For each stream, log every N-th entry with a maximum cap. + */ + +public class EveryNThEntry { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("logging_type") + private Optional loggingType; + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("max_entry_count") + private Optional maxEntryCount; + + /** + * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. + */ + @JsonProperty("nth_entry_to_log") + private double nthEntryToLog; + + @JsonCreator + public EveryNThEntry( + @JsonProperty("logging_type") Optional loggingType, + @JsonProperty("max_entry_count") Optional maxEntryCount, + @JsonProperty("nth_entry_to_log") double nthEntryToLog) { + Utils.checkNotNull(loggingType, "loggingType"); + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + Utils.checkNotNull(nthEntryToLog, "nthEntryToLog"); + this.loggingType = loggingType; + this.maxEntryCount = maxEntryCount; + this.nthEntryToLog = nthEntryToLog; + } + + public EveryNThEntry( + double nthEntryToLog) { + this(Optional.empty(), Optional.empty(), nthEntryToLog); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional loggingType() { + return (Optional) loggingType; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional maxEntryCount() { + return (Optional) maxEntryCount; + } + + /** + * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. + */ + @JsonIgnore + public double nthEntryToLog() { + return nthEntryToLog; + } + + public final static Builder builder() { + return new Builder(); + } + + public EveryNThEntry withLoggingType(DestinationDevNullLoggingType loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = Optional.ofNullable(loggingType); + return this; + } + + public EveryNThEntry withLoggingType(Optional loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = loggingType; + return this; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public EveryNThEntry withMaxEntryCount(double maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = Optional.ofNullable(maxEntryCount); + return this; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public EveryNThEntry withMaxEntryCount(Optional maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = maxEntryCount; + return this; + } + + /** + * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. + */ + public EveryNThEntry withNthEntryToLog(double nthEntryToLog) { + Utils.checkNotNull(nthEntryToLog, "nthEntryToLog"); + this.nthEntryToLog = nthEntryToLog; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EveryNThEntry other = (EveryNThEntry) o; + return + java.util.Objects.deepEquals(this.loggingType, other.loggingType) && + java.util.Objects.deepEquals(this.maxEntryCount, other.maxEntryCount) && + java.util.Objects.deepEquals(this.nthEntryToLog, other.nthEntryToLog); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + loggingType, + maxEntryCount, + nthEntryToLog); + } + + @Override + public String toString() { + return Utils.toString(EveryNThEntry.class, + "loggingType", loggingType, + "maxEntryCount", maxEntryCount, + "nthEntryToLog", nthEntryToLog); + } + + public final static class Builder { + + private Optional loggingType; + + private Optional maxEntryCount; + + private Double nthEntryToLog; + + private Builder() { + // force use of static builder() method + } + + public Builder loggingType(DestinationDevNullLoggingType loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = Optional.ofNullable(loggingType); + return this; + } + + public Builder loggingType(Optional loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = loggingType; + return this; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public Builder maxEntryCount(double maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = Optional.ofNullable(maxEntryCount); + return this; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public Builder maxEntryCount(Optional maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = maxEntryCount; + return this; + } + + /** + * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. + */ + public Builder nthEntryToLog(double nthEntryToLog) { + Utils.checkNotNull(nthEntryToLog, "nthEntryToLog"); + this.nthEntryToLog = nthEntryToLog; + return this; + } + + public EveryNThEntry build() { + if (loggingType == null) { + loggingType = _SINGLETON_VALUE_LoggingType.value(); + } + if (maxEntryCount == null) { + maxEntryCount = _SINGLETON_VALUE_MaxEntryCount.value(); + } + return new EveryNThEntry( + loggingType, + maxEntryCount, + nthEntryToLog); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_LoggingType = + new LazySingletonValue<>( + "logging_type", + "\"EveryNth\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_MaxEntryCount = + new LazySingletonValue<>( + "max_entry_count", + "100", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Failing.java b/src/main/java/com/airbyte/api/models/shared/Failing.java new file mode 100644 index 000000000..46608033f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Failing.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 Failing { + + /** + * Number of messages after which to fail. + */ + @JsonProperty("num_messages") + private long numMessages; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("test_destination_type") + private Optional testDestinationType; + + @JsonCreator + public Failing( + @JsonProperty("num_messages") long numMessages) { + Utils.checkNotNull(numMessages, "numMessages"); + this.numMessages = numMessages; + this.testDestinationType = Builder._SINGLETON_VALUE_TestDestinationType.value(); + } + + /** + * Number of messages after which to fail. + */ + @JsonIgnore + public long numMessages() { + return numMessages; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional testDestinationType() { + return (Optional) testDestinationType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Number of messages after which to fail. + */ + public Failing withNumMessages(long numMessages) { + Utils.checkNotNull(numMessages, "numMessages"); + this.numMessages = numMessages; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Failing other = (Failing) o; + return + java.util.Objects.deepEquals(this.numMessages, other.numMessages) && + java.util.Objects.deepEquals(this.testDestinationType, other.testDestinationType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + numMessages, + testDestinationType); + } + + @Override + public String toString() { + return Utils.toString(Failing.class, + "numMessages", numMessages, + "testDestinationType", testDestinationType); + } + + public final static class Builder { + + private Long numMessages; + + private Builder() { + // force use of static builder() method + } + + /** + * Number of messages after which to fail. + */ + public Builder numMessages(long numMessages) { + Utils.checkNotNull(numMessages, "numMessages"); + this.numMessages = numMessages; + return this; + } + + public Failing build() { + return new Failing( + numMessages); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_TestDestinationType = + new LazySingletonValue<>( + "test_destination_type", + "\"FAILING\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/FileFormat.java b/src/main/java/com/airbyte/api/models/shared/FileFormat.java index 4adc94eae..7ad41feb0 100644 --- a/src/main/java/com/airbyte/api/models/shared/FileFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/FileFormat.java @@ -4,39 +4,331 @@ 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.JsonValue; +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; /** - * FileFormat - The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + * FileFormat - File format of Iceberg storage. */ -public enum FileFormat { - CSV("csv"), - JSON("json"), - JSONL("jsonl"), - EXCEL("excel"), - EXCEL_BINARY("excel_binary"), - FWF("fwf"), - FEATHER("feather"), - PARQUET("parquet"), - YAML("yaml"); - - @JsonValue - private final String value; - - private FileFormat(String value) { - this.value = value; + +public class FileFormat { + + /** + * Auto compact data files when stream close + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("auto_compact") + private Optional autoCompact; + + /** + * Specify the target size of Iceberg data file when performing a compaction action. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("compact_target_file_size_in_mb") + private Optional compactTargetFileSizeInMb; + + /** + * Iceberg data file flush batch size. Incoming rows write to cache firstly; When cache size reaches this 'batch size', flush into real Iceberg data file. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("flush_batch_size") + private Optional flushBatchSize; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("format") + private Optional format; + + @JsonCreator + public FileFormat( + @JsonProperty("auto_compact") Optional autoCompact, + @JsonProperty("compact_target_file_size_in_mb") Optional compactTargetFileSizeInMb, + @JsonProperty("flush_batch_size") Optional flushBatchSize, + @JsonProperty("format") Optional format) { + Utils.checkNotNull(autoCompact, "autoCompact"); + Utils.checkNotNull(compactTargetFileSizeInMb, "compactTargetFileSizeInMb"); + Utils.checkNotNull(flushBatchSize, "flushBatchSize"); + Utils.checkNotNull(format, "format"); + this.autoCompact = autoCompact; + this.compactTargetFileSizeInMb = compactTargetFileSizeInMb; + this.flushBatchSize = flushBatchSize; + this.format = format; + } + + public FileFormat() { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Auto compact data files when stream close + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional autoCompact() { + return (Optional) autoCompact; + } + + /** + * Specify the target size of Iceberg data file when performing a compaction action. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional compactTargetFileSizeInMb() { + return (Optional) compactTargetFileSizeInMb; + } + + /** + * Iceberg data file flush batch size. Incoming rows write to cache firstly; When cache size reaches this 'batch size', flush into real Iceberg data file. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional flushBatchSize() { + return (Optional) flushBatchSize; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional format() { + return (Optional) format; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Auto compact data files when stream close + */ + public FileFormat withAutoCompact(boolean autoCompact) { + Utils.checkNotNull(autoCompact, "autoCompact"); + this.autoCompact = Optional.ofNullable(autoCompact); + return this; + } + + /** + * Auto compact data files when stream close + */ + public FileFormat withAutoCompact(Optional autoCompact) { + Utils.checkNotNull(autoCompact, "autoCompact"); + this.autoCompact = autoCompact; + return this; + } + + /** + * Specify the target size of Iceberg data file when performing a compaction action. + */ + public FileFormat withCompactTargetFileSizeInMb(long compactTargetFileSizeInMb) { + Utils.checkNotNull(compactTargetFileSizeInMb, "compactTargetFileSizeInMb"); + this.compactTargetFileSizeInMb = Optional.ofNullable(compactTargetFileSizeInMb); + return this; + } + + /** + * Specify the target size of Iceberg data file when performing a compaction action. + */ + public FileFormat withCompactTargetFileSizeInMb(Optional compactTargetFileSizeInMb) { + Utils.checkNotNull(compactTargetFileSizeInMb, "compactTargetFileSizeInMb"); + this.compactTargetFileSizeInMb = compactTargetFileSizeInMb; + return this; + } + + /** + * Iceberg data file flush batch size. Incoming rows write to cache firstly; When cache size reaches this 'batch size', flush into real Iceberg data file. + */ + public FileFormat withFlushBatchSize(long flushBatchSize) { + Utils.checkNotNull(flushBatchSize, "flushBatchSize"); + this.flushBatchSize = Optional.ofNullable(flushBatchSize); + return this; + } + + /** + * Iceberg data file flush batch size. Incoming rows write to cache firstly; When cache size reaches this 'batch size', flush into real Iceberg data file. + */ + public FileFormat withFlushBatchSize(Optional flushBatchSize) { + Utils.checkNotNull(flushBatchSize, "flushBatchSize"); + this.flushBatchSize = flushBatchSize; + return this; + } + + public FileFormat withFormat(FileStorageFormat format) { + Utils.checkNotNull(format, "format"); + this.format = Optional.ofNullable(format); + return this; + } + + public FileFormat withFormat(Optional format) { + Utils.checkNotNull(format, "format"); + this.format = format; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileFormat other = (FileFormat) o; + return + java.util.Objects.deepEquals(this.autoCompact, other.autoCompact) && + java.util.Objects.deepEquals(this.compactTargetFileSizeInMb, other.compactTargetFileSizeInMb) && + java.util.Objects.deepEquals(this.flushBatchSize, other.flushBatchSize) && + java.util.Objects.deepEquals(this.format, other.format); } - public String value() { - return value; + @Override + public int hashCode() { + return java.util.Objects.hash( + autoCompact, + compactTargetFileSizeInMb, + flushBatchSize, + format); + } + + @Override + public String toString() { + return Utils.toString(FileFormat.class, + "autoCompact", autoCompact, + "compactTargetFileSizeInMb", compactTargetFileSizeInMb, + "flushBatchSize", flushBatchSize, + "format", format); + } + + public final static class Builder { + + private Optional autoCompact; + + private Optional compactTargetFileSizeInMb; + + private Optional flushBatchSize; + + private Optional format; + + private Builder() { + // force use of static builder() method + } + + /** + * Auto compact data files when stream close + */ + public Builder autoCompact(boolean autoCompact) { + Utils.checkNotNull(autoCompact, "autoCompact"); + this.autoCompact = Optional.ofNullable(autoCompact); + return this; + } + + /** + * Auto compact data files when stream close + */ + public Builder autoCompact(Optional autoCompact) { + Utils.checkNotNull(autoCompact, "autoCompact"); + this.autoCompact = autoCompact; + return this; + } + + /** + * Specify the target size of Iceberg data file when performing a compaction action. + */ + public Builder compactTargetFileSizeInMb(long compactTargetFileSizeInMb) { + Utils.checkNotNull(compactTargetFileSizeInMb, "compactTargetFileSizeInMb"); + this.compactTargetFileSizeInMb = Optional.ofNullable(compactTargetFileSizeInMb); + return this; + } + + /** + * Specify the target size of Iceberg data file when performing a compaction action. + */ + public Builder compactTargetFileSizeInMb(Optional compactTargetFileSizeInMb) { + Utils.checkNotNull(compactTargetFileSizeInMb, "compactTargetFileSizeInMb"); + this.compactTargetFileSizeInMb = compactTargetFileSizeInMb; + return this; + } + + /** + * Iceberg data file flush batch size. Incoming rows write to cache firstly; When cache size reaches this 'batch size', flush into real Iceberg data file. + */ + public Builder flushBatchSize(long flushBatchSize) { + Utils.checkNotNull(flushBatchSize, "flushBatchSize"); + this.flushBatchSize = Optional.ofNullable(flushBatchSize); + return this; + } + + /** + * Iceberg data file flush batch size. Incoming rows write to cache firstly; When cache size reaches this 'batch size', flush into real Iceberg data file. + */ + public Builder flushBatchSize(Optional flushBatchSize) { + Utils.checkNotNull(flushBatchSize, "flushBatchSize"); + this.flushBatchSize = flushBatchSize; + return this; + } + + public Builder format(FileStorageFormat format) { + Utils.checkNotNull(format, "format"); + this.format = Optional.ofNullable(format); + return this; + } + + public Builder format(Optional format) { + Utils.checkNotNull(format, "format"); + this.format = format; + return this; + } + + public FileFormat build() { + if (autoCompact == null) { + autoCompact = _SINGLETON_VALUE_AutoCompact.value(); + } + if (compactTargetFileSizeInMb == null) { + compactTargetFileSizeInMb = _SINGLETON_VALUE_CompactTargetFileSizeInMb.value(); + } + if (flushBatchSize == null) { + flushBatchSize = _SINGLETON_VALUE_FlushBatchSize.value(); + } + if (format == null) { + format = _SINGLETON_VALUE_Format.value(); + } + return new FileFormat( + autoCompact, + compactTargetFileSizeInMb, + flushBatchSize, + format); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_AutoCompact = + new LazySingletonValue<>( + "auto_compact", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_CompactTargetFileSizeInMb = + new LazySingletonValue<>( + "compact_target_file_size_in_mb", + "100", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_FlushBatchSize = + new LazySingletonValue<>( + "flush_batch_size", + "10000", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Format = + new LazySingletonValue<>( + "format", + "\"Parquet\"", + new TypeReference>() {}); } } + diff --git a/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java b/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java new file mode 100644 index 000000000..5fcc5cbb6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java @@ -0,0 +1,32 @@ +/* + * 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 FileStorageFormat { + PARQUET("Parquet"), + AVRO("Avro"); + + @JsonValue + private final String value; + + private FileStorageFormat(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java b/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java new file mode 100644 index 000000000..f7ef2f63d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java @@ -0,0 +1,194 @@ +/* + * 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; +/** + * FirstNEntries - Log first N entries per stream. + */ + +public class FirstNEntries { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("logging_type") + private Optional loggingType; + + /** + * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("max_entry_count") + private Optional maxEntryCount; + + @JsonCreator + public FirstNEntries( + @JsonProperty("logging_type") Optional loggingType, + @JsonProperty("max_entry_count") Optional maxEntryCount) { + Utils.checkNotNull(loggingType, "loggingType"); + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.loggingType = loggingType; + this.maxEntryCount = maxEntryCount; + } + + public FirstNEntries() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional loggingType() { + return (Optional) loggingType; + } + + /** + * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional maxEntryCount() { + return (Optional) maxEntryCount; + } + + public final static Builder builder() { + return new Builder(); + } + + public FirstNEntries withLoggingType(LoggingType loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = Optional.ofNullable(loggingType); + return this; + } + + public FirstNEntries withLoggingType(Optional loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = loggingType; + return this; + } + + /** + * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public FirstNEntries withMaxEntryCount(double maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = Optional.ofNullable(maxEntryCount); + return this; + } + + /** + * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public FirstNEntries withMaxEntryCount(Optional maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = maxEntryCount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FirstNEntries other = (FirstNEntries) o; + return + java.util.Objects.deepEquals(this.loggingType, other.loggingType) && + java.util.Objects.deepEquals(this.maxEntryCount, other.maxEntryCount); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + loggingType, + maxEntryCount); + } + + @Override + public String toString() { + return Utils.toString(FirstNEntries.class, + "loggingType", loggingType, + "maxEntryCount", maxEntryCount); + } + + public final static class Builder { + + private Optional loggingType; + + private Optional maxEntryCount; + + private Builder() { + // force use of static builder() method + } + + public Builder loggingType(LoggingType loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = Optional.ofNullable(loggingType); + return this; + } + + public Builder loggingType(Optional loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = loggingType; + return this; + } + + /** + * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public Builder maxEntryCount(double maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = Optional.ofNullable(maxEntryCount); + return this; + } + + /** + * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public Builder maxEntryCount(Optional maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = maxEntryCount; + return this; + } + + public FirstNEntries build() { + if (loggingType == null) { + loggingType = _SINGLETON_VALUE_LoggingType.value(); + } + if (maxEntryCount == null) { + maxEntryCount = _SINGLETON_VALUE_MaxEntryCount.value(); + } + return new FirstNEntries( + loggingType, + maxEntryCount); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_LoggingType = + new LazySingletonValue<>( + "logging_type", + "\"FirstN\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_MaxEntryCount = + new LazySingletonValue<>( + "max_entry_count", + "100", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Freshchat.java b/src/main/java/com/airbyte/api/models/shared/Freshchat.java new file mode 100644 index 000000000..87545784a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Freshchat.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 Freshchat { + FRESHCHAT("freshchat"); + + @JsonValue + private final String value; + + private Freshchat(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java b/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java new file mode 100644 index 000000000..e35c61a05 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java @@ -0,0 +1,194 @@ +/* + * 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; +/** + * GlueCatalog - The GlueCatalog connects to a AWS Glue Catalog + */ + +public class GlueCatalog { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("catalog_type") + private Optional catalogType; + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("database") + private Optional database; + + @JsonCreator + public GlueCatalog( + @JsonProperty("catalog_type") Optional catalogType, + @JsonProperty("database") Optional database) { + Utils.checkNotNull(catalogType, "catalogType"); + Utils.checkNotNull(database, "database"); + this.catalogType = catalogType; + this.database = database; + } + + public GlueCatalog() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional catalogType() { + return (Optional) catalogType; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional database() { + return (Optional) database; + } + + public final static Builder builder() { + return new Builder(); + } + + public GlueCatalog withCatalogType(DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public GlueCatalog withCatalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public GlueCatalog withDatabase(String database) { + Utils.checkNotNull(database, "database"); + this.database = Optional.ofNullable(database); + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public GlueCatalog withDatabase(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GlueCatalog other = (GlueCatalog) o; + return + java.util.Objects.deepEquals(this.catalogType, other.catalogType) && + java.util.Objects.deepEquals(this.database, other.database); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + catalogType, + database); + } + + @Override + public String toString() { + return Utils.toString(GlueCatalog.class, + "catalogType", catalogType, + "database", database); + } + + public final static class Builder { + + private Optional catalogType; + + private Optional database; + + private Builder() { + // force use of static builder() method + } + + public Builder catalogType(DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public Builder catalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public Builder database(String database) { + Utils.checkNotNull(database, "database"); + this.database = Optional.ofNullable(database); + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public Builder database(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + public GlueCatalog build() { + if (catalogType == null) { + catalogType = _SINGLETON_VALUE_CatalogType.value(); + } + if (database == null) { + database = _SINGLETON_VALUE_Database.value(); + } + return new GlueCatalog( + catalogType, + database); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_CatalogType = + new LazySingletonValue<>( + "catalog_type", + "\"Glue\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Database = + new LazySingletonValue<>( + "database", + "\"public\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java b/src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java new file mode 100644 index 000000000..ded317448 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java @@ -0,0 +1,194 @@ +/* + * 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; +/** + * HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig - A Hadoop catalog doesn’t need to connect to a Hive MetaStore, but can only be used with HDFS or similar file systems that support atomic rename. + */ + +public class HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("catalog_type") + private Optional catalogType; + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("database") + private Optional database; + + @JsonCreator + public HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig( + @JsonProperty("catalog_type") Optional catalogType, + @JsonProperty("database") Optional database) { + Utils.checkNotNull(catalogType, "catalogType"); + Utils.checkNotNull(database, "database"); + this.catalogType = catalogType; + this.database = database; + } + + public HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional catalogType() { + return (Optional) catalogType; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional database() { + return (Optional) database; + } + + public final static Builder builder() { + return new Builder(); + } + + public HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig withCatalogType(DestinationIcebergCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig withCatalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + public HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig withDatabase(String database) { + Utils.checkNotNull(database, "database"); + this.database = Optional.ofNullable(database); + return this; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + public HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig withDatabase(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig other = (HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig) o; + return + java.util.Objects.deepEquals(this.catalogType, other.catalogType) && + java.util.Objects.deepEquals(this.database, other.database); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + catalogType, + database); + } + + @Override + public String toString() { + return Utils.toString(HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.class, + "catalogType", catalogType, + "database", database); + } + + public final static class Builder { + + private Optional catalogType; + + private Optional database; + + private Builder() { + // force use of static builder() method + } + + public Builder catalogType(DestinationIcebergCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public Builder catalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + public Builder database(String database) { + Utils.checkNotNull(database, "database"); + this.database = Optional.ofNullable(database); + return this; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + public Builder database(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + public HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig build() { + if (catalogType == null) { + catalogType = _SINGLETON_VALUE_CatalogType.value(); + } + if (database == null) { + database = _SINGLETON_VALUE_Database.value(); + } + return new HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig( + catalogType, + database); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_CatalogType = + new LazySingletonValue<>( + "catalog_type", + "\"Hadoop\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Database = + new LazySingletonValue<>( + "database", + "\"default\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java b/src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java new file mode 100644 index 000000000..21b9649d0 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java @@ -0,0 +1,233 @@ +/* + * 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 HiveCatalogUseApacheHiveMetaStore { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("catalog_type") + private Optional catalogType; + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("database") + private Optional database; + + /** + * Hive MetaStore thrift server uri of iceberg catalog. + */ + @JsonProperty("hive_thrift_uri") + private String hiveThriftUri; + + @JsonCreator + public HiveCatalogUseApacheHiveMetaStore( + @JsonProperty("catalog_type") Optional catalogType, + @JsonProperty("database") Optional database, + @JsonProperty("hive_thrift_uri") String hiveThriftUri) { + Utils.checkNotNull(catalogType, "catalogType"); + Utils.checkNotNull(database, "database"); + Utils.checkNotNull(hiveThriftUri, "hiveThriftUri"); + this.catalogType = catalogType; + this.database = database; + this.hiveThriftUri = hiveThriftUri; + } + + public HiveCatalogUseApacheHiveMetaStore( + String hiveThriftUri) { + this(Optional.empty(), Optional.empty(), hiveThriftUri); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional catalogType() { + return (Optional) catalogType; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional database() { + return (Optional) database; + } + + /** + * Hive MetaStore thrift server uri of iceberg catalog. + */ + @JsonIgnore + public String hiveThriftUri() { + return hiveThriftUri; + } + + public final static Builder builder() { + return new Builder(); + } + + public HiveCatalogUseApacheHiveMetaStore withCatalogType(CatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public HiveCatalogUseApacheHiveMetaStore withCatalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + public HiveCatalogUseApacheHiveMetaStore withDatabase(String database) { + Utils.checkNotNull(database, "database"); + this.database = Optional.ofNullable(database); + return this; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + public HiveCatalogUseApacheHiveMetaStore withDatabase(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + /** + * Hive MetaStore thrift server uri of iceberg catalog. + */ + public HiveCatalogUseApacheHiveMetaStore withHiveThriftUri(String hiveThriftUri) { + Utils.checkNotNull(hiveThriftUri, "hiveThriftUri"); + this.hiveThriftUri = hiveThriftUri; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HiveCatalogUseApacheHiveMetaStore other = (HiveCatalogUseApacheHiveMetaStore) o; + return + java.util.Objects.deepEquals(this.catalogType, other.catalogType) && + java.util.Objects.deepEquals(this.database, other.database) && + java.util.Objects.deepEquals(this.hiveThriftUri, other.hiveThriftUri); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + catalogType, + database, + hiveThriftUri); + } + + @Override + public String toString() { + return Utils.toString(HiveCatalogUseApacheHiveMetaStore.class, + "catalogType", catalogType, + "database", database, + "hiveThriftUri", hiveThriftUri); + } + + public final static class Builder { + + private Optional catalogType; + + private Optional database; + + private String hiveThriftUri; + + private Builder() { + // force use of static builder() method + } + + public Builder catalogType(CatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public Builder catalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + public Builder database(String database) { + Utils.checkNotNull(database, "database"); + this.database = Optional.ofNullable(database); + return this; + } + + /** + * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". + */ + public Builder database(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + /** + * Hive MetaStore thrift server uri of iceberg catalog. + */ + public Builder hiveThriftUri(String hiveThriftUri) { + Utils.checkNotNull(hiveThriftUri, "hiveThriftUri"); + this.hiveThriftUri = hiveThriftUri; + return this; + } + + public HiveCatalogUseApacheHiveMetaStore build() { + if (catalogType == null) { + catalogType = _SINGLETON_VALUE_CatalogType.value(); + } + if (database == null) { + database = _SINGLETON_VALUE_Database.value(); + } + return new HiveCatalogUseApacheHiveMetaStore( + catalogType, + database, + hiveThriftUri); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_CatalogType = + new LazySingletonValue<>( + "catalog_type", + "\"Hive\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Database = + new LazySingletonValue<>( + "database", + "\"default\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Iceberg.java b/src/main/java/com/airbyte/api/models/shared/Iceberg.java new file mode 100644 index 000000000..a4b510d4e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Iceberg.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 Iceberg { + ICEBERG("iceberg"); + + @JsonValue + private final String value; + + private Iceberg(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/IcebergCatalogConfig.java b/src/main/java/com/airbyte/api/models/shared/IcebergCatalogConfig.java new file mode 100644 index 000000000..485d1a7f7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/IcebergCatalogConfig.java @@ -0,0 +1,124 @@ +/* + * 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; + +/** + * IcebergCatalogConfig - Catalog config of Iceberg. + */ + +@JsonDeserialize(using = IcebergCatalogConfig._Deserializer.class) +public class IcebergCatalogConfig { + + @com.fasterxml.jackson.annotation.JsonValue + private TypedObject value; + + private IcebergCatalogConfig(TypedObject value) { + this.value = value; + } + + public static IcebergCatalogConfig of(HiveCatalogUseApacheHiveMetaStore value) { + Utils.checkNotNull(value, "value"); + return new IcebergCatalogConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static IcebergCatalogConfig of(HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig value) { + Utils.checkNotNull(value, "value"); + return new IcebergCatalogConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static IcebergCatalogConfig of(JdbcCatalogUseRelationalDatabase value) { + Utils.checkNotNull(value, "value"); + return new IcebergCatalogConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static IcebergCatalogConfig of(RESTCatalog value) { + Utils.checkNotNull(value, "value"); + return new IcebergCatalogConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static IcebergCatalogConfig of(GlueCatalog value) { + Utils.checkNotNull(value, "value"); + return new IcebergCatalogConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *
      + *
    • {@code HiveCatalogUseApacheHiveMetaStore}
    • + *
    • {@code HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig}
    • + *
    • {@code JdbcCatalogUseRelationalDatabase}
    • + *
    • {@code RESTCatalog}
    • + *
    • {@code GlueCatalog}
    • + *
    + * + *

    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; + } + IcebergCatalogConfig other = (IcebergCatalogConfig) 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(IcebergCatalogConfig.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)); + } + } + + @Override + public String toString() { + return Utils.toString(IcebergCatalogConfig.class, + "value", value); + } + +} diff --git a/src/main/java/com/airbyte/api/models/shared/JdbcCatalogUseRelationalDatabase.java b/src/main/java/com/airbyte/api/models/shared/JdbcCatalogUseRelationalDatabase.java new file mode 100644 index 000000000..9c61e3ee5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/JdbcCatalogUseRelationalDatabase.java @@ -0,0 +1,499 @@ +/* + * 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; +/** + * JdbcCatalogUseRelationalDatabase - Using a table in a relational database to manage Iceberg tables through JDBC. Read more <a href="https://iceberg.apache.org/docs/latest/jdbc/">here</a>. Supporting: PostgreSQL + */ + +public class JdbcCatalogUseRelationalDatabase { + + /** + * Iceberg catalog metadata tables are written to catalog schema. The usual value for this field is "public". + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("catalog_schema") + private Optional catalogSchema; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("catalog_type") + private Optional catalogType; + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("database") + private Optional database; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("jdbc_url") + private Optional jdbcUrl; + + /** + * Password associated with the username. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("password") + private Optional password; + + /** + * Encrypt data using SSL. When activating SSL, please select one of the connection modes. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ssl") + private Optional ssl; + + /** + * Username to use to access the database. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("username") + private Optional username; + + @JsonCreator + public JdbcCatalogUseRelationalDatabase( + @JsonProperty("catalog_schema") Optional catalogSchema, + @JsonProperty("catalog_type") Optional catalogType, + @JsonProperty("database") Optional database, + @JsonProperty("jdbc_url") Optional jdbcUrl, + @JsonProperty("password") Optional password, + @JsonProperty("ssl") Optional ssl, + @JsonProperty("username") Optional username) { + Utils.checkNotNull(catalogSchema, "catalogSchema"); + Utils.checkNotNull(catalogType, "catalogType"); + Utils.checkNotNull(database, "database"); + Utils.checkNotNull(jdbcUrl, "jdbcUrl"); + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(ssl, "ssl"); + Utils.checkNotNull(username, "username"); + this.catalogSchema = catalogSchema; + this.catalogType = catalogType; + this.database = database; + this.jdbcUrl = jdbcUrl; + this.password = password; + this.ssl = ssl; + this.username = username; + } + + public JdbcCatalogUseRelationalDatabase() { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Iceberg catalog metadata tables are written to catalog schema. The usual value for this field is "public". + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional catalogSchema() { + return (Optional) catalogSchema; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional catalogType() { + return (Optional) catalogType; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional database() { + return (Optional) database; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional jdbcUrl() { + return (Optional) jdbcUrl; + } + + /** + * Password associated with the username. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional password() { + return (Optional) password; + } + + /** + * Encrypt data using SSL. When activating SSL, please select one of the connection modes. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional ssl() { + return (Optional) ssl; + } + + /** + * Username to use to access the database. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional username() { + return (Optional) username; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Iceberg catalog metadata tables are written to catalog schema. The usual value for this field is "public". + */ + public JdbcCatalogUseRelationalDatabase withCatalogSchema(String catalogSchema) { + Utils.checkNotNull(catalogSchema, "catalogSchema"); + this.catalogSchema = Optional.ofNullable(catalogSchema); + return this; + } + + /** + * Iceberg catalog metadata tables are written to catalog schema. The usual value for this field is "public". + */ + public JdbcCatalogUseRelationalDatabase withCatalogSchema(Optional catalogSchema) { + Utils.checkNotNull(catalogSchema, "catalogSchema"); + this.catalogSchema = catalogSchema; + return this; + } + + public JdbcCatalogUseRelationalDatabase withCatalogType(DestinationIcebergSchemasCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public JdbcCatalogUseRelationalDatabase withCatalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public JdbcCatalogUseRelationalDatabase withDatabase(String database) { + Utils.checkNotNull(database, "database"); + this.database = Optional.ofNullable(database); + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public JdbcCatalogUseRelationalDatabase withDatabase(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + public JdbcCatalogUseRelationalDatabase withJdbcUrl(String jdbcUrl) { + Utils.checkNotNull(jdbcUrl, "jdbcUrl"); + this.jdbcUrl = Optional.ofNullable(jdbcUrl); + return this; + } + + public JdbcCatalogUseRelationalDatabase withJdbcUrl(Optional jdbcUrl) { + Utils.checkNotNull(jdbcUrl, "jdbcUrl"); + this.jdbcUrl = jdbcUrl; + return this; + } + + /** + * Password associated with the username. + */ + public JdbcCatalogUseRelationalDatabase withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + /** + * Password associated with the username. + */ + public JdbcCatalogUseRelationalDatabase withPassword(Optional password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + /** + * Encrypt data using SSL. When activating SSL, please select one of the connection modes. + */ + public JdbcCatalogUseRelationalDatabase withSsl(boolean ssl) { + Utils.checkNotNull(ssl, "ssl"); + this.ssl = Optional.ofNullable(ssl); + return this; + } + + /** + * Encrypt data using SSL. When activating SSL, please select one of the connection modes. + */ + public JdbcCatalogUseRelationalDatabase withSsl(Optional ssl) { + Utils.checkNotNull(ssl, "ssl"); + this.ssl = ssl; + return this; + } + + /** + * Username to use to access the database. + */ + public JdbcCatalogUseRelationalDatabase withUsername(String username) { + Utils.checkNotNull(username, "username"); + this.username = Optional.ofNullable(username); + return this; + } + + /** + * Username to use to access the database. + */ + public JdbcCatalogUseRelationalDatabase withUsername(Optional 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; + } + JdbcCatalogUseRelationalDatabase other = (JdbcCatalogUseRelationalDatabase) o; + return + java.util.Objects.deepEquals(this.catalogSchema, other.catalogSchema) && + java.util.Objects.deepEquals(this.catalogType, other.catalogType) && + java.util.Objects.deepEquals(this.database, other.database) && + java.util.Objects.deepEquals(this.jdbcUrl, other.jdbcUrl) && + java.util.Objects.deepEquals(this.password, other.password) && + java.util.Objects.deepEquals(this.ssl, other.ssl) && + java.util.Objects.deepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + catalogSchema, + catalogType, + database, + jdbcUrl, + password, + ssl, + username); + } + + @Override + public String toString() { + return Utils.toString(JdbcCatalogUseRelationalDatabase.class, + "catalogSchema", catalogSchema, + "catalogType", catalogType, + "database", database, + "jdbcUrl", jdbcUrl, + "password", password, + "ssl", ssl, + "username", username); + } + + public final static class Builder { + + private Optional catalogSchema; + + private Optional catalogType; + + private Optional database; + + private Optional jdbcUrl = Optional.empty(); + + private Optional password = Optional.empty(); + + private Optional ssl; + + private Optional username = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * Iceberg catalog metadata tables are written to catalog schema. The usual value for this field is "public". + */ + public Builder catalogSchema(String catalogSchema) { + Utils.checkNotNull(catalogSchema, "catalogSchema"); + this.catalogSchema = Optional.ofNullable(catalogSchema); + return this; + } + + /** + * Iceberg catalog metadata tables are written to catalog schema. The usual value for this field is "public". + */ + public Builder catalogSchema(Optional catalogSchema) { + Utils.checkNotNull(catalogSchema, "catalogSchema"); + this.catalogSchema = catalogSchema; + return this; + } + + public Builder catalogType(DestinationIcebergSchemasCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public Builder catalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public Builder database(String database) { + Utils.checkNotNull(database, "database"); + this.database = Optional.ofNullable(database); + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public Builder database(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + public Builder jdbcUrl(String jdbcUrl) { + Utils.checkNotNull(jdbcUrl, "jdbcUrl"); + this.jdbcUrl = Optional.ofNullable(jdbcUrl); + return this; + } + + public Builder jdbcUrl(Optional jdbcUrl) { + Utils.checkNotNull(jdbcUrl, "jdbcUrl"); + this.jdbcUrl = jdbcUrl; + return this; + } + + /** + * Password associated with the username. + */ + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + /** + * Password associated with the username. + */ + public Builder password(Optional password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + /** + * Encrypt data using SSL. When activating SSL, please select one of the connection modes. + */ + public Builder ssl(boolean ssl) { + Utils.checkNotNull(ssl, "ssl"); + this.ssl = Optional.ofNullable(ssl); + return this; + } + + /** + * Encrypt data using SSL. When activating SSL, please select one of the connection modes. + */ + public Builder ssl(Optional ssl) { + Utils.checkNotNull(ssl, "ssl"); + this.ssl = ssl; + return this; + } + + /** + * Username to use to access the database. + */ + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = Optional.ofNullable(username); + return this; + } + + /** + * Username to use to access the database. + */ + public Builder username(Optional username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public JdbcCatalogUseRelationalDatabase build() { + if (catalogSchema == null) { + catalogSchema = _SINGLETON_VALUE_CatalogSchema.value(); + } + if (catalogType == null) { + catalogType = _SINGLETON_VALUE_CatalogType.value(); + } + if (database == null) { + database = _SINGLETON_VALUE_Database.value(); + } + if (ssl == null) { + ssl = _SINGLETON_VALUE_Ssl.value(); + } + return new JdbcCatalogUseRelationalDatabase( + catalogSchema, + catalogType, + database, + jdbcUrl, + password, + ssl, + username); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_CatalogSchema = + new LazySingletonValue<>( + "catalog_schema", + "\"public\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_CatalogType = + new LazySingletonValue<>( + "catalog_type", + "\"Jdbc\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Database = + new LazySingletonValue<>( + "database", + "\"public\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Ssl = + new LazySingletonValue<>( + "ssl", + "false", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java b/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java new file mode 100644 index 000000000..162de3b49 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Kissmetrics.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 Kissmetrics { + KISSMETRICS("kissmetrics"); + + @JsonValue + private final String value; + + private Kissmetrics(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Lob.java b/src/main/java/com/airbyte/api/models/shared/Lob.java new file mode 100644 index 000000000..6f4a8b899 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Lob.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 Lob { + LOB("lob"); + + @JsonValue + private final String value; + + private Lob(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Logging.java b/src/main/java/com/airbyte/api/models/shared/Logging.java new file mode 100644 index 000000000..0367bafa0 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Logging.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 Logging { + + /** + * Configurate how the messages are logged. + */ + @JsonProperty("logging_config") + private LoggingConfiguration loggingConfig; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("test_destination_type") + private Optional testDestinationType; + + @JsonCreator + public Logging( + @JsonProperty("logging_config") LoggingConfiguration loggingConfig) { + Utils.checkNotNull(loggingConfig, "loggingConfig"); + this.loggingConfig = loggingConfig; + this.testDestinationType = Builder._SINGLETON_VALUE_TestDestinationType.value(); + } + + /** + * Configurate how the messages are logged. + */ + @JsonIgnore + public LoggingConfiguration loggingConfig() { + return loggingConfig; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional testDestinationType() { + return (Optional) testDestinationType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Configurate how the messages are logged. + */ + public Logging withLoggingConfig(LoggingConfiguration loggingConfig) { + Utils.checkNotNull(loggingConfig, "loggingConfig"); + this.loggingConfig = loggingConfig; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Logging other = (Logging) o; + return + java.util.Objects.deepEquals(this.loggingConfig, other.loggingConfig) && + java.util.Objects.deepEquals(this.testDestinationType, other.testDestinationType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + loggingConfig, + testDestinationType); + } + + @Override + public String toString() { + return Utils.toString(Logging.class, + "loggingConfig", loggingConfig, + "testDestinationType", testDestinationType); + } + + public final static class Builder { + + private LoggingConfiguration loggingConfig; + + private Builder() { + // force use of static builder() method + } + + /** + * Configurate how the messages are logged. + */ + public Builder loggingConfig(LoggingConfiguration loggingConfig) { + Utils.checkNotNull(loggingConfig, "loggingConfig"); + this.loggingConfig = loggingConfig; + return this; + } + + public Logging build() { + return new Logging( + loggingConfig); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_TestDestinationType = + new LazySingletonValue<>( + "test_destination_type", + "\"LOGGING\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java b/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java new file mode 100644 index 000000000..3f2a77877 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java @@ -0,0 +1,110 @@ +/* + * 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; + +/** + * LoggingConfiguration - Configurate how the messages are logged. + */ + +@JsonDeserialize(using = LoggingConfiguration._Deserializer.class) +public class LoggingConfiguration { + + @com.fasterxml.jackson.annotation.JsonValue + private TypedObject value; + + private LoggingConfiguration(TypedObject value) { + this.value = value; + } + + public static LoggingConfiguration of(FirstNEntries value) { + Utils.checkNotNull(value, "value"); + return new LoggingConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static LoggingConfiguration of(EveryNThEntry value) { + Utils.checkNotNull(value, "value"); + return new LoggingConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static LoggingConfiguration of(RandomSampling value) { + Utils.checkNotNull(value, "value"); + return new LoggingConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *
      + *
    • {@code FirstNEntries}
    • + *
    • {@code EveryNThEntry}
    • + *
    • {@code RandomSampling}
    • + *
    + * + *

    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; + } + LoggingConfiguration other = (LoggingConfiguration) 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(LoggingConfiguration.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(LoggingConfiguration.class, + "value", value); + } + +} diff --git a/src/main/java/com/airbyte/api/models/shared/LoggingType.java b/src/main/java/com/airbyte/api/models/shared/LoggingType.java new file mode 100644 index 000000000..9700a8ba3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/LoggingType.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 LoggingType { + FIRST_N("FirstN"); + + @JsonValue + private final String value; + + private LoggingType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java b/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java index d420dc603..028401230 100644 --- a/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java +++ b/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java @@ -4,16 +4,20 @@ 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; /** * PostgresConnection - Postgres can be used to store vector data and retrieve embeddings. */ @@ -32,8 +36,9 @@ public class PostgresConnection { /** * Enter the name of the default schema */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("default_schema") - private String defaultSchema; + private Optional defaultSchema; /** * Enter the account name you want to use to access the database. @@ -44,8 +49,9 @@ public class PostgresConnection { /** * Enter the port you want to use to access the database */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") - private long port; + private Optional port; /** * Enter the name of the user you want to use to access the database @@ -57,9 +63,9 @@ public class PostgresConnection { public PostgresConnection( @JsonProperty("credentials") DestinationPgvectorCredentials credentials, @JsonProperty("database") String database, - @JsonProperty("default_schema") String defaultSchema, + @JsonProperty("default_schema") Optional defaultSchema, @JsonProperty("host") String host, - @JsonProperty("port") long port, + @JsonProperty("port") Optional port, @JsonProperty("username") String username) { Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(database, "database"); @@ -74,6 +80,14 @@ public PostgresConnection( this.port = port; this.username = username; } + + public PostgresConnection( + DestinationPgvectorCredentials credentials, + String database, + String host, + String username) { + this(credentials, database, Optional.empty(), host, Optional.empty(), username); + } @JsonIgnore public DestinationPgvectorCredentials credentials() { @@ -91,9 +105,10 @@ public String database() { /** * Enter the name of the default schema */ + @SuppressWarnings("unchecked") @JsonIgnore - public String defaultSchema() { - return defaultSchema; + public Optional defaultSchema() { + return (Optional) defaultSchema; } /** @@ -107,9 +122,10 @@ public String host() { /** * Enter the port you want to use to access the database */ + @SuppressWarnings("unchecked") @JsonIgnore - public long port() { - return port; + public Optional port() { + return (Optional) port; } /** @@ -143,6 +159,15 @@ public PostgresConnection withDatabase(String database) { * Enter the name of the default schema */ public PostgresConnection withDefaultSchema(String defaultSchema) { + Utils.checkNotNull(defaultSchema, "defaultSchema"); + this.defaultSchema = Optional.ofNullable(defaultSchema); + return this; + } + + /** + * Enter the name of the default schema + */ + public PostgresConnection withDefaultSchema(Optional defaultSchema) { Utils.checkNotNull(defaultSchema, "defaultSchema"); this.defaultSchema = defaultSchema; return this; @@ -161,6 +186,15 @@ public PostgresConnection withHost(String host) { * Enter the port you want to use to access the database */ public PostgresConnection withPort(long port) { + Utils.checkNotNull(port, "port"); + this.port = Optional.ofNullable(port); + return this; + } + + /** + * Enter the port you want to use to access the database + */ + public PostgresConnection withPort(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; return this; @@ -221,11 +255,11 @@ public final static class Builder { private String database; - private String defaultSchema; + private Optional defaultSchema; private String host; - private Long port; + private Optional port; private String username; @@ -252,6 +286,15 @@ public Builder database(String database) { * Enter the name of the default schema */ public Builder defaultSchema(String defaultSchema) { + Utils.checkNotNull(defaultSchema, "defaultSchema"); + this.defaultSchema = Optional.ofNullable(defaultSchema); + return this; + } + + /** + * Enter the name of the default schema + */ + public Builder defaultSchema(Optional defaultSchema) { Utils.checkNotNull(defaultSchema, "defaultSchema"); this.defaultSchema = defaultSchema; return this; @@ -270,6 +313,15 @@ public Builder host(String host) { * Enter the port you want to use to access the database */ public Builder port(long port) { + Utils.checkNotNull(port, "port"); + this.port = Optional.ofNullable(port); + return this; + } + + /** + * Enter the port you want to use to access the database + */ + public Builder port(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; return this; @@ -285,6 +337,12 @@ public Builder username(String username) { } public PostgresConnection build() { + if (defaultSchema == null) { + defaultSchema = _SINGLETON_VALUE_DefaultSchema.value(); + } + if (port == null) { + port = _SINGLETON_VALUE_Port.value(); + } return new PostgresConnection( credentials, database, @@ -293,6 +351,18 @@ public PostgresConnection build() { port, username); } + + private static final LazySingletonValue> _SINGLETON_VALUE_DefaultSchema = + new LazySingletonValue<>( + "default_schema", + "\"public\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Port = + new LazySingletonValue<>( + "port", + "5432", + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/RESTCatalog.java b/src/main/java/com/airbyte/api/models/shared/RESTCatalog.java new file mode 100644 index 000000000..1b0bc763b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RESTCatalog.java @@ -0,0 +1,240 @@ +/* + * 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; +/** + * RESTCatalog - The RESTCatalog connects to a REST server at the specified URI + */ + +public class RESTCatalog { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("catalog_type") + private Optional catalogType; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("rest_credential") + private Optional restCredential; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("rest_token") + private Optional restToken; + + @JsonProperty("rest_uri") + private String restUri; + + @JsonCreator + public RESTCatalog( + @JsonProperty("catalog_type") Optional catalogType, + @JsonProperty("rest_credential") Optional restCredential, + @JsonProperty("rest_token") Optional restToken, + @JsonProperty("rest_uri") String restUri) { + Utils.checkNotNull(catalogType, "catalogType"); + Utils.checkNotNull(restCredential, "restCredential"); + Utils.checkNotNull(restToken, "restToken"); + Utils.checkNotNull(restUri, "restUri"); + this.catalogType = catalogType; + this.restCredential = restCredential; + this.restToken = restToken; + this.restUri = restUri; + } + + public RESTCatalog( + String restUri) { + this(Optional.empty(), Optional.empty(), Optional.empty(), restUri); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional catalogType() { + return (Optional) catalogType; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional restCredential() { + return (Optional) restCredential; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional restToken() { + return (Optional) restToken; + } + + @JsonIgnore + public String restUri() { + return restUri; + } + + public final static Builder builder() { + return new Builder(); + } + + public RESTCatalog withCatalogType(DestinationIcebergSchemasCatalogConfigCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public RESTCatalog withCatalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + public RESTCatalog withRestCredential(String restCredential) { + Utils.checkNotNull(restCredential, "restCredential"); + this.restCredential = Optional.ofNullable(restCredential); + return this; + } + + public RESTCatalog withRestCredential(Optional restCredential) { + Utils.checkNotNull(restCredential, "restCredential"); + this.restCredential = restCredential; + return this; + } + + public RESTCatalog withRestToken(String restToken) { + Utils.checkNotNull(restToken, "restToken"); + this.restToken = Optional.ofNullable(restToken); + return this; + } + + public RESTCatalog withRestToken(Optional restToken) { + Utils.checkNotNull(restToken, "restToken"); + this.restToken = restToken; + return this; + } + + public RESTCatalog withRestUri(String restUri) { + Utils.checkNotNull(restUri, "restUri"); + this.restUri = restUri; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RESTCatalog other = (RESTCatalog) o; + return + java.util.Objects.deepEquals(this.catalogType, other.catalogType) && + java.util.Objects.deepEquals(this.restCredential, other.restCredential) && + java.util.Objects.deepEquals(this.restToken, other.restToken) && + java.util.Objects.deepEquals(this.restUri, other.restUri); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + catalogType, + restCredential, + restToken, + restUri); + } + + @Override + public String toString() { + return Utils.toString(RESTCatalog.class, + "catalogType", catalogType, + "restCredential", restCredential, + "restToken", restToken, + "restUri", restUri); + } + + public final static class Builder { + + private Optional catalogType; + + private Optional restCredential = Optional.empty(); + + private Optional restToken = Optional.empty(); + + private String restUri; + + private Builder() { + // force use of static builder() method + } + + public Builder catalogType(DestinationIcebergSchemasCatalogConfigCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public Builder catalogType(Optional catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + public Builder restCredential(String restCredential) { + Utils.checkNotNull(restCredential, "restCredential"); + this.restCredential = Optional.ofNullable(restCredential); + return this; + } + + public Builder restCredential(Optional restCredential) { + Utils.checkNotNull(restCredential, "restCredential"); + this.restCredential = restCredential; + return this; + } + + public Builder restToken(String restToken) { + Utils.checkNotNull(restToken, "restToken"); + this.restToken = Optional.ofNullable(restToken); + return this; + } + + public Builder restToken(Optional restToken) { + Utils.checkNotNull(restToken, "restToken"); + this.restToken = restToken; + return this; + } + + public Builder restUri(String restUri) { + Utils.checkNotNull(restUri, "restUri"); + this.restUri = restUri; + return this; + } + + public RESTCatalog build() { + if (catalogType == null) { + catalogType = _SINGLETON_VALUE_CatalogType.value(); + } + return new RESTCatalog( + catalogType, + restCredential, + restToken, + restUri); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_CatalogType = + new LazySingletonValue<>( + "catalog_type", + "\"Rest\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/RandomSampling.java b/src/main/java/com/airbyte/api/models/shared/RandomSampling.java new file mode 100644 index 000000000..2920c3335 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RandomSampling.java @@ -0,0 +1,325 @@ +/* + * 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; +/** + * RandomSampling - For each stream, randomly log a percentage of the entries with a maximum cap. + */ + +public class RandomSampling { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("logging_type") + private Optional loggingType; + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("max_entry_count") + private Optional maxEntryCount; + + /** + * A positive floating number smaller than 1. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sampling_ratio") + private Optional samplingRatio; + + /** + * When the seed is unspecified, the current time millis will be used as the seed. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("seed") + private Optional seed; + + @JsonCreator + public RandomSampling( + @JsonProperty("logging_type") Optional loggingType, + @JsonProperty("max_entry_count") Optional maxEntryCount, + @JsonProperty("sampling_ratio") Optional samplingRatio, + @JsonProperty("seed") Optional seed) { + Utils.checkNotNull(loggingType, "loggingType"); + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + Utils.checkNotNull(samplingRatio, "samplingRatio"); + Utils.checkNotNull(seed, "seed"); + this.loggingType = loggingType; + this.maxEntryCount = maxEntryCount; + this.samplingRatio = samplingRatio; + this.seed = seed; + } + + public RandomSampling() { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional loggingType() { + return (Optional) loggingType; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional maxEntryCount() { + return (Optional) maxEntryCount; + } + + /** + * A positive floating number smaller than 1. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional samplingRatio() { + return (Optional) samplingRatio; + } + + /** + * When the seed is unspecified, the current time millis will be used as the seed. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional seed() { + return (Optional) seed; + } + + public final static Builder builder() { + return new Builder(); + } + + public RandomSampling withLoggingType(DestinationDevNullSchemasLoggingType loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = Optional.ofNullable(loggingType); + return this; + } + + public RandomSampling withLoggingType(Optional loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = loggingType; + return this; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public RandomSampling withMaxEntryCount(double maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = Optional.ofNullable(maxEntryCount); + return this; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public RandomSampling withMaxEntryCount(Optional maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = maxEntryCount; + return this; + } + + /** + * A positive floating number smaller than 1. + */ + public RandomSampling withSamplingRatio(double samplingRatio) { + Utils.checkNotNull(samplingRatio, "samplingRatio"); + this.samplingRatio = Optional.ofNullable(samplingRatio); + return this; + } + + /** + * A positive floating number smaller than 1. + */ + public RandomSampling withSamplingRatio(Optional samplingRatio) { + Utils.checkNotNull(samplingRatio, "samplingRatio"); + this.samplingRatio = samplingRatio; + return this; + } + + /** + * When the seed is unspecified, the current time millis will be used as the seed. + */ + public RandomSampling withSeed(double seed) { + Utils.checkNotNull(seed, "seed"); + this.seed = Optional.ofNullable(seed); + return this; + } + + /** + * When the seed is unspecified, the current time millis will be used as the seed. + */ + public RandomSampling withSeed(Optional seed) { + Utils.checkNotNull(seed, "seed"); + this.seed = seed; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RandomSampling other = (RandomSampling) o; + return + java.util.Objects.deepEquals(this.loggingType, other.loggingType) && + java.util.Objects.deepEquals(this.maxEntryCount, other.maxEntryCount) && + java.util.Objects.deepEquals(this.samplingRatio, other.samplingRatio) && + java.util.Objects.deepEquals(this.seed, other.seed); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + loggingType, + maxEntryCount, + samplingRatio, + seed); + } + + @Override + public String toString() { + return Utils.toString(RandomSampling.class, + "loggingType", loggingType, + "maxEntryCount", maxEntryCount, + "samplingRatio", samplingRatio, + "seed", seed); + } + + public final static class Builder { + + private Optional loggingType; + + private Optional maxEntryCount; + + private Optional samplingRatio; + + private Optional seed = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder loggingType(DestinationDevNullSchemasLoggingType loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = Optional.ofNullable(loggingType); + return this; + } + + public Builder loggingType(Optional loggingType) { + Utils.checkNotNull(loggingType, "loggingType"); + this.loggingType = loggingType; + return this; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public Builder maxEntryCount(double maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = Optional.ofNullable(maxEntryCount); + return this; + } + + /** + * Max number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + */ + public Builder maxEntryCount(Optional maxEntryCount) { + Utils.checkNotNull(maxEntryCount, "maxEntryCount"); + this.maxEntryCount = maxEntryCount; + return this; + } + + /** + * A positive floating number smaller than 1. + */ + public Builder samplingRatio(double samplingRatio) { + Utils.checkNotNull(samplingRatio, "samplingRatio"); + this.samplingRatio = Optional.ofNullable(samplingRatio); + return this; + } + + /** + * A positive floating number smaller than 1. + */ + public Builder samplingRatio(Optional samplingRatio) { + Utils.checkNotNull(samplingRatio, "samplingRatio"); + this.samplingRatio = samplingRatio; + return this; + } + + /** + * When the seed is unspecified, the current time millis will be used as the seed. + */ + public Builder seed(double seed) { + Utils.checkNotNull(seed, "seed"); + this.seed = Optional.ofNullable(seed); + return this; + } + + /** + * When the seed is unspecified, the current time millis will be used as the seed. + */ + public Builder seed(Optional seed) { + Utils.checkNotNull(seed, "seed"); + this.seed = seed; + return this; + } + + public RandomSampling build() { + if (loggingType == null) { + loggingType = _SINGLETON_VALUE_LoggingType.value(); + } + if (maxEntryCount == null) { + maxEntryCount = _SINGLETON_VALUE_MaxEntryCount.value(); + } + if (samplingRatio == null) { + samplingRatio = _SINGLETON_VALUE_SamplingRatio.value(); + } + return new RandomSampling( + loggingType, + maxEntryCount, + samplingRatio, + seed); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_LoggingType = + new LazySingletonValue<>( + "logging_type", + "\"RandomSampling\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_MaxEntryCount = + new LazySingletonValue<>( + "max_entry_count", + "100", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_SamplingRatio = + new LazySingletonValue<>( + "sampling_ratio", + "0.001", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Rollbar.java b/src/main/java/com/airbyte/api/models/shared/Rollbar.java new file mode 100644 index 000000000..c766722ac --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Rollbar.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 Rollbar { + ROLLBAR("rollbar"); + + @JsonValue + private final String value; + + private Rollbar(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/ServerManaged.java b/src/main/java/com/airbyte/api/models/shared/ServerManaged.java new file mode 100644 index 000000000..c40c97e67 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/ServerManaged.java @@ -0,0 +1,166 @@ +/* + * 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; +/** + * ServerManaged - Server-managed object storage + */ + +public class ServerManaged { + + /** + * The name of the managed warehouse + */ + @JsonProperty("managed_warehouse_name") + private String managedWarehouseName; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("storage_type") + private Optional storageType; + + @JsonCreator + public ServerManaged( + @JsonProperty("managed_warehouse_name") String managedWarehouseName, + @JsonProperty("storage_type") Optional storageType) { + Utils.checkNotNull(managedWarehouseName, "managedWarehouseName"); + Utils.checkNotNull(storageType, "storageType"); + this.managedWarehouseName = managedWarehouseName; + this.storageType = storageType; + } + + public ServerManaged( + String managedWarehouseName) { + this(managedWarehouseName, Optional.empty()); + } + + /** + * The name of the managed warehouse + */ + @JsonIgnore + public String managedWarehouseName() { + return managedWarehouseName; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional storageType() { + return (Optional) storageType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The name of the managed warehouse + */ + public ServerManaged withManagedWarehouseName(String managedWarehouseName) { + Utils.checkNotNull(managedWarehouseName, "managedWarehouseName"); + this.managedWarehouseName = managedWarehouseName; + return this; + } + + public ServerManaged withStorageType(DestinationIcebergStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public ServerManaged withStorageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ServerManaged other = (ServerManaged) o; + return + java.util.Objects.deepEquals(this.managedWarehouseName, other.managedWarehouseName) && + java.util.Objects.deepEquals(this.storageType, other.storageType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + managedWarehouseName, + storageType); + } + + @Override + public String toString() { + return Utils.toString(ServerManaged.class, + "managedWarehouseName", managedWarehouseName, + "storageType", storageType); + } + + public final static class Builder { + + private String managedWarehouseName; + + private Optional storageType; + + private Builder() { + // force use of static builder() method + } + + /** + * The name of the managed warehouse + */ + public Builder managedWarehouseName(String managedWarehouseName) { + Utils.checkNotNull(managedWarehouseName, "managedWarehouseName"); + this.managedWarehouseName = managedWarehouseName; + return this; + } + + public Builder storageType(DestinationIcebergStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public Builder storageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + public ServerManaged build() { + if (storageType == null) { + storageType = _SINGLETON_VALUE_StorageType.value(); + } + return new ServerManaged( + managedWarehouseName, + storageType); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_StorageType = + new LazySingletonValue<>( + "storage_type", + "\"MANAGED\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Silent.java b/src/main/java/com/airbyte/api/models/shared/Silent.java new file mode 100644 index 000000000..3c6396a40 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Silent.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 Silent { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("test_destination_type") + private Optional testDestinationType; + + @JsonCreator + public Silent() { + + this.testDestinationType = Builder._SINGLETON_VALUE_TestDestinationType.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional testDestinationType() { + return (Optional) testDestinationType; + } + + 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; + } + Silent other = (Silent) o; + return + java.util.Objects.deepEquals(this.testDestinationType, other.testDestinationType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + testDestinationType); + } + + @Override + public String toString() { + return Utils.toString(Silent.class, + "testDestinationType", testDestinationType); + } + + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public Silent build() { + return new Silent( + ); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_TestDestinationType = + new LazySingletonValue<>( + "test_destination_type", + "\"SILENT\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java b/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java new file mode 100644 index 000000000..081cdf5fa --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java @@ -0,0 +1,332 @@ +/* + * 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 SourceAlgolia { + + @JsonProperty("api_key") + private String apiKey; + + /** + * The application ID for your application found in settings + */ + @JsonProperty("application_id") + private String applicationId; + + /** + * Object ID within index for search queries + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("object_id") + private Optional objectId; + + /** + * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("search_query") + private Optional searchQuery; + + @JsonProperty("sourceType") + private Algolia sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceAlgolia( + @JsonProperty("api_key") String apiKey, + @JsonProperty("application_id") String applicationId, + @JsonProperty("object_id") Optional objectId, + @JsonProperty("search_query") Optional searchQuery, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(applicationId, "applicationId"); + Utils.checkNotNull(objectId, "objectId"); + Utils.checkNotNull(searchQuery, "searchQuery"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.applicationId = applicationId; + this.objectId = objectId; + this.searchQuery = searchQuery; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + public SourceAlgolia( + String apiKey, + String applicationId, + OffsetDateTime startDate) { + this(apiKey, applicationId, Optional.empty(), Optional.empty(), startDate); + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * The application ID for your application found in settings + */ + @JsonIgnore + public String applicationId() { + return applicationId; + } + + /** + * Object ID within index for search queries + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional objectId() { + return (Optional) objectId; + } + + /** + * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional searchQuery() { + return (Optional) searchQuery; + } + + @JsonIgnore + public Algolia sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceAlgolia withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * The application ID for your application found in settings + */ + public SourceAlgolia withApplicationId(String applicationId) { + Utils.checkNotNull(applicationId, "applicationId"); + this.applicationId = applicationId; + return this; + } + + /** + * Object ID within index for search queries + */ + public SourceAlgolia withObjectId(String objectId) { + Utils.checkNotNull(objectId, "objectId"); + this.objectId = Optional.ofNullable(objectId); + return this; + } + + /** + * Object ID within index for search queries + */ + public SourceAlgolia withObjectId(Optional objectId) { + Utils.checkNotNull(objectId, "objectId"); + this.objectId = objectId; + return this; + } + + /** + * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + */ + public SourceAlgolia withSearchQuery(String searchQuery) { + Utils.checkNotNull(searchQuery, "searchQuery"); + this.searchQuery = Optional.ofNullable(searchQuery); + return this; + } + + /** + * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + */ + public SourceAlgolia withSearchQuery(Optional searchQuery) { + Utils.checkNotNull(searchQuery, "searchQuery"); + this.searchQuery = searchQuery; + return this; + } + + public SourceAlgolia 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; + } + SourceAlgolia other = (SourceAlgolia) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.applicationId, other.applicationId) && + java.util.Objects.deepEquals(this.objectId, other.objectId) && + java.util.Objects.deepEquals(this.searchQuery, other.searchQuery) && + 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, + applicationId, + objectId, + searchQuery, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceAlgolia.class, + "apiKey", apiKey, + "applicationId", applicationId, + "objectId", objectId, + "searchQuery", searchQuery, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String apiKey; + + private String applicationId; + + private Optional objectId; + + private Optional searchQuery; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * The application ID for your application found in settings + */ + public Builder applicationId(String applicationId) { + Utils.checkNotNull(applicationId, "applicationId"); + this.applicationId = applicationId; + return this; + } + + /** + * Object ID within index for search queries + */ + public Builder objectId(String objectId) { + Utils.checkNotNull(objectId, "objectId"); + this.objectId = Optional.ofNullable(objectId); + return this; + } + + /** + * Object ID within index for search queries + */ + public Builder objectId(Optional objectId) { + Utils.checkNotNull(objectId, "objectId"); + this.objectId = objectId; + return this; + } + + /** + * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + */ + public Builder searchQuery(String searchQuery) { + Utils.checkNotNull(searchQuery, "searchQuery"); + this.searchQuery = Optional.ofNullable(searchQuery); + return this; + } + + /** + * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + */ + public Builder searchQuery(Optional searchQuery) { + Utils.checkNotNull(searchQuery, "searchQuery"); + this.searchQuery = searchQuery; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceAlgolia build() { + if (objectId == null) { + objectId = _SINGLETON_VALUE_ObjectId.value(); + } + if (searchQuery == null) { + searchQuery = _SINGLETON_VALUE_SearchQuery.value(); + } + return new SourceAlgolia( + apiKey, + applicationId, + objectId, + searchQuery, + startDate); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_ObjectId = + new LazySingletonValue<>( + "object_id", + "\"ecommerce-sample-data-9999996\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_SearchQuery = + new LazySingletonValue<>( + "search_query", + "\"hitsPerPage=2&getRankingInfo=1\"", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"algolia\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java b/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java new file mode 100644 index 000000000..30d9bb102 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceBeamer.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 SourceBeamer { + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Beamer sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceBeamer( + @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; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Beamer sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceBeamer withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceBeamer 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; + } + SourceBeamer other = (SourceBeamer) 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(SourceBeamer.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 + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceBeamer build() { + return new SourceBeamer( + apiKey, + startDate); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"beamer\"", + new TypeReference() {}); + } +} + 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 9d490acc0..2167e8c9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java @@ -60,6 +60,11 @@ public static SourceConfiguration of(SourceAirtable value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceAlgolia value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceAmazonAds value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -135,6 +140,11 @@ public static SourceConfiguration of(SourceBasecamp value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceBeamer 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(){})); @@ -310,6 +320,11 @@ public static SourceConfiguration of(SourceDremio value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceDropboxSign value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceDynamodb value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -320,6 +335,11 @@ public static SourceConfiguration of(SourceEmailoctopus value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceEventbrite value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceExchangeRates value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -365,6 +385,11 @@ public static SourceConfiguration of(SourceFreshcaller value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceFreshchat value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceFreshdesk value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -560,6 +585,11 @@ public static SourceConfiguration of(SourceK6Cloud value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceKissmetrics value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceKlarna value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -610,6 +640,11 @@ public static SourceConfiguration of(SourceLinnworks value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceLob value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceLokalise value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -915,6 +950,11 @@ public static SourceConfiguration of(SourceRkiCovid value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceRollbar value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceRss value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1040,6 +1080,11 @@ public static SourceConfiguration of(SourceSpacexApi value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceSplitIo value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceSquare value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1135,6 +1180,11 @@ public static SourceConfiguration of(SourceVantage value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceVwo value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceWebflow value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1223,6 +1273,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceAirbyte}
  • *
  • {@code SourceAircall}
  • *
  • {@code SourceAirtable}
  • + *
  • {@code SourceAlgolia}
  • *
  • {@code SourceAmazonAds}
  • *
  • {@code SourceAmazonSellerPartner}
  • *
  • {@code SourceAmazonSqs}
  • @@ -1238,6 +1289,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceAzureTable}
  • *
  • {@code SourceBambooHr}
  • *
  • {@code SourceBasecamp}
  • + *
  • {@code SourceBeamer}
  • *
  • {@code SourceBigquery}
  • *
  • {@code SourceBingAds}
  • *
  • {@code SourceBitly}
  • @@ -1273,8 +1325,10 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceDixa}
  • *
  • {@code SourceDockerhub}
  • *
  • {@code SourceDremio}
  • + *
  • {@code SourceDropboxSign}
  • *
  • {@code SourceDynamodb}
  • *
  • {@code SourceEmailoctopus}
  • + *
  • {@code SourceEventbrite}
  • *
  • {@code SourceExchangeRates}
  • *
  • {@code SourceEzofficeinventory}
  • *
  • {@code SourceFacebookMarketing}
  • @@ -1284,6 +1338,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceFirebolt}
  • *
  • {@code SourceFleetio}
  • *
  • {@code SourceFreshcaller}
  • + *
  • {@code SourceFreshchat}
  • *
  • {@code SourceFreshdesk}
  • *
  • {@code SourceFreshsales}
  • *
  • {@code SourceFront}
  • @@ -1323,6 +1378,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceJira}
  • *
  • {@code SourceJotform}
  • *
  • {@code SourceK6Cloud}
  • + *
  • {@code SourceKissmetrics}
  • *
  • {@code SourceKlarna}
  • *
  • {@code SourceKlaviyo}
  • *
  • {@code SourceKyve}
  • @@ -1333,6 +1389,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceLinkedinAds}
  • *
  • {@code SourceLinkedinPages}
  • *
  • {@code SourceLinnworks}
  • + *
  • {@code SourceLob}
  • *
  • {@code SourceLokalise}
  • *
  • {@code SourceLooker}
  • *
  • {@code SourceLuma}
  • @@ -1394,6 +1451,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceRedshift}
  • *
  • {@code SourceRetently}
  • *
  • {@code SourceRkiCovid}
  • + *
  • {@code SourceRollbar}
  • *
  • {@code SourceRss}
  • *
  • {@code SourceS3}
  • *
  • {@code SourceSalesforce}
  • @@ -1419,6 +1477,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceSnowflake}
  • *
  • {@code SourceSonarCloud}
  • *
  • {@code SourceSpacexApi}
  • + *
  • {@code SourceSplitIo}
  • *
  • {@code SourceSquare}
  • *
  • {@code SourceStrava}
  • *
  • {@code SourceStripe}
  • @@ -1438,6 +1497,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceTypeform}
  • *
  • {@code SourceUsCensus}
  • *
  • {@code SourceVantage}
  • + *
  • {@code SourceVwo}
  • *
  • {@code SourceWebflow}
  • *
  • {@code SourceWhenIWork}
  • *
  • {@code SourceWhiskyHunter}
  • @@ -1498,6 +1558,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), @@ -1513,6 +1574,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), @@ -1548,8 +1610,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), @@ -1559,6 +1623,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), @@ -1598,6 +1663,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), @@ -1608,6 +1674,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), @@ -1669,6 +1736,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), @@ -1694,6 +1762,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), @@ -1713,6 +1782,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/SourceDropboxSign.java b/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java new file mode 100644 index 000000000..6547a535e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.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 SourceDropboxSign { + + /** + * API key to use. Find it at https://app.hellosign.com/home/myAccount#api + */ + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private DropboxSign sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceDropboxSign( + @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; + } + + /** + * API key to use. Find it at https://app.hellosign.com/home/myAccount#api + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public DropboxSign sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * API key to use. Find it at https://app.hellosign.com/home/myAccount#api + */ + public SourceDropboxSign withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceDropboxSign 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; + } + SourceDropboxSign other = (SourceDropboxSign) 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(SourceDropboxSign.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 + } + + /** + * API key to use. Find it at https://app.hellosign.com/home/myAccount#api + */ + 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 SourceDropboxSign build() { + return new SourceDropboxSign( + apiKey, + startDate); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"dropbox-sign\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java b/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java new file mode 100644 index 000000000..29a049d3a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.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 SourceEventbrite { + + /** + * The private token to use for authenticating API requests. + */ + @JsonProperty("private_token") + private String privateToken; + + @JsonProperty("sourceType") + private Eventbrite sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceEventbrite( + @JsonProperty("private_token") String privateToken, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(privateToken, "privateToken"); + Utils.checkNotNull(startDate, "startDate"); + this.privateToken = privateToken; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + /** + * The private token to use for authenticating API requests. + */ + @JsonIgnore + public String privateToken() { + return privateToken; + } + + @JsonIgnore + public Eventbrite sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The private token to use for authenticating API requests. + */ + public SourceEventbrite withPrivateToken(String privateToken) { + Utils.checkNotNull(privateToken, "privateToken"); + this.privateToken = privateToken; + return this; + } + + public SourceEventbrite 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; + } + SourceEventbrite other = (SourceEventbrite) o; + return + java.util.Objects.deepEquals(this.privateToken, other.privateToken) && + 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( + privateToken, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceEventbrite.class, + "privateToken", privateToken, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String privateToken; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + /** + * The private token to use for authenticating API requests. + */ + public Builder privateToken(String privateToken) { + Utils.checkNotNull(privateToken, "privateToken"); + this.privateToken = privateToken; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceEventbrite build() { + return new SourceEventbrite( + privateToken, + startDate); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"eventbrite\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFile.java b/src/main/java/com/airbyte/api/models/shared/SourceFile.java index 01dbe10d0..65f5f1715 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFile.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFile.java @@ -32,7 +32,7 @@ public class SourceFile { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("format") - private Optional format; + private Optional format; /** * The storage Provider or Location of the file(s) which should be replicated. @@ -59,7 +59,7 @@ public class SourceFile { @JsonCreator public SourceFile( @JsonProperty("dataset_name") String datasetName, - @JsonProperty("format") Optional format, + @JsonProperty("format") Optional format, @JsonProperty("provider") StorageProvider provider, @JsonProperty("reader_options") Optional readerOptions, @JsonProperty("url") String url) { @@ -96,8 +96,8 @@ public String datasetName() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional format() { - return (Optional) format; + public Optional format() { + return (Optional) format; } /** @@ -146,7 +146,7 @@ public SourceFile withDatasetName(String datasetName) { /** * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). */ - public SourceFile withFormat(FileFormat format) { + public SourceFile withFormat(SourceFileFileFormat format) { Utils.checkNotNull(format, "format"); this.format = Optional.ofNullable(format); return this; @@ -155,7 +155,7 @@ public SourceFile withFormat(FileFormat format) { /** * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). */ - public SourceFile withFormat(Optional format) { + public SourceFile withFormat(Optional format) { Utils.checkNotNull(format, "format"); this.format = format; return this; @@ -241,7 +241,7 @@ public final static class Builder { private String datasetName; - private Optional format; + private Optional format; private StorageProvider provider; @@ -265,7 +265,7 @@ public Builder datasetName(String datasetName) { /** * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). */ - public Builder format(FileFormat format) { + public Builder format(SourceFileFileFormat format) { Utils.checkNotNull(format, "format"); this.format = Optional.ofNullable(format); return this; @@ -274,7 +274,7 @@ public Builder format(FileFormat format) { /** * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). */ - public Builder format(Optional format) { + public Builder format(Optional format) { Utils.checkNotNull(format, "format"); this.format = format; return this; @@ -328,11 +328,11 @@ public SourceFile build() { url); } - private static final LazySingletonValue> _SINGLETON_VALUE_Format = + private static final LazySingletonValue> _SINGLETON_VALUE_Format = new LazySingletonValue<>( "format", "\"csv\"", - new TypeReference>() {}); + new TypeReference>() {}); private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java new file mode 100644 index 000000000..56e10cabd --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * SourceFileFileFormat - The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + */ +public enum SourceFileFileFormat { + CSV("csv"), + JSON("json"), + JSONL("jsonl"), + EXCEL("excel"), + EXCEL_BINARY("excel_binary"), + FWF("fwf"), + FEATHER("feather"), + PARQUET("parquet"), + YAML("yaml"); + + @JsonValue + private final String value; + + private SourceFileFileFormat(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java new file mode 100644 index 000000000..c988f58de --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java @@ -0,0 +1,182 @@ +/* + * 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 SourceFreshchat { + + /** + * The unique account name for your Freshchat instance + */ + @JsonProperty("account_name") + private String accountName; + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Freshchat sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceFreshchat( + @JsonProperty("account_name") String accountName, + @JsonProperty("api_key") String apiKey, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(accountName, "accountName"); + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(startDate, "startDate"); + this.accountName = accountName; + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + /** + * The unique account name for your Freshchat instance + */ + @JsonIgnore + public String accountName() { + return accountName; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Freshchat sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The unique account name for your Freshchat instance + */ + public SourceFreshchat withAccountName(String accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = accountName; + return this; + } + + public SourceFreshchat withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceFreshchat 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; + } + SourceFreshchat other = (SourceFreshchat) o; + return + java.util.Objects.deepEquals(this.accountName, other.accountName) && + 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( + accountName, + apiKey, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceFreshchat.class, + "accountName", accountName, + "apiKey", apiKey, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String accountName; + + private String apiKey; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + /** + * The unique account name for your Freshchat instance + */ + public Builder accountName(String accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = accountName; + return this; + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceFreshchat build() { + return new SourceFreshchat( + accountName, + apiKey, + startDate); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"freshchat\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java b/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java new file mode 100644 index 000000000..5b39082c8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java @@ -0,0 +1,160 @@ +/* + * 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 SourceKissmetrics { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("password") + private Optional password; + + @JsonProperty("sourceType") + private Kissmetrics sourceType; + + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceKissmetrics( + @JsonProperty("password") Optional password, + @JsonProperty("username") String username) { + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(username, "username"); + this.password = password; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.username = username; + } + + public SourceKissmetrics( + String username) { + this(Optional.empty(), username); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional password() { + return (Optional) password; + } + + @JsonIgnore + public Kissmetrics sourceType() { + return sourceType; + } + + @JsonIgnore + public String username() { + return username; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceKissmetrics withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + public SourceKissmetrics withPassword(Optional password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public SourceKissmetrics 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; + } + SourceKissmetrics other = (SourceKissmetrics) o; + return + 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( + password, + sourceType, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceKissmetrics.class, + "password", password, + "sourceType", sourceType, + "username", username); + } + + public final static class Builder { + + private Optional password = Optional.empty(); + + private String username; + + private Builder() { + // force use of static builder() method + } + + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + 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 SourceKissmetrics build() { + return new SourceKissmetrics( + password, + username); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"kissmetrics\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLob.java b/src/main/java/com/airbyte/api/models/shared/SourceLob.java new file mode 100644 index 000000000..bb6b230ee --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceLob.java @@ -0,0 +1,232 @@ +/* + * 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 SourceLob { + + /** + * API key to use for authentication. You can find your account's API keys in your Dashboard Settings at https://dashboard.lob.com/settings/api-keys. + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * Max records per page limit + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("limit") + private Optional limit; + + @JsonProperty("sourceType") + private Lob sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceLob( + @JsonProperty("api_key") String apiKey, + @JsonProperty("limit") Optional limit, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(limit, "limit"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.limit = limit; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + public SourceLob( + String apiKey, + OffsetDateTime startDate) { + this(apiKey, Optional.empty(), startDate); + } + + /** + * API key to use for authentication. You can find your account's API keys in your Dashboard Settings at https://dashboard.lob.com/settings/api-keys. + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Max records per page limit + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional limit() { + return (Optional) limit; + } + + @JsonIgnore + public Lob sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * API key to use for authentication. You can find your account's API keys in your Dashboard Settings at https://dashboard.lob.com/settings/api-keys. + */ + public SourceLob withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Max records per page limit + */ + public SourceLob withLimit(String limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = Optional.ofNullable(limit); + return this; + } + + /** + * Max records per page limit + */ + public SourceLob withLimit(Optional limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = limit; + return this; + } + + public SourceLob 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; + } + SourceLob other = (SourceLob) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.limit, other.limit) && + 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, + limit, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceLob.class, + "apiKey", apiKey, + "limit", limit, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String apiKey; + + private Optional limit; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + /** + * API key to use for authentication. You can find your account's API keys in your Dashboard Settings at https://dashboard.lob.com/settings/api-keys. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Max records per page limit + */ + public Builder limit(String 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; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceLob build() { + if (limit == null) { + limit = _SINGLETON_VALUE_Limit.value(); + } + return new SourceLob( + apiKey, + limit, + startDate); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + new LazySingletonValue<>( + "limit", + "\"50\"", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"lob\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java b/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java new file mode 100644 index 000000000..eb8a98d60 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceRollbar.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 SourceRollbar { + + @JsonProperty("account_access_token") + private String accountAccessToken; + + @JsonProperty("project_access_token") + private String projectAccessToken; + + @JsonProperty("sourceType") + private Rollbar sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceRollbar( + @JsonProperty("account_access_token") String accountAccessToken, + @JsonProperty("project_access_token") String projectAccessToken, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(accountAccessToken, "accountAccessToken"); + Utils.checkNotNull(projectAccessToken, "projectAccessToken"); + Utils.checkNotNull(startDate, "startDate"); + this.accountAccessToken = accountAccessToken; + this.projectAccessToken = projectAccessToken; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public String accountAccessToken() { + return accountAccessToken; + } + + @JsonIgnore + public String projectAccessToken() { + return projectAccessToken; + } + + @JsonIgnore + public Rollbar sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceRollbar withAccountAccessToken(String accountAccessToken) { + Utils.checkNotNull(accountAccessToken, "accountAccessToken"); + this.accountAccessToken = accountAccessToken; + return this; + } + + public SourceRollbar withProjectAccessToken(String projectAccessToken) { + Utils.checkNotNull(projectAccessToken, "projectAccessToken"); + this.projectAccessToken = projectAccessToken; + return this; + } + + public SourceRollbar 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; + } + SourceRollbar other = (SourceRollbar) o; + return + java.util.Objects.deepEquals(this.accountAccessToken, other.accountAccessToken) && + java.util.Objects.deepEquals(this.projectAccessToken, other.projectAccessToken) && + 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( + accountAccessToken, + projectAccessToken, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceRollbar.class, + "accountAccessToken", accountAccessToken, + "projectAccessToken", projectAccessToken, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String accountAccessToken; + + private String projectAccessToken; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + public Builder accountAccessToken(String accountAccessToken) { + Utils.checkNotNull(accountAccessToken, "accountAccessToken"); + this.accountAccessToken = accountAccessToken; + return this; + } + + public Builder projectAccessToken(String projectAccessToken) { + Utils.checkNotNull(projectAccessToken, "projectAccessToken"); + this.projectAccessToken = projectAccessToken; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceRollbar build() { + return new SourceRollbar( + accountAccessToken, + projectAccessToken, + startDate); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"rollbar\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java b/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java new file mode 100644 index 000000000..e87e22fd0 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.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 SourceSplitIo { + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private SplitIo sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceSplitIo( + @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; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public SplitIo sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceSplitIo withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceSplitIo 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; + } + SourceSplitIo other = (SourceSplitIo) 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(SourceSplitIo.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 + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceSplitIo build() { + return new SourceSplitIo( + apiKey, + startDate); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"split-io\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVwo.java b/src/main/java/com/airbyte/api/models/shared/SourceVwo.java new file mode 100644 index 000000000..d1143173a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceVwo.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 SourceVwo { + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Vwo sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceVwo( + @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; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Vwo sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceVwo withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceVwo 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; + } + SourceVwo other = (SourceVwo) 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(SourceVwo.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 + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceVwo build() { + return new SourceVwo( + apiKey, + startDate); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"vwo\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SplitIo.java b/src/main/java/com/airbyte/api/models/shared/SplitIo.java new file mode 100644 index 000000000..d26f77223 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SplitIo.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 SplitIo { + SPLIT_IO("split-io"); + + @JsonValue + private final String value; + + private SplitIo(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/StorageConfig.java b/src/main/java/com/airbyte/api/models/shared/StorageConfig.java new file mode 100644 index 000000000..f02135720 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/StorageConfig.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; + +/** + * StorageConfig - Storage config of Iceberg. + */ + +@JsonDeserialize(using = StorageConfig._Deserializer.class) +public class StorageConfig { + + @com.fasterxml.jackson.annotation.JsonValue + private TypedObject value; + + private StorageConfig(TypedObject value) { + this.value = value; + } + + public static StorageConfig of(DestinationIcebergS3 value) { + Utils.checkNotNull(value, "value"); + return new StorageConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static StorageConfig of(ServerManaged value) { + Utils.checkNotNull(value, "value"); + return new StorageConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *
      + *
    • {@code DestinationIcebergS3}
    • + *
    • {@code ServerManaged}
    • + *
    + * + *

    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; + } + StorageConfig other = (StorageConfig) 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(StorageConfig.class, + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(StorageConfig.class, + "value", value); + } + +} diff --git a/src/main/java/com/airbyte/api/models/shared/StorageType.java b/src/main/java/com/airbyte/api/models/shared/StorageType.java new file mode 100644 index 000000000..04d2fa26f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/StorageType.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 StorageType { + S3("S3"); + + @JsonValue + private final String value; + + private StorageType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/TestDestination.java b/src/main/java/com/airbyte/api/models/shared/TestDestination.java new file mode 100644 index 000000000..6bd9ba800 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/TestDestination.java @@ -0,0 +1,117 @@ +/* + * 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; + +/** + * TestDestination - The type of destination to be used + */ + +@JsonDeserialize(using = TestDestination._Deserializer.class) +public class TestDestination { + + @com.fasterxml.jackson.annotation.JsonValue + private TypedObject value; + + private TestDestination(TypedObject value) { + this.value = value; + } + + public static TestDestination of(Logging value) { + Utils.checkNotNull(value, "value"); + return new TestDestination(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static TestDestination of(Silent value) { + Utils.checkNotNull(value, "value"); + return new TestDestination(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static TestDestination of(Throttled value) { + Utils.checkNotNull(value, "value"); + return new TestDestination(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static TestDestination of(Failing value) { + Utils.checkNotNull(value, "value"); + return new TestDestination(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *
      + *
    • {@code Logging}
    • + *
    • {@code Silent}
    • + *
    • {@code Throttled}
    • + *
    • {@code Failing}
    • + *
    + * + *

    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; + } + TestDestination other = (TestDestination) 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(TestDestination.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)); + } + } + + @Override + public String toString() { + return Utils.toString(TestDestination.class, + "value", value); + } + +} diff --git a/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java new file mode 100644 index 000000000..c800cf754 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/TestDestinationType.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 TestDestinationType { + LOGGING("LOGGING"); + + @JsonValue + private final String value; + + private TestDestinationType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Throttled.java b/src/main/java/com/airbyte/api/models/shared/Throttled.java new file mode 100644 index 000000000..e0ae8e9ae --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Throttled.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 Throttled { + + /** + * Number of milli-second to pause in between records. + */ + @JsonProperty("millis_per_record") + private long millisPerRecord; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("test_destination_type") + private Optional testDestinationType; + + @JsonCreator + public Throttled( + @JsonProperty("millis_per_record") long millisPerRecord) { + Utils.checkNotNull(millisPerRecord, "millisPerRecord"); + this.millisPerRecord = millisPerRecord; + this.testDestinationType = Builder._SINGLETON_VALUE_TestDestinationType.value(); + } + + /** + * Number of milli-second to pause in between records. + */ + @JsonIgnore + public long millisPerRecord() { + return millisPerRecord; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional testDestinationType() { + return (Optional) testDestinationType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Number of milli-second to pause in between records. + */ + public Throttled withMillisPerRecord(long millisPerRecord) { + Utils.checkNotNull(millisPerRecord, "millisPerRecord"); + this.millisPerRecord = millisPerRecord; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Throttled other = (Throttled) o; + return + java.util.Objects.deepEquals(this.millisPerRecord, other.millisPerRecord) && + java.util.Objects.deepEquals(this.testDestinationType, other.testDestinationType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + millisPerRecord, + testDestinationType); + } + + @Override + public String toString() { + return Utils.toString(Throttled.class, + "millisPerRecord", millisPerRecord, + "testDestinationType", testDestinationType); + } + + public final static class Builder { + + private Long millisPerRecord; + + private Builder() { + // force use of static builder() method + } + + /** + * Number of milli-second to pause in between records. + */ + public Builder millisPerRecord(long millisPerRecord) { + Utils.checkNotNull(millisPerRecord, "millisPerRecord"); + this.millisPerRecord = millisPerRecord; + return this; + } + + public Throttled build() { + return new Throttled( + millisPerRecord); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_TestDestinationType = + new LazySingletonValue<>( + "test_destination_type", + "\"THROTTLED\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Vwo.java b/src/main/java/com/airbyte/api/models/shared/Vwo.java new file mode 100644 index 000000000..784e98a56 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Vwo.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 Vwo { + VWO("vwo"); + + @JsonValue + private final String value; + + private Vwo(String value) { + this.value = value; + } + + public String value() { + return value; + } +}