diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 5deda3e8e..f44c68333 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: 241d5a786e59837e86f30500836a2a90 + docChecksum: 9d937f0b088a71ee7aaf5a76d6324576 docVersion: 1.0.0 - speakeasyVersion: 1.296.1 - generationVersion: 2.338.1 - releaseVersion: 1.4.1 - configChecksum: 7f0146c31f8d45dea6e579afdf257bf7 + speakeasyVersion: 1.335.2 + generationVersion: 2.372.3 + releaseVersion: 1.5.0 + configChecksum: ab72ffd6e84b0f36b5d464a90a3d1702 repoURL: https://github.com/airbytehq/airbyte-api-java-sdk.git repoSubDirectory: . published: true @@ -14,12 +14,13 @@ features: java: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.1 - core: 3.21.0 + core: 3.26.2 globalSecurity: 2.82.5 globalSecurityCallbacks: 0.1.0 globalServerURLs: 2.82.1 groups: 2.81.2 nullables: 0.1.0 + oauth2ClientCredentials: 0.0.2 sdkHooks: 0.1.0 unions: 0.0.4 generatedFiles: @@ -29,9 +30,11 @@ generatedFiles: - src/main/java/com/airbyte/api/Destinations.java - src/main/java/com/airbyte/api/Health.java - src/main/java/com/airbyte/api/Jobs.java + - src/main/java/com/airbyte/api/Organizations.java - src/main/java/com/airbyte/api/Permissions.java - src/main/java/com/airbyte/api/Sources.java - src/main/java/com/airbyte/api/Streams.java + - src/main/java/com/airbyte/api/Users.java - src/main/java/com/airbyte/api/Workspaces.java - src/main/java/com/airbyte/api/models/operations/CreateConnectionRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequestBuilder.java @@ -49,6 +52,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/CreateJobRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/GetJobRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/ListJobsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/CreatePermissionRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/DeletePermissionRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/GetPermissionRequestBuilder.java @@ -62,6 +66,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/PatchSourceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/PutSourceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/CreateWorkspaceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequestBuilder.java @@ -89,6 +94,7 @@ generatedFiles: - src/main/java/com/airbyte/api/utils/HTTPClient.java - src/main/java/com/airbyte/api/utils/HTTPRequest.java - src/main/java/com/airbyte/api/utils/HeaderMetadata.java + - src/main/java/com/airbyte/api/utils/Helpers.java - src/main/java/com/airbyte/api/utils/Hook.java - src/main/java/com/airbyte/api/utils/Hooks.java - src/main/java/com/airbyte/api/utils/JSON.java @@ -113,6 +119,7 @@ generatedFiles: - src/main/java/com/airbyte/api/utils/TypedObject.java - src/main/java/com/airbyte/api/utils/Types.java - src/main/java/com/airbyte/api/utils/Utils.java + - src/main/java/com/airbyte/api/models/errors/AuthException.java - src/main/java/com/airbyte/api/models/errors/SDKError.java - src/main/java/com/airbyte/api/models/operations/CreateConnectionResponse.java - src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java @@ -142,6 +149,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/GetJobResponse.java - src/main/java/com/airbyte/api/models/operations/ListJobsRequest.java - src/main/java/com/airbyte/api/models/operations/ListJobsResponse.java + - src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java - src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java - src/main/java/com/airbyte/api/models/operations/DeletePermissionRequest.java - src/main/java/com/airbyte/api/models/operations/DeletePermissionResponse.java @@ -165,6 +173,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java - src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java - src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java + - src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java + - src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java - src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java - src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java - src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java @@ -186,6 +196,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java - src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java - src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java + - src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java - src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java - src/main/java/com/airbyte/api/models/shared/AirbyteApiConnectionSchedule.java - src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java @@ -298,6 +309,13 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/AuthenticationMethod.java - src/main/java/com/airbyte/api/models/shared/Elasticsearch.java - src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java + - src/main/java/com/airbyte/api/models/shared/Firebolt.java + - src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java + - src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java + - src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java + - src/main/java/com/airbyte/api/models/shared/SQLInserts.java + - src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java + - src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java - src/main/java/com/airbyte/api/models/shared/Firestore.java - src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java - src/main/java/com/airbyte/api/models/shared/CredentialType.java @@ -340,21 +358,6 @@ 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/Langchain.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasMode.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainFake.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainMode.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainOpenAI.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainEmbedding.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingIndexing3Mode.java - - src/main/java/com/airbyte/api/models/shared/ChromaLocalPersistance.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingIndexingMode.java - - src/main/java/com/airbyte/api/models/shared/DocArrayHnswSearch.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingMode.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainPinecone.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainIndexing.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchainProcessingConfigModel.java - - src/main/java/com/airbyte/api/models/shared/DestinationLangchain.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 @@ -540,13 +543,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationRedshiftNoTunnel.java - src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHTunnelMethod.java - - src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasMethod.java - - src/main/java/com/airbyte/api/models/shared/Standard.java - - src/main/java/com/airbyte/api/models/shared/DestinationRedshiftEncryptionType.java - - src/main/java/com/airbyte/api/models/shared/AESCBCEnvelopeEncryption.java - - src/main/java/com/airbyte/api/models/shared/EncryptionType.java - - src/main/java/com/airbyte/api/models/shared/NoEncryption.java - - src/main/java/com/airbyte/api/models/shared/DestinationRedshiftEncryption.java - src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java - src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java @@ -627,7 +623,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAI.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexEmbedding.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCredentials.java - - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexIndexing.java + - src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java @@ -727,9 +723,12 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java - src/main/java/com/airbyte/api/models/shared/JobCreateRequest.java - src/main/java/com/airbyte/api/models/shared/JobsResponse.java + - src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java + - src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java - src/main/java/com/airbyte/api/models/shared/PermissionResponse.java - src/main/java/com/airbyte/api/models/shared/PermissionType.java - src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java + - src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java - src/main/java/com/airbyte/api/models/shared/PermissionsResponse.java - src/main/java/com/airbyte/api/models/shared/PermissionResponseRead.java - src/main/java/com/airbyte/api/models/shared/PermissionScope.java @@ -758,7 +757,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java - src/main/java/com/airbyte/api/models/shared/AWSRegion.java - src/main/java/com/airbyte/api/models/shared/OptionsList.java - - src/main/java/com/airbyte/api/models/shared/StreamName.java + - src/main/java/com/airbyte/api/models/shared/ReportName.java - src/main/java/com/airbyte/api/models/shared/ReportOptions.java - src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java - src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java @@ -786,6 +785,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceAuth0AuthenticationMethod.java - src/main/java/com/airbyte/api/models/shared/Auth0.java - src/main/java/com/airbyte/api/models/shared/SourceAuth0.java + - src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java - src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java - src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java @@ -850,6 +850,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceChargebee.java - src/main/java/com/airbyte/api/models/shared/Chartmogul.java - src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java + - src/main/java/com/airbyte/api/models/shared/Clazar.java + - src/main/java/com/airbyte/api/models/shared/SourceClazar.java - src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java - src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/SourceClickhousePasswordAuthentication.java @@ -879,6 +881,11 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceConfluence.java - src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java - src/main/java/com/airbyte/api/models/shared/SourceConvex.java + - src/main/java/com/airbyte/api/models/shared/SourceDatadogDataSource.java + - src/main/java/com/airbyte/api/models/shared/Queries.java + - src/main/java/com/airbyte/api/models/shared/Site.java + - src/main/java/com/airbyte/api/models/shared/Datadog.java + - src/main/java/com/airbyte/api/models/shared/SourceDatadog.java - src/main/java/com/airbyte/api/models/shared/Datascope.java - src/main/java/com/airbyte/api/models/shared/SourceDatascope.java - src/main/java/com/airbyte/api/models/shared/Delighted.java @@ -900,6 +907,11 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java - src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java - src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java + - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java + - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java + - src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java + - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java - src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java - src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java @@ -936,8 +948,10 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/StorageProvider.java - src/main/java/com/airbyte/api/models/shared/File.java - src/main/java/com/airbyte/api/models/shared/SourceFile.java - - src/main/java/com/airbyte/api/models/shared/Firebolt.java + - src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java - src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java + - src/main/java/com/airbyte/api/models/shared/Fleetio.java + - 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/Freshdesk.java @@ -987,13 +1001,15 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Gnews.java - src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java - src/main/java/com/airbyte/api/models/shared/SourceGnews.java + - src/main/java/com/airbyte/api/models/shared/Goldcast.java + - src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java - src/main/java/com/airbyte/api/models/shared/GoogleCredentials.java - src/main/java/com/airbyte/api/models/shared/CustomQueriesArray.java - src/main/java/com/airbyte/api/models/shared/CustomerStatus.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleAds.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java - - src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java + - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java - src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOauth.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java @@ -1243,11 +1259,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java - - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType.java - - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication.java - - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.java - - src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsV4ServiceAccountOnly.java - - src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnly.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java - src/main/java/com/airbyte/api/models/shared/ServiceAccountKey.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java @@ -1376,6 +1387,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesOAuth20.java - src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthentication.java - src/main/java/com/airbyte/api/models/shared/LinkedinPages.java + - src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java - 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 @@ -1388,6 +1400,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java - src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java + - src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java - src/main/java/com/airbyte/api/models/shared/Mailgun.java - src/main/java/com/airbyte/api/models/shared/SourceMailgun.java - src/main/java/com/airbyte/api/models/shared/MailjetSms.java @@ -1408,7 +1421,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java - - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental.java + - src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java @@ -1440,7 +1453,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java - - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDocumentFileTypeFormatExperimental.java + - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java @@ -1653,8 +1666,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourcePostmarkapp.java - src/main/java/com/airbyte/api/models/shared/Prestashop.java - src/main/java/com/airbyte/api/models/shared/SourcePrestashop.java - - src/main/java/com/airbyte/api/models/shared/PunkApi.java - - src/main/java/com/airbyte/api/models/shared/SourcePunkApi.java - src/main/java/com/airbyte/api/models/shared/Pypi.java - src/main/java/com/airbyte/api/models/shared/SourcePypi.java - src/main/java/com/airbyte/api/models/shared/Qualaroo.java @@ -1694,7 +1705,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceS3Local.java - src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java - src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java - - src/main/java/com/airbyte/api/models/shared/SourceS3DocumentFileTypeFormatExperimental.java + - src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java - src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat4Filetype.java - src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java - src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java @@ -1814,8 +1825,10 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java - src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java - src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketing.java - - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java + - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeOAuth20.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java @@ -1940,6 +1953,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java - src/main/java/com/airbyte/api/models/shared/SourcePutRequest.java - src/main/java/com/airbyte/api/models/shared/StreamProperties.java + - src/main/java/com/airbyte/api/models/shared/UsersResponse.java + - src/main/java/com/airbyte/api/models/shared/UserResponse.java - src/main/java/com/airbyte/api/models/shared/WorkspaceOAuthCredentialsRequest.java - src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java - src/main/java/com/airbyte/api/models/shared/Credentials.java @@ -1951,6 +1966,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java - src/main/java/com/airbyte/api/models/shared/AzureBlobStorage.java - src/main/java/com/airbyte/api/models/shared/BingAds.java + - src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java - src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java - src/main/java/com/airbyte/api/models/shared/GithubCredentials.java - src/main/java/com/airbyte/api/models/shared/Github.java @@ -2025,6 +2041,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/WorkspacesResponse.java - src/main/java/com/airbyte/api/models/shared/WorkspaceUpdateRequest.java - src/main/java/com/airbyte/api/models/shared/Security.java + - src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java - src/main/java/com/airbyte/api/models/shared/SchemeBasicAuth.java - docs/models/operations/CreateConnectionResponse.md - docs/models/operations/DeleteConnectionRequest.md @@ -2054,6 +2071,7 @@ generatedFiles: - docs/models/operations/GetJobResponse.md - docs/models/operations/ListJobsRequest.md - docs/models/operations/ListJobsResponse.md + - docs/models/operations/ListOrganizationsForUserResponse.md - docs/models/operations/CreatePermissionResponse.md - docs/models/operations/DeletePermissionRequest.md - docs/models/operations/DeletePermissionResponse.md @@ -2077,6 +2095,8 @@ generatedFiles: - docs/models/operations/PutSourceResponse.md - docs/models/operations/GetStreamPropertiesRequest.md - docs/models/operations/GetStreamPropertiesResponse.md + - docs/models/operations/ListUsersWithinAnOrganizationRequest.md + - docs/models/operations/ListUsersWithinAnOrganizationResponse.md - docs/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.md - docs/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.md - docs/models/operations/CreateWorkspaceResponse.md @@ -2098,6 +2118,7 @@ generatedFiles: - docs/models/shared/StreamConfigurations.md - docs/models/shared/StreamConfiguration.md - docs/models/shared/ConnectionSyncModeEnum.md + - docs/models/shared/SelectedFieldInfo.md - docs/models/shared/ConnectionCreateRequest.md - docs/models/shared/AirbyteApiConnectionSchedule.md - docs/models/shared/ScheduleTypeEnum.md @@ -2210,6 +2231,13 @@ generatedFiles: - docs/models/shared/AuthenticationMethod.md - docs/models/shared/Elasticsearch.md - docs/models/shared/DestinationElasticsearch.md + - docs/models/shared/Firebolt.md + - docs/models/shared/DestinationFireboltSchemasMethod.md + - docs/models/shared/ExternalTableViaS3.md + - docs/models/shared/DestinationFireboltMethod.md + - docs/models/shared/SQLInserts.md + - docs/models/shared/DestinationFireboltLoadingMethod.md + - docs/models/shared/DestinationFirebolt.md - docs/models/shared/Firestore.md - docs/models/shared/DestinationFirestore.md - docs/models/shared/CredentialType.md @@ -2252,21 +2280,6 @@ generatedFiles: - docs/models/shared/DestinationGcsOutputFormat.md - docs/models/shared/GCSBucketRegion.md - docs/models/shared/DestinationGcs.md - - docs/models/shared/Langchain.md - - docs/models/shared/DestinationLangchainSchemasMode.md - - docs/models/shared/DestinationLangchainFake.md - - docs/models/shared/DestinationLangchainMode.md - - docs/models/shared/DestinationLangchainOpenAI.md - - docs/models/shared/DestinationLangchainEmbedding.md - - docs/models/shared/DestinationLangchainSchemasIndexingIndexing3Mode.md - - docs/models/shared/ChromaLocalPersistance.md - - docs/models/shared/DestinationLangchainSchemasIndexingIndexingMode.md - - docs/models/shared/DocArrayHnswSearch.md - - docs/models/shared/DestinationLangchainSchemasIndexingMode.md - - docs/models/shared/DestinationLangchainPinecone.md - - docs/models/shared/DestinationLangchainIndexing.md - - docs/models/shared/DestinationLangchainProcessingConfigModel.md - - docs/models/shared/DestinationLangchain.md - docs/models/shared/Milvus.md - docs/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.md - docs/models/shared/DestinationMilvusOpenAICompatible.md @@ -2452,13 +2465,6 @@ generatedFiles: - docs/models/shared/DestinationRedshiftTunnelMethod.md - docs/models/shared/DestinationRedshiftNoTunnel.md - docs/models/shared/DestinationRedshiftSSHTunnelMethod.md - - docs/models/shared/DestinationRedshiftSchemasMethod.md - - docs/models/shared/Standard.md - - docs/models/shared/DestinationRedshiftEncryptionType.md - - docs/models/shared/AESCBCEnvelopeEncryption.md - - docs/models/shared/EncryptionType.md - - docs/models/shared/NoEncryption.md - - docs/models/shared/DestinationRedshiftEncryption.md - docs/models/shared/DestinationRedshiftMethod.md - docs/models/shared/DestinationRedshiftS3BucketRegion.md - docs/models/shared/Awss3Staging.md @@ -2539,7 +2545,7 @@ generatedFiles: - docs/models/shared/DestinationSnowflakeCortexOpenAI.md - docs/models/shared/DestinationSnowflakeCortexEmbedding.md - docs/models/shared/DestinationSnowflakeCortexCredentials.md - - docs/models/shared/DestinationSnowflakeCortexIndexing.md + - docs/models/shared/SnowflakeConnection.md - docs/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.md - docs/models/shared/DestinationSnowflakeCortexLanguage.md - docs/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.md @@ -2639,9 +2645,12 @@ generatedFiles: - docs/models/shared/JobTypeEnum.md - docs/models/shared/JobCreateRequest.md - docs/models/shared/JobsResponse.md + - docs/models/shared/OrganizationsResponse.md + - docs/models/shared/OrganizationResponse.md - docs/models/shared/PermissionResponse.md - docs/models/shared/PermissionType.md - docs/models/shared/PermissionCreateRequest.md + - docs/models/shared/PublicPermissionType.md - docs/models/shared/PermissionsResponse.md - docs/models/shared/PermissionResponseRead.md - docs/models/shared/PermissionScope.md @@ -2670,7 +2679,7 @@ generatedFiles: - docs/models/shared/AWSEnvironment.md - docs/models/shared/AWSRegion.md - docs/models/shared/OptionsList.md - - docs/models/shared/StreamName.md + - docs/models/shared/ReportName.md - docs/models/shared/ReportOptions.md - docs/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.md - docs/models/shared/SourceAmazonSellerPartner.md @@ -2698,6 +2707,7 @@ generatedFiles: - docs/models/shared/SourceAuth0AuthenticationMethod.md - docs/models/shared/Auth0.md - docs/models/shared/SourceAuth0.md + - docs/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.md - docs/models/shared/AwsCloudtrail.md - docs/models/shared/SourceAwsCloudtrail.md - docs/models/shared/SourceAzureBlobStorageSchemasAuthType.md @@ -2762,6 +2772,8 @@ generatedFiles: - docs/models/shared/SourceChargebee.md - docs/models/shared/Chartmogul.md - docs/models/shared/SourceChartmogul.md + - docs/models/shared/Clazar.md + - docs/models/shared/SourceClazar.md - docs/models/shared/SourceClickhouseClickhouse.md - docs/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.md - docs/models/shared/SourceClickhousePasswordAuthentication.md @@ -2791,6 +2803,11 @@ generatedFiles: - docs/models/shared/SourceConfluence.md - docs/models/shared/SourceConvexConvex.md - docs/models/shared/SourceConvex.md + - docs/models/shared/SourceDatadogDataSource.md + - docs/models/shared/Queries.md + - docs/models/shared/Site.md + - docs/models/shared/Datadog.md + - docs/models/shared/SourceDatadog.md - docs/models/shared/Datascope.md - docs/models/shared/SourceDatascope.md - docs/models/shared/Delighted.md @@ -2812,6 +2829,11 @@ generatedFiles: - docs/models/shared/ValidAdStatuses.md - docs/models/shared/ValidAdSetStatuses.md - docs/models/shared/ValidCampaignStatuses.md + - docs/models/shared/SourceFacebookMarketingSchemasAuthType.md + - docs/models/shared/ServiceAccountKeyAuthentication.md + - docs/models/shared/SourceFacebookMarketingAuthType.md + - docs/models/shared/AuthenticateViaFacebookMarketingOauth.md + - docs/models/shared/SourceFacebookMarketingAuthentication.md - docs/models/shared/ValidActionBreakdowns.md - docs/models/shared/SourceFacebookMarketingActionReportTime.md - docs/models/shared/ValidBreakdowns.md @@ -2848,8 +2870,10 @@ generatedFiles: - docs/models/shared/StorageProvider.md - docs/models/shared/File.md - docs/models/shared/SourceFile.md - - docs/models/shared/Firebolt.md + - docs/models/shared/SourceFireboltFirebolt.md - docs/models/shared/SourceFirebolt.md + - docs/models/shared/Fleetio.md + - docs/models/shared/SourceFleetio.md - docs/models/shared/Freshcaller.md - docs/models/shared/SourceFreshcaller.md - docs/models/shared/Freshdesk.md @@ -2899,13 +2923,15 @@ generatedFiles: - docs/models/shared/Gnews.md - docs/models/shared/TopHeadlinesTopic.md - docs/models/shared/SourceGnews.md + - docs/models/shared/Goldcast.md + - docs/models/shared/SourceGoldcast.md - docs/models/shared/GoogleCredentials.md - docs/models/shared/CustomQueriesArray.md - docs/models/shared/CustomerStatus.md - docs/models/shared/SourceGoogleAdsGoogleAds.md - docs/models/shared/SourceGoogleAds.md - docs/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.md - - docs/models/shared/ServiceAccountKeyAuthentication.md + - docs/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.md - docs/models/shared/SourceGoogleAnalyticsDataApiAuthType.md - docs/models/shared/AuthenticateViaGoogleOauth.md - docs/models/shared/SourceGoogleAnalyticsDataApiCredentials.md @@ -3155,11 +3181,6 @@ generatedFiles: - docs/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.md - docs/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.md - docs/models/shared/SourceGoogleAnalyticsDataApi.md - - docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType.md - - docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication.md - - docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.md - - docs/models/shared/GoogleAnalyticsV4ServiceAccountOnly.md - - docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnly.md - docs/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.md - docs/models/shared/ServiceAccountKey.md - docs/models/shared/SourceGoogleDirectoryCredentialsTitle.md @@ -3288,6 +3309,7 @@ generatedFiles: - docs/models/shared/SourceLinkedinPagesOAuth20.md - docs/models/shared/SourceLinkedinPagesAuthentication.md - docs/models/shared/LinkedinPages.md + - docs/models/shared/TimeGranularityType.md - docs/models/shared/SourceLinkedinPages.md - docs/models/shared/Linnworks.md - docs/models/shared/SourceLinnworks.md @@ -3300,6 +3322,7 @@ generatedFiles: - docs/models/shared/SourceMailchimpAuthentication.md - docs/models/shared/SourceMailchimpMailchimp.md - docs/models/shared/SourceMailchimp.md + - docs/models/shared/DomainRegionCode.md - docs/models/shared/Mailgun.md - docs/models/shared/SourceMailgun.md - docs/models/shared/MailjetSms.md @@ -3320,7 +3343,7 @@ generatedFiles: - docs/models/shared/SourceMicrosoftOnedriveLocal.md - docs/models/shared/SourceMicrosoftOnedriveProcessing.md - docs/models/shared/SourceMicrosoftOnedriveParsingStrategy.md - - docs/models/shared/SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental.md + - docs/models/shared/UnstructuredDocumentFormat.md - docs/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.md - docs/models/shared/SourceMicrosoftOnedriveParquetFormat.md - docs/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.md @@ -3352,7 +3375,7 @@ generatedFiles: - docs/models/shared/SourceMicrosoftSharepointLocal.md - docs/models/shared/SourceMicrosoftSharepointProcessing.md - docs/models/shared/SourceMicrosoftSharepointParsingStrategy.md - - docs/models/shared/SourceMicrosoftSharepointDocumentFileTypeFormatExperimental.md + - docs/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.md - docs/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.md - docs/models/shared/SourceMicrosoftSharepointParquetFormat.md - docs/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.md @@ -3565,8 +3588,6 @@ generatedFiles: - docs/models/shared/SourcePostmarkapp.md - docs/models/shared/Prestashop.md - docs/models/shared/SourcePrestashop.md - - docs/models/shared/PunkApi.md - - docs/models/shared/SourcePunkApi.md - docs/models/shared/Pypi.md - docs/models/shared/SourcePypi.md - docs/models/shared/Qualaroo.md @@ -3606,7 +3627,7 @@ generatedFiles: - docs/models/shared/SourceS3Local.md - docs/models/shared/SourceS3Processing.md - docs/models/shared/SourceS3ParsingStrategy.md - - docs/models/shared/SourceS3DocumentFileTypeFormatExperimental.md + - docs/models/shared/SourceS3UnstructuredDocumentFormat.md - docs/models/shared/SourceS3SchemasStreamsFormatFormat4Filetype.md - docs/models/shared/SourceS3ParquetFormat.md - docs/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.md @@ -3726,8 +3747,10 @@ generatedFiles: - docs/models/shared/SwipeUpAttributionWindow.md - docs/models/shared/ViewAttributionWindow.md - docs/models/shared/SourceSnapchatMarketing.md - - docs/models/shared/SourceSnowflakeSchemasAuthType.md + - docs/models/shared/SourceSnowflakeSchemasCredentialsAuthType.md - docs/models/shared/SourceSnowflakeUsernameAndPassword.md + - docs/models/shared/SourceSnowflakeSchemasAuthType.md + - docs/models/shared/SourceSnowflakeKeyPairAuthentication.md - docs/models/shared/SourceSnowflakeAuthType.md - docs/models/shared/SourceSnowflakeOAuth20.md - docs/models/shared/SourceSnowflakeAuthorizationMethod.md @@ -3852,6 +3875,8 @@ generatedFiles: - docs/models/shared/SourcePatchRequest.md - docs/models/shared/SourcePutRequest.md - docs/models/shared/StreamProperties.md + - docs/models/shared/UsersResponse.md + - docs/models/shared/UserResponse.md - docs/models/shared/WorkspaceOAuthCredentialsRequest.md - docs/models/shared/OAuthCredentialsConfiguration.md - docs/models/shared/Credentials.md @@ -3863,6 +3888,7 @@ generatedFiles: - docs/models/shared/AzureBlobStorageCredentials.md - docs/models/shared/AzureBlobStorage.md - docs/models/shared/BingAds.md + - docs/models/shared/FacebookMarketingCredentials.md - docs/models/shared/FacebookMarketing.md - docs/models/shared/GithubCredentials.md - docs/models/shared/Github.md @@ -3937,14 +3963,18 @@ generatedFiles: - docs/models/shared/WorkspacesResponse.md - docs/models/shared/WorkspaceUpdateRequest.md - docs/models/shared/Security.md + - docs/models/shared/SchemeClientCredentials.md - docs/models/shared/SchemeBasicAuth.md - docs/sdks/airbyte/README.md - docs/sdks/connections/README.md - docs/sdks/destinations/README.md - docs/sdks/health/README.md - docs/sdks/jobs/README.md + - docs/sdks/organizations/README.md - docs/sdks/permissions/README.md - docs/sdks/sources/README.md - docs/sdks/streams/README.md + - docs/sdks/users/README.md - docs/sdks/workspaces/README.md - USAGE.md + - src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 3644e269a..779319816 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.296.1 +speakeasyVersion: 1.335.2 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:cbe1ea7fa525a68f8250c64f057920dfb5ed187159ed0f287f2e34fa958815dd - sourceBlobDigest: sha256:9e76a245dfc56887dcadaf1e1f0ffe6c0abbe10e9e25b6ad3093ad778055c1a2 + sourceRevisionDigest: sha256:7d13fcede86a3ca09b4d289f1bc31301fa7a3501406dccbe8913eead593008e0 + sourceBlobDigest: sha256:f1b3779c701a2b6ce17695afd26a74bc95f97c24cb73dcd26a0feff21f0c1845 tags: - latest - main @@ -11,8 +11,8 @@ targets: airbyte-api: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:cbe1ea7fa525a68f8250c64f057920dfb5ed187159ed0f287f2e34fa958815dd - sourceBlobDigest: sha256:9e76a245dfc56887dcadaf1e1f0ffe6c0abbe10e9e25b6ad3093ad778055c1a2 + sourceRevisionDigest: sha256:7d13fcede86a3ca09b4d289f1bc31301fa7a3501406dccbe8913eead593008e0 + sourceBlobDigest: sha256:f1b3779c701a2b6ce17695afd26a74bc95f97c24cb73dcd26a0feff21f0c1845 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 @@ -33,3 +33,4 @@ workflow: ossrhPassword: $OSSRH_PASSWORD gpgSecretKey: $JAVA_GPG_SECRET_KEY gpgPassPhrase: $JAVA_GPG_PASSPHRASE + useSonatypeLegacy: true diff --git a/README.md b/README.md index 31cc9504b..1759c3e9c 100755 --- a/README.md +++ b/README.md @@ -20,19 +20,21 @@ The Developer Portal UI can also be used to help build your integration by showi ### Getting started +JDK 11 or later is required. + The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.airbyte.api:public-api:1.4.1' +implementation 'com.airbyte:api:1.5.0' ``` Maven: ```xml - com.airbyte.api - public-api - 1.4.1 + com.airbyte + api + 1.5.0 ``` @@ -106,6 +108,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -142,6 +145,10 @@ public class Application { * [getJob](docs/sdks/jobs/README.md#getjob) - Get Job status and details * [listJobs](docs/sdks/jobs/README.md#listjobs) - List Jobs by sync type +### [organizations()](docs/sdks/organizations/README.md) + +* [listOrganizationsForUser](docs/sdks/organizations/README.md#listorganizationsforuser) - List all organizations for a user + ### [permissions()](docs/sdks/permissions/README.md) * [createPermission](docs/sdks/permissions/README.md#createpermission) - Create a permission @@ -164,6 +171,10 @@ public class Application { * [getStreamProperties](docs/sdks/streams/README.md#getstreamproperties) - Get stream properties +### [users()](docs/sdks/users/README.md) + +* [listUsersWithinAnOrganization](docs/sdks/users/README.md#listuserswithinanorganization) - List all users within an organization + ### [workspaces()](docs/sdks/workspaces/README.md) * [createOrUpdateWorkspaceOAuthCredentials](docs/sdks/workspaces/README.md#createorupdateworkspaceoauthcredentials) - Create OAuth override credentials for a workspace and source type. @@ -240,6 +251,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -299,6 +311,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -311,7 +324,7 @@ Handling errors in this SDK should largely match your expectations. All operati | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ### Example @@ -365,6 +378,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -434,6 +448,7 @@ public class Application { // handle exception throw e; } + } } ``` diff --git a/RELEASES.md b/RELEASES.md index ef265fcf3..ec7097a98 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1071,4 +1071,14 @@ Based on: ### Generated - [java v1.4.1] . ### Releases -- [Maven Central v1.4.1] https://central.sonatype.com/artifact/com.airbyte/api/1.4.1 - . \ No newline at end of file +- [Maven Central v1.4.1] https://central.sonatype.com/artifact/com.airbyte/api/1.4.1 - . + +## 2024-07-15 18:36:28 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.335.2 (2.372.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v1.5.0] . +### Releases +- [Maven Central v1.5.0] https://central.sonatype.com/artifact/com.airbyte/api/1.5.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 219adf334..ef9bc017b 100644 --- a/USAGE.md +++ b/USAGE.md @@ -49,6 +49,7 @@ public class Application { // handle exception throw e; } + } } ``` diff --git a/build-extras.gradle b/build-extras.gradle new file mode 100644 index 000000000..e104d4f67 --- /dev/null +++ b/build-extras.gradle @@ -0,0 +1,4 @@ +// This file +// * is referred to in an `apply from` command in `build.gradle` +// * can be used to customise `build.gradle` +// * is generated once and not overwritten in SDK generation updates diff --git a/build.gradle b/build.gradle index 72ef8c812..bd64880b9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,13 @@ +//////////////////////////////////////////////////////////////////////////////////////////// +// This file is generated by Speakeasy and any edits will be lost in generation updates. +// +// If you wish to customize this file then place those customizations in `build-extras.gradle` which +// is not touched by generation updates. +// +// Additions to the plugins block can be made by setting the `additionalPlugins` property (an array +// of string where each string value is an additional line in the block) in gen.yaml. +//////////////////////////////////////////////////////////////////////////////////////////// plugins { // Apply the java-library plugin for API and implementation separation. id 'java-library' @@ -14,13 +23,13 @@ repositories { // Use Maven Central for resolving dependencies. mavenCentral() } + java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 withSourcesJar() withJavadocJar() } - model { tasks.generatePomFileForMavenPublication { destination = file("$buildDir/pom.xml") @@ -65,7 +74,7 @@ publishing { maven(MavenPublication) { groupId = 'com.airbyte' artifactId = 'api' - version = '1.4.1' + version = '1.5.0' from components.java @@ -119,3 +128,5 @@ dependencies { } + +apply from: 'build-extras.gradle' diff --git a/docs/models/shared/DestinationLangchainOpenAI.md b/docs/models/operations/ListOrganizationsForUserResponse.md similarity index 53% rename from docs/models/shared/DestinationLangchainOpenAI.md rename to docs/models/operations/ListOrganizationsForUserResponse.md index a898c3810..931917d42 100644 --- a/docs/models/shared/DestinationLangchainOpenAI.md +++ b/docs/models/operations/ListOrganizationsForUserResponse.md @@ -1,11 +1,11 @@ -# DestinationLangchainOpenAI - -Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. +# ListOrganizationsForUserResponse ## Fields | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `mode` | [Optional](../../models/shared/DestinationLangchainMode.md) | :heavy_minus_sign: | N/A | -| `openaiKey` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `organizationsResponse` | [Optional](../../models/shared/OrganizationsResponse.md) | :heavy_minus_sign: | List user's organizations. | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListPermissionsRequest.md b/docs/models/operations/ListPermissionsRequest.md index 747e49eda..556094405 100644 --- a/docs/models/operations/ListPermissionsRequest.md +++ b/docs/models/operations/ListPermissionsRequest.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `userId` | *Optional* | :heavy_minus_sign: | User Id in permission. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `organizationId` | *Optional* | :heavy_minus_sign: | This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. | +| `userId` | *Optional* | :heavy_minus_sign: | User Id in permission. | \ No newline at end of file diff --git a/docs/models/operations/ListUsersWithinAnOrganizationRequest.md b/docs/models/operations/ListUsersWithinAnOrganizationRequest.md new file mode 100644 index 000000000..2b8904663 --- /dev/null +++ b/docs/models/operations/ListUsersWithinAnOrganizationRequest.md @@ -0,0 +1,10 @@ +# ListUsersWithinAnOrganizationRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `emails` | List<*String*> | :heavy_minus_sign: | List of user emails to filter by | +| `ids` | List<*String*> | :heavy_minus_sign: | List of user IDs to filter by | +| `organizationId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/ListUsersWithinAnOrganizationResponse.md b/docs/models/operations/ListUsersWithinAnOrganizationResponse.md new file mode 100644 index 000000000..22c5aec60 --- /dev/null +++ b/docs/models/operations/ListUsersWithinAnOrganizationResponse.md @@ -0,0 +1,11 @@ +# ListUsersWithinAnOrganizationResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `usersResponse` | [Optional](../../models/shared/UsersResponse.md) | :heavy_minus_sign: | List Users. | \ No newline at end of file diff --git a/docs/models/shared/AESCBCEnvelopeEncryption.md b/docs/models/shared/AESCBCEnvelopeEncryption.md deleted file mode 100644 index 02586d81d..000000000 --- a/docs/models/shared/AESCBCEnvelopeEncryption.md +++ /dev/null @@ -1,11 +0,0 @@ -# AESCBCEnvelopeEncryption - -Staging data will be encrypted using AES-CBC envelope encryption. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `encryptionType` | [Optional](../../models/shared/DestinationRedshiftEncryptionType.md) | :heavy_minus_sign: | N/A | -| `keyEncryptingKey` | *Optional* | :heavy_minus_sign: | The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. | \ No newline at end of file diff --git a/docs/models/shared/AuthenticateViaFacebookMarketingOauth.md b/docs/models/shared/AuthenticateViaFacebookMarketingOauth.md new file mode 100644 index 000000000..0635ad43c --- /dev/null +++ b/docs/models/shared/AuthenticateViaFacebookMarketingOauth.md @@ -0,0 +1,11 @@ +# AuthenticateViaFacebookMarketingOauth + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accessToken` | *Optional* | :heavy_minus_sign: | The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. | +| `authType` | [Optional](../../models/shared/SourceFacebookMarketingAuthType.md) | :heavy_minus_sign: | N/A | +| `clientId` | *String* | :heavy_check_mark: | Client ID for the Facebook Marketing API | +| `clientSecret` | *String* | :heavy_check_mark: | Client Secret for the Facebook Marketing API | \ No newline at end of file diff --git a/docs/models/shared/Awss3Staging.md b/docs/models/shared/Awss3Staging.md index 8bb2efe6c..fe7091235 100644 --- a/docs/models/shared/Awss3Staging.md +++ b/docs/models/shared/Awss3Staging.md @@ -8,7 +8,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `accessKeyId` | *String* | :heavy_check_mark: | This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See AWS docs on how to generate an access key ID and secret access key. | | -| `encryption` | [Optional](../../models/shared/DestinationRedshiftEncryption.md) | :heavy_minus_sign: | How to encrypt the staging data | | | `fileNamePattern` | *Optional* | :heavy_minus_sign: | The pattern allows you to set the file-name format for the S3 staging file(s) | {date} | | `method` | [com.airbyte.api.models.shared.DestinationRedshiftMethod](../../models/shared/DestinationRedshiftMethod.md) | :heavy_check_mark: | N/A | | | `purgeStagingData` | *Optional* | :heavy_minus_sign: | Whether to delete the staging files from S3 after completing the sync. See docs for details. | | diff --git a/docs/models/shared/CSVCommaSeparatedValues.md b/docs/models/shared/CSVCommaSeparatedValues.md index 1bb93ef19..eb460f534 100644 --- a/docs/models/shared/CSVCommaSeparatedValues.md +++ b/docs/models/shared/CSVCommaSeparatedValues.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `fileExtension` | *Optional* | :heavy_minus_sign: | Add file extensions to the output file. | | `flattening` | [Optional](../../models/shared/NormalizationFlattening.md) | :heavy_minus_sign: | Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. | | `formatType` | [com.airbyte.api.models.shared.FormatType](../../models/shared/FormatType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationLangchainMode.md b/docs/models/shared/Clazar.md similarity index 54% rename from docs/models/shared/DestinationLangchainMode.md rename to docs/models/shared/Clazar.md index 511ab5cc6..8ce88874b 100644 --- a/docs/models/shared/DestinationLangchainMode.md +++ b/docs/models/shared/Clazar.md @@ -1,8 +1,8 @@ -# DestinationLangchainMode +# Clazar ## Values | Name | Value | | -------- | -------- | -| `OPENAI` | openai | \ No newline at end of file +| `CLAZAR` | clazar | \ No newline at end of file diff --git a/docs/models/shared/Datadog.md b/docs/models/shared/Datadog.md new file mode 100644 index 000000000..92d52b682 --- /dev/null +++ b/docs/models/shared/Datadog.md @@ -0,0 +1,8 @@ +# Datadog + + +## Values + +| Name | Value | +| --------- | --------- | +| `DATADOG` | datadog | \ No newline at end of file diff --git a/docs/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.md b/docs/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.md index cdbc19e3f..35b54eae6 100644 --- a/docs/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.md +++ b/docs/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `fileExtension` | *Optional* | :heavy_minus_sign: | Add file extensions to the output file. | | `formatType` | [com.airbyte.api.models.shared.DestinationAzureBlobStorageFormatType](../../models/shared/DestinationAzureBlobStorageFormatType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationFirebolt.md b/docs/models/shared/DestinationFirebolt.md new file mode 100644 index 000000000..a97381b89 --- /dev/null +++ b/docs/models/shared/DestinationFirebolt.md @@ -0,0 +1,15 @@ +# DestinationFirebolt + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `account` | *String* | :heavy_check_mark: | Firebolt account to login. | | +| `clientId` | *String* | :heavy_check_mark: | Firebolt service account ID. | bbl9qth066hmxkwyb0hy2iwk8ktez9dz | +| `clientSecret` | *String* | :heavy_check_mark: | Firebolt secret, corresponding to the service account ID. | | +| `database` | *String* | :heavy_check_mark: | The database to connect to. | | +| `destinationType` | [com.airbyte.api.models.shared.Firebolt](../../models/shared/Firebolt.md) | :heavy_check_mark: | N/A | | +| `engine` | *String* | :heavy_check_mark: | Engine name to connect to. | | +| `host` | *Optional* | :heavy_minus_sign: | The host name of your Firebolt database. | api.app.firebolt.io | +| `loadingMethod` | [Optional](../../models/shared/DestinationFireboltLoadingMethod.md) | :heavy_minus_sign: | Loading method used to select the way data will be uploaded to Firebolt | | \ No newline at end of file diff --git a/docs/models/shared/DestinationFireboltLoadingMethod.md b/docs/models/shared/DestinationFireboltLoadingMethod.md new file mode 100644 index 000000000..430cfe60f --- /dev/null +++ b/docs/models/shared/DestinationFireboltLoadingMethod.md @@ -0,0 +1,4 @@ +# DestinationFireboltLoadingMethod + +Loading method used to select the way data will be uploaded to Firebolt + diff --git a/docs/models/shared/DestinationFireboltMethod.md b/docs/models/shared/DestinationFireboltMethod.md new file mode 100644 index 000000000..e81d89c84 --- /dev/null +++ b/docs/models/shared/DestinationFireboltMethod.md @@ -0,0 +1,8 @@ +# DestinationFireboltMethod + + +## Values + +| Name | Value | +| ----- | ----- | +| `SQL` | SQL | \ No newline at end of file diff --git a/docs/models/shared/DestinationFireboltSchemasMethod.md b/docs/models/shared/DestinationFireboltSchemasMethod.md new file mode 100644 index 000000000..029a6ce85 --- /dev/null +++ b/docs/models/shared/DestinationFireboltSchemasMethod.md @@ -0,0 +1,8 @@ +# DestinationFireboltSchemasMethod + + +## Values + +| Name | Value | +| ----- | ----- | +| `S3` | S3 | \ No newline at end of file diff --git a/docs/models/shared/DestinationFirestore.md b/docs/models/shared/DestinationFirestore.md index 5aefc685d..2478345cb 100644 --- a/docs/models/shared/DestinationFirestore.md +++ b/docs/models/shared/DestinationFirestore.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `credentialsJson` | *Optional* | :heavy_minus_sign: | The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty. | -| `destinationType` | [com.airbyte.api.models.shared.Firestore](../../models/shared/Firestore.md) | :heavy_check_mark: | N/A | -| `projectId` | *String* | :heavy_check_mark: | The GCP project ID for the project containing the target BigQuery dataset. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `credentialsJson` | *Optional* | :heavy_minus_sign: | The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty. | +| `destinationType` | [com.airbyte.api.models.shared.Firestore](../../models/shared/Firestore.md) | :heavy_check_mark: | N/A | +| `projectId` | *String* | :heavy_check_mark: | The GCP project ID for the project containing the target BigQuery dataset. | \ No newline at end of file diff --git a/docs/models/shared/DestinationLangchain.md b/docs/models/shared/DestinationLangchain.md deleted file mode 100644 index 085efe9fb..000000000 --- a/docs/models/shared/DestinationLangchain.md +++ /dev/null @@ -1,11 +0,0 @@ -# DestinationLangchain - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -| `destinationType` | [com.airbyte.api.models.shared.Langchain](../../models/shared/Langchain.md) | :heavy_check_mark: | N/A | -| `embedding` | [com.airbyte.api.models.shared.DestinationLangchainEmbedding](../../models/shared/DestinationLangchainEmbedding.md) | :heavy_check_mark: | Embedding configuration | -| `indexing` | [com.airbyte.api.models.shared.DestinationLangchainIndexing](../../models/shared/DestinationLangchainIndexing.md) | :heavy_check_mark: | Indexing configuration | -| `processing` | [com.airbyte.api.models.shared.DestinationLangchainProcessingConfigModel](../../models/shared/DestinationLangchainProcessingConfigModel.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationLangchainEmbedding.md b/docs/models/shared/DestinationLangchainEmbedding.md deleted file mode 100644 index 722d0c73a..000000000 --- a/docs/models/shared/DestinationLangchainEmbedding.md +++ /dev/null @@ -1,4 +0,0 @@ -# DestinationLangchainEmbedding - -Embedding configuration - diff --git a/docs/models/shared/DestinationLangchainFake.md b/docs/models/shared/DestinationLangchainFake.md deleted file mode 100644 index c45a94de4..000000000 --- a/docs/models/shared/DestinationLangchainFake.md +++ /dev/null @@ -1,10 +0,0 @@ -# DestinationLangchainFake - -Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -| `mode` | [Optional](../../models/shared/DestinationLangchainSchemasMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationLangchainIndexing.md b/docs/models/shared/DestinationLangchainIndexing.md deleted file mode 100644 index 4769bc654..000000000 --- a/docs/models/shared/DestinationLangchainIndexing.md +++ /dev/null @@ -1,4 +0,0 @@ -# DestinationLangchainIndexing - -Indexing configuration - diff --git a/docs/models/shared/DestinationLangchainPinecone.md b/docs/models/shared/DestinationLangchainPinecone.md deleted file mode 100644 index 3229e904a..000000000 --- a/docs/models/shared/DestinationLangchainPinecone.md +++ /dev/null @@ -1,13 +0,0 @@ -# DestinationLangchainPinecone - -Pinecone is a popular vector store that can be used to store and retrieve embeddings. It is a managed service and can also be queried from outside of langchain. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index` | *String* | :heavy_check_mark: | Pinecone index to use | -| `mode` | [Optional](../../models/shared/DestinationLangchainSchemasIndexingMode.md) | :heavy_minus_sign: | N/A | -| `pineconeEnvironment` | *String* | :heavy_check_mark: | Pinecone environment to use | -| `pineconeKey` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationLangchainProcessingConfigModel.md b/docs/models/shared/DestinationLangchainProcessingConfigModel.md deleted file mode 100644 index 7414d8b61..000000000 --- a/docs/models/shared/DestinationLangchainProcessingConfigModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# DestinationLangchainProcessingConfigModel - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `chunkOverlap` | *Optional* | :heavy_minus_sign: | Size of overlap between chunks in tokens to store in vector store to better capture relevant context | | -| `chunkSize` | *long* | :heavy_check_mark: | Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) | | -| `textFields` | List<*String*> | :heavy_check_mark: | List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. | text | \ No newline at end of file diff --git a/docs/models/shared/DestinationLangchainSchemasIndexingIndexing3Mode.md b/docs/models/shared/DestinationLangchainSchemasIndexingIndexing3Mode.md deleted file mode 100644 index 797595958..000000000 --- a/docs/models/shared/DestinationLangchainSchemasIndexingIndexing3Mode.md +++ /dev/null @@ -1,8 +0,0 @@ -# DestinationLangchainSchemasIndexingIndexing3Mode - - -## Values - -| Name | Value | -| -------------- | -------------- | -| `CHROMA_LOCAL` | chroma_local | \ No newline at end of file diff --git a/docs/models/shared/DestinationLangchainSchemasIndexingIndexingMode.md b/docs/models/shared/DestinationLangchainSchemasIndexingIndexingMode.md deleted file mode 100644 index f731f628d..000000000 --- a/docs/models/shared/DestinationLangchainSchemasIndexingIndexingMode.md +++ /dev/null @@ -1,8 +0,0 @@ -# DestinationLangchainSchemasIndexingIndexingMode - - -## Values - -| Name | Value | -| ----------------------- | ----------------------- | -| `DOC_ARRAY_HNSW_SEARCH` | DocArrayHnswSearch | \ No newline at end of file diff --git a/docs/models/shared/DestinationLangchainSchemasIndexingMode.md b/docs/models/shared/DestinationLangchainSchemasIndexingMode.md deleted file mode 100644 index 1eb68f5e6..000000000 --- a/docs/models/shared/DestinationLangchainSchemasIndexingMode.md +++ /dev/null @@ -1,8 +0,0 @@ -# DestinationLangchainSchemasIndexingMode - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `PINECONE` | pinecone | \ No newline at end of file diff --git a/docs/models/shared/DestinationLangchainSchemasMode.md b/docs/models/shared/DestinationLangchainSchemasMode.md deleted file mode 100644 index 03ed3c530..000000000 --- a/docs/models/shared/DestinationLangchainSchemasMode.md +++ /dev/null @@ -1,8 +0,0 @@ -# DestinationLangchainSchemasMode - - -## Values - -| Name | Value | -| ------ | ------ | -| `FAKE` | fake | \ No newline at end of file diff --git a/docs/models/shared/DestinationRedshiftEncryption.md b/docs/models/shared/DestinationRedshiftEncryption.md deleted file mode 100644 index eca933b35..000000000 --- a/docs/models/shared/DestinationRedshiftEncryption.md +++ /dev/null @@ -1,4 +0,0 @@ -# DestinationRedshiftEncryption - -How to encrypt the staging data - diff --git a/docs/models/shared/DestinationRedshiftEncryptionType.md b/docs/models/shared/DestinationRedshiftEncryptionType.md deleted file mode 100644 index 3f6dc5e93..000000000 --- a/docs/models/shared/DestinationRedshiftEncryptionType.md +++ /dev/null @@ -1,8 +0,0 @@ -# DestinationRedshiftEncryptionType - - -## Values - -| Name | Value | -| ------------------ | ------------------ | -| `AES_CBC_ENVELOPE` | aes_cbc_envelope | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3.md b/docs/models/shared/DestinationS3.md index 56771acb9..fcc7a37c2 100644 --- a/docs/models/shared/DestinationS3.md +++ b/docs/models/shared/DestinationS3.md @@ -9,6 +9,7 @@ | `destinationType` | [com.airbyte.api.models.shared.S3](../../models/shared/S3.md) | :heavy_check_mark: | N/A | | | `fileNamePattern` | *Optional* | :heavy_minus_sign: | The pattern allows you to set the file-name format for the S3 staging file(s) | {date} | | `format` | [com.airbyte.api.models.shared.DestinationS3OutputFormat](../../models/shared/DestinationS3OutputFormat.md) | :heavy_check_mark: | Format of the data output. See here for more details | | +| `roleArn` | *Optional* | :heavy_minus_sign: | The Role ARN | arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId | | `s3BucketName` | *String* | :heavy_check_mark: | The name of the S3 bucket. Read more here. | airbyte_sync | | `s3BucketPath` | *String* | :heavy_check_mark: | Directory under the S3 bucket where data will be written. Read more here | data_sync/test | | `s3BucketRegion` | [Optional](../../models/shared/DestinationS3S3BucketRegion.md) | :heavy_minus_sign: | The region of the S3 bucket. See here for all region codes. | | diff --git a/docs/models/shared/DestinationSnowflake.md b/docs/models/shared/DestinationSnowflake.md index b5d071874..e4c6a42c9 100644 --- a/docs/models/shared/DestinationSnowflake.md +++ b/docs/models/shared/DestinationSnowflake.md @@ -16,4 +16,4 @@ | `role` | *String* | :heavy_check_mark: | Enter the role that you want to use to access Snowflake | AIRBYTE_ROLE | | `schema` | *String* | :heavy_check_mark: | Enter the name of the default schema | AIRBYTE_SCHEMA | | `username` | *String* | :heavy_check_mark: | Enter the name of the user you want to use to access the database | AIRBYTE_USER | -| `warehouse` | *String* | :heavy_check_mark: | Enter the name of the warehouse that you want to sync data into | AIRBYTE_WAREHOUSE | \ No newline at end of file +| `warehouse` | *String* | :heavy_check_mark: | Enter the name of the warehouse that you want to use as a compute cluster | AIRBYTE_WAREHOUSE | \ No newline at end of file diff --git a/docs/models/shared/DestinationSnowflakeCortex.md b/docs/models/shared/DestinationSnowflakeCortex.md index d0953cec7..9e5c54955 100644 --- a/docs/models/shared/DestinationSnowflakeCortex.md +++ b/docs/models/shared/DestinationSnowflakeCortex.md @@ -18,6 +18,6 @@ Processing, embedding and advanced configuration are provided by this base class | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `destinationType` | [com.airbyte.api.models.shared.SnowflakeCortex](../../models/shared/SnowflakeCortex.md) | :heavy_check_mark: | N/A | | `embedding` | [com.airbyte.api.models.shared.DestinationSnowflakeCortexEmbedding](../../models/shared/DestinationSnowflakeCortexEmbedding.md) | :heavy_check_mark: | Embedding configuration | -| `indexing` | [com.airbyte.api.models.shared.DestinationSnowflakeCortexIndexing](../../models/shared/DestinationSnowflakeCortexIndexing.md) | :heavy_check_mark: | Snowflake can be used to store vector data and retrieve embeddings. | +| `indexing` | [com.airbyte.api.models.shared.SnowflakeConnection](../../models/shared/SnowflakeConnection.md) | :heavy_check_mark: | Snowflake can be used to store vector data and retrieve embeddings. | | `omitRawText` | *Optional* | :heavy_minus_sign: | Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. | | `processing` | [com.airbyte.api.models.shared.DestinationSnowflakeCortexProcessingConfigModel](../../models/shared/DestinationSnowflakeCortexProcessingConfigModel.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DetectChangesWithXminSystemColumn.md b/docs/models/shared/DetectChangesWithXminSystemColumn.md index 81d975c48..4579c6f2f 100644 --- a/docs/models/shared/DetectChangesWithXminSystemColumn.md +++ b/docs/models/shared/DetectChangesWithXminSystemColumn.md @@ -1,6 +1,6 @@ # DetectChangesWithXminSystemColumn -Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Only recommended for tables up to 500GB. +Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Suitable for databases that have low transaction pressure. ## Fields diff --git a/docs/models/shared/DocArrayHnswSearch.md b/docs/models/shared/DocArrayHnswSearch.md deleted file mode 100644 index 544111f0b..000000000 --- a/docs/models/shared/DocArrayHnswSearch.md +++ /dev/null @@ -1,11 +0,0 @@ -# DocArrayHnswSearch - -DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite. - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `destinationPath` | *String* | :heavy_check_mark: | Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run. | /local/my_hnswlib_index | -| `mode` | [Optional](../../models/shared/DestinationLangchainSchemasIndexingIndexingMode.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/DomainRegionCode.md b/docs/models/shared/DomainRegionCode.md new file mode 100644 index 000000000..86f286d8e --- /dev/null +++ b/docs/models/shared/DomainRegionCode.md @@ -0,0 +1,11 @@ +# DomainRegionCode + +Domain region code. 'EU' or 'US' are possible values. The default is 'US'. + + +## Values + +| Name | Value | +| ----- | ----- | +| `US` | US | +| `EU` | EU | \ No newline at end of file diff --git a/docs/models/shared/EncryptionType.md b/docs/models/shared/EncryptionType.md deleted file mode 100644 index 65b395567..000000000 --- a/docs/models/shared/EncryptionType.md +++ /dev/null @@ -1,8 +0,0 @@ -# EncryptionType - - -## Values - -| Name | Value | -| ------ | ------ | -| `NONE` | none | \ No newline at end of file diff --git a/docs/models/shared/ExternalTableViaS3.md b/docs/models/shared/ExternalTableViaS3.md new file mode 100644 index 000000000..f8696b685 --- /dev/null +++ b/docs/models/shared/ExternalTableViaS3.md @@ -0,0 +1,12 @@ +# ExternalTableViaS3 + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `awsKeyId` | *String* | :heavy_check_mark: | AWS access key granting read and write access to S3. | | +| `awsKeySecret` | *String* | :heavy_check_mark: | Corresponding secret part of the AWS Key | | +| `method` | [com.airbyte.api.models.shared.DestinationFireboltSchemasMethod](../../models/shared/DestinationFireboltSchemasMethod.md) | :heavy_check_mark: | N/A | | +| `s3Bucket` | *String* | :heavy_check_mark: | The name of the S3 bucket. | | +| `s3Region` | *String* | :heavy_check_mark: | Region name of the S3 bucket. | us-east-1 | \ No newline at end of file diff --git a/docs/models/shared/FacebookMarketing.md b/docs/models/shared/FacebookMarketing.md index 6cf552818..f7ef84f1c 100644 --- a/docs/models/shared/FacebookMarketing.md +++ b/docs/models/shared/FacebookMarketing.md @@ -3,7 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `clientId` | *Optional* | :heavy_minus_sign: | The Client Id for your OAuth app | -| `clientSecret` | *Optional* | :heavy_minus_sign: | The Client Secret for your OAuth app | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| `credentials` | [Optional](../../models/shared/FacebookMarketingCredentials.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/FacebookMarketingCredentials.md b/docs/models/shared/FacebookMarketingCredentials.md new file mode 100644 index 000000000..a2eca92ea --- /dev/null +++ b/docs/models/shared/FacebookMarketingCredentials.md @@ -0,0 +1,9 @@ +# FacebookMarketingCredentials + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `clientId` | *Optional* | :heavy_minus_sign: | The Client Id for your OAuth app | +| `clientSecret` | *Optional* | :heavy_minus_sign: | The Client Secret for your OAuth app | \ No newline at end of file diff --git a/docs/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.md b/docs/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.md new file mode 100644 index 000000000..dbab57dc6 --- /dev/null +++ b/docs/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.md @@ -0,0 +1,9 @@ +# FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `attributeKey` | *Optional* | :heavy_minus_sign: | N/A | EventName | +| `attributeValue` | *Optional* | :heavy_minus_sign: | N/A | ListInstanceAssociations | \ No newline at end of file diff --git a/docs/models/shared/Fleetio.md b/docs/models/shared/Fleetio.md new file mode 100644 index 000000000..f6322eb07 --- /dev/null +++ b/docs/models/shared/Fleetio.md @@ -0,0 +1,8 @@ +# Fleetio + + +## Values + +| Name | Value | +| --------- | --------- | +| `FLEETIO` | fleetio | \ No newline at end of file diff --git a/docs/models/shared/PunkApi.md b/docs/models/shared/Goldcast.md similarity index 64% rename from docs/models/shared/PunkApi.md rename to docs/models/shared/Goldcast.md index 2da25c0ed..1673ba0cc 100644 --- a/docs/models/shared/PunkApi.md +++ b/docs/models/shared/Goldcast.md @@ -1,8 +1,8 @@ -# PunkApi +# Goldcast ## Values | Name | Value | | ---------- | ---------- | -| `PUNK_API` | punk-api | \ No newline at end of file +| `GOLDCAST` | goldcast | \ No newline at end of file diff --git a/docs/models/shared/GoogleAnalyticsV4ServiceAccountOnly.md b/docs/models/shared/GoogleAnalyticsV4ServiceAccountOnly.md deleted file mode 100644 index bdac6184b..000000000 --- a/docs/models/shared/GoogleAnalyticsV4ServiceAccountOnly.md +++ /dev/null @@ -1,8 +0,0 @@ -# GoogleAnalyticsV4ServiceAccountOnly - - -## Values - -| Name | Value | -| ------------------------------------------ | ------------------------------------------ | -| `GOOGLE_ANALYTICS_V4_SERVICE_ACCOUNT_ONLY` | google-analytics-v4-service-account-only | \ No newline at end of file diff --git a/docs/models/shared/InsightConfig.md b/docs/models/shared/InsightConfig.md index 5ff4fec2f..b51ca6774 100644 --- a/docs/models/shared/InsightConfig.md +++ b/docs/models/shared/InsightConfig.md @@ -5,16 +5,16 @@ Config for custom insights ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `actionBreakdowns` | List<[com.airbyte.api.models.shared.ValidActionBreakdowns](../../models/shared/ValidActionBreakdowns.md)> | :heavy_minus_sign: | A list of chosen action_breakdowns for action_breakdowns | | -| `actionReportTime` | [Optional](../../models/shared/SourceFacebookMarketingActionReportTime.md) | :heavy_minus_sign: | Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. | | -| `breakdowns` | List<[com.airbyte.api.models.shared.ValidBreakdowns](../../models/shared/ValidBreakdowns.md)> | :heavy_minus_sign: | A list of chosen breakdowns for breakdowns | | -| `endDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. | 2017-01-26T00:00:00Z | -| `fields` | List<[com.airbyte.api.models.shared.SourceFacebookMarketingValidEnums](../../models/shared/SourceFacebookMarketingValidEnums.md)> | :heavy_minus_sign: | A list of chosen fields for fields parameter | | -| `insightsJobTimeout` | *Optional* | :heavy_minus_sign: | The insights job timeout | | -| `insightsLookbackWindow` | *Optional* | :heavy_minus_sign: | The attribution window | | -| `level` | [Optional](../../models/shared/Level.md) | :heavy_minus_sign: | Chosen level for API | | -| `name` | *String* | :heavy_check_mark: | The name value of insight | | -| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. | 2017-01-25T00:00:00Z | -| `timeIncrement` | *Optional* | :heavy_minus_sign: | Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `actionBreakdowns` | List<[com.airbyte.api.models.shared.ValidActionBreakdowns](../../models/shared/ValidActionBreakdowns.md)> | :heavy_minus_sign: | A list of chosen action_breakdowns for action_breakdowns | | +| `actionReportTime` | [Optional](../../models/shared/SourceFacebookMarketingActionReportTime.md) | :heavy_minus_sign: | Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. | | +| `breakdowns` | List<[com.airbyte.api.models.shared.ValidBreakdowns](../../models/shared/ValidBreakdowns.md)> | :heavy_minus_sign: | A list of chosen breakdowns for breakdowns | | +| `endDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. | 2017-01-26T00:00:00Z | +| `fields` | List<[com.airbyte.api.models.shared.SourceFacebookMarketingValidEnums](../../models/shared/SourceFacebookMarketingValidEnums.md)> | :heavy_minus_sign: | A list of chosen fields for fields parameter | | +| `insightsJobTimeout` | *Optional* | :heavy_minus_sign: | The insights job timeout | | +| `insightsLookbackWindow` | *Optional* | :heavy_minus_sign: | The attribution window | | +| `level` | [Optional](../../models/shared/Level.md) | :heavy_minus_sign: | Chosen level for API | | +| `name` | *String* | :heavy_check_mark: | The name value of insight | | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. | 2017-01-25T00:00:00Z | +| `timeIncrement` | *Optional* | :heavy_minus_sign: | Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. | | \ No newline at end of file diff --git a/docs/models/shared/JobTypeEnum.md b/docs/models/shared/JobTypeEnum.md index 4603c8bd6..cb150e12a 100644 --- a/docs/models/shared/JobTypeEnum.md +++ b/docs/models/shared/JobTypeEnum.md @@ -5,7 +5,9 @@ Enum that describes the different types of jobs that the platform runs. ## Values -| Name | Value | -| ------- | ------- | -| `SYNC` | sync | -| `RESET` | reset | \ No newline at end of file +| Name | Value | +| --------- | --------- | +| `SYNC` | sync | +| `RESET` | reset | +| `REFRESH` | refresh | +| `CLEAR` | clear | \ No newline at end of file diff --git a/docs/models/shared/Langchain.md b/docs/models/shared/Langchain.md deleted file mode 100644 index 922757709..000000000 --- a/docs/models/shared/Langchain.md +++ /dev/null @@ -1,8 +0,0 @@ -# Langchain - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `LANGCHAIN` | langchain | \ No newline at end of file diff --git a/docs/models/shared/NoEncryption.md b/docs/models/shared/NoEncryption.md deleted file mode 100644 index 6939226aa..000000000 --- a/docs/models/shared/NoEncryption.md +++ /dev/null @@ -1,10 +0,0 @@ -# NoEncryption - -Staging data will be stored in plaintext. - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `encryptionType` | [Optional](../../models/shared/EncryptionType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OrganizationResponse.md b/docs/models/shared/OrganizationResponse.md new file mode 100644 index 000000000..c1834804c --- /dev/null +++ b/docs/models/shared/OrganizationResponse.md @@ -0,0 +1,12 @@ +# OrganizationResponse + +Provides details of a single organization for a user. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `email` | *String* | :heavy_check_mark: | N/A | +| `organizationId` | *String* | :heavy_check_mark: | N/A | +| `organizationName` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OrganizationsResponse.md b/docs/models/shared/OrganizationsResponse.md new file mode 100644 index 000000000..4cd63c97a --- /dev/null +++ b/docs/models/shared/OrganizationsResponse.md @@ -0,0 +1,10 @@ +# OrganizationsResponse + +List/Array of multiple organizations. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `data` | List<[com.airbyte.api.models.shared.OrganizationResponse](../../models/shared/OrganizationResponse.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PermissionCreateRequest.md b/docs/models/shared/PermissionCreateRequest.md index 07f27bd29..f902b1cf8 100644 --- a/docs/models/shared/PermissionCreateRequest.md +++ b/docs/models/shared/PermissionCreateRequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `organizationId` | *Optional* | :heavy_minus_sign: | N/A | -| `permissionType` | [com.airbyte.api.models.shared.PermissionType](../../models/shared/PermissionType.md) | :heavy_check_mark: | Describes what actions/endpoints the permission entitles to | -| `userId` | *String* | :heavy_check_mark: | Internal Airbyte user ID | -| `workspaceId` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `organizationId` | *Optional* | :heavy_minus_sign: | N/A | +| `permissionType` | [com.airbyte.api.models.shared.PublicPermissionType](../../models/shared/PublicPermissionType.md) | :heavy_check_mark: | Subset of `PermissionType` (removing `instance_admin`), could be used in public-api. | +| `userId` | *String* | :heavy_check_mark: | Internal Airbyte user ID | +| `workspaceId` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PublicPermissionType.md b/docs/models/shared/PublicPermissionType.md new file mode 100644 index 000000000..fe88102c0 --- /dev/null +++ b/docs/models/shared/PublicPermissionType.md @@ -0,0 +1,16 @@ +# PublicPermissionType + +Subset of `PermissionType` (removing `instance_admin`), could be used in public-api. + + +## Values + +| Name | Value | +| --------------------- | --------------------- | +| `ORGANIZATION_ADMIN` | organization_admin | +| `ORGANIZATION_EDITOR` | organization_editor | +| `ORGANIZATION_READER` | organization_reader | +| `ORGANIZATION_MEMBER` | organization_member | +| `WORKSPACE_ADMIN` | workspace_admin | +| `WORKSPACE_EDITOR` | workspace_editor | +| `WORKSPACE_READER` | workspace_reader | \ No newline at end of file diff --git a/docs/models/shared/Queries.md b/docs/models/shared/Queries.md new file mode 100644 index 000000000..23882706e --- /dev/null +++ b/docs/models/shared/Queries.md @@ -0,0 +1,10 @@ +# Queries + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `dataSource` | [com.airbyte.api.models.shared.SourceDatadogDataSource](../../models/shared/SourceDatadogDataSource.md) | :heavy_check_mark: | A data source that is powered by the platform. | +| `name` | *String* | :heavy_check_mark: | The variable name for use in queries. | +| `query` | *String* | :heavy_check_mark: | A classic query string. | \ No newline at end of file diff --git a/docs/models/shared/ReadChangesUsingBinaryLogCDC.md b/docs/models/shared/ReadChangesUsingBinaryLogCDC.md index f4a35e1b8..d9926993c 100644 --- a/docs/models/shared/ReadChangesUsingBinaryLogCDC.md +++ b/docs/models/shared/ReadChangesUsingBinaryLogCDC.md @@ -7,6 +7,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `initialLoadTimeoutHours` | *Optional* | :heavy_minus_sign: | The amount of time an initial load is allowed to continue for before catching up on CDC logs. | | `initialWaitingSeconds` | *Optional* | :heavy_minus_sign: | The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time. | | `invalidCdcCursorPositionBehavior` | [Optional](../../models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.md) | :heavy_minus_sign: | Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. | | `method` | [com.airbyte.api.models.shared.SourceMysqlMethod](../../models/shared/SourceMysqlMethod.md) | :heavy_check_mark: | N/A | diff --git a/docs/models/shared/StreamName.md b/docs/models/shared/ReportName.md similarity index 96% rename from docs/models/shared/StreamName.md rename to docs/models/shared/ReportName.md index 71c97eb41..ef7fd8792 100644 --- a/docs/models/shared/StreamName.md +++ b/docs/models/shared/ReportName.md @@ -1,4 +1,4 @@ -# StreamName +# ReportName ## Values @@ -40,4 +40,5 @@ | `GET_STRANDED_INVENTORY_UI_DATA` | GET_STRANDED_INVENTORY_UI_DATA | | `GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE` | GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE | | `GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL` | GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL | -| `GET_XML_BROWSE_TREE_DATA` | GET_XML_BROWSE_TREE_DATA | \ No newline at end of file +| `GET_XML_BROWSE_TREE_DATA` | GET_XML_BROWSE_TREE_DATA | +| `GET_VENDOR_REAL_TIME_INVENTORY_REPORT` | GET_VENDOR_REAL_TIME_INVENTORY_REPORT | \ No newline at end of file diff --git a/docs/models/shared/ReportOptions.md b/docs/models/shared/ReportOptions.md index 68a164a17..be0d9b1ee 100644 --- a/docs/models/shared/ReportOptions.md +++ b/docs/models/shared/ReportOptions.md @@ -6,4 +6,5 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `optionsList` | List<[com.airbyte.api.models.shared.OptionsList](../../models/shared/OptionsList.md)> | :heavy_check_mark: | List of options | -| `streamName` | [com.airbyte.api.models.shared.StreamName](../../models/shared/StreamName.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `reportName` | [com.airbyte.api.models.shared.ReportName](../../models/shared/ReportName.md) | :heavy_check_mark: | N/A | +| `streamName` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SQLInserts.md b/docs/models/shared/SQLInserts.md new file mode 100644 index 000000000..af3d20466 --- /dev/null +++ b/docs/models/shared/SQLInserts.md @@ -0,0 +1,8 @@ +# SQLInserts + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `method` | [com.airbyte.api.models.shared.DestinationFireboltMethod](../../models/shared/DestinationFireboltMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SchemeClientCredentials.md b/docs/models/shared/SchemeClientCredentials.md new file mode 100644 index 000000000..2132f1513 --- /dev/null +++ b/docs/models/shared/SchemeClientCredentials.md @@ -0,0 +1,10 @@ +# SchemeClientCredentials + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `clientID` | *String* | :heavy_check_mark: | N/A | | +| `clientSecret` | *String* | :heavy_check_mark: | N/A | | +| `tokenURL` | *String* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/Security.md b/docs/models/shared/Security.md index 148094e71..86412edf6 100644 --- a/docs/models/shared/Security.md +++ b/docs/models/shared/Security.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `basicAuth` | [Optional](../../models/shared/SchemeBasicAuth.md) | :heavy_minus_sign: | N/A | -| `bearerAuth` | *Optional* | :heavy_minus_sign: | N/A | -| `clientCredentials` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `basicAuth` | [Optional](../../models/shared/SchemeBasicAuth.md) | :heavy_minus_sign: | N/A | +| `bearerAuth` | *Optional* | :heavy_minus_sign: | N/A | +| `clientCredentials` | [Optional](../../models/shared/SchemeClientCredentials.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SelectedFieldInfo.md b/docs/models/shared/SelectedFieldInfo.md new file mode 100644 index 000000000..6c970ab90 --- /dev/null +++ b/docs/models/shared/SelectedFieldInfo.md @@ -0,0 +1,10 @@ +# SelectedFieldInfo + +Path to a field/column/property in a stream to be selected. For example, if the field to be selected is a database column called "foo", this will be ["foo"]. Use multiple path elements for nested schemas. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `fieldPath` | List<*String*> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ServiceAccountKeyAuthentication.md b/docs/models/shared/ServiceAccountKeyAuthentication.md index 534aba46f..fdfd0358c 100644 --- a/docs/models/shared/ServiceAccountKeyAuthentication.md +++ b/docs/models/shared/ServiceAccountKeyAuthentication.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authType` | [Optional](../../models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.md) | :heavy_minus_sign: | N/A | | -| `credentialsJson` | *String* | :heavy_check_mark: | The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide. | { "type": "service_account", "project_id": YOUR_PROJECT_ID, "private_key_id": YOUR_PRIVATE_KEY, ... } | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accessToken` | *String* | :heavy_check_mark: | The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. | +| `authType` | [Optional](../../models/shared/SourceFacebookMarketingSchemasAuthType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Site.md b/docs/models/shared/Site.md new file mode 100644 index 000000000..13b20070f --- /dev/null +++ b/docs/models/shared/Site.md @@ -0,0 +1,14 @@ +# Site + +The site where Datadog data resides in. + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `DATADOGHQ_COM` | datadoghq.com | +| `US3_DATADOGHQ_COM` | us3.datadoghq.com | +| `US5_DATADOGHQ_COM` | us5.datadoghq.com | +| `DATADOGHQ_EU` | datadoghq.eu | +| `DDOG_GOV_COM` | ddog-gov.com | \ No newline at end of file diff --git a/docs/models/shared/DestinationSnowflakeCortexIndexing.md b/docs/models/shared/SnowflakeConnection.md similarity index 98% rename from docs/models/shared/DestinationSnowflakeCortexIndexing.md rename to docs/models/shared/SnowflakeConnection.md index 2eb925191..20256f921 100644 --- a/docs/models/shared/DestinationSnowflakeCortexIndexing.md +++ b/docs/models/shared/SnowflakeConnection.md @@ -1,4 +1,4 @@ -# DestinationSnowflakeCortexIndexing +# SnowflakeConnection Snowflake can be used to store vector data and retrieve embeddings. @@ -13,4 +13,4 @@ Snowflake can be used to store vector data and retrieve embeddings. | `host` | *String* | :heavy_check_mark: | Enter the account name you want to use to access the database. This is usually the identifier before .snowflakecomputing.com | AIRBYTE_ACCOUNT | | `role` | *String* | :heavy_check_mark: | Enter the role that you want to use to access Snowflake | AIRBYTE_ROLE | | `username` | *String* | :heavy_check_mark: | Enter the name of the user you want to use to access the database | AIRBYTE_USER | -| `warehouse` | *String* | :heavy_check_mark: | Enter the name of the warehouse that you want to sync data into | AIRBYTE_WAREHOUSE | \ No newline at end of file +| `warehouse` | *String* | :heavy_check_mark: | Enter the name of the warehouse that you want to use as a compute cluster | AIRBYTE_WAREHOUSE | \ No newline at end of file diff --git a/docs/models/shared/SourceAmazonSellerPartner.md b/docs/models/shared/SourceAmazonSellerPartner.md index a7b037400..0597925be 100644 --- a/docs/models/shared/SourceAmazonSellerPartner.md +++ b/docs/models/shared/SourceAmazonSellerPartner.md @@ -3,17 +3,17 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accountType` | [Optional](../../models/shared/AWSSellerPartnerAccountType.md) | :heavy_minus_sign: | Type of the Account you're going to authorize the Airbyte application by | | -| `authType` | [Optional](../../models/shared/SourceAmazonSellerPartnerAuthType.md) | :heavy_minus_sign: | N/A | | -| `awsEnvironment` | [Optional](../../models/shared/AWSEnvironment.md) | :heavy_minus_sign: | Select the AWS Environment. | | -| `lwaAppId` | *String* | :heavy_check_mark: | Your Login with Amazon Client ID. | | -| `lwaClientSecret` | *String* | :heavy_check_mark: | Your Login with Amazon Client Secret. | | -| `periodInDays` | *Optional* | :heavy_minus_sign: | For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. | | -| `refreshToken` | *String* | :heavy_check_mark: | The Refresh Token obtained via OAuth flow authorization. | | -| `region` | [Optional](../../models/shared/AWSRegion.md) | :heavy_minus_sign: | Select the AWS Region. | | -| `replicationEndDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. | 2017-01-25T00:00:00Z | -| `replicationStartDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided, the date 2 years ago from today will be used. | 2017-01-25T00:00:00Z | -| `reportOptionsList` | List<[com.airbyte.api.models.shared.ReportOptions](../../models/shared/ReportOptions.md)> | :heavy_minus_sign: | Additional information passed to reports. This varies by report type. | | -| `sourceType` | [com.airbyte.api.models.shared.SourceAmazonSellerPartnerAmazonSellerPartner](../../models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accountType` | [Optional](../../models/shared/AWSSellerPartnerAccountType.md) | :heavy_minus_sign: | Type of the Account you're going to authorize the Airbyte application by | | +| `authType` | [Optional](../../models/shared/SourceAmazonSellerPartnerAuthType.md) | :heavy_minus_sign: | N/A | | +| `awsEnvironment` | [Optional](../../models/shared/AWSEnvironment.md) | :heavy_minus_sign: | Select the AWS Environment. | | +| `lwaAppId` | *String* | :heavy_check_mark: | Your Login with Amazon Client ID. | | +| `lwaClientSecret` | *String* | :heavy_check_mark: | Your Login with Amazon Client Secret. | | +| `periodInDays` | *Optional* | :heavy_minus_sign: | For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. | | +| `refreshToken` | *String* | :heavy_check_mark: | The Refresh Token obtained via OAuth flow authorization. | | +| `region` | [Optional](../../models/shared/AWSRegion.md) | :heavy_minus_sign: | Select the AWS Region. | | +| `replicationEndDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. | 2017-01-25T00:00:00Z | +| `replicationStartDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. | 2017-01-25T00:00:00Z | +| `reportOptionsList` | List<[com.airbyte.api.models.shared.ReportOptions](../../models/shared/ReportOptions.md)> | :heavy_minus_sign: | Additional information passed to reports. This varies by report type. | | +| `sourceType` | [com.airbyte.api.models.shared.SourceAmazonSellerPartnerAmazonSellerPartner](../../models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceAwsCloudtrail.md b/docs/models/shared/SourceAwsCloudtrail.md index 9189749c0..6d1572b48 100644 --- a/docs/models/shared/SourceAwsCloudtrail.md +++ b/docs/models/shared/SourceAwsCloudtrail.md @@ -3,10 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `awsKeyId` | *String* | :heavy_check_mark: | AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. | | -| `awsRegionName` | *String* | :heavy_check_mark: | The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. | | -| `awsSecretKey` | *String* | :heavy_check_mark: | AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. | | -| `sourceType` | [com.airbyte.api.models.shared.AwsCloudtrail](../../models/shared/AwsCloudtrail.md) | :heavy_check_mark: | N/A | | -| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. | 2021-01-01 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `awsKeyId` | *String* | :heavy_check_mark: | AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. | | +| `awsRegionName` | *Optional* | :heavy_minus_sign: | The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. | | +| `awsSecretKey` | *String* | :heavy_check_mark: | AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. | | +| `lookupAttributesFilter` | [Optional](../../models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.md) | :heavy_minus_sign: | N/A | | +| `sourceType` | [com.airbyte.api.models.shared.AwsCloudtrail](../../models/shared/AwsCloudtrail.md) | :heavy_check_mark: | N/A | | +| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. | 2021-01-01 | \ No newline at end of file diff --git a/docs/models/shared/SourceClazar.md b/docs/models/shared/SourceClazar.md new file mode 100644 index 000000000..25d2109c6 --- /dev/null +++ b/docs/models/shared/SourceClazar.md @@ -0,0 +1,10 @@ +# SourceClazar + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `clientId` | *String* | :heavy_check_mark: | N/A | +| `clientSecret` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Clazar](../../models/shared/Clazar.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceDatadog.md b/docs/models/shared/SourceDatadog.md new file mode 100644 index 000000000..bb2b04425 --- /dev/null +++ b/docs/models/shared/SourceDatadog.md @@ -0,0 +1,16 @@ +# SourceDatadog + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Datadog API key | | +| `applicationKey` | *String* | :heavy_check_mark: | Datadog application key | | +| `endDate` | *Optional* | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. | 2022-10-01T00:00:00Z | +| `maxRecordsPerRequest` | *Optional* | :heavy_minus_sign: | Maximum number of records to collect per request. | | +| `queries` | List<[com.airbyte.api.models.shared.Queries](../../models/shared/Queries.md)> | :heavy_minus_sign: | List of queries to be run and used as inputs. | | +| `query` | *Optional* | :heavy_minus_sign: | The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. | | +| `site` | [Optional](../../models/shared/Site.md) | :heavy_minus_sign: | The site where Datadog data resides in. | | +| `sourceType` | [com.airbyte.api.models.shared.Datadog](../../models/shared/Datadog.md) | :heavy_check_mark: | N/A | | +| `startDate` | *Optional* | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. | 2022-10-01T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceDatadogDataSource.md b/docs/models/shared/SourceDatadogDataSource.md new file mode 100644 index 000000000..3fbb86166 --- /dev/null +++ b/docs/models/shared/SourceDatadogDataSource.md @@ -0,0 +1,13 @@ +# SourceDatadogDataSource + +A data source that is powered by the platform. + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `METRICS` | metrics | +| `CLOUD_COST` | cloud_cost | +| `LOGS` | logs | +| `RUM` | rum | \ No newline at end of file diff --git a/docs/models/shared/SourceFacebookMarketing.md b/docs/models/shared/SourceFacebookMarketing.md index 3bdd98b0c..f04d6bda6 100644 --- a/docs/models/shared/SourceFacebookMarketing.md +++ b/docs/models/shared/SourceFacebookMarketing.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accessToken` | *String* | :heavy_check_mark: | The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. | | +| `accessToken` | *Optional* | :heavy_minus_sign: | The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. | | | `accountIds` | List<*String*> | :heavy_check_mark: | The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown menu or in your browser's address bar of your Meta Ads Manager. See the docs for more information. | 111111111111111 | | `actionBreakdownsAllowEmpty` | *Optional* | :heavy_minus_sign: | Allows action_breakdowns to be an empty list | | | `adStatuses` | List<[com.airbyte.api.models.shared.ValidAdStatuses](../../models/shared/ValidAdStatuses.md)> | :heavy_minus_sign: | Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. | | @@ -13,6 +13,7 @@ | `campaignStatuses` | List<[com.airbyte.api.models.shared.ValidCampaignStatuses](../../models/shared/ValidCampaignStatuses.md)> | :heavy_minus_sign: | Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. | | | `clientId` | *Optional* | :heavy_minus_sign: | The Client Id for your OAuth app | | | `clientSecret` | *Optional* | :heavy_minus_sign: | The Client Secret for your OAuth app | | +| `credentials` | [Optional](../../models/shared/SourceFacebookMarketingAuthentication.md) | :heavy_minus_sign: | Credentials for connecting to the Facebook Marketing API | | | `customInsights` | List<[com.airbyte.api.models.shared.InsightConfig](../../models/shared/InsightConfig.md)> | :heavy_minus_sign: | A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. | | | `endDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. | 2017-01-26T00:00:00Z | | `fetchThumbnailImages` | *Optional* | :heavy_minus_sign: | Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative. | | diff --git a/docs/models/shared/SourceFacebookMarketingAuthType.md b/docs/models/shared/SourceFacebookMarketingAuthType.md new file mode 100644 index 000000000..c6c4e148d --- /dev/null +++ b/docs/models/shared/SourceFacebookMarketingAuthType.md @@ -0,0 +1,8 @@ +# SourceFacebookMarketingAuthType + + +## Values + +| Name | Value | +| -------- | -------- | +| `CLIENT` | Client | \ No newline at end of file diff --git a/docs/models/shared/SourceFacebookMarketingAuthentication.md b/docs/models/shared/SourceFacebookMarketingAuthentication.md new file mode 100644 index 000000000..2ff952e1c --- /dev/null +++ b/docs/models/shared/SourceFacebookMarketingAuthentication.md @@ -0,0 +1,4 @@ +# SourceFacebookMarketingAuthentication + +Credentials for connecting to the Facebook Marketing API + diff --git a/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType.md b/docs/models/shared/SourceFacebookMarketingSchemasAuthType.md similarity index 63% rename from docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType.md rename to docs/models/shared/SourceFacebookMarketingSchemasAuthType.md index 75ecd5024..d1f5baa15 100644 --- a/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType.md +++ b/docs/models/shared/SourceFacebookMarketingSchemasAuthType.md @@ -1,4 +1,4 @@ -# SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType +# SourceFacebookMarketingSchemasAuthType ## Values diff --git a/docs/models/shared/SourceFacebookMarketingValidEnums.md b/docs/models/shared/SourceFacebookMarketingValidEnums.md index 88ae48536..bfdd2cdbd 100644 --- a/docs/models/shared/SourceFacebookMarketingValidEnums.md +++ b/docs/models/shared/SourceFacebookMarketingValidEnums.md @@ -19,7 +19,6 @@ An enumeration. | `ADSET_END` | adset_end | | `ADSET_ID` | adset_id | | `ADSET_NAME` | adset_name | -| `ADSET_START` | adset_start | | `AGE_TARGETING` | age_targeting | | `ATTRIBUTION_SETTING` | attribution_setting | | `AUCTION_BID` | auction_bid | @@ -36,7 +35,6 @@ An enumeration. | `CATALOG_SEGMENT_VALUE_OMNI_PURCHASE_ROAS` | catalog_segment_value_omni_purchase_roas | | `CATALOG_SEGMENT_VALUE_WEBSITE_PURCHASE_ROAS` | catalog_segment_value_website_purchase_roas | | `CLICKS` | clicks | -| `CONVERSION_LEAD_RATE` | conversion_lead_rate | | `CONVERSION_RATE_RANKING` | conversion_rate_ranking | | `CONVERSION_VALUES` | conversion_values | | `CONVERSIONS` | conversions | @@ -47,7 +45,6 @@ An enumeration. | `COST_PER_ACTION_TYPE` | cost_per_action_type | | `COST_PER_AD_CLICK` | cost_per_ad_click | | `COST_PER_CONVERSION` | cost_per_conversion | -| `COST_PER_CONVERSION_LEAD` | cost_per_conversion_lead | | `COST_PER_DDA_COUNTBY_CONVS` | cost_per_dda_countby_convs | | `COST_PER_ESTIMATED_AD_RECALLERS` | cost_per_estimated_ad_recallers | | `COST_PER_INLINE_LINK_CLICK` | cost_per_inline_link_click | diff --git a/docs/models/shared/SourceFirebolt.md b/docs/models/shared/SourceFirebolt.md index 75831dac9..5f03076e8 100644 --- a/docs/models/shared/SourceFirebolt.md +++ b/docs/models/shared/SourceFirebolt.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `account` | *String* | :heavy_check_mark: | Firebolt account to login. | | -| `clientId` | *String* | :heavy_check_mark: | Firebolt service account ID. | bbl9qth066hmxkwyb0hy2iwk8ktez9dz | -| `clientSecret` | *String* | :heavy_check_mark: | Firebolt secret, corresponding to the service account ID. | | -| `database` | *String* | :heavy_check_mark: | The database to connect to. | | -| `engine` | *String* | :heavy_check_mark: | Engine name to connect to. | | -| `host` | *Optional* | :heavy_minus_sign: | The host name of your Firebolt database. | api.app.firebolt.io | -| `sourceType` | [com.airbyte.api.models.shared.Firebolt](../../models/shared/Firebolt.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `account` | *String* | :heavy_check_mark: | Firebolt account to login. | | +| `clientId` | *String* | :heavy_check_mark: | Firebolt service account ID. | bbl9qth066hmxkwyb0hy2iwk8ktez9dz | +| `clientSecret` | *String* | :heavy_check_mark: | Firebolt secret, corresponding to the service account ID. | | +| `database` | *String* | :heavy_check_mark: | The database to connect to. | | +| `engine` | *String* | :heavy_check_mark: | Engine name to connect to. | | +| `host` | *Optional* | :heavy_minus_sign: | The host name of your Firebolt database. | api.app.firebolt.io | +| `sourceType` | [com.airbyte.api.models.shared.SourceFireboltFirebolt](../../models/shared/SourceFireboltFirebolt.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/DestinationRedshiftSchemasMethod.md b/docs/models/shared/SourceFireboltFirebolt.md similarity index 52% rename from docs/models/shared/DestinationRedshiftSchemasMethod.md rename to docs/models/shared/SourceFireboltFirebolt.md index 67a2759b3..26214fad2 100644 --- a/docs/models/shared/DestinationRedshiftSchemasMethod.md +++ b/docs/models/shared/SourceFireboltFirebolt.md @@ -1,8 +1,8 @@ -# DestinationRedshiftSchemasMethod +# SourceFireboltFirebolt ## Values | Name | Value | | ---------- | ---------- | -| `STANDARD` | Standard | \ No newline at end of file +| `FIREBOLT` | firebolt | \ No newline at end of file diff --git a/docs/models/shared/SourceFleetio.md b/docs/models/shared/SourceFleetio.md new file mode 100644 index 000000000..a96d1b922 --- /dev/null +++ b/docs/models/shared/SourceFleetio.md @@ -0,0 +1,10 @@ +# SourceFleetio + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `accountToken` | *String* | :heavy_check_mark: | N/A | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [com.airbyte.api.models.shared.Fleetio](../../models/shared/Fleetio.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceGithub.md b/docs/models/shared/SourceGithub.md index 9aafa4b94..706eb0853 100644 --- a/docs/models/shared/SourceGithub.md +++ b/docs/models/shared/SourceGithub.md @@ -9,6 +9,7 @@ | `branch` | *Optional* | :heavy_minus_sign: | (DEPRCATED) Space-delimited list of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. | airbytehq/airbyte/master airbytehq/airbyte/my-branch | | `branches` | List<*String*> | :heavy_minus_sign: | List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. | airbytehq/airbyte/master | | `credentials` | [com.airbyte.api.models.shared.SourceGithubAuthentication](../../models/shared/SourceGithubAuthentication.md) | :heavy_check_mark: | Choose how to authenticate to GitHub | | +| `maxWaitingTime` | *Optional* | :heavy_minus_sign: | Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync | 10 | | `repositories` | List<*String*> | :heavy_check_mark: | List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. | airbytehq/airbyte | | `repository` | *Optional* | :heavy_minus_sign: | (DEPRCATED) Space-delimited list of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/airbyte airbytehq/another-repo` for multiple repositories. | airbytehq/airbyte airbytehq/another-repo | | `sourceType` | [com.airbyte.api.models.shared.SourceGithubGithub](../../models/shared/SourceGithubGithub.md) | :heavy_check_mark: | N/A | | diff --git a/docs/models/shared/SourceGoldcast.md b/docs/models/shared/SourceGoldcast.md new file mode 100644 index 000000000..714a18f20 --- /dev/null +++ b/docs/models/shared/SourceGoldcast.md @@ -0,0 +1,9 @@ +# SourceGoldcast + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `accessKey` | *String* | :heavy_check_mark: | Your API Access Key. See here. The key is case sensitive. | +| `sourceType` | [com.airbyte.api.models.shared.Goldcast](../../models/shared/Goldcast.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleAnalyticsDataApi.md b/docs/models/shared/SourceGoogleAnalyticsDataApi.md index 34a2a2b54..e83b0ff73 100644 --- a/docs/models/shared/SourceGoogleAnalyticsDataApi.md +++ b/docs/models/shared/SourceGoogleAnalyticsDataApi.md @@ -10,6 +10,7 @@ | `customReportsArray` | List<[com.airbyte.api.models.shared.SourceGoogleAnalyticsDataApiCustomReportConfig](../../models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.md)> | :heavy_minus_sign: | You can add your Custom Analytics report by creating one. | | | `dateRangesStartDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before this date will not be included in the report. Not applied to custom Cohort reports. | 2021-01-01 | | `keepEmptyRows` | *Optional* | :heavy_minus_sign: | If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter. More information is available in the documentation. | | +| `lookbackWindow` | *Optional* | :heavy_minus_sign: | Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. | 2 | | `propertyIds` | List<*String*> | :heavy_check_mark: | A list of your Property IDs. The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the Google Analytics documentation to locate your property ID. | [
"1738294",
"5729978930"
] | | `sourceType` | [com.airbyte.api.models.shared.SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi](../../models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.md) | :heavy_check_mark: | N/A | | | `windowInDays` | *Optional* | :heavy_minus_sign: | The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in the documentation. | 30 | \ No newline at end of file diff --git a/docs/models/shared/ChromaLocalPersistance.md b/docs/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.md similarity index 51% rename from docs/models/shared/ChromaLocalPersistance.md rename to docs/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.md index 3a554d7b1..98cc916a8 100644 --- a/docs/models/shared/ChromaLocalPersistance.md +++ b/docs/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.md @@ -1,12 +1,9 @@ -# ChromaLocalPersistance - -Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync. +# SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `collectionName` | *Optional* | :heavy_minus_sign: | Name of the collection to use. | | -| `destinationPath` | *String* | :heavy_check_mark: | Path to the directory where chroma files will be written. The files will be placed inside that local mount. | /local/my_chroma_db | -| `mode` | [Optional](../../models/shared/DestinationLangchainSchemasIndexingIndexing3Mode.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `authType` | [Optional](../../models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.md) | :heavy_minus_sign: | N/A | | +| `credentialsJson` | *String* | :heavy_check_mark: | The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide. | { "type": "service_account", "project_id": YOUR_PROJECT_ID, "private_key_id": YOUR_PRIVATE_KEY, ... } | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnly.md b/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnly.md deleted file mode 100644 index 495ef8bee..000000000 --- a/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnly.md +++ /dev/null @@ -1,14 +0,0 @@ -# SourceGoogleAnalyticsV4ServiceAccountOnly - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `credentials` | [Optional](../../models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.md) | :heavy_minus_sign: | Credentials for the service | | -| `customReports` | *Optional* | :heavy_minus_sign: | A JSON array describing the custom reports you want to sync from Google Analytics. See the docs for more information about the exact format you can use to fill out this field. | | -| `endDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The date in the format YYYY-MM-DD. Any data after this date will not be replicated. | 2020-06-01 | -| `sourceType` | [com.airbyte.api.models.shared.GoogleAnalyticsV4ServiceAccountOnly](../../models/shared/GoogleAnalyticsV4ServiceAccountOnly.md) | :heavy_check_mark: | N/A | | -| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | The date in the format YYYY-MM-DD. Any data before this date will not be replicated. | 2020-06-01 | -| `viewId` | *String* | :heavy_check_mark: | The ID for the Google Analytics View you want to fetch data from. This can be found from the Google Analytics Account Explorer. | | -| `windowInDays` | *Optional* | :heavy_minus_sign: | The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the the docs. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. | 30 | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.md b/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.md deleted file mode 100644 index eb713bdbd..000000000 --- a/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.md +++ /dev/null @@ -1,4 +0,0 @@ -# SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials - -Credentials for the service - diff --git a/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication.md b/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication.md deleted file mode 100644 index 3356e86cc..000000000 --- a/docs/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication.md +++ /dev/null @@ -1,9 +0,0 @@ -# SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authType` | [Optional](../../models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType.md) | :heavy_minus_sign: | N/A | | -| `credentialsJson` | *String* | :heavy_check_mark: | The JSON key of the service account to use for authorization | { "type": "service_account", "project_id": YOUR_PROJECT_ID, "private_key_id": YOUR_PRIVATE_KEY, ... } | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleDriveCSVFormat.md b/docs/models/shared/SourceGoogleDriveCSVFormat.md index 30a277928..56b8c6522 100644 --- a/docs/models/shared/SourceGoogleDriveCSVFormat.md +++ b/docs/models/shared/SourceGoogleDriveCSVFormat.md @@ -12,6 +12,7 @@ | `falseValues` | List<*String*> | :heavy_minus_sign: | A set of case-sensitive strings that should be interpreted as false values. | | `filetype` | [Optional](../../models/shared/SourceGoogleDriveSchemasFiletype.md) | :heavy_minus_sign: | N/A | | `headerDefinition` | [Optional](../../models/shared/SourceGoogleDriveCSVHeaderDefinition.md) | :heavy_minus_sign: | How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. | +| `ignoreErrorsOnFieldsMismatch` | *Optional* | :heavy_minus_sign: | Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. | | `nullValues` | List<*String*> | :heavy_minus_sign: | A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. | | `quoteChar` | *Optional* | :heavy_minus_sign: | The character used for quoting CSV values. To disallow quoting, make this field blank. | | `skipRowsAfterHeader` | *Optional* | :heavy_minus_sign: | The number of rows to skip after the header row. | diff --git a/docs/models/shared/SourceIntercom.md b/docs/models/shared/SourceIntercom.md index a292398f1..339a42328 100644 --- a/docs/models/shared/SourceIntercom.md +++ b/docs/models/shared/SourceIntercom.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `accessToken` | *String* | :heavy_check_mark: | Access token for making authenticated requests. See the Intercom docs for more information. | | +| `activityLogsTimeStep` | *Optional* | :heavy_minus_sign: | Set lower value in case of failing long running sync of Activity Logs stream. | 30 | | `clientId` | *Optional* | :heavy_minus_sign: | Client Id for your Intercom application. | | | `clientSecret` | *Optional* | :heavy_minus_sign: | Client Secret for your Intercom application. | | | `sourceType` | [com.airbyte.api.models.shared.SourceIntercomIntercom](../../models/shared/SourceIntercomIntercom.md) | :heavy_check_mark: | N/A | | diff --git a/docs/models/shared/SourceIp2whois.md b/docs/models/shared/SourceIp2whois.md index aa8112cc0..c47e9f9d2 100644 --- a/docs/models/shared/SourceIp2whois.md +++ b/docs/models/shared/SourceIp2whois.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `apiKey` | *Optional* | :heavy_minus_sign: | Your API Key. See here. | | -| `domain` | *Optional* | :heavy_minus_sign: | Domain name. See here. | www.google.com | -| `sourceType` | [Optional](../../models/shared/Ip2whois.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `apiKey` | *Optional* | :heavy_minus_sign: | Your API Key. See here. | | +| `domain` | *Optional* | :heavy_minus_sign: | Domain name. See here. | www.google.com | +| `sourceType` | [com.airbyte.api.models.shared.Ip2whois](../../models/shared/Ip2whois.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceKlarna.md b/docs/models/shared/SourceKlarna.md index e185b1e4a..cf76b0a04 100644 --- a/docs/models/shared/SourceKlarna.md +++ b/docs/models/shared/SourceKlarna.md @@ -7,6 +7,6 @@ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `password` | *String* | :heavy_check_mark: | A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs (https://developers.klarna.com/api/#authentication) | | `playground` | *Optional* | :heavy_minus_sign: | Propertie defining if connector is used against playground or production environment | -| `region` | [com.airbyte.api.models.shared.SourceKlarnaRegion](../../models/shared/SourceKlarnaRegion.md) | :heavy_check_mark: | Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc' | +| `region` | [com.airbyte.api.models.shared.SourceKlarnaRegion](../../models/shared/SourceKlarnaRegion.md) | :heavy_check_mark: | Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' | | `sourceType` | [com.airbyte.api.models.shared.Klarna](../../models/shared/Klarna.md) | :heavy_check_mark: | N/A | | `username` | *String* | :heavy_check_mark: | Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication) | \ No newline at end of file diff --git a/docs/models/shared/SourceKlarnaRegion.md b/docs/models/shared/SourceKlarnaRegion.md index 7bfa1769b..f838a7452 100644 --- a/docs/models/shared/SourceKlarnaRegion.md +++ b/docs/models/shared/SourceKlarnaRegion.md @@ -1,6 +1,6 @@ # SourceKlarnaRegion -Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc' +Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' ## Values @@ -8,5 +8,5 @@ Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/p | Name | Value | | ----- | ----- | | `EU` | eu | -| `US` | us | +| `NA` | na | | `OC` | oc | \ No newline at end of file diff --git a/docs/models/shared/SourceLinkedinPages.md b/docs/models/shared/SourceLinkedinPages.md index 496080c04..bdcc1cea9 100644 --- a/docs/models/shared/SourceLinkedinPages.md +++ b/docs/models/shared/SourceLinkedinPages.md @@ -3,8 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `credentials` | [Optional](../../models/shared/SourceLinkedinPagesAuthentication.md) | :heavy_minus_sign: | N/A | | -| `orgId` | *String* | :heavy_check_mark: | Specify the Organization ID | 123456789 | -| `sourceType` | [com.airbyte.api.models.shared.LinkedinPages](../../models/shared/LinkedinPages.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `credentials` | [Optional](../../models/shared/SourceLinkedinPagesAuthentication.md) | :heavy_minus_sign: | N/A | | +| `orgId` | *String* | :heavy_check_mark: | Specify the Organization ID | 123456789 | +| `sourceType` | [com.airbyte.api.models.shared.LinkedinPages](../../models/shared/LinkedinPages.md) | :heavy_check_mark: | N/A | | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} | | +| `timeGranularityType` | [Optional](../../models/shared/TimeGranularityType.md) | :heavy_minus_sign: | Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" | | \ No newline at end of file diff --git a/docs/models/shared/SourceMailgun.md b/docs/models/shared/SourceMailgun.md index bb8e63f3c..580c920c0 100644 --- a/docs/models/shared/SourceMailgun.md +++ b/docs/models/shared/SourceMailgun.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `domainRegion` | *Optional* | :heavy_minus_sign: | Domain region code. 'EU' or 'US' are possible values. The default is 'US'. | | +| `domainRegion` | [Optional](../../models/shared/DomainRegionCode.md) | :heavy_minus_sign: | Domain region code. 'EU' or 'US' are possible values. The default is 'US'. | | | `privateKey` | *String* | :heavy_check_mark: | Primary account API key to access your Mailgun data. | | | `sourceType` | [com.airbyte.api.models.shared.Mailgun](../../models/shared/Mailgun.md) | :heavy_check_mark: | N/A | | | `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago. | 2023-08-01T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceMicrosoftOnedriveCSVFormat.md b/docs/models/shared/SourceMicrosoftOnedriveCSVFormat.md index 0fddbf42a..6a6e3dae1 100644 --- a/docs/models/shared/SourceMicrosoftOnedriveCSVFormat.md +++ b/docs/models/shared/SourceMicrosoftOnedriveCSVFormat.md @@ -12,6 +12,7 @@ | `falseValues` | List<*String*> | :heavy_minus_sign: | A set of case-sensitive strings that should be interpreted as false values. | | `filetype` | [Optional](../../models/shared/SourceMicrosoftOnedriveSchemasFiletype.md) | :heavy_minus_sign: | N/A | | `headerDefinition` | [Optional](../../models/shared/SourceMicrosoftOnedriveCSVHeaderDefinition.md) | :heavy_minus_sign: | How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. | +| `ignoreErrorsOnFieldsMismatch` | *Optional* | :heavy_minus_sign: | Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. | | `nullValues` | List<*String*> | :heavy_minus_sign: | A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. | | `quoteChar` | *Optional* | :heavy_minus_sign: | The character used for quoting CSV values. To disallow quoting, make this field blank. | | `skipRowsAfterHeader` | *Optional* | :heavy_minus_sign: | The number of rows to skip after the header row. | diff --git a/docs/models/shared/SourceMicrosoftSharepointDocumentFileTypeFormatExperimental.md b/docs/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.md similarity index 99% rename from docs/models/shared/SourceMicrosoftSharepointDocumentFileTypeFormatExperimental.md rename to docs/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.md index a494c6fdd..5cbe5e22d 100644 --- a/docs/models/shared/SourceMicrosoftSharepointDocumentFileTypeFormatExperimental.md +++ b/docs/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.md @@ -1,4 +1,4 @@ -# SourceMicrosoftSharepointDocumentFileTypeFormatExperimental +# SourceMicrosoftSharepointUnstructuredDocumentFormat Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. diff --git a/docs/models/shared/SourceMixpanel.md b/docs/models/shared/SourceMixpanel.md index 5d15dd134..bf8ecf6fd 100644 --- a/docs/models/shared/SourceMixpanel.md +++ b/docs/models/shared/SourceMixpanel.md @@ -8,9 +8,9 @@ | `attributionWindow` | *Optional* | :heavy_minus_sign: | A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days. (This value should be non-negative integer) | | | `credentials` | [com.airbyte.api.models.shared.AuthenticationWildcard](../../models/shared/AuthenticationWildcard.md) | :heavy_check_mark: | Choose how to authenticate to Mixpanel | | | `dateWindowSize` | *Optional* | :heavy_minus_sign: | Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment. (This value should be positive integer) | | -| `endDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date | 2021-11-16 | +| `endDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date | 2021-11-16 | | `projectTimezone` | *Optional* | :heavy_minus_sign: | Time zone in which integer date times are stored. The project timezone may be found in the project settings in the Mixpanel console. | US/Pacific | | `region` | [Optional](../../models/shared/SourceMixpanelRegion.md) | :heavy_minus_sign: | The region of mixpanel domain instance either US or EU. | | | `selectPropertiesByDefault` | *Optional* | :heavy_minus_sign: | Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored. | | | `sourceType` | [com.airbyte.api.models.shared.Mixpanel](../../models/shared/Mixpanel.md) | :heavy_check_mark: | N/A | | -| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. | 2021-11-16 | \ No newline at end of file +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. | 2021-11-16 | \ No newline at end of file diff --git a/docs/models/shared/SourceNytimes.md b/docs/models/shared/SourceNytimes.md index 293294ad5..78c0d67b7 100644 --- a/docs/models/shared/SourceNytimes.md +++ b/docs/models/shared/SourceNytimes.md @@ -6,8 +6,8 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | `apiKey` | *String* | :heavy_check_mark: | API Key | | -| `endDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | End date to stop the article retrieval (format YYYY-MM) | 2022-08 | +| `endDate` | *Optional* | :heavy_minus_sign: | End date to stop the article retrieval (format YYYY-MM) | 2022-08 | | `period` | [com.airbyte.api.models.shared.PeriodUsedForMostPopularStreams](../../models/shared/PeriodUsedForMostPopularStreams.md) | :heavy_check_mark: | Period of time (in days) | | | `shareType` | [Optional](../../models/shared/ShareTypeUsedForMostPopularSharedStream.md) | :heavy_minus_sign: | Share Type | | | `sourceType` | [com.airbyte.api.models.shared.Nytimes](../../models/shared/Nytimes.md) | :heavy_check_mark: | N/A | | -| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | Start date to begin the article retrieval (format YYYY-MM) | 2022-08 | \ No newline at end of file +| `startDate` | *String* | :heavy_check_mark: | Start date to begin the article retrieval (format YYYY-MM) | 2022-08 | \ No newline at end of file diff --git a/docs/models/shared/SourceOkta.md b/docs/models/shared/SourceOkta.md index 097ed2441..7559e5ed9 100644 --- a/docs/models/shared/SourceOkta.md +++ b/docs/models/shared/SourceOkta.md @@ -8,4 +8,4 @@ | `credentials` | [Optional](../../models/shared/SourceOktaAuthorizationMethod.md) | :heavy_minus_sign: | N/A | | | `domain` | *Optional* | :heavy_minus_sign: | The Okta domain. See the docs for instructions on how to find it. | | | `sourceType` | [com.airbyte.api.models.shared.Okta](../../models/shared/Okta.md) | :heavy_check_mark: | N/A | | -| `startDate` | *Optional* | :heavy_minus_sign: | UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. | 2022-07-22T00:00:00Z | \ No newline at end of file +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. | 2022-07-22T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceOrb.md b/docs/models/shared/SourceOrb.md index 3147724b2..b67d921b2 100644 --- a/docs/models/shared/SourceOrb.md +++ b/docs/models/shared/SourceOrb.md @@ -11,6 +11,6 @@ | `numericEventPropertiesKeys` | List<*String*> | :heavy_minus_sign: | Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. | | | `planId` | *Optional* | :heavy_minus_sign: | Orb Plan ID to filter subscriptions that should have usage fetched. | | | `sourceType` | [com.airbyte.api.models.shared.Orb](../../models/shared/Orb.md) | :heavy_check_mark: | N/A | | -| `startDate` | *String* | :heavy_check_mark: | UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. | 2022-03-01T00:00:00Z | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. | 2022-03-01T00:00:00Z | | `stringEventPropertiesKeys` | List<*String*> | :heavy_minus_sign: | Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. | | | `subscriptionUsageGroupingKey` | *Optional* | :heavy_minus_sign: | Property key name to group subscription usage by. | | \ No newline at end of file diff --git a/docs/models/shared/SourcePunkApi.md b/docs/models/shared/SourcePunkApi.md deleted file mode 100644 index 429374bd6..000000000 --- a/docs/models/shared/SourcePunkApi.md +++ /dev/null @@ -1,11 +0,0 @@ -# SourcePunkApi - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `brewedAfter` | *String* | :heavy_check_mark: | To extract specific data with Unique ID | MM-YYYY | -| `brewedBefore` | *String* | :heavy_check_mark: | To extract specific data with Unique ID | MM-YYYY | -| `id` | *Optional* | :heavy_minus_sign: | To extract specific data with Unique ID | 1 | -| `sourceType` | [com.airbyte.api.models.shared.PunkApi](../../models/shared/PunkApi.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceS3DocumentFileTypeFormatExperimental.md b/docs/models/shared/SourceS3UnstructuredDocumentFormat.md similarity index 99% rename from docs/models/shared/SourceS3DocumentFileTypeFormatExperimental.md rename to docs/models/shared/SourceS3UnstructuredDocumentFormat.md index 35d3146a7..bb6f9c74f 100644 --- a/docs/models/shared/SourceS3DocumentFileTypeFormatExperimental.md +++ b/docs/models/shared/SourceS3UnstructuredDocumentFormat.md @@ -1,4 +1,4 @@ -# SourceS3DocumentFileTypeFormatExperimental +# SourceS3UnstructuredDocumentFormat Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. diff --git a/docs/models/shared/SourceShopify.md b/docs/models/shared/SourceShopify.md index df4cafb56..3450e7169 100644 --- a/docs/models/shared/SourceShopify.md +++ b/docs/models/shared/SourceShopify.md @@ -8,6 +8,7 @@ | `bulkWindowInDays` | *Optional* | :heavy_minus_sign: | Defines what would be a date range per single BULK Job | | | `credentials` | [Optional](../../models/shared/ShopifyAuthorizationMethod.md) | :heavy_minus_sign: | The authorization method to use to retrieve data from Shopify | | | `fetchTransactionsUserId` | *Optional* | :heavy_minus_sign: | Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` user, leave the default value to speed up the fetch. | | +| `jobTerminationThreshold` | *Optional* | :heavy_minus_sign: | The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. | | | `shop` | *String* | :heavy_check_mark: | The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. | my-store | | `sourceType` | [com.airbyte.api.models.shared.SourceShopifyShopify](../../models/shared/SourceShopifyShopify.md) | :heavy_check_mark: | N/A | | | `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated. | | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeKeyPairAuthentication.md b/docs/models/shared/SourceSnowflakeKeyPairAuthentication.md new file mode 100644 index 000000000..48910780a --- /dev/null +++ b/docs/models/shared/SourceSnowflakeKeyPairAuthentication.md @@ -0,0 +1,11 @@ +# SourceSnowflakeKeyPairAuthentication + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `authType` | [Optional](../../models/shared/SourceSnowflakeSchemasAuthType.md) | :heavy_minus_sign: | N/A | | +| `privateKey` | *String* | :heavy_check_mark: | RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key. | | +| `privateKeyPassword` | *Optional* | :heavy_minus_sign: | Passphrase for private key | | +| `username` | *String* | :heavy_check_mark: | The username you created to allow Airbyte to access the database. | AIRBYTE_USER | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeSchemasAuthType.md b/docs/models/shared/SourceSnowflakeSchemasAuthType.md index 518e93bd3..65f28e756 100644 --- a/docs/models/shared/SourceSnowflakeSchemasAuthType.md +++ b/docs/models/shared/SourceSnowflakeSchemasAuthType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------- | ------------------- | -| `USERNAME_PASSWORD` | username/password | \ No newline at end of file +| Name | Value | +| ------------------------- | ------------------------- | +| `KEY_PAIR_AUTHENTICATION` | Key Pair Authentication | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeSchemasCredentialsAuthType.md b/docs/models/shared/SourceSnowflakeSchemasCredentialsAuthType.md new file mode 100644 index 000000000..466bf25b9 --- /dev/null +++ b/docs/models/shared/SourceSnowflakeSchemasCredentialsAuthType.md @@ -0,0 +1,8 @@ +# SourceSnowflakeSchemasCredentialsAuthType + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `USERNAME_PASSWORD` | username/password | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeUsernameAndPassword.md b/docs/models/shared/SourceSnowflakeUsernameAndPassword.md index e5a2da7bd..2520c5d11 100644 --- a/docs/models/shared/SourceSnowflakeUsernameAndPassword.md +++ b/docs/models/shared/SourceSnowflakeUsernameAndPassword.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `authType` | [com.airbyte.api.models.shared.SourceSnowflakeSchemasAuthType](../../models/shared/SourceSnowflakeSchemasAuthType.md) | :heavy_check_mark: | N/A | | -| `password` | *String* | :heavy_check_mark: | The password associated with the username. | | -| `username` | *String* | :heavy_check_mark: | The username you created to allow Airbyte to access the database. | AIRBYTE_USER | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `authType` | [com.airbyte.api.models.shared.SourceSnowflakeSchemasCredentialsAuthType](../../models/shared/SourceSnowflakeSchemasCredentialsAuthType.md) | :heavy_check_mark: | N/A | | +| `password` | *String* | :heavy_check_mark: | The password associated with the username. | | +| `username` | *String* | :heavy_check_mark: | The username you created to allow Airbyte to access the database. | AIRBYTE_USER | \ No newline at end of file diff --git a/docs/models/shared/SourceTiktokMarketing.md b/docs/models/shared/SourceTiktokMarketing.md index 36c62114d..93883f6a6 100644 --- a/docs/models/shared/SourceTiktokMarketing.md +++ b/docs/models/shared/SourceTiktokMarketing.md @@ -8,6 +8,6 @@ | `attributionWindow` | *Optional* | :heavy_minus_sign: | The attribution window in days. | | `credentials` | [Optional](../../models/shared/SourceTiktokMarketingAuthenticationMethod.md) | :heavy_minus_sign: | Authentication method | | `endDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date. | -| `includeDeleted` | *Optional* | :heavy_minus_sign: | Set to active if you want to include deleted data in reports. | +| `includeDeleted` | *Optional* | :heavy_minus_sign: | Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. | | `sourceType` | [Optional](../../models/shared/SourceTiktokMarketingTiktokMarketing.md) | :heavy_minus_sign: | N/A | | `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. | \ No newline at end of file diff --git a/docs/models/shared/SourceWhiskyHunter.md b/docs/models/shared/SourceWhiskyHunter.md index a69e3e351..8636843a8 100644 --- a/docs/models/shared/SourceWhiskyHunter.md +++ b/docs/models/shared/SourceWhiskyHunter.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `sourceType` | [Optional](../../models/shared/WhiskyHunter.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `sourceType` | [com.airbyte.api.models.shared.WhiskyHunter](../../models/shared/WhiskyHunter.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceWikipediaPageviews.md b/docs/models/shared/SourceWikipediaPageviews.md index 2bcb340a2..417be89bf 100644 --- a/docs/models/shared/SourceWikipediaPageviews.md +++ b/docs/models/shared/SourceWikipediaPageviews.md @@ -12,4 +12,4 @@ | `end` | *String* | :heavy_check_mark: | The date of the last day to include, in YYYYMMDD or YYYYMMDDHH format. | | | `project` | *String* | :heavy_check_mark: | If you want to filter by project, use the domain of any Wikimedia project. | en.wikipedia.org | | `sourceType` | [com.airbyte.api.models.shared.WikipediaPageviews](../../models/shared/WikipediaPageviews.md) | :heavy_check_mark: | N/A | | -| `start` | *String* | :heavy_check_mark: | The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. | | \ No newline at end of file +| `start` | *String* | :heavy_check_mark: | The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. | | \ No newline at end of file diff --git a/docs/models/shared/Standard.md b/docs/models/shared/Standard.md deleted file mode 100644 index 49026ec56..000000000 --- a/docs/models/shared/Standard.md +++ /dev/null @@ -1,10 +0,0 @@ -# Standard - -(not recommended) Direct loading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In all other cases, you should use S3 uploading. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `method` | [com.airbyte.api.models.shared.DestinationRedshiftSchemasMethod](../../models/shared/DestinationRedshiftSchemasMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StreamConfiguration.md b/docs/models/shared/StreamConfiguration.md index cfadaf9cd..7ff242068 100644 --- a/docs/models/shared/StreamConfiguration.md +++ b/docs/models/shared/StreamConfiguration.md @@ -10,4 +10,5 @@ Configurations for a single stream. | `cursorField` | List<*String*> | :heavy_minus_sign: | Path to the field that will be used to determine if a record is new or modified since the last sync. This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. | | `name` | *String* | :heavy_check_mark: | N/A | | `primaryKey` | List> | :heavy_minus_sign: | Paths to the fields that will be used as primary key. This field is REQUIRED if `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. | +| `selectedFields` | List<[com.airbyte.api.models.shared.SelectedFieldInfo](../../models/shared/SelectedFieldInfo.md)> | :heavy_minus_sign: | Paths to the fields that will be included in the configured catalog. | | `syncMode` | [Optional](../../models/shared/ConnectionSyncModeEnum.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TimeGranularityType.md b/docs/models/shared/TimeGranularityType.md new file mode 100644 index 000000000..3e0038e41 --- /dev/null +++ b/docs/models/shared/TimeGranularityType.md @@ -0,0 +1,11 @@ +# TimeGranularityType + +Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" + + +## Values + +| Name | Value | +| ------- | ------- | +| `DAY` | DAY | +| `MONTH` | MONTH | \ No newline at end of file diff --git a/docs/models/shared/SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental.md b/docs/models/shared/UnstructuredDocumentFormat.md similarity index 99% rename from docs/models/shared/SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental.md rename to docs/models/shared/UnstructuredDocumentFormat.md index 33c37db5a..18d262b4e 100644 --- a/docs/models/shared/SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental.md +++ b/docs/models/shared/UnstructuredDocumentFormat.md @@ -1,4 +1,4 @@ -# SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental +# UnstructuredDocumentFormat Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. diff --git a/docs/models/shared/UserResponse.md b/docs/models/shared/UserResponse.md new file mode 100644 index 000000000..b7a557171 --- /dev/null +++ b/docs/models/shared/UserResponse.md @@ -0,0 +1,12 @@ +# UserResponse + +Provides details of a single user in an organization. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `email` | *String* | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | Internal Airbyte user ID | +| `name` | *String* | :heavy_check_mark: | Name of the user | \ No newline at end of file diff --git a/docs/models/shared/UsersResponse.md b/docs/models/shared/UsersResponse.md new file mode 100644 index 000000000..26ea5b82e --- /dev/null +++ b/docs/models/shared/UsersResponse.md @@ -0,0 +1,10 @@ +# UsersResponse + +List/Array of multiple users in an organization + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `data` | List<[com.airbyte.api.models.shared.UserResponse](../../models/shared/UserResponse.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index c911414a6..434c95840 100644 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -65,6 +65,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -78,12 +79,12 @@ public class Application { ### Response -**[Optional](../../models/operations/CreateConnectionResponse.md)** +**[com.airbyte.api.models.operations.CreateConnectionResponse](../../models/operations/CreateConnectionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## deleteConnection @@ -137,6 +138,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -150,12 +152,12 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteConnectionResponse.md)** +**[com.airbyte.api.models.operations.DeleteConnectionResponse](../../models/operations/DeleteConnectionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getConnection @@ -211,6 +213,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -224,12 +227,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetConnectionResponse.md)** +**[com.airbyte.api.models.operations.GetConnectionResponse](../../models/operations/GetConnectionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## listConnections @@ -284,6 +287,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -297,12 +301,12 @@ public class Application { ### Response -**[Optional](../../models/operations/ListConnectionsResponse.md)** +**[com.airbyte.api.models.operations.ListConnectionsResponse](../../models/operations/ListConnectionsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## patchConnection @@ -361,6 +365,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -374,9 +379,9 @@ public class Application { ### Response -**[Optional](../../models/operations/PatchConnectionResponse.md)** +**[com.airbyte.api.models.operations.PatchConnectionResponse](../../models/operations/PatchConnectionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index d252bb321..a8d70662f 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -73,6 +73,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -86,12 +87,12 @@ public class Application { ### Response -**[Optional](../../models/operations/CreateDestinationResponse.md)** +**[com.airbyte.api.models.operations.CreateDestinationResponse](../../models/operations/CreateDestinationResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## deleteDestination @@ -145,6 +146,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -158,12 +160,12 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteDestinationResponse.md)** +**[com.airbyte.api.models.operations.DeleteDestinationResponse](../../models/operations/DeleteDestinationResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getDestination @@ -219,6 +221,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -232,12 +235,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetDestinationResponse.md)** +**[com.airbyte.api.models.operations.GetDestinationResponse](../../models/operations/GetDestinationResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## listDestinations @@ -292,6 +295,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -305,12 +309,12 @@ public class Application { ### Response -**[Optional](../../models/operations/ListDestinationsResponse.md)** +**[com.airbyte.api.models.operations.ListDestinationsResponse](../../models/operations/ListDestinationsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## patchDestination @@ -376,6 +380,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -389,12 +394,12 @@ public class Application { ### Response -**[Optional](../../models/operations/PatchDestinationResponse.md)** +**[com.airbyte.api.models.operations.PatchDestinationResponse](../../models/operations/PatchDestinationResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## putDestination @@ -461,6 +466,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -474,9 +480,9 @@ public class Application { ### Response -**[Optional](../../models/operations/PutDestinationResponse.md)** +**[com.airbyte.api.models.operations.PutDestinationResponse](../../models/operations/PutDestinationResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/health/README.md b/docs/sdks/health/README.md index a7df11e57..38ed93e34 100644 --- a/docs/sdks/health/README.md +++ b/docs/sdks/health/README.md @@ -45,6 +45,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -52,9 +53,9 @@ public class Application { ### Response -**[Optional](../../models/operations/GetHealthCheckResponse.md)** +**[com.airbyte.api.models.operations.GetHealthCheckResponse](../../models/operations/GetHealthCheckResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index 6db6b48cd..735c1577a 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -62,6 +62,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -75,12 +76,12 @@ public class Application { ### Response -**[Optional](../../models/operations/CancelJobResponse.md)** +**[com.airbyte.api.models.operations.CancelJobResponse](../../models/operations/CancelJobResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## createJob @@ -120,7 +121,7 @@ public class Application { JobCreateRequest req = JobCreateRequest.builder() .connectionId("") - .jobType(JobTypeEnum.SYNC) + .jobType(JobTypeEnum.RESET) .build(); CreateJobResponse res = sdk.jobs().createJob() @@ -137,6 +138,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -150,12 +152,12 @@ public class Application { ### Response -**[Optional](../../models/operations/CreateJobResponse.md)** +**[com.airbyte.api.models.operations.CreateJobResponse](../../models/operations/CreateJobResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getJob @@ -211,6 +213,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -224,12 +227,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetJobResponse.md)** +**[com.airbyte.api.models.operations.GetJobResponse](../../models/operations/GetJobResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## listJobs @@ -289,6 +292,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -302,9 +306,9 @@ public class Application { ### Response -**[Optional](../../models/operations/ListJobsResponse.md)** +**[com.airbyte.api.models.operations.ListJobsResponse](../../models/operations/ListJobsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md new file mode 100644 index 000000000..9bf132b13 --- /dev/null +++ b/docs/sdks/organizations/README.md @@ -0,0 +1,70 @@ +# Organizations +(*organizations()*) + +### Available Operations + +* [listOrganizationsForUser](#listorganizationsforuser) - List all organizations for a user + +## listOrganizationsForUser + +Lists users organizations. + +### Example Usage + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.*; +import com.airbyte.api.models.shared.*; +import com.airbyte.api.models.shared.Security; +import com.airbyte.api.utils.EventStream; +import java.math.BigDecimal; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; +import static java.util.Map.entry; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + ListOrganizationsForUserResponse res = sdk.organizations().listOrganizationsForUser() + .call(); + + if (res.organizationsResponse().isPresent()) { + // handle response + } + } catch (com.airbyte.api.models.errors.SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + + +### Response + +**[com.airbyte.api.models.operations.ListOrganizationsForUserResponse](../../models/operations/ListOrganizationsForUserResponse.md)** +### Errors + +| Error Object | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/permissions/README.md b/docs/sdks/permissions/README.md index 79e98a8a4..2e0266709 100644 --- a/docs/sdks/permissions/README.md +++ b/docs/sdks/permissions/README.md @@ -46,7 +46,7 @@ public class Application { .build(); PermissionCreateRequest req = PermissionCreateRequest.builder() - .permissionType(PermissionType.ORGANIZATION_ADMIN) + .permissionType(PublicPermissionType.ORGANIZATION_EDITOR) .userId("297cb6ba-4669-43f1-b750-c800e1a1986b") .build(); @@ -64,6 +64,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -77,12 +78,12 @@ public class Application { ### Response -**[Optional](../../models/operations/CreatePermissionResponse.md)** +**[com.airbyte.api.models.operations.CreatePermissionResponse](../../models/operations/CreatePermissionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## deletePermission @@ -136,6 +137,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -149,12 +151,12 @@ public class Application { ### Response -**[Optional](../../models/operations/DeletePermissionResponse.md)** +**[com.airbyte.api.models.operations.DeletePermissionResponse](../../models/operations/DeletePermissionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getPermission @@ -210,6 +212,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -223,12 +226,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetPermissionResponse.md)** +**[com.airbyte.api.models.operations.GetPermissionResponse](../../models/operations/GetPermissionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## listPermissions @@ -283,6 +286,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -296,12 +300,12 @@ public class Application { ### Response -**[Optional](../../models/operations/ListPermissionsResponse.md)** +**[com.airbyte.api.models.operations.ListPermissionsResponse](../../models/operations/ListPermissionsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## updatePermission @@ -360,6 +364,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -373,9 +378,9 @@ public class Application { ### Response -**[Optional](../../models/operations/UpdatePermissionResponse.md)** +**[com.airbyte.api.models.operations.UpdatePermissionResponse](../../models/operations/UpdatePermissionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index 7c5d596e5..6413ca474 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -71,6 +71,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -84,12 +85,12 @@ public class Application { ### Response -**[Optional](../../models/operations/CreateSourceResponse.md)** +**[com.airbyte.api.models.operations.CreateSourceResponse](../../models/operations/CreateSourceResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## deleteSource @@ -143,6 +144,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -156,12 +158,12 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteSourceResponse.md)** +**[com.airbyte.api.models.operations.DeleteSourceResponse](../../models/operations/DeleteSourceResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getSource @@ -217,6 +219,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -230,12 +233,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetSourceResponse.md)** +**[com.airbyte.api.models.operations.GetSourceResponse](../../models/operations/GetSourceResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## initiateOAuth @@ -295,6 +298,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -308,12 +312,12 @@ public class Application { ### Response -**[Optional](../../models/operations/InitiateOAuthResponse.md)** +**[com.airbyte.api.models.operations.InitiateOAuthResponse](../../models/operations/InitiateOAuthResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## listSources @@ -442,6 +446,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -455,12 +460,12 @@ public class Application { ### Response -**[Optional](../../models/operations/ListSourcesResponse.md)** +**[com.airbyte.api.models.operations.ListSourcesResponse](../../models/operations/ListSourcesResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## patchSource @@ -524,6 +529,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -537,12 +543,12 @@ public class Application { ### Response -**[Optional](../../models/operations/PatchSourceResponse.md)** +**[com.airbyte.api.models.operations.PatchSourceResponse](../../models/operations/PatchSourceResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## putSource @@ -606,6 +612,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -619,9 +626,9 @@ public class Application { ### Response -**[Optional](../../models/operations/PutSourceResponse.md)** +**[com.airbyte.api.models.operations.PutSourceResponse](../../models/operations/PutSourceResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/streams/README.md b/docs/sdks/streams/README.md index dd1feb2a4..fee7c9af8 100644 --- a/docs/sdks/streams/README.md +++ b/docs/sdks/streams/README.md @@ -59,6 +59,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -72,9 +73,9 @@ public class Application { ### Response -**[Optional](../../models/operations/GetStreamPropertiesResponse.md)** +**[com.airbyte.api.models.operations.GetStreamPropertiesResponse](../../models/operations/GetStreamPropertiesResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md new file mode 100644 index 000000000..49bc6e0e1 --- /dev/null +++ b/docs/sdks/users/README.md @@ -0,0 +1,81 @@ +# Users +(*users()*) + +### Available Operations + +* [listUsersWithinAnOrganization](#listuserswithinanorganization) - List all users within an organization + +## listUsersWithinAnOrganization + +Organization Admin user can list all users within the same organization. Also provide filtering on a list of user IDs or/and a list of user emails. + +### Example Usage + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.*; +import com.airbyte.api.models.shared.*; +import com.airbyte.api.models.shared.Security; +import com.airbyte.api.utils.EventStream; +import java.math.BigDecimal; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; +import static java.util.Map.entry; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + ListUsersWithinAnOrganizationRequest req = ListUsersWithinAnOrganizationRequest.builder() + .organizationId("") + .build(); + + ListUsersWithinAnOrganizationResponse res = sdk.users().listUsersWithinAnOrganization() + .request(req) + .call(); + + if (res.usersResponse().isPresent()) { + // handle response + } + } catch (com.airbyte.api.models.errors.SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequest](../../models/operations/ListUsersWithinAnOrganizationRequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[com.airbyte.api.models.operations.ListUsersWithinAnOrganizationResponse](../../models/operations/ListUsersWithinAnOrganizationResponse.md)** +### Errors + +| Error Object | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index a5790796a..92763c126 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -13,7 +13,7 @@ ## createOrUpdateWorkspaceOAuthCredentials Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for source/destination OAuth. -In order to determine what the credential configuration needs to be, please see the connector specification of the relevant source/destination. +In order to determine what the credential configuration needs to be, please see the connector specification of the relevant source/destination. ### Example Usage @@ -69,6 +69,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -82,12 +83,12 @@ public class Application { ### Response -**[Optional](../../models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.md)** +**[com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsResponse](../../models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## createWorkspace @@ -143,6 +144,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -156,12 +158,12 @@ public class Application { ### Response -**[Optional](../../models/operations/CreateWorkspaceResponse.md)** +**[com.airbyte.api.models.operations.CreateWorkspaceResponse](../../models/operations/CreateWorkspaceResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## deleteWorkspace @@ -215,6 +217,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -228,12 +231,12 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteWorkspaceResponse.md)** +**[com.airbyte.api.models.operations.DeleteWorkspaceResponse](../../models/operations/DeleteWorkspaceResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getWorkspace @@ -289,6 +292,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -302,12 +306,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetWorkspaceResponse.md)** +**[com.airbyte.api.models.operations.GetWorkspaceResponse](../../models/operations/GetWorkspaceResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## listWorkspaces @@ -362,6 +366,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -375,12 +380,12 @@ public class Application { ### Response -**[Optional](../../models/operations/ListWorkspacesResponse.md)** +**[com.airbyte.api.models.operations.ListWorkspacesResponse](../../models/operations/ListWorkspacesResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## updateWorkspace @@ -439,6 +444,7 @@ public class Application { // handle exception throw e; } + } } ``` @@ -452,9 +458,9 @@ public class Application { ### Response -**[Optional](../../models/operations/UpdateWorkspaceResponse.md)** +**[com.airbyte.api.models.operations.UpdateWorkspaceResponse](../../models/operations/UpdateWorkspaceResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/gen.yaml b/gen.yaml index 0c3886eef..244608827 100644 --- a/gen.yaml +++ b/gen.yaml @@ -11,8 +11,9 @@ generation: auth: oAuth2ClientCredentialsEnabled: true java: - version: 1.4.1 + version: 1.5.0 additionalDependencies: [] + additionalPlugins: [] artifactID: api clientServerStatusCodesAsErrors: true companyEmail: info@airbyte.com @@ -30,6 +31,10 @@ java: shared: models/shared webhooks: models/webhooks inputModelSuffix: input + license: + name: The MIT License (MIT) + shortName: MIT + url: https://mit-license.org/ maxMethodParams: 0 ossrhURL: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ outputModelSuffix: output diff --git a/src/main/java/com/airbyte/api/Airbyte.java b/src/main/java/com/airbyte/api/Airbyte.java index 31f83bdb1..e071658d6 100644 --- a/src/main/java/com/airbyte/api/Airbyte.java +++ b/src/main/java/com/airbyte/api/Airbyte.java @@ -47,12 +47,16 @@ public class Airbyte { private final Jobs jobs; + private final Organizations organizations; + private final Permissions permissions; private final Sources sources; private final Streams streams; + private final Users users; + private final Workspaces workspaces; public Connections connections() { @@ -71,6 +75,10 @@ public Jobs jobs() { return jobs; } + public Organizations organizations() { + return organizations; + } + public Permissions permissions() { return permissions; } @@ -83,6 +91,10 @@ public Streams streams() { return streams; } + public Users users() { + return users; + } + public Workspaces workspaces() { return workspaces; } @@ -217,9 +229,11 @@ private Airbyte(SDKConfiguration sdkConfiguration) { this.destinations = new Destinations(sdkConfiguration); this.health = new Health(sdkConfiguration); this.jobs = new Jobs(sdkConfiguration); + this.organizations = new Organizations(sdkConfiguration); this.permissions = new Permissions(sdkConfiguration); this.sources = new Sources(sdkConfiguration); this.streams = new Streams(sdkConfiguration); + this.users = new Users(sdkConfiguration); this.workspaces = new Workspaces(sdkConfiguration); this.sdkConfiguration.initialize(); }} diff --git a/src/main/java/com/airbyte/api/Connections.java b/src/main/java/com/airbyte/api/Connections.java index 2851ad110..d42b97f88 100644 --- a/src/main/java/com/airbyte/api/Connections.java +++ b/src/main/java/com/airbyte/api/Connections.java @@ -40,6 +40,7 @@ public class Connections implements this.sdkConfiguration = sdkConfiguration; } + /** * Create a connection * @return The call builder @@ -81,7 +82,7 @@ public com.airbyte.api.models.operations.CreateConnectionResponse createConnecti HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createConnection", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("createConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -89,18 +90,18 @@ public com.airbyte.api.models.operations.CreateConnectionResponse createConnecti if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createConnection", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("createConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createConnection", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("createConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createConnection", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("createConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -148,6 +149,7 @@ public com.airbyte.api.models.operations.CreateConnectionResponse createConnecti } + /** * Delete a Connection * @return The call builder @@ -183,7 +185,7 @@ public com.airbyte.api.models.operations.DeleteConnectionResponse deleteConnecti HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteConnection", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("deleteConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -191,18 +193,18 @@ public com.airbyte.api.models.operations.DeleteConnectionResponse deleteConnecti if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteConnection", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("deleteConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteConnection", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("deleteConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteConnection", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("deleteConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -239,6 +241,7 @@ public com.airbyte.api.models.operations.DeleteConnectionResponse deleteConnecti } + /** * Get Connection details * @return The call builder @@ -274,7 +277,7 @@ public com.airbyte.api.models.operations.GetConnectionResponse getConnection( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getConnection", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("getConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -282,18 +285,18 @@ public com.airbyte.api.models.operations.GetConnectionResponse getConnection( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getConnection", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("getConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getConnection", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("getConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getConnection", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("getConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -341,6 +344,7 @@ public com.airbyte.api.models.operations.GetConnectionResponse getConnection( } + /** * List connections * @return The call builder @@ -379,7 +383,7 @@ public com.airbyte.api.models.operations.ListConnectionsResponse listConnections HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("listConnections", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("listConnections", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -387,18 +391,18 @@ public com.airbyte.api.models.operations.ListConnectionsResponse listConnections if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("listConnections", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("listConnections", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("listConnections", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("listConnections", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("listConnections", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("listConnections", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -446,6 +450,7 @@ public com.airbyte.api.models.operations.ListConnectionsResponse listConnections } + /** * Update Connection details * @return The call builder @@ -489,7 +494,7 @@ public com.airbyte.api.models.operations.PatchConnectionResponse patchConnection HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("patchConnection", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("patchConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -497,18 +502,18 @@ public com.airbyte.api.models.operations.PatchConnectionResponse patchConnection if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("patchConnection", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("patchConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("patchConnection", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("patchConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("patchConnection", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("patchConnection", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } diff --git a/src/main/java/com/airbyte/api/Destinations.java b/src/main/java/com/airbyte/api/Destinations.java index 6f4957642..8e6c79bcf 100644 --- a/src/main/java/com/airbyte/api/Destinations.java +++ b/src/main/java/com/airbyte/api/Destinations.java @@ -41,6 +41,7 @@ public class Destinations implements this.sdkConfiguration = sdkConfiguration; } + /** * Create a destination * Creates a destination given a name, workspace id, and a json blob containing the configuration for the source. @@ -90,7 +91,7 @@ public com.airbyte.api.models.operations.CreateDestinationResponse createDestina HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createDestination", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("createDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -98,18 +99,18 @@ public com.airbyte.api.models.operations.CreateDestinationResponse createDestina if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createDestination", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("createDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createDestination", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("createDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createDestination", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("createDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -157,6 +158,7 @@ public com.airbyte.api.models.operations.CreateDestinationResponse createDestina } + /** * Delete a Destination * @return The call builder @@ -192,7 +194,7 @@ public com.airbyte.api.models.operations.DeleteDestinationResponse deleteDestina HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteDestination", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("deleteDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -200,18 +202,18 @@ public com.airbyte.api.models.operations.DeleteDestinationResponse deleteDestina if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteDestination", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("deleteDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteDestination", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("deleteDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteDestination", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("deleteDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -248,6 +250,7 @@ public com.airbyte.api.models.operations.DeleteDestinationResponse deleteDestina } + /** * Get Destination details * @return The call builder @@ -283,7 +286,7 @@ public com.airbyte.api.models.operations.GetDestinationResponse getDestination( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getDestination", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("getDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -291,18 +294,18 @@ public com.airbyte.api.models.operations.GetDestinationResponse getDestination( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getDestination", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("getDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getDestination", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("getDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getDestination", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("getDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -350,6 +353,7 @@ public com.airbyte.api.models.operations.GetDestinationResponse getDestination( } + /** * List destinations * @return The call builder @@ -388,7 +392,7 @@ public com.airbyte.api.models.operations.ListDestinationsResponse listDestinatio HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("listDestinations", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("listDestinations", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -396,18 +400,18 @@ public com.airbyte.api.models.operations.ListDestinationsResponse listDestinatio if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("listDestinations", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("listDestinations", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("listDestinations", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("listDestinations", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("listDestinations", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("listDestinations", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -455,6 +459,7 @@ public com.airbyte.api.models.operations.ListDestinationsResponse listDestinatio } + /** * Update a Destination * @return The call builder @@ -495,7 +500,7 @@ public com.airbyte.api.models.operations.PatchDestinationResponse patchDestinati HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("patchDestination", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("patchDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -503,18 +508,18 @@ public com.airbyte.api.models.operations.PatchDestinationResponse patchDestinati if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("patchDestination", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("patchDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("patchDestination", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("patchDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("patchDestination", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("patchDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -562,6 +567,7 @@ public com.airbyte.api.models.operations.PatchDestinationResponse patchDestinati } + /** * Update a Destination and fully overwrite it * @return The call builder @@ -602,7 +608,7 @@ public com.airbyte.api.models.operations.PutDestinationResponse putDestination( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("putDestination", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("putDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -610,18 +616,18 @@ public com.airbyte.api.models.operations.PutDestinationResponse putDestination( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("putDestination", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("putDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("putDestination", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("putDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("putDestination", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("putDestination", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } diff --git a/src/main/java/com/airbyte/api/Health.java b/src/main/java/com/airbyte/api/Health.java index 01d2fa9cd..924caa134 100644 --- a/src/main/java/com/airbyte/api/Health.java +++ b/src/main/java/com/airbyte/api/Health.java @@ -31,6 +31,7 @@ public class Health implements this.sdkConfiguration = sdkConfiguration; } + /** * Health Check * @return The call builder @@ -59,7 +60,7 @@ public com.airbyte.api.models.operations.GetHealthCheckResponse getHealthCheckDi HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getHealthCheck", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("getHealthCheck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -67,18 +68,18 @@ public com.airbyte.api.models.operations.GetHealthCheckResponse getHealthCheckDi if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getHealthCheck", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("getHealthCheck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getHealthCheck", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("getHealthCheck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getHealthCheck", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("getHealthCheck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } diff --git a/src/main/java/com/airbyte/api/Jobs.java b/src/main/java/com/airbyte/api/Jobs.java index 77701994b..fe14a5e8f 100644 --- a/src/main/java/com/airbyte/api/Jobs.java +++ b/src/main/java/com/airbyte/api/Jobs.java @@ -39,6 +39,7 @@ public class Jobs implements this.sdkConfiguration = sdkConfiguration; } + /** * Cancel a running Job * @return The call builder @@ -74,7 +75,7 @@ public com.airbyte.api.models.operations.CancelJobResponse cancelJob( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("cancelJob", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("cancelJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -82,18 +83,18 @@ public com.airbyte.api.models.operations.CancelJobResponse cancelJob( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("cancelJob", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("cancelJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("cancelJob", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("cancelJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("cancelJob", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("cancelJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -141,6 +142,7 @@ public com.airbyte.api.models.operations.CancelJobResponse cancelJob( } + /** * Trigger a sync or reset job of a connection * @return The call builder @@ -182,7 +184,7 @@ public com.airbyte.api.models.operations.CreateJobResponse createJob( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createJob", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("createJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -190,18 +192,18 @@ public com.airbyte.api.models.operations.CreateJobResponse createJob( if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createJob", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("createJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createJob", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("createJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createJob", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("createJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -249,6 +251,7 @@ public com.airbyte.api.models.operations.CreateJobResponse createJob( } + /** * Get Job status and details * @return The call builder @@ -284,7 +287,7 @@ public com.airbyte.api.models.operations.GetJobResponse getJob( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getJob", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("getJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -292,18 +295,18 @@ public com.airbyte.api.models.operations.GetJobResponse getJob( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getJob", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("getJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getJob", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("getJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getJob", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("getJob", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -351,6 +354,7 @@ public com.airbyte.api.models.operations.GetJobResponse getJob( } + /** * List Jobs by sync type * @return The call builder @@ -389,7 +393,7 @@ public com.airbyte.api.models.operations.ListJobsResponse listJobs( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("listJobs", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("listJobs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -397,18 +401,18 @@ public com.airbyte.api.models.operations.ListJobsResponse listJobs( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("listJobs", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("listJobs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("listJobs", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("listJobs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("listJobs", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("listJobs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } diff --git a/src/main/java/com/airbyte/api/Organizations.java b/src/main/java/com/airbyte/api/Organizations.java new file mode 100644 index 000000000..dfa4b11b7 --- /dev/null +++ b/src/main/java/com/airbyte/api/Organizations.java @@ -0,0 +1,137 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api; + +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.SDKMethodInterfaces.*; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.JSON; +import com.airbyte.api.utils.Retries.NonRetryableException; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.InputStream; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + +public class Organizations implements + MethodCallListOrganizationsForUser { + + private final SDKConfiguration sdkConfiguration; + + Organizations(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + + /** + * List all organizations for a user + * Lists users organizations. + * @return The call builder + */ + public com.airbyte.api.models.operations.ListOrganizationsForUserRequestBuilder listOrganizationsForUser() { + return new com.airbyte.api.models.operations.ListOrganizationsForUserRequestBuilder(this); + } + + /** + * List all organizations for a user + * Lists users organizations. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public com.airbyte.api.models.operations.ListOrganizationsForUserResponse listOrganizationsForUserDirect() throws Exception { + String _baseUrl = this.sdkConfiguration.serverUrl; + String _url = Utils.generateURL( + _baseUrl, + "/organizations"); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl("listOrganizationsForUser", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + _req.build()); + HttpResponse _httpRes; + try { + _httpRes = _client.send(_r); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl("listOrganizationsForUser", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl("listOrganizationsForUser", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError(new AfterErrorContextImpl("listOrganizationsForUser", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.ListOrganizationsForUserResponse.Builder _resBuilder = + com.airbyte.api.models.operations.ListOrganizationsForUserResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + com.airbyte.api.models.operations.ListOrganizationsForUserResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + com.airbyte.api.models.shared.OrganizationsResponse _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withOrganizationsResponse(java.util.Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.toByteArrayAndClose(_httpRes.body())); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.toByteArrayAndClose(_httpRes.body())); + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.toByteArrayAndClose(_httpRes.body())); + } + +} diff --git a/src/main/java/com/airbyte/api/Permissions.java b/src/main/java/com/airbyte/api/Permissions.java index f9e2bc28c..e596d7acc 100644 --- a/src/main/java/com/airbyte/api/Permissions.java +++ b/src/main/java/com/airbyte/api/Permissions.java @@ -40,6 +40,7 @@ public class Permissions implements this.sdkConfiguration = sdkConfiguration; } + /** * Create a permission * @return The call builder @@ -81,7 +82,7 @@ public com.airbyte.api.models.operations.CreatePermissionResponse createPermissi HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createPermission", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("createPermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -89,18 +90,18 @@ public com.airbyte.api.models.operations.CreatePermissionResponse createPermissi if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createPermission", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("createPermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createPermission", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("createPermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createPermission", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("createPermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -148,6 +149,7 @@ public com.airbyte.api.models.operations.CreatePermissionResponse createPermissi } + /** * Delete a Permission * @return The call builder @@ -183,7 +185,7 @@ public com.airbyte.api.models.operations.DeletePermissionResponse deletePermissi HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deletePermission", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("deletePermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -191,18 +193,18 @@ public com.airbyte.api.models.operations.DeletePermissionResponse deletePermissi if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deletePermission", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("deletePermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deletePermission", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("deletePermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deletePermission", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("deletePermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -239,6 +241,7 @@ public com.airbyte.api.models.operations.DeletePermissionResponse deletePermissi } + /** * Get Permission details * @return The call builder @@ -274,7 +277,7 @@ public com.airbyte.api.models.operations.GetPermissionResponse getPermission( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getPermission", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("getPermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -282,18 +285,18 @@ public com.airbyte.api.models.operations.GetPermissionResponse getPermission( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getPermission", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("getPermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getPermission", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("getPermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPermission", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("getPermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -341,6 +344,7 @@ public com.airbyte.api.models.operations.GetPermissionResponse getPermission( } + /** * List Permissions by user id * @return The call builder @@ -379,7 +383,7 @@ public com.airbyte.api.models.operations.ListPermissionsResponse listPermissions HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("listPermissions", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("listPermissions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -387,18 +391,18 @@ public com.airbyte.api.models.operations.ListPermissionsResponse listPermissions if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("listPermissions", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("listPermissions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("listPermissions", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("listPermissions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("listPermissions", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("listPermissions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -446,6 +450,7 @@ public com.airbyte.api.models.operations.ListPermissionsResponse listPermissions } + /** * Update a permission * @return The call builder @@ -489,7 +494,7 @@ public com.airbyte.api.models.operations.UpdatePermissionResponse updatePermissi HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("updatePermission", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("updatePermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -497,18 +502,18 @@ public com.airbyte.api.models.operations.UpdatePermissionResponse updatePermissi if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "422", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("updatePermission", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("updatePermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("updatePermission", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("updatePermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updatePermission", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("updatePermission", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } diff --git a/src/main/java/com/airbyte/api/SDKConfiguration.java b/src/main/java/com/airbyte/api/SDKConfiguration.java index 7389abd03..3874abd4b 100644 --- a/src/main/java/com/airbyte/api/SDKConfiguration.java +++ b/src/main/java/com/airbyte/api/SDKConfiguration.java @@ -4,6 +4,7 @@ package com.airbyte.api; +import com.airbyte.api.hooks.ClientCredentialsHook; import com.airbyte.api.utils.Hook.SdkInitData; import com.airbyte.api.utils.HTTPClient; import com.airbyte.api.utils.RetryConfig; @@ -21,12 +22,22 @@ public Optional securitySource() { public int serverIdx = 0; public String language = "java"; public String openapiDocVersion = "1.0.0"; - public String sdkVersion = "1.4.1"; - public String genVersion = "2.338.1"; - public String userAgent = "speakeasy-sdk/java 1.4.1 2.338.1 1.0.0 com.airbyte.api"; - - private com.airbyte.api.utils.Hooks _hooks = new com.airbyte.api.utils.Hooks(); - + public String sdkVersion = "1.5.0"; + public String genVersion = "2.372.3"; + public String userAgent = "speakeasy-sdk/java 1.5.0 2.372.3 1.0.0 com.airbyte.api"; + + private com.airbyte.api.utils.Hooks _hooks = createHooks(); + + private static com.airbyte.api.utils.Hooks createHooks() { + com.airbyte.api.utils.Hooks hooks = new com.airbyte.api.utils.Hooks(); + // register client credentials hooks + ClientCredentialsHook h = new ClientCredentialsHook(); + hooks.registerSdkInit(h); + hooks.registerBeforeRequest(h); + hooks.registerAfterError(h); + return hooks; + } + public com.airbyte.api.utils.Hooks hooks() { return _hooks; } diff --git a/src/main/java/com/airbyte/api/Sources.java b/src/main/java/com/airbyte/api/Sources.java index 121db4479..5d87cedf3 100644 --- a/src/main/java/com/airbyte/api/Sources.java +++ b/src/main/java/com/airbyte/api/Sources.java @@ -42,6 +42,7 @@ public class Sources implements this.sdkConfiguration = sdkConfiguration; } + /** * Create a source * Creates a source given a name, workspace id, and a json blob containing the configuration for the source. @@ -91,7 +92,7 @@ public com.airbyte.api.models.operations.CreateSourceResponse createSource( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createSource", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("createSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -99,18 +100,18 @@ public com.airbyte.api.models.operations.CreateSourceResponse createSource( if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createSource", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("createSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createSource", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("createSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createSource", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("createSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -158,6 +159,7 @@ public com.airbyte.api.models.operations.CreateSourceResponse createSource( } + /** * Delete a Source * @return The call builder @@ -193,7 +195,7 @@ public com.airbyte.api.models.operations.DeleteSourceResponse deleteSource( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteSource", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("deleteSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -201,18 +203,18 @@ public com.airbyte.api.models.operations.DeleteSourceResponse deleteSource( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteSource", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("deleteSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteSource", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("deleteSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteSource", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("deleteSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -249,6 +251,7 @@ public com.airbyte.api.models.operations.DeleteSourceResponse deleteSource( } + /** * Get Source details * @return The call builder @@ -284,7 +287,7 @@ public com.airbyte.api.models.operations.GetSourceResponse getSource( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getSource", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("getSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -292,18 +295,18 @@ public com.airbyte.api.models.operations.GetSourceResponse getSource( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getSource", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("getSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getSource", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("getSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSource", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("getSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -351,6 +354,7 @@ public com.airbyte.api.models.operations.GetSourceResponse getSource( } + /** * Initiate OAuth for a source * Given a source ID, workspace ID, and redirect URL, initiates OAuth for the source. @@ -402,7 +406,7 @@ public com.airbyte.api.models.operations.InitiateOAuthResponse initiateOAuth( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("initiateOAuth", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("initiateOAuth", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -410,18 +414,18 @@ public com.airbyte.api.models.operations.InitiateOAuthResponse initiateOAuth( if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("initiateOAuth", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("initiateOAuth", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("initiateOAuth", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("initiateOAuth", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("initiateOAuth", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("initiateOAuth", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -458,6 +462,7 @@ public com.airbyte.api.models.operations.InitiateOAuthResponse initiateOAuth( } + /** * List sources * @return The call builder @@ -496,7 +501,7 @@ public com.airbyte.api.models.operations.ListSourcesResponse listSources( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("listSources", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("listSources", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -504,18 +509,18 @@ public com.airbyte.api.models.operations.ListSourcesResponse listSources( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("listSources", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("listSources", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("listSources", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("listSources", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("listSources", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("listSources", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -563,6 +568,7 @@ public com.airbyte.api.models.operations.ListSourcesResponse listSources( } + /** * Update a Source * @return The call builder @@ -603,7 +609,7 @@ public com.airbyte.api.models.operations.PatchSourceResponse patchSource( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("patchSource", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("patchSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -611,18 +617,18 @@ public com.airbyte.api.models.operations.PatchSourceResponse patchSource( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("patchSource", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("patchSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("patchSource", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("patchSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("patchSource", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("patchSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -670,6 +676,7 @@ public com.airbyte.api.models.operations.PatchSourceResponse patchSource( } + /** * Update a Source and fully overwrite it * @return The call builder @@ -710,7 +717,7 @@ public com.airbyte.api.models.operations.PutSourceResponse putSource( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("putSource", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("putSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -718,18 +725,18 @@ public com.airbyte.api.models.operations.PutSourceResponse putSource( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("putSource", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("putSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("putSource", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("putSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("putSource", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("putSource", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } diff --git a/src/main/java/com/airbyte/api/Streams.java b/src/main/java/com/airbyte/api/Streams.java index 1808d9a7a..7c55c1b2d 100644 --- a/src/main/java/com/airbyte/api/Streams.java +++ b/src/main/java/com/airbyte/api/Streams.java @@ -35,6 +35,7 @@ public class Streams implements this.sdkConfiguration = sdkConfiguration; } + /** * Get stream properties * @return The call builder @@ -73,7 +74,7 @@ public com.airbyte.api.models.operations.GetStreamPropertiesResponse getStreamPr HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getStreamProperties", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("getStreamProperties", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -81,18 +82,18 @@ public com.airbyte.api.models.operations.GetStreamPropertiesResponse getStreamPr if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getStreamProperties", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("getStreamProperties", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getStreamProperties", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("getStreamProperties", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getStreamProperties", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("getStreamProperties", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } diff --git a/src/main/java/com/airbyte/api/Users.java b/src/main/java/com/airbyte/api/Users.java new file mode 100644 index 000000000..e79073b40 --- /dev/null +++ b/src/main/java/com/airbyte/api/Users.java @@ -0,0 +1,145 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api; + +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.SDKMethodInterfaces.*; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.JSON; +import com.airbyte.api.utils.Retries.NonRetryableException; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.InputStream; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.Optional; +import org.apache.http.NameValuePair; +import org.openapitools.jackson.nullable.JsonNullable; + +public class Users implements + MethodCallListUsersWithinAnOrganization { + + private final SDKConfiguration sdkConfiguration; + + Users(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + + /** + * List all users within an organization + * Organization Admin user can list all users within the same organization. Also provide filtering on a list of user IDs or/and a list of user emails. + * @return The call builder + */ + public com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequestBuilder listUsersWithinAnOrganization() { + return new com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequestBuilder(this); + } + + /** + * List all users within an organization + * Organization Admin user can list all users within the same organization. Also provide filtering on a list of user IDs or/and a list of user emails. + * @param request The request object containing all of the parameters for the API call. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public com.airbyte.api.models.operations.ListUsersWithinAnOrganizationResponse listUsersWithinAnOrganization( + com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequest request) throws Exception { + String _baseUrl = this.sdkConfiguration.serverUrl; + String _url = Utils.generateURL( + _baseUrl, + "/users"); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + _req.addQueryParams(Utils.getQueryParams( + com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequest.class, + request, + null)); + + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl("listUsersWithinAnOrganization", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + _req.build()); + HttpResponse _httpRes; + try { + _httpRes = _client.send(_r); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl("listUsersWithinAnOrganization", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl("listUsersWithinAnOrganization", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError(new AfterErrorContextImpl("listUsersWithinAnOrganization", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.ListUsersWithinAnOrganizationResponse.Builder _resBuilder = + com.airbyte.api.models.operations.ListUsersWithinAnOrganizationResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + com.airbyte.api.models.operations.ListUsersWithinAnOrganizationResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + com.airbyte.api.models.shared.UsersResponse _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withUsersResponse(java.util.Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.toByteArrayAndClose(_httpRes.body())); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.toByteArrayAndClose(_httpRes.body())); + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.toByteArrayAndClose(_httpRes.body())); + } + +} diff --git a/src/main/java/com/airbyte/api/Workspaces.java b/src/main/java/com/airbyte/api/Workspaces.java index 0a010b137..68431099e 100644 --- a/src/main/java/com/airbyte/api/Workspaces.java +++ b/src/main/java/com/airbyte/api/Workspaces.java @@ -41,10 +41,11 @@ public class Workspaces implements this.sdkConfiguration = sdkConfiguration; } + /** * Create OAuth override credentials for a workspace and source type. * Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for source/destination OAuth. - * In order to determine what the credential configuration needs to be, please see the connector specification of the relevant source/destination. + * In order to determine what the credential configuration needs to be, please see the connector specification of the relevant source/destination. * @return The call builder */ public com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder createOrUpdateWorkspaceOAuthCredentials() { @@ -54,7 +55,7 @@ public com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentials /** * Create OAuth override credentials for a workspace and source type. * Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for source/destination OAuth. - * In order to determine what the credential configuration needs to be, please see the connector specification of the relevant source/destination. + * In order to determine what the credential configuration needs to be, please see the connector specification of the relevant source/destination. * @param request The request object containing all of the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails @@ -88,7 +89,7 @@ public com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentials HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createOrUpdateWorkspaceOAuthCredentials", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("createOrUpdateWorkspaceOAuthCredentials", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -96,18 +97,18 @@ public com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentials if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createOrUpdateWorkspaceOAuthCredentials", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("createOrUpdateWorkspaceOAuthCredentials", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createOrUpdateWorkspaceOAuthCredentials", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("createOrUpdateWorkspaceOAuthCredentials", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createOrUpdateWorkspaceOAuthCredentials", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("createOrUpdateWorkspaceOAuthCredentials", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -144,6 +145,7 @@ public com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentials } + /** * Create a workspace * @return The call builder @@ -185,7 +187,7 @@ public com.airbyte.api.models.operations.CreateWorkspaceResponse createWorkspace HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createWorkspace", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("createWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -193,18 +195,18 @@ public com.airbyte.api.models.operations.CreateWorkspaceResponse createWorkspace if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createWorkspace", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("createWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createWorkspace", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("createWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createWorkspace", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("createWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -252,6 +254,7 @@ public com.airbyte.api.models.operations.CreateWorkspaceResponse createWorkspace } + /** * Delete a Workspace * @return The call builder @@ -287,7 +290,7 @@ public com.airbyte.api.models.operations.DeleteWorkspaceResponse deleteWorkspace HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteWorkspace", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("deleteWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -295,18 +298,18 @@ public com.airbyte.api.models.operations.DeleteWorkspaceResponse deleteWorkspace if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteWorkspace", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("deleteWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteWorkspace", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("deleteWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteWorkspace", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("deleteWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -343,6 +346,7 @@ public com.airbyte.api.models.operations.DeleteWorkspaceResponse deleteWorkspace } + /** * Get Workspace details * @return The call builder @@ -378,7 +382,7 @@ public com.airbyte.api.models.operations.GetWorkspaceResponse getWorkspace( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getWorkspace", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("getWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -386,18 +390,18 @@ public com.airbyte.api.models.operations.GetWorkspaceResponse getWorkspace( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getWorkspace", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("getWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getWorkspace", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("getWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getWorkspace", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("getWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -445,6 +449,7 @@ public com.airbyte.api.models.operations.GetWorkspaceResponse getWorkspace( } + /** * List workspaces * @return The call builder @@ -483,7 +488,7 @@ public com.airbyte.api.models.operations.ListWorkspacesResponse listWorkspaces( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("listWorkspaces", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("listWorkspaces", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -491,18 +496,18 @@ public com.airbyte.api.models.operations.ListWorkspacesResponse listWorkspaces( if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("listWorkspaces", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("listWorkspaces", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("listWorkspaces", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("listWorkspaces", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("listWorkspaces", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("listWorkspaces", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -550,6 +555,7 @@ public com.airbyte.api.models.operations.ListWorkspacesResponse listWorkspaces( } + /** * Update a workspace * @return The call builder @@ -593,7 +599,7 @@ public com.airbyte.api.models.operations.UpdateWorkspaceResponse updateWorkspace HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("updateWorkspace", sdkConfiguration.securitySource()), + new BeforeRequestContextImpl("updateWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -601,18 +607,18 @@ public com.airbyte.api.models.operations.UpdateWorkspaceResponse updateWorkspace if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("updateWorkspace", sdkConfiguration.securitySource()), + new AfterErrorContextImpl("updateWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("updateWorkspace", sdkConfiguration.securitySource()), + new AfterSuccessContextImpl("updateWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updateWorkspace", sdkConfiguration.securitySource()), + .afterError(new AfterErrorContextImpl("updateWorkspace", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } diff --git a/src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java b/src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java new file mode 100644 index 000000000..8a2186ed0 --- /dev/null +++ b/src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java @@ -0,0 +1,272 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.hooks; + +import java.io.IOException; +import java.io.InputStream; +import java.net.HttpURLConnection; +import java.net.URI; +import java.net.URISyntaxException; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.time.OffsetDateTime; +import java.time.temporal.ChronoUnit; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.stream.Collectors; + +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.AuthException; +import com.airbyte.api.models.shared.SchemeClientCredentials; +import com.airbyte.api.utils.Helpers; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.Hook.AfterError; +import com.airbyte.api.utils.Hook.AfterErrorContext; +import com.airbyte.api.utils.Hook.BeforeRequest; +import com.airbyte.api.utils.Hook.BeforeRequestContext; +import com.airbyte.api.utils.Hook.SdkInit; +import com.airbyte.api.utils.Hook.SdkInitData; +import com.airbyte.api.utils.RequestBody; +import com.airbyte.api.utils.Utils; + +import com.fasterxml.jackson.annotation.JsonProperty; + +public final class ClientCredentialsHook implements SdkInit, BeforeRequest, AfterError { + + // VisibleForTesting + static final int REFRESH_BEFORE_EXPIRY_SECONDS = 60; + + private final Map sessions; + + // set by sdkInit + private String baseUrl; + private HTTPClient client; + + public ClientCredentialsHook() { + this.sessions = new HashMap<>(); + } + + @Override + public SdkInitData sdkInit(SdkInitData data) { + baseUrl = data.baseUrl(); + client = data.client(); + return new SdkInitData(baseUrl, client); + } + + @Override + public HttpRequest beforeRequest(BeforeRequestContext context, HttpRequest request) throws Exception { + if (!context.oauthScopes().isPresent()) { + // OAuth2 not in use (scopes must be defined, and can be an empty array) + return request; + } + final Credentials credentials; + Optional c = credentials(context.securitySource()); + if (c.isPresent()) { + credentials = c.get(); + } else { + return request; + } + + final String sessionKey = sessionKey(credentials); + Optional currentSession = Optional.ofNullable(sessions.get(sessionKey)); + final Session session; + if (shouldCreateNewSession(currentSession, context.oauthScopes())) { + // note that we accumulate scopes. For example if a session existed + // for scope 'read' and this request requires scope 'write' then we + // request a new token for `read, write`. + + // TODO it may be better to rather make `sessions` a Map> + // where the none of the Session scope lists fully contains another in the same map value. + // This would ensure that an operation is always called with a token with the minimum + // permissions required and also would ensure that a token request is not rejected + // because of disallowed scope combinations (yet to see that in the wild). + // For the example above with `read` and `write` scoped requests we would get a token + // for `read` scope, and then get a token for `write` scope and store both tokens in separate + // Session objects in the map value list for the credential pair. + + List scopes = accumulateScopes(context.oauthScopes(), currentSession); + session = doTokenRequest(baseUrl, client, credentials, scopes); + sessions.put(sessionKey, session); + } else { + session = currentSession.get(); + } + + return Helpers.copy(request) // + // overwrites any previous value + .setHeader("Authorization", "Bearer " + session.token.orElse("")) // + .build(); + } + + // VisibleForTesting + static boolean shouldCreateNewSession(Optional currentSession, Optional> oauthScopes) { + return !currentSession.isPresent() // + || !hasRequiredScopes(currentSession.get().scopes, oauthScopes) // + || hasTokenExpired(currentSession.get().expiresAt, OffsetDateTime.now()); + } + + @Override + public HttpResponse afterError(AfterErrorContext context, Optional> response, + Optional error) throws Exception { + if (error.isPresent()) { + throw error.get(); + } else if (!context.oauthScopes().isPresent()) { + return response.get(); + } + + Optional credentials = credentials(context.securitySource()); + if (!credentials.isPresent()) { + return response.get(); + } + + if (response.get().statusCode() == HttpURLConnection.HTTP_UNAUTHORIZED) { + String sessionKey = sessionKey(credentials.get()); + sessions.remove(sessionKey); + } + return response.get(); + } + + private static Session doTokenRequest(String baseUrl, HTTPClient client, Credentials credentials, List scopes) throws IllegalArgumentException, + IllegalAccessException, IOException, InterruptedException, URISyntaxException { + Map payload = new HashMap<>(); + payload.put("grant_type", "client_credentials"); + payload.put("client_id", credentials.clientId); + payload.put("client_secret", credentials.clientSecret); + if (scopes.size() > 0) { + payload.put("scope", scopes.stream().collect(Collectors.joining(" "))); + } + URI tokenUri = URI.create(baseUrl).resolve(credentials.tokenUrl); + HttpRequest request = HttpRequest // + .newBuilder(tokenUri) // + .header("Content-Type", "application/x-www-form-urlencoded") // + .POST(RequestBody.serializeFormData(payload).body()) // + .build(); + HttpResponse response = client.send(request); + if (response.statusCode() != HttpURLConnection.HTTP_OK) { + String responseBody = Utils.toUtf8AndClose(response.body()); + throw new AuthException(response.statusCode(), "Unexpected status code " + response.statusCode() + ": " + responseBody); + } + TokenResponse t = Utils.mapper().readValue(response.body(), TokenResponse.class); + if (!t.tokenType.orElse("").equals("Bearer")) { + throw new AuthException("Expected 'Bearer' token type but was '" + t.tokenType.orElse("") + "'"); + } + final Optional expiresAt = t.expiresInMs + .map(x -> OffsetDateTime.now().plus(x, ChronoUnit.MILLIS)); + return new Session(credentials, t.accessToken, scopes, expiresAt); + } + + private static List accumulateScopes(Optional> requiredScopes, Optional session) { + if (session.isPresent()) { + List scopes = new ArrayList<>(requiredScopes.orElse(Collections.emptyList())); + scopes.addAll(session.get().scopes); + return scopes.stream() // + .distinct() // + .collect(Collectors.toList()); + } else { + return requiredScopes.orElse(Collections.emptyList()); + } + } + + // VisibleForTesting + static boolean hasTokenExpired(Optional expiresAt, OffsetDateTime now) { + return expiresAt.isEmpty() // + || now.plusSeconds(REFRESH_BEFORE_EXPIRY_SECONDS).isAfter(expiresAt.get()); + } + + // VisibleForTesting + static boolean hasRequiredScopes(List sessionScopes, Optional> requiredScopes) { + return sessionScopes.containsAll(requiredScopes.orElse(Collections.emptyList())); + } + + final static class TokenResponse { + + @JsonProperty("access_token") + Optional accessToken; + + @JsonProperty("token_type") + Optional tokenType; + + @JsonProperty("expires_in") + Optional expiresInMs; + + } + + // VisibleForTesting + final static class Credentials { + final String clientId; + final String clientSecret; + final String tokenUrl; + + Credentials(String clientId, String clientSecret, String tokenUrl) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(tokenUrl, "tokenUrl"); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.tokenUrl = tokenUrl; + } + } + + // VisibleForTesting + final static class Session { + final Credentials credentials; + final Optional token; + final List scopes; + final Optional expiresAt; + + Session(Credentials credentials, Optional token, List scopes, + Optional expiresAt) { + this.credentials = credentials; + this.token = token; + this.scopes = scopes; + this.expiresAt = expiresAt; + } + } + + private static Optional credentials(Optional source) { + if (!source.isPresent()) { + return Optional.empty(); + } + // clientID, clientSecret etc will be typed as `Optional` if global security not present + Optional clientId = source.get().getSecurity().clientCredentials().map(SchemeClientCredentials::clientID); + Optional clientSecret = source.get().getSecurity().clientCredentials().map(SchemeClientCredentials::clientSecret); + Optional tokenUrl = source.get().getSecurity().clientCredentials().map(SchemeClientCredentials::tokenURL); + if (clientId.isEmpty() || clientSecret.isEmpty() || tokenUrl.isEmpty()) { + return Optional.empty(); + } else { + return Optional.of(new Credentials(clientId.get(), clientSecret.get(), tokenUrl.get())); + } + } + + private static Optional toOptional(String s) { + return Optional.ofNullable(s); + } + + private static Optional toOptional(Optional s) { + return s; + } + + private static String sessionKey(Credentials credentials) { + return sessionKey(credentials.clientId, credentials.clientSecret); + } + + private static String sessionKey(String clientId, String clientSecret) { + try { + MessageDigest md = MessageDigest.getInstance("MD5"); + String input = clientId + ":" + clientSecret; + byte[] bytes = md.digest(input.getBytes(StandardCharsets.UTF_8)); + return Utils.bytesToLowerCaseHex(bytes); + } catch (NoSuchAlgorithmException e) { + // not expected, MD5 always available + throw new RuntimeException(e); + } + } +} diff --git a/src/main/java/com/airbyte/api/models/errors/AuthException.java b/src/main/java/com/airbyte/api/models/errors/AuthException.java new file mode 100644 index 000000000..f2b97bea4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/errors/AuthException.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.errors; + +import java.util.Optional; + +/** + * An exception associated with Authentication or Authorization. + */ +@SuppressWarnings("serial") +public class AuthException extends RuntimeException { + + private final Optional statusCode; + + private AuthException(Optional statusCode, String message) { + super(message); + this.statusCode = statusCode; + } + + public AuthException(int statusCode, String message) { + this(Optional.of(statusCode), message); + } + + public AuthException(String message) { + this(Optional.empty(), message); + } + + public Optional statusCode() { + return statusCode; + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserRequestBuilder.java new file mode 100644 index 000000000..ad850269d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserRequestBuilder.java @@ -0,0 +1,32 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.util.Optional; +import java.util.stream.Stream; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class ListOrganizationsForUserRequestBuilder { + + private final SDKMethodInterfaces.MethodCallListOrganizationsForUser sdk; + + public ListOrganizationsForUserRequestBuilder(SDKMethodInterfaces.MethodCallListOrganizationsForUser sdk) { + this.sdk = sdk; + } + + public ListOrganizationsForUserResponse call() throws Exception { + + return sdk.listOrganizationsForUserDirect(); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java new file mode 100644 index 000000000..b4638a6c4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java @@ -0,0 +1,248 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +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.net.http.HttpResponse; +import java.util.Optional; + +public class ListOrganizationsForUserResponse implements com.airbyte.api.utils.Response { + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * List user's organizations. + */ + private Optional organizationsResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListOrganizationsForUserResponse( + String contentType, + Optional organizationsResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.organizationsResponse = organizationsResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListOrganizationsForUserResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * List user's organizations. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional organizationsResponse() { + return (Optional) organizationsResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public ListOrganizationsForUserResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * List user's organizations. + */ + public ListOrganizationsForUserResponse withOrganizationsResponse(com.airbyte.api.models.shared.OrganizationsResponse organizationsResponse) { + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + this.organizationsResponse = Optional.ofNullable(organizationsResponse); + return this; + } + + /** + * List user's organizations. + */ + public ListOrganizationsForUserResponse withOrganizationsResponse(Optional organizationsResponse) { + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + this.organizationsResponse = organizationsResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListOrganizationsForUserResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListOrganizationsForUserResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListOrganizationsForUserResponse other = (ListOrganizationsForUserResponse) o; + return + java.util.Objects.deepEquals(this.contentType, other.contentType) && + java.util.Objects.deepEquals(this.organizationsResponse, other.organizationsResponse) && + java.util.Objects.deepEquals(this.statusCode, other.statusCode) && + java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + contentType, + organizationsResponse, + statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListOrganizationsForUserResponse.class, + "contentType", contentType, + "organizationsResponse", organizationsResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + public final static class Builder { + + private String contentType; + + private Optional organizationsResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * List user's organizations. + */ + public Builder organizationsResponse(com.airbyte.api.models.shared.OrganizationsResponse organizationsResponse) { + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + this.organizationsResponse = Optional.ofNullable(organizationsResponse); + return this; + } + + /** + * List user's organizations. + */ + public Builder organizationsResponse(Optional organizationsResponse) { + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + this.organizationsResponse = organizationsResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListOrganizationsForUserResponse build() { + return new ListOrganizationsForUserResponse( + contentType, + organizationsResponse, + statusCode, + rawResponse); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java index 79e67beab..364c98e8d 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java @@ -18,6 +18,12 @@ public class ListPermissionsRequest { + /** + * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=organizationId") + private Optional organizationId; + /** * User Id in permission. */ @@ -26,13 +32,25 @@ public class ListPermissionsRequest { @JsonCreator public ListPermissionsRequest( + Optional organizationId, Optional userId) { + Utils.checkNotNull(organizationId, "organizationId"); Utils.checkNotNull(userId, "userId"); + this.organizationId = organizationId; this.userId = userId; } public ListPermissionsRequest() { - this(Optional.empty()); + this(Optional.empty(), Optional.empty()); + } + + /** + * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional organizationId() { + return (Optional) organizationId; } /** @@ -48,6 +66,24 @@ public final static Builder builder() { return new Builder(); } + /** + * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + */ + public ListPermissionsRequest withOrganizationId(String organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = Optional.ofNullable(organizationId); + return this; + } + + /** + * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + */ + public ListPermissionsRequest withOrganizationId(Optional organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + /** * User Id in permission. */ @@ -76,29 +112,52 @@ public boolean equals(java.lang.Object o) { } ListPermissionsRequest other = (ListPermissionsRequest) o; return + java.util.Objects.deepEquals(this.organizationId, other.organizationId) && java.util.Objects.deepEquals(this.userId, other.userId); } @Override public int hashCode() { return java.util.Objects.hash( + organizationId, userId); } @Override public String toString() { return Utils.toString(ListPermissionsRequest.class, + "organizationId", organizationId, "userId", userId); } public final static class Builder { + private Optional organizationId = Optional.empty(); + private Optional userId = Optional.empty(); private Builder() { // force use of static builder() method } + /** + * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + */ + public Builder organizationId(String organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = Optional.ofNullable(organizationId); + return this; + } + + /** + * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + */ + public Builder organizationId(Optional organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + /** * User Id in permission. */ @@ -119,6 +178,7 @@ public Builder userId(Optional userId) { public ListPermissionsRequest build() { return new ListPermissionsRequest( + organizationId, userId); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java new file mode 100644 index 000000000..cbc0320ed --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java @@ -0,0 +1,216 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +import com.airbyte.api.utils.SpeakeasyMetadata; +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.util.Optional; + +public class ListUsersWithinAnOrganizationRequest { + + /** + * List of user emails to filter by + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=emails") + private Optional> emails; + + /** + * List of user IDs to filter by + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=ids") + private Optional> ids; + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=organizationId") + private String organizationId; + + @JsonCreator + public ListUsersWithinAnOrganizationRequest( + Optional> emails, + Optional> ids, + String organizationId) { + Utils.checkNotNull(emails, "emails"); + Utils.checkNotNull(ids, "ids"); + Utils.checkNotNull(organizationId, "organizationId"); + this.emails = emails; + this.ids = ids; + this.organizationId = organizationId; + } + + public ListUsersWithinAnOrganizationRequest( + String organizationId) { + this(Optional.empty(), Optional.empty(), organizationId); + } + + /** + * List of user emails to filter by + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> emails() { + return (Optional>) emails; + } + + /** + * List of user IDs to filter by + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> ids() { + return (Optional>) ids; + } + + @JsonIgnore + public String organizationId() { + return organizationId; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * List of user emails to filter by + */ + public ListUsersWithinAnOrganizationRequest withEmails(java.util.List emails) { + Utils.checkNotNull(emails, "emails"); + this.emails = Optional.ofNullable(emails); + return this; + } + + /** + * List of user emails to filter by + */ + public ListUsersWithinAnOrganizationRequest withEmails(Optional> emails) { + Utils.checkNotNull(emails, "emails"); + this.emails = emails; + return this; + } + + /** + * List of user IDs to filter by + */ + public ListUsersWithinAnOrganizationRequest withIds(java.util.List ids) { + Utils.checkNotNull(ids, "ids"); + this.ids = Optional.ofNullable(ids); + return this; + } + + /** + * List of user IDs to filter by + */ + public ListUsersWithinAnOrganizationRequest withIds(Optional> ids) { + Utils.checkNotNull(ids, "ids"); + this.ids = ids; + return this; + } + + public ListUsersWithinAnOrganizationRequest withOrganizationId(String organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListUsersWithinAnOrganizationRequest other = (ListUsersWithinAnOrganizationRequest) o; + return + java.util.Objects.deepEquals(this.emails, other.emails) && + java.util.Objects.deepEquals(this.ids, other.ids) && + java.util.Objects.deepEquals(this.organizationId, other.organizationId); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + emails, + ids, + organizationId); + } + + @Override + public String toString() { + return Utils.toString(ListUsersWithinAnOrganizationRequest.class, + "emails", emails, + "ids", ids, + "organizationId", organizationId); + } + + public final static class Builder { + + private Optional> emails = Optional.empty(); + + private Optional> ids = Optional.empty(); + + private String organizationId; + + private Builder() { + // force use of static builder() method + } + + /** + * List of user emails to filter by + */ + public Builder emails(java.util.List emails) { + Utils.checkNotNull(emails, "emails"); + this.emails = Optional.ofNullable(emails); + return this; + } + + /** + * List of user emails to filter by + */ + public Builder emails(Optional> emails) { + Utils.checkNotNull(emails, "emails"); + this.emails = emails; + return this; + } + + /** + * List of user IDs to filter by + */ + public Builder ids(java.util.List ids) { + Utils.checkNotNull(ids, "ids"); + this.ids = Optional.ofNullable(ids); + return this; + } + + /** + * List of user IDs to filter by + */ + public Builder ids(Optional> ids) { + Utils.checkNotNull(ids, "ids"); + this.ids = ids; + return this; + } + + public Builder organizationId(String organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + + public ListUsersWithinAnOrganizationRequest build() { + return new ListUsersWithinAnOrganizationRequest( + emails, + ids, + organizationId); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequestBuilder.java new file mode 100644 index 000000000..bd49c34f4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.util.Optional; +import java.util.stream.Stream; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class ListUsersWithinAnOrganizationRequestBuilder { + + private ListUsersWithinAnOrganizationRequest request; + private final SDKMethodInterfaces.MethodCallListUsersWithinAnOrganization sdk; + + public ListUsersWithinAnOrganizationRequestBuilder(SDKMethodInterfaces.MethodCallListUsersWithinAnOrganization sdk) { + this.sdk = sdk; + } + + public ListUsersWithinAnOrganizationRequestBuilder request(ListUsersWithinAnOrganizationRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public ListUsersWithinAnOrganizationResponse call() throws Exception { + + return sdk.listUsersWithinAnOrganization( + request); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java new file mode 100644 index 000000000..73e0c3f64 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java @@ -0,0 +1,248 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +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.net.http.HttpResponse; +import java.util.Optional; + +public class ListUsersWithinAnOrganizationResponse implements com.airbyte.api.utils.Response { + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * List Users. + */ + private Optional usersResponse; + + @JsonCreator + public ListUsersWithinAnOrganizationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional usersResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(usersResponse, "usersResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.usersResponse = usersResponse; + } + + public ListUsersWithinAnOrganizationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * List Users. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional usersResponse() { + return (Optional) usersResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public ListUsersWithinAnOrganizationResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListUsersWithinAnOrganizationResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListUsersWithinAnOrganizationResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * List Users. + */ + public ListUsersWithinAnOrganizationResponse withUsersResponse(com.airbyte.api.models.shared.UsersResponse usersResponse) { + Utils.checkNotNull(usersResponse, "usersResponse"); + this.usersResponse = Optional.ofNullable(usersResponse); + return this; + } + + /** + * List Users. + */ + public ListUsersWithinAnOrganizationResponse withUsersResponse(Optional usersResponse) { + Utils.checkNotNull(usersResponse, "usersResponse"); + this.usersResponse = usersResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListUsersWithinAnOrganizationResponse other = (ListUsersWithinAnOrganizationResponse) o; + return + java.util.Objects.deepEquals(this.contentType, other.contentType) && + java.util.Objects.deepEquals(this.statusCode, other.statusCode) && + java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && + java.util.Objects.deepEquals(this.usersResponse, other.usersResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + contentType, + statusCode, + rawResponse, + usersResponse); + } + + @Override + public String toString() { + return Utils.toString(ListUsersWithinAnOrganizationResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "usersResponse", usersResponse); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional usersResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * List Users. + */ + public Builder usersResponse(com.airbyte.api.models.shared.UsersResponse usersResponse) { + Utils.checkNotNull(usersResponse, "usersResponse"); + this.usersResponse = Optional.ofNullable(usersResponse); + return this; + } + + /** + * List Users. + */ + public Builder usersResponse(Optional usersResponse) { + Utils.checkNotNull(usersResponse, "usersResponse"); + this.usersResponse = usersResponse; + return this; + } + + public ListUsersWithinAnOrganizationResponse build() { + return new ListUsersWithinAnOrganizationResponse( + contentType, + statusCode, + rawResponse, + usersResponse); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java b/src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java index 92d6f1199..676dbb5e9 100644 --- a/src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java +++ b/src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java @@ -109,6 +109,11 @@ com.airbyte.api.models.operations.ListJobsResponse listJobs( } + public interface MethodCallListOrganizationsForUser { + com.airbyte.api.models.operations.ListOrganizationsForUserResponse listOrganizationsForUserDirect() throws Exception; + } + + public interface MethodCallCreatePermission { com.airbyte.api.models.operations.CreatePermissionResponse createPermission( com.airbyte.api.models.shared.PermissionCreateRequest request) throws Exception; @@ -187,6 +192,12 @@ com.airbyte.api.models.operations.GetStreamPropertiesResponse getStreamPropertie } + public interface MethodCallListUsersWithinAnOrganization { + com.airbyte.api.models.operations.ListUsersWithinAnOrganizationResponse listUsersWithinAnOrganization( + com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequest request) throws Exception; + } + + public interface MethodCallCreateOrUpdateWorkspaceOAuthCredentials { com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsResponse createOrUpdateWorkspaceOAuthCredentials( com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsRequest request) throws Exception; diff --git a/src/main/java/com/airbyte/api/models/shared/AESCBCEnvelopeEncryption.java b/src/main/java/com/airbyte/api/models/shared/AESCBCEnvelopeEncryption.java deleted file mode 100644 index 4cbb9128b..000000000 --- a/src/main/java/com/airbyte/api/models/shared/AESCBCEnvelopeEncryption.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -/** - * AESCBCEnvelopeEncryption - Staging data will be encrypted using AES-CBC envelope encryption. - */ - -public class AESCBCEnvelopeEncryption { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("encryption_type") - private Optional encryptionType; - - /** - * The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key_encrypting_key") - private Optional keyEncryptingKey; - - @JsonCreator - public AESCBCEnvelopeEncryption( - @JsonProperty("key_encrypting_key") Optional keyEncryptingKey) { - Utils.checkNotNull(keyEncryptingKey, "keyEncryptingKey"); - this.encryptionType = Builder._SINGLETON_VALUE_EncryptionType.value(); - this.keyEncryptingKey = keyEncryptingKey; - } - - public AESCBCEnvelopeEncryption() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional encryptionType() { - return (Optional) encryptionType; - } - - /** - * The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional keyEncryptingKey() { - return (Optional) keyEncryptingKey; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. - */ - public AESCBCEnvelopeEncryption withKeyEncryptingKey(String keyEncryptingKey) { - Utils.checkNotNull(keyEncryptingKey, "keyEncryptingKey"); - this.keyEncryptingKey = Optional.ofNullable(keyEncryptingKey); - return this; - } - - /** - * The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. - */ - public AESCBCEnvelopeEncryption withKeyEncryptingKey(Optional keyEncryptingKey) { - Utils.checkNotNull(keyEncryptingKey, "keyEncryptingKey"); - this.keyEncryptingKey = keyEncryptingKey; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AESCBCEnvelopeEncryption other = (AESCBCEnvelopeEncryption) o; - return - java.util.Objects.deepEquals(this.encryptionType, other.encryptionType) && - java.util.Objects.deepEquals(this.keyEncryptingKey, other.keyEncryptingKey); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - encryptionType, - keyEncryptingKey); - } - - @Override - public String toString() { - return Utils.toString(AESCBCEnvelopeEncryption.class, - "encryptionType", encryptionType, - "keyEncryptingKey", keyEncryptingKey); - } - - public final static class Builder { - - private Optional keyEncryptingKey = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. - */ - public Builder keyEncryptingKey(String keyEncryptingKey) { - Utils.checkNotNull(keyEncryptingKey, "keyEncryptingKey"); - this.keyEncryptingKey = Optional.ofNullable(keyEncryptingKey); - return this; - } - - /** - * The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. - */ - public Builder keyEncryptingKey(Optional keyEncryptingKey) { - Utils.checkNotNull(keyEncryptingKey, "keyEncryptingKey"); - this.keyEncryptingKey = keyEncryptingKey; - return this; - } - - public AESCBCEnvelopeEncryption build() { - return new AESCBCEnvelopeEncryption( - keyEncryptingKey); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_EncryptionType = - new LazySingletonValue<>( - "encryption_type", - "\"aes_cbc_envelope\"", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java b/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java index 4b922db3e..353d5d892 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java @@ -30,13 +30,6 @@ public class AWSS3Staging { @JsonProperty("access_key_id") private String accessKeyId; - /** - * How to encrypt the staging data - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("encryption") - private Optional encryption; - /** * The pattern allows you to set the file-name format for the S3 staging file(s) */ @@ -83,7 +76,6 @@ public class AWSS3Staging { @JsonCreator public AWSS3Staging( @JsonProperty("access_key_id") String accessKeyId, - @JsonProperty("encryption") Optional encryption, @JsonProperty("file_name_pattern") Optional fileNamePattern, @JsonProperty("purge_staging_data") Optional purgeStagingData, @JsonProperty("s3_bucket_name") String s3BucketName, @@ -91,7 +83,6 @@ public AWSS3Staging( @JsonProperty("s3_bucket_region") Optional s3BucketRegion, @JsonProperty("secret_access_key") String secretAccessKey) { Utils.checkNotNull(accessKeyId, "accessKeyId"); - Utils.checkNotNull(encryption, "encryption"); Utils.checkNotNull(fileNamePattern, "fileNamePattern"); Utils.checkNotNull(purgeStagingData, "purgeStagingData"); Utils.checkNotNull(s3BucketName, "s3BucketName"); @@ -99,7 +90,6 @@ public AWSS3Staging( Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); Utils.checkNotNull(secretAccessKey, "secretAccessKey"); this.accessKeyId = accessKeyId; - this.encryption = encryption; this.fileNamePattern = fileNamePattern; this.method = Builder._SINGLETON_VALUE_Method.value(); this.purgeStagingData = purgeStagingData; @@ -113,7 +103,7 @@ public AWSS3Staging( String accessKeyId, String s3BucketName, String secretAccessKey) { - this(accessKeyId, Optional.empty(), Optional.empty(), Optional.empty(), s3BucketName, Optional.empty(), Optional.empty(), secretAccessKey); + this(accessKeyId, Optional.empty(), Optional.empty(), s3BucketName, Optional.empty(), Optional.empty(), secretAccessKey); } /** @@ -124,15 +114,6 @@ public String accessKeyId() { return accessKeyId; } - /** - * How to encrypt the staging data - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional encryption() { - return (Optional) encryption; - } - /** * The pattern allows you to set the file-name format for the S3 staging file(s) */ @@ -203,24 +184,6 @@ public AWSS3Staging withAccessKeyId(String accessKeyId) { return this; } - /** - * How to encrypt the staging data - */ - public AWSS3Staging withEncryption(DestinationRedshiftEncryption encryption) { - Utils.checkNotNull(encryption, "encryption"); - this.encryption = Optional.ofNullable(encryption); - return this; - } - - /** - * How to encrypt the staging data - */ - public AWSS3Staging withEncryption(Optional encryption) { - Utils.checkNotNull(encryption, "encryption"); - this.encryption = encryption; - return this; - } - /** * The pattern allows you to set the file-name format for the S3 staging file(s) */ @@ -322,7 +285,6 @@ public boolean equals(java.lang.Object o) { AWSS3Staging other = (AWSS3Staging) o; return java.util.Objects.deepEquals(this.accessKeyId, other.accessKeyId) && - java.util.Objects.deepEquals(this.encryption, other.encryption) && java.util.Objects.deepEquals(this.fileNamePattern, other.fileNamePattern) && java.util.Objects.deepEquals(this.method, other.method) && java.util.Objects.deepEquals(this.purgeStagingData, other.purgeStagingData) && @@ -336,7 +298,6 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return java.util.Objects.hash( accessKeyId, - encryption, fileNamePattern, method, purgeStagingData, @@ -350,7 +311,6 @@ public int hashCode() { public String toString() { return Utils.toString(AWSS3Staging.class, "accessKeyId", accessKeyId, - "encryption", encryption, "fileNamePattern", fileNamePattern, "method", method, "purgeStagingData", purgeStagingData, @@ -364,8 +324,6 @@ public final static class Builder { private String accessKeyId; - private Optional encryption = Optional.empty(); - private Optional fileNamePattern = Optional.empty(); private Optional purgeStagingData; @@ -391,24 +349,6 @@ public Builder accessKeyId(String accessKeyId) { return this; } - /** - * How to encrypt the staging data - */ - public Builder encryption(DestinationRedshiftEncryption encryption) { - Utils.checkNotNull(encryption, "encryption"); - this.encryption = Optional.ofNullable(encryption); - return this; - } - - /** - * How to encrypt the staging data - */ - public Builder encryption(Optional encryption) { - Utils.checkNotNull(encryption, "encryption"); - this.encryption = encryption; - return this; - } - /** * The pattern allows you to set the file-name format for the S3 staging file(s) */ @@ -508,7 +448,6 @@ public AWSS3Staging build() { } return new AWSS3Staging( accessKeyId, - encryption, fileNamePattern, purgeStagingData, s3BucketName, diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java new file mode 100644 index 000000000..3ee826911 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java @@ -0,0 +1,234 @@ +/* + * 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 AuthenticateViaFacebookMarketingOauth { + + /** + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("access_token") + private Optional accessToken; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("auth_type") + private Optional authType; + + /** + * Client ID for the Facebook Marketing API + */ + @JsonProperty("client_id") + private String clientId; + + /** + * Client Secret for the Facebook Marketing API + */ + @JsonProperty("client_secret") + private String clientSecret; + + @JsonCreator + public AuthenticateViaFacebookMarketingOauth( + @JsonProperty("access_token") Optional accessToken, + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret) { + Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + this.accessToken = accessToken; + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.clientId = clientId; + this.clientSecret = clientSecret; + } + + public AuthenticateViaFacebookMarketingOauth( + String clientId, + String clientSecret) { + this(Optional.empty(), clientId, clientSecret); + } + + /** + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional accessToken() { + return (Optional) accessToken; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional authType() { + return (Optional) authType; + } + + /** + * Client ID for the Facebook Marketing API + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * Client Secret for the Facebook Marketing API + */ + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + */ + public AuthenticateViaFacebookMarketingOauth withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + /** + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + */ + public AuthenticateViaFacebookMarketingOauth withAccessToken(Optional accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * Client ID for the Facebook Marketing API + */ + public AuthenticateViaFacebookMarketingOauth withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Client Secret for the Facebook Marketing API + */ + public AuthenticateViaFacebookMarketingOauth withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthenticateViaFacebookMarketingOauth other = (AuthenticateViaFacebookMarketingOauth) o; + return + java.util.Objects.deepEquals(this.accessToken, other.accessToken) && + java.util.Objects.deepEquals(this.authType, other.authType) && + java.util.Objects.deepEquals(this.clientId, other.clientId) && + java.util.Objects.deepEquals(this.clientSecret, other.clientSecret); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + accessToken, + authType, + clientId, + clientSecret); + } + + @Override + public String toString() { + return Utils.toString(AuthenticateViaFacebookMarketingOauth.class, + "accessToken", accessToken, + "authType", authType, + "clientId", clientId, + "clientSecret", clientSecret); + } + + public final static class Builder { + + private Optional accessToken = Optional.empty(); + + private String clientId; + + private String clientSecret; + + private Builder() { + // force use of static builder() method + } + + /** + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + */ + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + /** + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + */ + public Builder accessToken(Optional accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * Client ID for the Facebook Marketing API + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Client Secret for the Facebook Marketing API + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public AuthenticateViaFacebookMarketingOauth build() { + return new AuthenticateViaFacebookMarketingOauth( + accessToken, + clientId, + clientSecret); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"Client\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java b/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java index d5bca666c..bfec49e6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java +++ b/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java @@ -21,6 +21,13 @@ public class CSVCommaSeparatedValues { + /** + * Add file extensions to the output file. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("file_extension") + private Optional fileExtension; + /** * Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. */ @@ -33,14 +40,26 @@ public class CSVCommaSeparatedValues { @JsonCreator public CSVCommaSeparatedValues( + @JsonProperty("file_extension") Optional fileExtension, @JsonProperty("flattening") Optional flattening) { + Utils.checkNotNull(fileExtension, "fileExtension"); Utils.checkNotNull(flattening, "flattening"); + this.fileExtension = fileExtension; this.flattening = flattening; this.formatType = Builder._SINGLETON_VALUE_FormatType.value(); } public CSVCommaSeparatedValues() { - this(Optional.empty()); + this(Optional.empty(), Optional.empty()); + } + + /** + * Add file extensions to the output file. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional fileExtension() { + return (Optional) fileExtension; } /** @@ -61,6 +80,24 @@ public final static Builder builder() { return new Builder(); } + /** + * Add file extensions to the output file. + */ + public CSVCommaSeparatedValues withFileExtension(boolean fileExtension) { + Utils.checkNotNull(fileExtension, "fileExtension"); + this.fileExtension = Optional.ofNullable(fileExtension); + return this; + } + + /** + * Add file extensions to the output file. + */ + public CSVCommaSeparatedValues withFileExtension(Optional fileExtension) { + Utils.checkNotNull(fileExtension, "fileExtension"); + this.fileExtension = fileExtension; + return this; + } + /** * Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. */ @@ -89,6 +126,7 @@ public boolean equals(java.lang.Object o) { } CSVCommaSeparatedValues other = (CSVCommaSeparatedValues) o; return + java.util.Objects.deepEquals(this.fileExtension, other.fileExtension) && java.util.Objects.deepEquals(this.flattening, other.flattening) && java.util.Objects.deepEquals(this.formatType, other.formatType); } @@ -96,6 +134,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return java.util.Objects.hash( + fileExtension, flattening, formatType); } @@ -103,18 +142,39 @@ public int hashCode() { @Override public String toString() { return Utils.toString(CSVCommaSeparatedValues.class, + "fileExtension", fileExtension, "flattening", flattening, "formatType", formatType); } public final static class Builder { + private Optional fileExtension; + private Optional flattening; private Builder() { // force use of static builder() method } + /** + * Add file extensions to the output file. + */ + public Builder fileExtension(boolean fileExtension) { + Utils.checkNotNull(fileExtension, "fileExtension"); + this.fileExtension = Optional.ofNullable(fileExtension); + return this; + } + + /** + * Add file extensions to the output file. + */ + public Builder fileExtension(Optional fileExtension) { + Utils.checkNotNull(fileExtension, "fileExtension"); + this.fileExtension = fileExtension; + return this; + } + /** * Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. */ @@ -134,13 +194,23 @@ public Builder flattening(Optional flattening } public CSVCommaSeparatedValues build() { + if (fileExtension == null) { + fileExtension = _SINGLETON_VALUE_FileExtension.value(); + } if (flattening == null) { flattening = _SINGLETON_VALUE_Flattening.value(); } return new CSVCommaSeparatedValues( + fileExtension, flattening); } + private static final LazySingletonValue> _SINGLETON_VALUE_FileExtension = + new LazySingletonValue<>( + "file_extension", + "false", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_Flattening = new LazySingletonValue<>( "flattening", diff --git a/src/main/java/com/airbyte/api/models/shared/ChromaLocalPersistance.java b/src/main/java/com/airbyte/api/models/shared/ChromaLocalPersistance.java deleted file mode 100644 index 6ca4dfb39..000000000 --- a/src/main/java/com/airbyte/api/models/shared/ChromaLocalPersistance.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -/** - * ChromaLocalPersistance - Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync. - */ - -public class ChromaLocalPersistance { - - /** - * Name of the collection to use. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("collection_name") - private Optional collectionName; - - /** - * Path to the directory where chroma files will be written. The files will be placed inside that local mount. - */ - @JsonProperty("destination_path") - private String destinationPath; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mode") - private Optional mode; - - @JsonCreator - public ChromaLocalPersistance( - @JsonProperty("collection_name") Optional collectionName, - @JsonProperty("destination_path") String destinationPath) { - Utils.checkNotNull(collectionName, "collectionName"); - Utils.checkNotNull(destinationPath, "destinationPath"); - this.collectionName = collectionName; - this.destinationPath = destinationPath; - this.mode = Builder._SINGLETON_VALUE_Mode.value(); - } - - public ChromaLocalPersistance( - String destinationPath) { - this(Optional.empty(), destinationPath); - } - - /** - * Name of the collection to use. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional collectionName() { - return (Optional) collectionName; - } - - /** - * Path to the directory where chroma files will be written. The files will be placed inside that local mount. - */ - @JsonIgnore - public String destinationPath() { - return destinationPath; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mode() { - return (Optional) mode; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Name of the collection to use. - */ - public ChromaLocalPersistance withCollectionName(String collectionName) { - Utils.checkNotNull(collectionName, "collectionName"); - this.collectionName = Optional.ofNullable(collectionName); - return this; - } - - /** - * Name of the collection to use. - */ - public ChromaLocalPersistance withCollectionName(Optional collectionName) { - Utils.checkNotNull(collectionName, "collectionName"); - this.collectionName = collectionName; - return this; - } - - /** - * Path to the directory where chroma files will be written. The files will be placed inside that local mount. - */ - public ChromaLocalPersistance withDestinationPath(String destinationPath) { - Utils.checkNotNull(destinationPath, "destinationPath"); - this.destinationPath = destinationPath; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ChromaLocalPersistance other = (ChromaLocalPersistance) o; - return - java.util.Objects.deepEquals(this.collectionName, other.collectionName) && - java.util.Objects.deepEquals(this.destinationPath, other.destinationPath) && - java.util.Objects.deepEquals(this.mode, other.mode); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - collectionName, - destinationPath, - mode); - } - - @Override - public String toString() { - return Utils.toString(ChromaLocalPersistance.class, - "collectionName", collectionName, - "destinationPath", destinationPath, - "mode", mode); - } - - public final static class Builder { - - private Optional collectionName; - - private String destinationPath; - - private Builder() { - // force use of static builder() method - } - - /** - * Name of the collection to use. - */ - public Builder collectionName(String collectionName) { - Utils.checkNotNull(collectionName, "collectionName"); - this.collectionName = Optional.ofNullable(collectionName); - return this; - } - - /** - * Name of the collection to use. - */ - public Builder collectionName(Optional collectionName) { - Utils.checkNotNull(collectionName, "collectionName"); - this.collectionName = collectionName; - return this; - } - - /** - * Path to the directory where chroma files will be written. The files will be placed inside that local mount. - */ - public Builder destinationPath(String destinationPath) { - Utils.checkNotNull(destinationPath, "destinationPath"); - this.destinationPath = destinationPath; - return this; - } - - public ChromaLocalPersistance build() { - if (collectionName == null) { - collectionName = _SINGLETON_VALUE_CollectionName.value(); - } - return new ChromaLocalPersistance( - collectionName, - destinationPath); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_CollectionName = - new LazySingletonValue<>( - "collection_name", - "\"langchain\"", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = - new LazySingletonValue<>( - "mode", - "\"chroma_local\"", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/PunkApi.java b/src/main/java/com/airbyte/api/models/shared/Clazar.java similarity index 89% rename from src/main/java/com/airbyte/api/models/shared/PunkApi.java rename to src/main/java/com/airbyte/api/models/shared/Clazar.java index ce9cdea53..2af06fe17 100644 --- a/src/main/java/com/airbyte/api/models/shared/PunkApi.java +++ b/src/main/java/com/airbyte/api/models/shared/Clazar.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum PunkApi { - PUNK_API("punk-api"); +public enum Clazar { + CLAZAR("clazar"); @JsonValue private final String value; - private PunkApi(String value) { + private Clazar(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionType.java b/src/main/java/com/airbyte/api/models/shared/Datadog.java similarity index 88% rename from src/main/java/com/airbyte/api/models/shared/EncryptionType.java rename to src/main/java/com/airbyte/api/models/shared/Datadog.java index f9168b44f..301ca8b11 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionType.java +++ b/src/main/java/com/airbyte/api/models/shared/Datadog.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum EncryptionType { - NONE("none"); +public enum Datadog { + DATADOG("datadog"); @JsonValue private final String value; - private EncryptionType(String value) { + private Datadog(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java index aeb49a433..aa5c11490 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java @@ -9,23 +9,48 @@ 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 DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON { + /** + * Add file extensions to the output file. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("file_extension") + private Optional fileExtension; + @JsonProperty("format_type") private DestinationAzureBlobStorageFormatType formatType; @JsonCreator - public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON() { - + public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON( + @JsonProperty("file_extension") Optional fileExtension) { + Utils.checkNotNull(fileExtension, "fileExtension"); + this.fileExtension = fileExtension; this.formatType = Builder._SINGLETON_VALUE_FormatType.value(); } + + public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON() { + this(Optional.empty()); + } + + /** + * Add file extensions to the output file. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional fileExtension() { + return (Optional) fileExtension; + } @JsonIgnore public DestinationAzureBlobStorageFormatType formatType() { @@ -35,6 +60,24 @@ public DestinationAzureBlobStorageFormatType formatType() { public final static Builder builder() { return new Builder(); } + + /** + * Add file extensions to the output file. + */ + public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON withFileExtension(boolean fileExtension) { + Utils.checkNotNull(fileExtension, "fileExtension"); + this.fileExtension = Optional.ofNullable(fileExtension); + return this; + } + + /** + * Add file extensions to the output file. + */ + public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON withFileExtension(Optional fileExtension) { + Utils.checkNotNull(fileExtension, "fileExtension"); + this.fileExtension = fileExtension; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -46,32 +89,64 @@ public boolean equals(java.lang.Object o) { } DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON other = (DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON) o; return + java.util.Objects.deepEquals(this.fileExtension, other.fileExtension) && java.util.Objects.deepEquals(this.formatType, other.formatType); } @Override public int hashCode() { return java.util.Objects.hash( + fileExtension, formatType); } @Override public String toString() { return Utils.toString(DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.class, + "fileExtension", fileExtension, "formatType", formatType); } - public final static class Builder { + public final static class Builder { + + private Optional fileExtension; private Builder() { // force use of static builder() method } + + /** + * Add file extensions to the output file. + */ + public Builder fileExtension(boolean fileExtension) { + Utils.checkNotNull(fileExtension, "fileExtension"); + this.fileExtension = Optional.ofNullable(fileExtension); + return this; + } + + /** + * Add file extensions to the output file. + */ + public Builder fileExtension(Optional fileExtension) { + Utils.checkNotNull(fileExtension, "fileExtension"); + this.fileExtension = fileExtension; + return this; + } public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON build() { + if (fileExtension == null) { + fileExtension = _SINGLETON_VALUE_FileExtension.value(); + } return new DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON( - ); + fileExtension); } + private static final LazySingletonValue> _SINGLETON_VALUE_FileExtension = + new LazySingletonValue<>( + "file_extension", + "false", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_FormatType = new LazySingletonValue<>( "format_type", 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 288541afb..54e71e872 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java @@ -95,6 +95,11 @@ public static DestinationConfiguration of(DestinationElasticsearch value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static DestinationConfiguration of(DestinationFirebolt value) { + Utils.checkNotNull(value, "value"); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static DestinationConfiguration of(DestinationFirestore value) { Utils.checkNotNull(value, "value"); return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -105,11 +110,6 @@ public static DestinationConfiguration of(DestinationGcs value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static DestinationConfiguration of(DestinationLangchain 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(){})); @@ -230,9 +230,9 @@ public static DestinationConfiguration of(DestinationYellowbrick value) { *
  • {@code DestinationDuckdb}
  • *
  • {@code DestinationDynamodb}
  • *
  • {@code DestinationElasticsearch}
  • + *
  • {@code DestinationFirebolt}
  • *
  • {@code DestinationFirestore}
  • *
  • {@code DestinationGcs}
  • - *
  • {@code DestinationLangchain}
  • *
  • {@code DestinationMilvus}
  • *
  • {@code DestinationMongodb}
  • *
  • {@code DestinationMssql}
  • @@ -305,9 +305,9 @@ 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), diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java b/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java new file mode 100644 index 000000000..f0440eb9b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java @@ -0,0 +1,419 @@ +/* + * 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 DestinationFirebolt { + + /** + * Firebolt account to login. + */ + @JsonProperty("account") + private String account; + + /** + * Firebolt service account ID. + */ + @JsonProperty("client_id") + private String clientId; + + /** + * Firebolt secret, corresponding to the service account ID. + */ + @JsonProperty("client_secret") + private String clientSecret; + + /** + * The database to connect to. + */ + @JsonProperty("database") + private String database; + + @JsonProperty("destinationType") + private Firebolt destinationType; + + /** + * Engine name to connect to. + */ + @JsonProperty("engine") + private String engine; + + /** + * The host name of your Firebolt database. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("host") + private Optional host; + + /** + * Loading method used to select the way data will be uploaded to Firebolt + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("loading_method") + private Optional loadingMethod; + + @JsonCreator + public DestinationFirebolt( + @JsonProperty("account") String account, + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("database") String database, + @JsonProperty("engine") String engine, + @JsonProperty("host") Optional host, + @JsonProperty("loading_method") Optional loadingMethod) { + Utils.checkNotNull(account, "account"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(database, "database"); + Utils.checkNotNull(engine, "engine"); + Utils.checkNotNull(host, "host"); + Utils.checkNotNull(loadingMethod, "loadingMethod"); + this.account = account; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.database = database; + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.engine = engine; + this.host = host; + this.loadingMethod = loadingMethod; + } + + public DestinationFirebolt( + String account, + String clientId, + String clientSecret, + String database, + String engine) { + this(account, clientId, clientSecret, database, engine, Optional.empty(), Optional.empty()); + } + + /** + * Firebolt account to login. + */ + @JsonIgnore + public String account() { + return account; + } + + /** + * Firebolt service account ID. + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * Firebolt secret, corresponding to the service account ID. + */ + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + /** + * The database to connect to. + */ + @JsonIgnore + public String database() { + return database; + } + + @JsonIgnore + public Firebolt destinationType() { + return destinationType; + } + + /** + * Engine name to connect to. + */ + @JsonIgnore + public String engine() { + return engine; + } + + /** + * The host name of your Firebolt database. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional host() { + return (Optional) host; + } + + /** + * Loading method used to select the way data will be uploaded to Firebolt + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional loadingMethod() { + return (Optional) loadingMethod; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Firebolt account to login. + */ + public DestinationFirebolt withAccount(String account) { + Utils.checkNotNull(account, "account"); + this.account = account; + return this; + } + + /** + * Firebolt service account ID. + */ + public DestinationFirebolt withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Firebolt secret, corresponding to the service account ID. + */ + public DestinationFirebolt withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * The database to connect to. + */ + public DestinationFirebolt withDatabase(String database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + /** + * Engine name to connect to. + */ + public DestinationFirebolt withEngine(String engine) { + Utils.checkNotNull(engine, "engine"); + this.engine = engine; + return this; + } + + /** + * The host name of your Firebolt database. + */ + public DestinationFirebolt withHost(String host) { + Utils.checkNotNull(host, "host"); + this.host = Optional.ofNullable(host); + return this; + } + + /** + * The host name of your Firebolt database. + */ + public DestinationFirebolt withHost(Optional host) { + Utils.checkNotNull(host, "host"); + this.host = host; + return this; + } + + /** + * Loading method used to select the way data will be uploaded to Firebolt + */ + public DestinationFirebolt withLoadingMethod(DestinationFireboltLoadingMethod loadingMethod) { + Utils.checkNotNull(loadingMethod, "loadingMethod"); + this.loadingMethod = Optional.ofNullable(loadingMethod); + return this; + } + + /** + * Loading method used to select the way data will be uploaded to Firebolt + */ + public DestinationFirebolt withLoadingMethod(Optional loadingMethod) { + Utils.checkNotNull(loadingMethod, "loadingMethod"); + this.loadingMethod = loadingMethod; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationFirebolt other = (DestinationFirebolt) o; + return + java.util.Objects.deepEquals(this.account, other.account) && + java.util.Objects.deepEquals(this.clientId, other.clientId) && + java.util.Objects.deepEquals(this.clientSecret, other.clientSecret) && + java.util.Objects.deepEquals(this.database, other.database) && + java.util.Objects.deepEquals(this.destinationType, other.destinationType) && + java.util.Objects.deepEquals(this.engine, other.engine) && + java.util.Objects.deepEquals(this.host, other.host) && + java.util.Objects.deepEquals(this.loadingMethod, other.loadingMethod); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + account, + clientId, + clientSecret, + database, + destinationType, + engine, + host, + loadingMethod); + } + + @Override + public String toString() { + return Utils.toString(DestinationFirebolt.class, + "account", account, + "clientId", clientId, + "clientSecret", clientSecret, + "database", database, + "destinationType", destinationType, + "engine", engine, + "host", host, + "loadingMethod", loadingMethod); + } + + public final static class Builder { + + private String account; + + private String clientId; + + private String clientSecret; + + private String database; + + private String engine; + + private Optional host = Optional.empty(); + + private Optional loadingMethod = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * Firebolt account to login. + */ + public Builder account(String account) { + Utils.checkNotNull(account, "account"); + this.account = account; + return this; + } + + /** + * Firebolt service account ID. + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Firebolt secret, corresponding to the service account ID. + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * The database to connect to. + */ + public Builder database(String database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + /** + * Engine name to connect to. + */ + public Builder engine(String engine) { + Utils.checkNotNull(engine, "engine"); + this.engine = engine; + return this; + } + + /** + * The host name of your Firebolt database. + */ + public Builder host(String host) { + Utils.checkNotNull(host, "host"); + this.host = Optional.ofNullable(host); + return this; + } + + /** + * The host name of your Firebolt database. + */ + public Builder host(Optional host) { + Utils.checkNotNull(host, "host"); + this.host = host; + return this; + } + + /** + * Loading method used to select the way data will be uploaded to Firebolt + */ + public Builder loadingMethod(DestinationFireboltLoadingMethod loadingMethod) { + Utils.checkNotNull(loadingMethod, "loadingMethod"); + this.loadingMethod = Optional.ofNullable(loadingMethod); + return this; + } + + /** + * Loading method used to select the way data will be uploaded to Firebolt + */ + public Builder loadingMethod(Optional loadingMethod) { + Utils.checkNotNull(loadingMethod, "loadingMethod"); + this.loadingMethod = loadingMethod; + return this; + } + + public DestinationFirebolt build() { + return new DestinationFirebolt( + account, + clientId, + clientSecret, + database, + engine, + host, + loadingMethod); + } + + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"firebolt\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftEncryption.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java similarity index 65% rename from src/main/java/com/airbyte/api/models/shared/DestinationRedshiftEncryption.java rename to src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java index 0953b3303..ed786a066 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftEncryption.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java @@ -22,34 +22,34 @@ import com.airbyte.api.utils.Utils.JsonShape; /** - * DestinationRedshiftEncryption - How to encrypt the staging data + * DestinationFireboltLoadingMethod - Loading method used to select the way data will be uploaded to Firebolt */ -@JsonDeserialize(using = DestinationRedshiftEncryption._Deserializer.class) -public class DestinationRedshiftEncryption { +@JsonDeserialize(using = DestinationFireboltLoadingMethod._Deserializer.class) +public class DestinationFireboltLoadingMethod { @com.fasterxml.jackson.annotation.JsonValue private TypedObject value; - private DestinationRedshiftEncryption(TypedObject value) { + private DestinationFireboltLoadingMethod(TypedObject value) { this.value = value; } - public static DestinationRedshiftEncryption of(NoEncryption value) { + public static DestinationFireboltLoadingMethod of(SQLInserts value) { Utils.checkNotNull(value, "value"); - return new DestinationRedshiftEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new DestinationFireboltLoadingMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static DestinationRedshiftEncryption of(AESCBCEnvelopeEncryption value) { + public static DestinationFireboltLoadingMethod of(ExternalTableViaS3 value) { Utils.checkNotNull(value, "value"); - return new DestinationRedshiftEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new DestinationFireboltLoadingMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
      - *
    • {@code NoEncryption}
    • - *
    • {@code AESCBCEnvelopeEncryption}
    • + *
    • {@code SQLInserts}
    • + *
    • {@code ExternalTableViaS3}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -75,7 +75,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DestinationRedshiftEncryption other = (DestinationRedshiftEncryption) o; + DestinationFireboltLoadingMethod other = (DestinationFireboltLoadingMethod) o; return java.util.Objects.deepEquals(this.value.value(), other.value.value()); } @@ -85,18 +85,18 @@ public int hashCode() { } @SuppressWarnings("serial") - public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeserializer { + public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeserializer { public _Deserializer() { - super(DestinationRedshiftEncryption.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + super(DestinationFireboltLoadingMethod.class, + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } @Override public String toString() { - return Utils.toString(DestinationRedshiftEncryption.class, + return Utils.toString(DestinationFireboltLoadingMethod.class, "value", value); } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java similarity index 85% rename from src/main/java/com/airbyte/api/models/shared/DestinationLangchainMode.java rename to src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java index 340994d0a..bd7694bc1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum DestinationLangchainMode { - OPENAI("openai"); +public enum DestinationFireboltMethod { + SQL("SQL"); @JsonValue private final String value; - private DestinationLangchainMode(String value) { + private DestinationFireboltMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java new file mode 100644 index 000000000..14506c67e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.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 DestinationFireboltSchemasMethod { + S3("S3"); + + @JsonValue + private final String value; + + private DestinationFireboltSchemasMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java b/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java index 7ac248fb9..b46ef87e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java @@ -22,7 +22,7 @@ public class DestinationFirestore { /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.io/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials_json") @@ -54,7 +54,7 @@ public DestinationFirestore( } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.io/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -80,7 +80,7 @@ public final static Builder builder() { } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.io/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. */ public DestinationFirestore withCredentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -89,7 +89,7 @@ public DestinationFirestore withCredentialsJson(String credentialsJson) { } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.io/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. */ public DestinationFirestore withCredentialsJson(Optional credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -148,7 +148,7 @@ private Builder() { } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.io/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. */ public Builder credentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -157,7 +157,7 @@ public Builder credentialsJson(String credentialsJson) { } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.io/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. */ public Builder credentialsJson(Optional credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchain.java b/src/main/java/com/airbyte/api/models/shared/DestinationLangchain.java deleted file mode 100644 index c324415d3..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchain.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.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 DestinationLangchain { - - @JsonProperty("destinationType") - private Langchain destinationType; - - /** - * Embedding configuration - */ - @JsonProperty("embedding") - private DestinationLangchainEmbedding embedding; - - /** - * Indexing configuration - */ - @JsonProperty("indexing") - private DestinationLangchainIndexing indexing; - - @JsonProperty("processing") - private DestinationLangchainProcessingConfigModel processing; - - @JsonCreator - public DestinationLangchain( - @JsonProperty("embedding") DestinationLangchainEmbedding embedding, - @JsonProperty("indexing") DestinationLangchainIndexing indexing, - @JsonProperty("processing") DestinationLangchainProcessingConfigModel processing) { - Utils.checkNotNull(embedding, "embedding"); - Utils.checkNotNull(indexing, "indexing"); - Utils.checkNotNull(processing, "processing"); - this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); - this.embedding = embedding; - this.indexing = indexing; - this.processing = processing; - } - - @JsonIgnore - public Langchain destinationType() { - return destinationType; - } - - /** - * Embedding configuration - */ - @JsonIgnore - public DestinationLangchainEmbedding embedding() { - return embedding; - } - - /** - * Indexing configuration - */ - @JsonIgnore - public DestinationLangchainIndexing indexing() { - return indexing; - } - - @JsonIgnore - public DestinationLangchainProcessingConfigModel processing() { - return processing; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Embedding configuration - */ - public DestinationLangchain withEmbedding(DestinationLangchainEmbedding embedding) { - Utils.checkNotNull(embedding, "embedding"); - this.embedding = embedding; - return this; - } - - /** - * Indexing configuration - */ - public DestinationLangchain withIndexing(DestinationLangchainIndexing indexing) { - Utils.checkNotNull(indexing, "indexing"); - this.indexing = indexing; - return this; - } - - public DestinationLangchain withProcessing(DestinationLangchainProcessingConfigModel processing) { - Utils.checkNotNull(processing, "processing"); - this.processing = processing; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DestinationLangchain other = (DestinationLangchain) o; - return - java.util.Objects.deepEquals(this.destinationType, other.destinationType) && - java.util.Objects.deepEquals(this.embedding, other.embedding) && - java.util.Objects.deepEquals(this.indexing, other.indexing) && - java.util.Objects.deepEquals(this.processing, other.processing); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - destinationType, - embedding, - indexing, - processing); - } - - @Override - public String toString() { - return Utils.toString(DestinationLangchain.class, - "destinationType", destinationType, - "embedding", embedding, - "indexing", indexing, - "processing", processing); - } - - public final static class Builder { - - private DestinationLangchainEmbedding embedding; - - private DestinationLangchainIndexing indexing; - - private DestinationLangchainProcessingConfigModel processing; - - private Builder() { - // force use of static builder() method - } - - /** - * Embedding configuration - */ - public Builder embedding(DestinationLangchainEmbedding embedding) { - Utils.checkNotNull(embedding, "embedding"); - this.embedding = embedding; - return this; - } - - /** - * Indexing configuration - */ - public Builder indexing(DestinationLangchainIndexing indexing) { - Utils.checkNotNull(indexing, "indexing"); - this.indexing = indexing; - return this; - } - - public Builder processing(DestinationLangchainProcessingConfigModel processing) { - Utils.checkNotNull(processing, "processing"); - this.processing = processing; - return this; - } - - public DestinationLangchain build() { - return new DestinationLangchain( - embedding, - indexing, - processing); - } - - private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = - new LazySingletonValue<>( - "destinationType", - "\"langchain\"", - new TypeReference() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationLangchainFake.java deleted file mode 100644 index d99e68075..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainFake.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -/** - * DestinationLangchainFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. - */ - -public class DestinationLangchainFake { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mode") - private Optional mode; - - @JsonCreator - public DestinationLangchainFake() { - - this.mode = Builder._SINGLETON_VALUE_Mode.value(); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mode() { - return (Optional) mode; - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DestinationLangchainFake other = (DestinationLangchainFake) o; - return - java.util.Objects.deepEquals(this.mode, other.mode); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mode); - } - - @Override - public String toString() { - return Utils.toString(DestinationLangchainFake.class, - "mode", mode); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public DestinationLangchainFake build() { - return new DestinationLangchainFake( - ); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = - new LazySingletonValue<>( - "mode", - "\"fake\"", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainIndexing.java b/src/main/java/com/airbyte/api/models/shared/DestinationLangchainIndexing.java deleted file mode 100644 index 18ab9b53e..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainIndexing.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.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; - -/** - * DestinationLangchainIndexing - Indexing configuration - */ - -@JsonDeserialize(using = DestinationLangchainIndexing._Deserializer.class) -public class DestinationLangchainIndexing { - - @com.fasterxml.jackson.annotation.JsonValue - private TypedObject value; - - private DestinationLangchainIndexing(TypedObject value) { - this.value = value; - } - - public static DestinationLangchainIndexing of(DestinationLangchainPinecone value) { - Utils.checkNotNull(value, "value"); - return new DestinationLangchainIndexing(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static DestinationLangchainIndexing of(DocArrayHnswSearch value) { - Utils.checkNotNull(value, "value"); - return new DestinationLangchainIndexing(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static DestinationLangchainIndexing of(ChromaLocalPersistance value) { - Utils.checkNotNull(value, "value"); - return new DestinationLangchainIndexing(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - /** - * Returns an instance of one of these types: - *

      - *
    • {@code DestinationLangchainPinecone}
    • - *
    • {@code DocArrayHnswSearch}
    • - *
    • {@code ChromaLocalPersistance}
    • - *
    - * - *

    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; - } - DestinationLangchainIndexing other = (DestinationLangchainIndexing) 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(DestinationLangchainIndexing.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(DestinationLangchainIndexing.class, - "value", value); - } - -} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationLangchainOpenAI.java deleted file mode 100644 index aed3bdfc6..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainOpenAI.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -/** - * DestinationLangchainOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. - */ - -public class DestinationLangchainOpenAI { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mode") - private Optional mode; - - @JsonProperty("openai_key") - private String openaiKey; - - @JsonCreator - public DestinationLangchainOpenAI( - @JsonProperty("openai_key") String openaiKey) { - Utils.checkNotNull(openaiKey, "openaiKey"); - this.mode = Builder._SINGLETON_VALUE_Mode.value(); - this.openaiKey = openaiKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mode() { - return (Optional) mode; - } - - @JsonIgnore - public String openaiKey() { - return openaiKey; - } - - public final static Builder builder() { - return new Builder(); - } - - public DestinationLangchainOpenAI withOpenaiKey(String openaiKey) { - Utils.checkNotNull(openaiKey, "openaiKey"); - this.openaiKey = openaiKey; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DestinationLangchainOpenAI other = (DestinationLangchainOpenAI) o; - return - java.util.Objects.deepEquals(this.mode, other.mode) && - java.util.Objects.deepEquals(this.openaiKey, other.openaiKey); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mode, - openaiKey); - } - - @Override - public String toString() { - return Utils.toString(DestinationLangchainOpenAI.class, - "mode", mode, - "openaiKey", openaiKey); - } - - public final static class Builder { - - private String openaiKey; - - private Builder() { - // force use of static builder() method - } - - public Builder openaiKey(String openaiKey) { - Utils.checkNotNull(openaiKey, "openaiKey"); - this.openaiKey = openaiKey; - return this; - } - - public DestinationLangchainOpenAI build() { - return new DestinationLangchainOpenAI( - openaiKey); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = - new LazySingletonValue<>( - "mode", - "\"openai\"", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainPinecone.java b/src/main/java/com/airbyte/api/models/shared/DestinationLangchainPinecone.java deleted file mode 100644 index fdefc1ff4..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainPinecone.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -/** - * DestinationLangchainPinecone - Pinecone is a popular vector store that can be used to store and retrieve embeddings. It is a managed service and can also be queried from outside of langchain. - */ - -public class DestinationLangchainPinecone { - - /** - * Pinecone index to use - */ - @JsonProperty("index") - private String index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mode") - private Optional mode; - - /** - * Pinecone environment to use - */ - @JsonProperty("pinecone_environment") - private String pineconeEnvironment; - - @JsonProperty("pinecone_key") - private String pineconeKey; - - @JsonCreator - public DestinationLangchainPinecone( - @JsonProperty("index") String index, - @JsonProperty("pinecone_environment") String pineconeEnvironment, - @JsonProperty("pinecone_key") String pineconeKey) { - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(pineconeEnvironment, "pineconeEnvironment"); - Utils.checkNotNull(pineconeKey, "pineconeKey"); - this.index = index; - this.mode = Builder._SINGLETON_VALUE_Mode.value(); - this.pineconeEnvironment = pineconeEnvironment; - this.pineconeKey = pineconeKey; - } - - /** - * Pinecone index to use - */ - @JsonIgnore - public String index() { - return index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mode() { - return (Optional) mode; - } - - /** - * Pinecone environment to use - */ - @JsonIgnore - public String pineconeEnvironment() { - return pineconeEnvironment; - } - - @JsonIgnore - public String pineconeKey() { - return pineconeKey; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Pinecone index to use - */ - public DestinationLangchainPinecone withIndex(String index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - /** - * Pinecone environment to use - */ - public DestinationLangchainPinecone withPineconeEnvironment(String pineconeEnvironment) { - Utils.checkNotNull(pineconeEnvironment, "pineconeEnvironment"); - this.pineconeEnvironment = pineconeEnvironment; - return this; - } - - public DestinationLangchainPinecone withPineconeKey(String pineconeKey) { - Utils.checkNotNull(pineconeKey, "pineconeKey"); - this.pineconeKey = pineconeKey; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DestinationLangchainPinecone other = (DestinationLangchainPinecone) o; - return - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.mode, other.mode) && - java.util.Objects.deepEquals(this.pineconeEnvironment, other.pineconeEnvironment) && - java.util.Objects.deepEquals(this.pineconeKey, other.pineconeKey); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - index, - mode, - pineconeEnvironment, - pineconeKey); - } - - @Override - public String toString() { - return Utils.toString(DestinationLangchainPinecone.class, - "index", index, - "mode", mode, - "pineconeEnvironment", pineconeEnvironment, - "pineconeKey", pineconeKey); - } - - public final static class Builder { - - private String index; - - private String pineconeEnvironment; - - private String pineconeKey; - - private Builder() { - // force use of static builder() method - } - - /** - * Pinecone index to use - */ - public Builder index(String index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - /** - * Pinecone environment to use - */ - public Builder pineconeEnvironment(String pineconeEnvironment) { - Utils.checkNotNull(pineconeEnvironment, "pineconeEnvironment"); - this.pineconeEnvironment = pineconeEnvironment; - return this; - } - - public Builder pineconeKey(String pineconeKey) { - Utils.checkNotNull(pineconeKey, "pineconeKey"); - this.pineconeKey = pineconeKey; - return this; - } - - public DestinationLangchainPinecone build() { - return new DestinationLangchainPinecone( - index, - pineconeEnvironment, - pineconeKey); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = - new LazySingletonValue<>( - "mode", - "\"pinecone\"", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationLangchainProcessingConfigModel.java deleted file mode 100644 index 0c6d510fa..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainProcessingConfigModel.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; - -public class DestinationLangchainProcessingConfigModel { - - /** - * Size of overlap between chunks in tokens to store in vector store to better capture relevant context - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("chunk_overlap") - private Optional chunkOverlap; - - /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) - */ - @JsonProperty("chunk_size") - private long chunkSize; - - /** - * List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. - */ - @JsonProperty("text_fields") - private java.util.List textFields; - - @JsonCreator - public DestinationLangchainProcessingConfigModel( - @JsonProperty("chunk_overlap") Optional chunkOverlap, - @JsonProperty("chunk_size") long chunkSize, - @JsonProperty("text_fields") java.util.List textFields) { - Utils.checkNotNull(chunkOverlap, "chunkOverlap"); - Utils.checkNotNull(chunkSize, "chunkSize"); - Utils.checkNotNull(textFields, "textFields"); - this.chunkOverlap = chunkOverlap; - this.chunkSize = chunkSize; - this.textFields = textFields; - } - - public DestinationLangchainProcessingConfigModel( - long chunkSize, - java.util.List textFields) { - this(Optional.empty(), chunkSize, textFields); - } - - /** - * Size of overlap between chunks in tokens to store in vector store to better capture relevant context - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chunkOverlap() { - return (Optional) chunkOverlap; - } - - /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) - */ - @JsonIgnore - public long chunkSize() { - return chunkSize; - } - - /** - * List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. - */ - @JsonIgnore - public java.util.List textFields() { - return textFields; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Size of overlap between chunks in tokens to store in vector store to better capture relevant context - */ - public DestinationLangchainProcessingConfigModel withChunkOverlap(long chunkOverlap) { - Utils.checkNotNull(chunkOverlap, "chunkOverlap"); - this.chunkOverlap = Optional.ofNullable(chunkOverlap); - return this; - } - - /** - * Size of overlap between chunks in tokens to store in vector store to better capture relevant context - */ - public DestinationLangchainProcessingConfigModel withChunkOverlap(Optional chunkOverlap) { - Utils.checkNotNull(chunkOverlap, "chunkOverlap"); - this.chunkOverlap = chunkOverlap; - return this; - } - - /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) - */ - public DestinationLangchainProcessingConfigModel withChunkSize(long chunkSize) { - Utils.checkNotNull(chunkSize, "chunkSize"); - this.chunkSize = chunkSize; - return this; - } - - /** - * List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. - */ - public DestinationLangchainProcessingConfigModel withTextFields(java.util.List textFields) { - Utils.checkNotNull(textFields, "textFields"); - this.textFields = textFields; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DestinationLangchainProcessingConfigModel other = (DestinationLangchainProcessingConfigModel) o; - return - java.util.Objects.deepEquals(this.chunkOverlap, other.chunkOverlap) && - java.util.Objects.deepEquals(this.chunkSize, other.chunkSize) && - java.util.Objects.deepEquals(this.textFields, other.textFields); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - chunkOverlap, - chunkSize, - textFields); - } - - @Override - public String toString() { - return Utils.toString(DestinationLangchainProcessingConfigModel.class, - "chunkOverlap", chunkOverlap, - "chunkSize", chunkSize, - "textFields", textFields); - } - - public final static class Builder { - - private Optional chunkOverlap; - - private Long chunkSize; - - private java.util.List textFields; - - private Builder() { - // force use of static builder() method - } - - /** - * Size of overlap between chunks in tokens to store in vector store to better capture relevant context - */ - public Builder chunkOverlap(long chunkOverlap) { - Utils.checkNotNull(chunkOverlap, "chunkOverlap"); - this.chunkOverlap = Optional.ofNullable(chunkOverlap); - return this; - } - - /** - * Size of overlap between chunks in tokens to store in vector store to better capture relevant context - */ - public Builder chunkOverlap(Optional chunkOverlap) { - Utils.checkNotNull(chunkOverlap, "chunkOverlap"); - this.chunkOverlap = chunkOverlap; - return this; - } - - /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) - */ - public Builder chunkSize(long chunkSize) { - Utils.checkNotNull(chunkSize, "chunkSize"); - this.chunkSize = chunkSize; - return this; - } - - /** - * List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. - */ - public Builder textFields(java.util.List textFields) { - Utils.checkNotNull(textFields, "textFields"); - this.textFields = textFields; - return this; - } - - public DestinationLangchainProcessingConfigModel build() { - if (chunkOverlap == null) { - chunkOverlap = _SINGLETON_VALUE_ChunkOverlap.value(); - } - return new DestinationLangchainProcessingConfigModel( - chunkOverlap, - chunkSize, - textFields); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_ChunkOverlap = - new LazySingletonValue<>( - "chunk_overlap", - "0", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftEncryptionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftEncryptionType.java deleted file mode 100644 index 797af9ca1..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftEncryptionType.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; - -public enum DestinationRedshiftEncryptionType { - AES_CBC_ENVELOPE("aes_cbc_envelope"); - - @JsonValue - private final String value; - - private DestinationRedshiftEncryptionType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasMethod.java deleted file mode 100644 index 844545ead..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasMethod.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; - -public enum DestinationRedshiftSchemasMethod { - STANDARD("Standard"); - - @JsonValue - private final String value; - - private DestinationRedshiftSchemasMethod(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3.java index ad8c6ffe2..86e2cd1fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3.java @@ -44,6 +44,13 @@ public class DestinationS3 { @JsonProperty("format") private DestinationS3OutputFormat format; + /** + * The Role ARN + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("role_arn") + private Optional roleArn; + /** * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. */ @@ -89,6 +96,7 @@ public DestinationS3( @JsonProperty("access_key_id") Optional accessKeyId, @JsonProperty("file_name_pattern") Optional fileNamePattern, @JsonProperty("format") DestinationS3OutputFormat format, + @JsonProperty("role_arn") Optional roleArn, @JsonProperty("s3_bucket_name") String s3BucketName, @JsonProperty("s3_bucket_path") String s3BucketPath, @JsonProperty("s3_bucket_region") Optional s3BucketRegion, @@ -98,6 +106,7 @@ public DestinationS3( Utils.checkNotNull(accessKeyId, "accessKeyId"); Utils.checkNotNull(fileNamePattern, "fileNamePattern"); Utils.checkNotNull(format, "format"); + Utils.checkNotNull(roleArn, "roleArn"); Utils.checkNotNull(s3BucketName, "s3BucketName"); Utils.checkNotNull(s3BucketPath, "s3BucketPath"); Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); @@ -108,6 +117,7 @@ public DestinationS3( this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); this.fileNamePattern = fileNamePattern; this.format = format; + this.roleArn = roleArn; this.s3BucketName = s3BucketName; this.s3BucketPath = s3BucketPath; this.s3BucketRegion = s3BucketRegion; @@ -120,7 +130,7 @@ public DestinationS3( DestinationS3OutputFormat format, String s3BucketName, String s3BucketPath) { - this(Optional.empty(), Optional.empty(), format, s3BucketName, s3BucketPath, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), format, Optional.empty(), s3BucketName, s3BucketPath, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -154,6 +164,15 @@ public DestinationS3OutputFormat format() { return format; } + /** + * The Role ARN + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional roleArn() { + return (Optional) roleArn; + } + /** * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. */ @@ -255,6 +274,24 @@ public DestinationS3 withFormat(DestinationS3OutputFormat format) { return this; } + /** + * The Role ARN + */ + public DestinationS3 withRoleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + /** + * The Role ARN + */ + public DestinationS3 withRoleArn(Optional roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + /** * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. */ @@ -359,6 +396,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.destinationType, other.destinationType) && java.util.Objects.deepEquals(this.fileNamePattern, other.fileNamePattern) && java.util.Objects.deepEquals(this.format, other.format) && + java.util.Objects.deepEquals(this.roleArn, other.roleArn) && java.util.Objects.deepEquals(this.s3BucketName, other.s3BucketName) && java.util.Objects.deepEquals(this.s3BucketPath, other.s3BucketPath) && java.util.Objects.deepEquals(this.s3BucketRegion, other.s3BucketRegion) && @@ -374,6 +412,7 @@ public int hashCode() { destinationType, fileNamePattern, format, + roleArn, s3BucketName, s3BucketPath, s3BucketRegion, @@ -389,6 +428,7 @@ public String toString() { "destinationType", destinationType, "fileNamePattern", fileNamePattern, "format", format, + "roleArn", roleArn, "s3BucketName", s3BucketName, "s3BucketPath", s3BucketPath, "s3BucketRegion", s3BucketRegion, @@ -405,6 +445,8 @@ public final static class Builder { private DestinationS3OutputFormat format; + private Optional roleArn = Optional.empty(); + private String s3BucketName; private String s3BucketPath; @@ -466,6 +508,24 @@ public Builder format(DestinationS3OutputFormat format) { return this; } + /** + * The Role ARN + */ + public Builder roleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + /** + * The Role ARN + */ + public Builder roleArn(Optional roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + /** * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. */ @@ -567,6 +627,7 @@ public DestinationS3 build() { accessKeyId, fileNamePattern, format, + roleArn, s3BucketName, s3BucketPath, s3BucketRegion, diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java index bcff0c111..f833cd5fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java @@ -87,7 +87,7 @@ public class DestinationSnowflake { private String username; /** - * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to sync data into + * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to use as a compute cluster */ @JsonProperty("warehouse") private String warehouse; @@ -228,7 +228,7 @@ public String username() { } /** - * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to sync data into + * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to use as a compute cluster */ @JsonIgnore public String warehouse() { @@ -369,7 +369,7 @@ public DestinationSnowflake withUsername(String username) { } /** - * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to sync data into + * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to use as a compute cluster */ public DestinationSnowflake withWarehouse(String warehouse) { Utils.checkNotNull(warehouse, "warehouse"); @@ -593,7 +593,7 @@ public Builder username(String username) { } /** - * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to sync data into + * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to use as a compute cluster */ public Builder warehouse(String warehouse) { Utils.checkNotNull(warehouse, "warehouse"); diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java index fb2bac38d..340febf24 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java @@ -46,7 +46,7 @@ public class DestinationSnowflakeCortex { * Snowflake can be used to store vector data and retrieve embeddings. */ @JsonProperty("indexing") - private DestinationSnowflakeCortexIndexing indexing; + private SnowflakeConnection indexing; /** * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. @@ -61,7 +61,7 @@ public class DestinationSnowflakeCortex { @JsonCreator public DestinationSnowflakeCortex( @JsonProperty("embedding") DestinationSnowflakeCortexEmbedding embedding, - @JsonProperty("indexing") DestinationSnowflakeCortexIndexing indexing, + @JsonProperty("indexing") SnowflakeConnection indexing, @JsonProperty("omit_raw_text") Optional omitRawText, @JsonProperty("processing") DestinationSnowflakeCortexProcessingConfigModel processing) { Utils.checkNotNull(embedding, "embedding"); @@ -77,7 +77,7 @@ public DestinationSnowflakeCortex( public DestinationSnowflakeCortex( DestinationSnowflakeCortexEmbedding embedding, - DestinationSnowflakeCortexIndexing indexing, + SnowflakeConnection indexing, DestinationSnowflakeCortexProcessingConfigModel processing) { this(embedding, indexing, Optional.empty(), processing); } @@ -99,7 +99,7 @@ public DestinationSnowflakeCortexEmbedding embedding() { * Snowflake can be used to store vector data and retrieve embeddings. */ @JsonIgnore - public DestinationSnowflakeCortexIndexing indexing() { + public SnowflakeConnection indexing() { return indexing; } @@ -133,7 +133,7 @@ public DestinationSnowflakeCortex withEmbedding(DestinationSnowflakeCortexEmbedd /** * Snowflake can be used to store vector data and retrieve embeddings. */ - public DestinationSnowflakeCortex withIndexing(DestinationSnowflakeCortexIndexing indexing) { + public DestinationSnowflakeCortex withIndexing(SnowflakeConnection indexing) { Utils.checkNotNull(indexing, "indexing"); this.indexing = indexing; return this; @@ -204,7 +204,7 @@ public final static class Builder { private DestinationSnowflakeCortexEmbedding embedding; - private DestinationSnowflakeCortexIndexing indexing; + private SnowflakeConnection indexing; private Optional omitRawText; @@ -226,7 +226,7 @@ public Builder embedding(DestinationSnowflakeCortexEmbedding embedding) { /** * Snowflake can be used to store vector data and retrieve embeddings. */ - public Builder indexing(DestinationSnowflakeCortexIndexing indexing) { + public Builder indexing(SnowflakeConnection indexing) { Utils.checkNotNull(indexing, "indexing"); this.indexing = indexing; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java b/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java index 9b23bdd97..16cfa3ae4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java +++ b/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java @@ -16,7 +16,7 @@ import java.math.BigDecimal; import java.math.BigInteger; /** - * DetectChangesWithXminSystemColumn - <i>Recommended</i> - Incrementally reads new inserts and updates via Postgres <a href="https://docs.airbyte.com/integrations/sources/postgres/#xmin">Xmin system column</a>. Only recommended for tables up to 500GB. + * DetectChangesWithXminSystemColumn - <i>Recommended</i> - Incrementally reads new inserts and updates via Postgres <a href="https://docs.airbyte.com/integrations/sources/postgres/#xmin">Xmin system column</a>. Suitable for databases that have low transaction pressure. */ public class DetectChangesWithXminSystemColumn { diff --git a/src/main/java/com/airbyte/api/models/shared/DocArrayHnswSearch.java b/src/main/java/com/airbyte/api/models/shared/DocArrayHnswSearch.java deleted file mode 100644 index d0f6d1074..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DocArrayHnswSearch.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -/** - * DocArrayHnswSearch - DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite. - */ - -public class DocArrayHnswSearch { - - /** - * Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run. - */ - @JsonProperty("destination_path") - private String destinationPath; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mode") - private Optional mode; - - @JsonCreator - public DocArrayHnswSearch( - @JsonProperty("destination_path") String destinationPath) { - Utils.checkNotNull(destinationPath, "destinationPath"); - this.destinationPath = destinationPath; - this.mode = Builder._SINGLETON_VALUE_Mode.value(); - } - - /** - * Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run. - */ - @JsonIgnore - public String destinationPath() { - return destinationPath; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mode() { - return (Optional) mode; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run. - */ - public DocArrayHnswSearch withDestinationPath(String destinationPath) { - Utils.checkNotNull(destinationPath, "destinationPath"); - this.destinationPath = destinationPath; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DocArrayHnswSearch other = (DocArrayHnswSearch) o; - return - java.util.Objects.deepEquals(this.destinationPath, other.destinationPath) && - java.util.Objects.deepEquals(this.mode, other.mode); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - destinationPath, - mode); - } - - @Override - public String toString() { - return Utils.toString(DocArrayHnswSearch.class, - "destinationPath", destinationPath, - "mode", mode); - } - - public final static class Builder { - - private String destinationPath; - - private Builder() { - // force use of static builder() method - } - - /** - * Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run. - */ - public Builder destinationPath(String destinationPath) { - Utils.checkNotNull(destinationPath, "destinationPath"); - this.destinationPath = destinationPath; - return this; - } - - public DocArrayHnswSearch build() { - return new DocArrayHnswSearch( - destinationPath); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = - new LazySingletonValue<>( - "mode", - "\"DocArrayHnswSearch\"", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingIndexingMode.java b/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java similarity index 76% rename from src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingIndexingMode.java rename to src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java index c07e1e701..1a3655254 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java @@ -15,13 +15,17 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum DestinationLangchainSchemasIndexingIndexingMode { - DOC_ARRAY_HNSW_SEARCH("DocArrayHnswSearch"); +/** + * DomainRegionCode - Domain region code. 'EU' or 'US' are possible values. The default is 'US'. + */ +public enum DomainRegionCode { + US("US"), + EU("EU"); @JsonValue private final String value; - private DestinationLangchainSchemasIndexingIndexingMode(String value) { + private DomainRegionCode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java b/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java new file mode 100644 index 000000000..5818a93e7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java @@ -0,0 +1,244 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class ExternalTableViaS3 { + + /** + * AWS access key granting read and write access to S3. + */ + @JsonProperty("aws_key_id") + private String awsKeyId; + + /** + * Corresponding secret part of the AWS Key + */ + @JsonProperty("aws_key_secret") + private String awsKeySecret; + + @JsonProperty("method") + private DestinationFireboltSchemasMethod method; + + /** + * The name of the S3 bucket. + */ + @JsonProperty("s3_bucket") + private String s3Bucket; + + /** + * Region name of the S3 bucket. + */ + @JsonProperty("s3_region") + private String s3Region; + + @JsonCreator + public ExternalTableViaS3( + @JsonProperty("aws_key_id") String awsKeyId, + @JsonProperty("aws_key_secret") String awsKeySecret, + @JsonProperty("s3_bucket") String s3Bucket, + @JsonProperty("s3_region") String s3Region) { + Utils.checkNotNull(awsKeyId, "awsKeyId"); + Utils.checkNotNull(awsKeySecret, "awsKeySecret"); + Utils.checkNotNull(s3Bucket, "s3Bucket"); + Utils.checkNotNull(s3Region, "s3Region"); + this.awsKeyId = awsKeyId; + this.awsKeySecret = awsKeySecret; + this.method = Builder._SINGLETON_VALUE_Method.value(); + this.s3Bucket = s3Bucket; + this.s3Region = s3Region; + } + + /** + * AWS access key granting read and write access to S3. + */ + @JsonIgnore + public String awsKeyId() { + return awsKeyId; + } + + /** + * Corresponding secret part of the AWS Key + */ + @JsonIgnore + public String awsKeySecret() { + return awsKeySecret; + } + + @JsonIgnore + public DestinationFireboltSchemasMethod method() { + return method; + } + + /** + * The name of the S3 bucket. + */ + @JsonIgnore + public String s3Bucket() { + return s3Bucket; + } + + /** + * Region name of the S3 bucket. + */ + @JsonIgnore + public String s3Region() { + return s3Region; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * AWS access key granting read and write access to S3. + */ + public ExternalTableViaS3 withAwsKeyId(String awsKeyId) { + Utils.checkNotNull(awsKeyId, "awsKeyId"); + this.awsKeyId = awsKeyId; + return this; + } + + /** + * Corresponding secret part of the AWS Key + */ + public ExternalTableViaS3 withAwsKeySecret(String awsKeySecret) { + Utils.checkNotNull(awsKeySecret, "awsKeySecret"); + this.awsKeySecret = awsKeySecret; + return this; + } + + /** + * The name of the S3 bucket. + */ + public ExternalTableViaS3 withS3Bucket(String s3Bucket) { + Utils.checkNotNull(s3Bucket, "s3Bucket"); + this.s3Bucket = s3Bucket; + return this; + } + + /** + * Region name of the S3 bucket. + */ + public ExternalTableViaS3 withS3Region(String s3Region) { + Utils.checkNotNull(s3Region, "s3Region"); + this.s3Region = s3Region; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalTableViaS3 other = (ExternalTableViaS3) o; + return + java.util.Objects.deepEquals(this.awsKeyId, other.awsKeyId) && + java.util.Objects.deepEquals(this.awsKeySecret, other.awsKeySecret) && + java.util.Objects.deepEquals(this.method, other.method) && + java.util.Objects.deepEquals(this.s3Bucket, other.s3Bucket) && + java.util.Objects.deepEquals(this.s3Region, other.s3Region); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + awsKeyId, + awsKeySecret, + method, + s3Bucket, + s3Region); + } + + @Override + public String toString() { + return Utils.toString(ExternalTableViaS3.class, + "awsKeyId", awsKeyId, + "awsKeySecret", awsKeySecret, + "method", method, + "s3Bucket", s3Bucket, + "s3Region", s3Region); + } + + public final static class Builder { + + private String awsKeyId; + + private String awsKeySecret; + + private String s3Bucket; + + private String s3Region; + + private Builder() { + // force use of static builder() method + } + + /** + * AWS access key granting read and write access to S3. + */ + public Builder awsKeyId(String awsKeyId) { + Utils.checkNotNull(awsKeyId, "awsKeyId"); + this.awsKeyId = awsKeyId; + return this; + } + + /** + * Corresponding secret part of the AWS Key + */ + public Builder awsKeySecret(String awsKeySecret) { + Utils.checkNotNull(awsKeySecret, "awsKeySecret"); + this.awsKeySecret = awsKeySecret; + return this; + } + + /** + * The name of the S3 bucket. + */ + public Builder s3Bucket(String s3Bucket) { + Utils.checkNotNull(s3Bucket, "s3Bucket"); + this.s3Bucket = s3Bucket; + return this; + } + + /** + * Region name of the S3 bucket. + */ + public Builder s3Region(String s3Region) { + Utils.checkNotNull(s3Region, "s3Region"); + this.s3Region = s3Region; + return this; + } + + public ExternalTableViaS3 build() { + return new ExternalTableViaS3( + awsKeyId, + awsKeySecret, + s3Bucket, + s3Region); + } + + private static final LazySingletonValue _SINGLETON_VALUE_Method = + new LazySingletonValue<>( + "method", + "\"S3\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java b/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java index 56de493f6..1398c77b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java @@ -20,89 +20,40 @@ public class FacebookMarketing { - /** - * The Client Id for your OAuth app - */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("client_id") - private Optional clientId; - - /** - * The Client Secret for your OAuth app - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("client_secret") - private Optional clientSecret; + @JsonProperty("credentials") + private Optional credentials; @JsonCreator public FacebookMarketing( - @JsonProperty("client_id") Optional clientId, - @JsonProperty("client_secret") Optional clientSecret) { - Utils.checkNotNull(clientId, "clientId"); - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientId = clientId; - this.clientSecret = clientSecret; + @JsonProperty("credentials") Optional credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; } public FacebookMarketing() { - this(Optional.empty(), Optional.empty()); - } - - /** - * The Client Id for your OAuth app - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional clientId() { - return (Optional) clientId; + this(Optional.empty()); } - /** - * The Client Secret for your OAuth app - */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional clientSecret() { - return (Optional) clientSecret; + public Optional credentials() { + return (Optional) credentials; } public final static Builder builder() { return new Builder(); } - /** - * The Client Id for your OAuth app - */ - public FacebookMarketing withClientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = Optional.ofNullable(clientId); + public FacebookMarketing withCredentials(FacebookMarketingCredentials credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = Optional.ofNullable(credentials); return this; } - /** - * The Client Id for your OAuth app - */ - public FacebookMarketing withClientId(Optional clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * The Client Secret for your OAuth app - */ - public FacebookMarketing withClientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = Optional.ofNullable(clientSecret); - return this; - } - - /** - * The Client Secret for your OAuth app - */ - public FacebookMarketing withClientSecret(Optional clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; + public FacebookMarketing withCredentials(Optional credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; return this; } @@ -116,74 +67,44 @@ public boolean equals(java.lang.Object o) { } FacebookMarketing other = (FacebookMarketing) o; return - java.util.Objects.deepEquals(this.clientId, other.clientId) && - java.util.Objects.deepEquals(this.clientSecret, other.clientSecret); + java.util.Objects.deepEquals(this.credentials, other.credentials); } @Override public int hashCode() { return java.util.Objects.hash( - clientId, - clientSecret); + credentials); } @Override public String toString() { return Utils.toString(FacebookMarketing.class, - "clientId", clientId, - "clientSecret", clientSecret); + "credentials", credentials); } public final static class Builder { - private Optional clientId = Optional.empty(); - - private Optional clientSecret = Optional.empty(); + private Optional credentials = Optional.empty(); private Builder() { // force use of static builder() method } - /** - * The Client Id for your OAuth app - */ - public Builder clientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = Optional.ofNullable(clientId); - return this; - } - - /** - * The Client Id for your OAuth app - */ - public Builder clientId(Optional clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * The Client Secret for your OAuth app - */ - public Builder clientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = Optional.ofNullable(clientSecret); + public Builder credentials(FacebookMarketingCredentials credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = Optional.ofNullable(credentials); return this; } - /** - * The Client Secret for your OAuth app - */ - public Builder clientSecret(Optional clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; + public Builder credentials(Optional credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; return this; } public FacebookMarketing build() { return new FacebookMarketing( - clientId, - clientSecret); + credentials); } } } diff --git a/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java b/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java new file mode 100644 index 000000000..5590e7a52 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java @@ -0,0 +1,190 @@ +/* + * 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.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 FacebookMarketingCredentials { + + /** + * The Client Id for your OAuth app + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("client_id") + private Optional clientId; + + /** + * The Client Secret for your OAuth app + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("client_secret") + private Optional clientSecret; + + @JsonCreator + public FacebookMarketingCredentials( + @JsonProperty("client_id") Optional clientId, + @JsonProperty("client_secret") Optional clientSecret) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientId = clientId; + this.clientSecret = clientSecret; + } + + public FacebookMarketingCredentials() { + this(Optional.empty(), Optional.empty()); + } + + /** + * The Client Id for your OAuth app + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional clientId() { + return (Optional) clientId; + } + + /** + * The Client Secret for your OAuth app + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional clientSecret() { + return (Optional) clientSecret; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The Client Id for your OAuth app + */ + public FacebookMarketingCredentials withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = Optional.ofNullable(clientId); + return this; + } + + /** + * The Client Id for your OAuth app + */ + public FacebookMarketingCredentials withClientId(Optional clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The Client Secret for your OAuth app + */ + public FacebookMarketingCredentials withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = Optional.ofNullable(clientSecret); + return this; + } + + /** + * The Client Secret for your OAuth app + */ + public FacebookMarketingCredentials withClientSecret(Optional clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FacebookMarketingCredentials other = (FacebookMarketingCredentials) o; + return + java.util.Objects.deepEquals(this.clientId, other.clientId) && + java.util.Objects.deepEquals(this.clientSecret, other.clientSecret); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + clientId, + clientSecret); + } + + @Override + public String toString() { + return Utils.toString(FacebookMarketingCredentials.class, + "clientId", clientId, + "clientSecret", clientSecret); + } + + public final static class Builder { + + private Optional clientId = Optional.empty(); + + private Optional clientSecret = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * The Client Id for your OAuth app + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = Optional.ofNullable(clientId); + return this; + } + + /** + * The Client Id for your OAuth app + */ + public Builder clientId(Optional clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The Client Secret for your OAuth app + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = Optional.ofNullable(clientSecret); + return this; + } + + /** + * The Client Secret for your OAuth app + */ + public Builder clientSecret(Optional clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public FacebookMarketingCredentials build() { + return new FacebookMarketingCredentials( + clientId, + clientSecret); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java b/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java new file mode 100644 index 000000000..6c63d20df --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java @@ -0,0 +1,173 @@ +/* + * 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 FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("attribute_key") + private Optional attributeKey; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("attribute_value") + private Optional attributeValue; + + @JsonCreator + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody( + @JsonProperty("attribute_key") Optional attributeKey, + @JsonProperty("attribute_value") Optional attributeValue) { + Utils.checkNotNull(attributeKey, "attributeKey"); + Utils.checkNotNull(attributeValue, "attributeValue"); + this.attributeKey = attributeKey; + this.attributeValue = attributeValue; + } + + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional attributeKey() { + return (Optional) attributeKey; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional attributeValue() { + return (Optional) attributeValue; + } + + public final static Builder builder() { + return new Builder(); + } + + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody withAttributeKey(String attributeKey) { + Utils.checkNotNull(attributeKey, "attributeKey"); + this.attributeKey = Optional.ofNullable(attributeKey); + return this; + } + + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody withAttributeKey(Optional attributeKey) { + Utils.checkNotNull(attributeKey, "attributeKey"); + this.attributeKey = attributeKey; + return this; + } + + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody withAttributeValue(String attributeValue) { + Utils.checkNotNull(attributeValue, "attributeValue"); + this.attributeValue = Optional.ofNullable(attributeValue); + return this; + } + + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody withAttributeValue(Optional attributeValue) { + Utils.checkNotNull(attributeValue, "attributeValue"); + this.attributeValue = attributeValue; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody other = (FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) o; + return + java.util.Objects.deepEquals(this.attributeKey, other.attributeKey) && + java.util.Objects.deepEquals(this.attributeValue, other.attributeValue); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + attributeKey, + attributeValue); + } + + @Override + public String toString() { + return Utils.toString(FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.class, + "attributeKey", attributeKey, + "attributeValue", attributeValue); + } + + public final static class Builder { + + private Optional attributeKey; + + private Optional attributeValue; + + private Builder() { + // force use of static builder() method + } + + public Builder attributeKey(String attributeKey) { + Utils.checkNotNull(attributeKey, "attributeKey"); + this.attributeKey = Optional.ofNullable(attributeKey); + return this; + } + + public Builder attributeKey(Optional attributeKey) { + Utils.checkNotNull(attributeKey, "attributeKey"); + this.attributeKey = attributeKey; + return this; + } + + public Builder attributeValue(String attributeValue) { + Utils.checkNotNull(attributeValue, "attributeValue"); + this.attributeValue = Optional.ofNullable(attributeValue); + return this; + } + + public Builder attributeValue(Optional attributeValue) { + Utils.checkNotNull(attributeValue, "attributeValue"); + this.attributeValue = attributeValue; + return this; + } + + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody build() { + if (attributeKey == null) { + attributeKey = _SINGLETON_VALUE_AttributeKey.value(); + } + if (attributeValue == null) { + attributeValue = _SINGLETON_VALUE_AttributeValue.value(); + } + return new FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody( + attributeKey, + attributeValue); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_AttributeKey = + new LazySingletonValue<>( + "attribute_key", + "\"EventName\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_AttributeValue = + new LazySingletonValue<>( + "attribute_value", + "\"ListInstanceAssociations\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Langchain.java b/src/main/java/com/airbyte/api/models/shared/Fleetio.java similarity index 88% rename from src/main/java/com/airbyte/api/models/shared/Langchain.java rename to src/main/java/com/airbyte/api/models/shared/Fleetio.java index 20891ace3..c83889442 100644 --- a/src/main/java/com/airbyte/api/models/shared/Langchain.java +++ b/src/main/java/com/airbyte/api/models/shared/Fleetio.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum Langchain { - LANGCHAIN("langchain"); +public enum Fleetio { + FLEETIO("fleetio"); @JsonValue private final String value; - private Langchain(String value) { + private Fleetio(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Goldcast.java b/src/main/java/com/airbyte/api/models/shared/Goldcast.java new file mode 100644 index 000000000..b6356eada --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Goldcast.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 Goldcast { + GOLDCAST("goldcast"); + + @JsonValue + private final String value; + + private Goldcast(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsV4ServiceAccountOnly.java b/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsV4ServiceAccountOnly.java deleted file mode 100644 index 252b54f38..000000000 --- a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsV4ServiceAccountOnly.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; - -public enum GoogleAnalyticsV4ServiceAccountOnly { - GOOGLE_ANALYTICS_V4_SERVICE_ACCOUNT_ONLY("google-analytics-v4-service-account-only"); - - @JsonValue - private final String value; - - private GoogleAnalyticsV4ServiceAccountOnly(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/InsightConfig.java b/src/main/java/com/airbyte/api/models/shared/InsightConfig.java index cfccf5869..19eb4273d 100644 --- a/src/main/java/com/airbyte/api/models/shared/InsightConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/InsightConfig.java @@ -97,7 +97,7 @@ public class InsightConfig { private Optional startDate; /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("time_increment") @@ -235,7 +235,7 @@ public Optional startDate() { } /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -419,7 +419,7 @@ public InsightConfig withStartDate(Optional startDate) } /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. */ public InsightConfig withTimeIncrement(long timeIncrement) { Utils.checkNotNull(timeIncrement, "timeIncrement"); @@ -428,7 +428,7 @@ public InsightConfig withTimeIncrement(long timeIncrement) { } /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. */ public InsightConfig withTimeIncrement(Optional timeIncrement) { Utils.checkNotNull(timeIncrement, "timeIncrement"); @@ -691,7 +691,7 @@ public Builder startDate(Optional startDate) { } /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. */ public Builder timeIncrement(long timeIncrement) { Utils.checkNotNull(timeIncrement, "timeIncrement"); @@ -700,7 +700,7 @@ public Builder timeIncrement(long timeIncrement) { } /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. */ public Builder timeIncrement(Optional timeIncrement) { Utils.checkNotNull(timeIncrement, "timeIncrement"); diff --git a/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java index b93caf12d..fe339d980 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java @@ -20,7 +20,9 @@ */ public enum JobTypeEnum { SYNC("sync"), - RESET("reset"); + RESET("reset"), + REFRESH("refresh"), + CLEAR("clear"); @JsonValue private final String value; diff --git a/src/main/java/com/airbyte/api/models/shared/NoEncryption.java b/src/main/java/com/airbyte/api/models/shared/NoEncryption.java deleted file mode 100644 index 219f047fc..000000000 --- a/src/main/java/com/airbyte/api/models/shared/NoEncryption.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -/** - * NoEncryption - Staging data will be stored in plaintext. - */ - -public class NoEncryption { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("encryption_type") - private Optional encryptionType; - - @JsonCreator - public NoEncryption() { - - this.encryptionType = Builder._SINGLETON_VALUE_EncryptionType.value(); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional encryptionType() { - return (Optional) encryptionType; - } - - 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; - } - NoEncryption other = (NoEncryption) o; - return - java.util.Objects.deepEquals(this.encryptionType, other.encryptionType); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - encryptionType); - } - - @Override - public String toString() { - return Utils.toString(NoEncryption.class, - "encryptionType", encryptionType); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public NoEncryption build() { - return new NoEncryption( - ); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_EncryptionType = - new LazySingletonValue<>( - "encryption_type", - "\"none\"", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java b/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java new file mode 100644 index 000000000..ff9ed3a66 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java @@ -0,0 +1,151 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +/** + * OrganizationResponse - Provides details of a single organization for a user. + */ + +public class OrganizationResponse { + + @JsonProperty("email") + private String email; + + @JsonProperty("organizationId") + private String organizationId; + + @JsonProperty("organizationName") + private String organizationName; + + @JsonCreator + public OrganizationResponse( + @JsonProperty("email") String email, + @JsonProperty("organizationId") String organizationId, + @JsonProperty("organizationName") String organizationName) { + Utils.checkNotNull(email, "email"); + Utils.checkNotNull(organizationId, "organizationId"); + Utils.checkNotNull(organizationName, "organizationName"); + this.email = email; + this.organizationId = organizationId; + this.organizationName = organizationName; + } + + @JsonIgnore + public String email() { + return email; + } + + @JsonIgnore + public String organizationId() { + return organizationId; + } + + @JsonIgnore + public String organizationName() { + return organizationName; + } + + public final static Builder builder() { + return new Builder(); + } + + public OrganizationResponse withEmail(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + public OrganizationResponse withOrganizationId(String organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + + public OrganizationResponse withOrganizationName(String organizationName) { + Utils.checkNotNull(organizationName, "organizationName"); + this.organizationName = organizationName; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationResponse other = (OrganizationResponse) o; + return + java.util.Objects.deepEquals(this.email, other.email) && + java.util.Objects.deepEquals(this.organizationId, other.organizationId) && + java.util.Objects.deepEquals(this.organizationName, other.organizationName); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + email, + organizationId, + organizationName); + } + + @Override + public String toString() { + return Utils.toString(OrganizationResponse.class, + "email", email, + "organizationId", organizationId, + "organizationName", organizationName); + } + + public final static class Builder { + + private String email; + + private String organizationId; + + private String organizationName; + + private Builder() { + // force use of static builder() method + } + + public Builder email(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + public Builder organizationId(String organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + + public Builder organizationName(String organizationName) { + Utils.checkNotNull(organizationName, "organizationName"); + this.organizationName = organizationName; + return this; + } + + public OrganizationResponse build() { + return new OrganizationResponse( + email, + organizationId, + organizationName); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java b/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java new file mode 100644 index 000000000..3a07d5e7c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java @@ -0,0 +1,93 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +/** + * OrganizationsResponse - List/Array of multiple organizations. + */ + +public class OrganizationsResponse { + + @JsonProperty("data") + private java.util.List data; + + @JsonCreator + public OrganizationsResponse( + @JsonProperty("data") java.util.List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + } + + @JsonIgnore + public java.util.List data() { + return data; + } + + public final static Builder builder() { + return new Builder(); + } + + public OrganizationsResponse withData(java.util.List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationsResponse other = (OrganizationsResponse) o; + return + java.util.Objects.deepEquals(this.data, other.data); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + data); + } + + @Override + public String toString() { + return Utils.toString(OrganizationsResponse.class, + "data", data); + } + + public final static class Builder { + + private java.util.List data; + + private Builder() { + // force use of static builder() method + } + + public Builder data(java.util.List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public OrganizationsResponse build() { + return new OrganizationsResponse( + data); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java index bd95326b4..3ea439095 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java @@ -25,10 +25,10 @@ public class PermissionCreateRequest { private Optional organizationId; /** - * Describes what actions/endpoints the permission entitles to + * Subset of `PermissionType` (removing `instance_admin`), could be used in public-api. */ @JsonProperty("permissionType") - private PermissionType permissionType; + private PublicPermissionType permissionType; /** * Internal Airbyte user ID @@ -43,7 +43,7 @@ public class PermissionCreateRequest { @JsonCreator public PermissionCreateRequest( @JsonProperty("organizationId") Optional organizationId, - @JsonProperty("permissionType") PermissionType permissionType, + @JsonProperty("permissionType") PublicPermissionType permissionType, @JsonProperty("userId") String userId, @JsonProperty("workspaceId") Optional workspaceId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -57,7 +57,7 @@ public PermissionCreateRequest( } public PermissionCreateRequest( - PermissionType permissionType, + PublicPermissionType permissionType, String userId) { this(Optional.empty(), permissionType, userId, Optional.empty()); } @@ -69,10 +69,10 @@ public Optional organizationId() { } /** - * Describes what actions/endpoints the permission entitles to + * Subset of `PermissionType` (removing `instance_admin`), could be used in public-api. */ @JsonIgnore - public PermissionType permissionType() { + public PublicPermissionType permissionType() { return permissionType; } @@ -107,9 +107,9 @@ public PermissionCreateRequest withOrganizationId(Optional org } /** - * Describes what actions/endpoints the permission entitles to + * Subset of `PermissionType` (removing `instance_admin`), could be used in public-api. */ - public PermissionCreateRequest withPermissionType(PermissionType permissionType) { + public PermissionCreateRequest withPermissionType(PublicPermissionType permissionType) { Utils.checkNotNull(permissionType, "permissionType"); this.permissionType = permissionType; return this; @@ -174,7 +174,7 @@ public final static class Builder { private Optional organizationId = Optional.empty(); - private PermissionType permissionType; + private PublicPermissionType permissionType; private String userId; @@ -197,9 +197,9 @@ public Builder organizationId(Optional organizationId) { } /** - * Describes what actions/endpoints the permission entitles to + * Subset of `PermissionType` (removing `instance_admin`), could be used in public-api. */ - public Builder permissionType(PermissionType permissionType) { + public Builder permissionType(PublicPermissionType permissionType) { Utils.checkNotNull(permissionType, "permissionType"); this.permissionType = permissionType; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java b/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java new file mode 100644 index 000000000..c8244fdb6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java @@ -0,0 +1,40 @@ +/* + * 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; + +/** + * PublicPermissionType - Subset of `PermissionType` (removing `instance_admin`), could be used in public-api. + */ +public enum PublicPermissionType { + ORGANIZATION_ADMIN("organization_admin"), + ORGANIZATION_EDITOR("organization_editor"), + ORGANIZATION_READER("organization_reader"), + ORGANIZATION_MEMBER("organization_member"), + WORKSPACE_ADMIN("workspace_admin"), + WORKSPACE_EDITOR("workspace_editor"), + WORKSPACE_READER("workspace_reader"); + + @JsonValue + private final String value; + + private PublicPermissionType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Queries.java b/src/main/java/com/airbyte/api/models/shared/Queries.java new file mode 100644 index 000000000..c9fac755c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Queries.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class Queries { + + /** + * A data source that is powered by the platform. + */ + @JsonProperty("data_source") + private SourceDatadogDataSource dataSource; + + /** + * The variable name for use in queries. + */ + @JsonProperty("name") + private String name; + + /** + * A classic query string. + */ + @JsonProperty("query") + private String query; + + @JsonCreator + public Queries( + @JsonProperty("data_source") SourceDatadogDataSource dataSource, + @JsonProperty("name") String name, + @JsonProperty("query") String query) { + Utils.checkNotNull(dataSource, "dataSource"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(query, "query"); + this.dataSource = dataSource; + this.name = name; + this.query = query; + } + + /** + * A data source that is powered by the platform. + */ + @JsonIgnore + public SourceDatadogDataSource dataSource() { + return dataSource; + } + + /** + * The variable name for use in queries. + */ + @JsonIgnore + public String name() { + return name; + } + + /** + * A classic query string. + */ + @JsonIgnore + public String query() { + return query; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * A data source that is powered by the platform. + */ + public Queries withDataSource(SourceDatadogDataSource dataSource) { + Utils.checkNotNull(dataSource, "dataSource"); + this.dataSource = dataSource; + return this; + } + + /** + * The variable name for use in queries. + */ + public Queries withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * A classic query string. + */ + public Queries withQuery(String query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Queries other = (Queries) o; + return + java.util.Objects.deepEquals(this.dataSource, other.dataSource) && + java.util.Objects.deepEquals(this.name, other.name) && + java.util.Objects.deepEquals(this.query, other.query); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + dataSource, + name, + query); + } + + @Override + public String toString() { + return Utils.toString(Queries.class, + "dataSource", dataSource, + "name", name, + "query", query); + } + + public final static class Builder { + + private SourceDatadogDataSource dataSource; + + private String name; + + private String query; + + private Builder() { + // force use of static builder() method + } + + /** + * A data source that is powered by the platform. + */ + public Builder dataSource(SourceDatadogDataSource dataSource) { + Utils.checkNotNull(dataSource, "dataSource"); + this.dataSource = dataSource; + return this; + } + + /** + * The variable name for use in queries. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * A classic query string. + */ + public Builder query(String query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + public Queries build() { + return new Queries( + dataSource, + name, + query); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingBinaryLogCDC.java b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingBinaryLogCDC.java index 52ec6fb40..5d0e40fde 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingBinaryLogCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingBinaryLogCDC.java @@ -24,6 +24,13 @@ public class ReadChangesUsingBinaryLogCDC { + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("initial_load_timeout_hours") + private Optional initialLoadTimeoutHours; + /** * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. */ @@ -50,12 +57,15 @@ public class ReadChangesUsingBinaryLogCDC { @JsonCreator public ReadChangesUsingBinaryLogCDC( + @JsonProperty("initial_load_timeout_hours") Optional initialLoadTimeoutHours, @JsonProperty("initial_waiting_seconds") Optional initialWaitingSeconds, @JsonProperty("invalid_cdc_cursor_position_behavior") Optional invalidCdcCursorPositionBehavior, @JsonProperty("server_time_zone") Optional serverTimeZone) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); Utils.checkNotNull(serverTimeZone, "serverTimeZone"); + this.initialLoadTimeoutHours = initialLoadTimeoutHours; this.initialWaitingSeconds = initialWaitingSeconds; this.invalidCdcCursorPositionBehavior = invalidCdcCursorPositionBehavior; this.method = Builder._SINGLETON_VALUE_Method.value(); @@ -63,7 +73,16 @@ public ReadChangesUsingBinaryLogCDC( } public ReadChangesUsingBinaryLogCDC() { - this(Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional initialLoadTimeoutHours() { + return (Optional) initialLoadTimeoutHours; } /** @@ -102,6 +121,24 @@ public final static Builder builder() { return new Builder(); } + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public ReadChangesUsingBinaryLogCDC withInitialLoadTimeoutHours(long initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = Optional.ofNullable(initialLoadTimeoutHours); + return this; + } + + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public ReadChangesUsingBinaryLogCDC withInitialLoadTimeoutHours(Optional initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = initialLoadTimeoutHours; + return this; + } + /** * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. */ @@ -166,6 +203,7 @@ public boolean equals(java.lang.Object o) { } ReadChangesUsingBinaryLogCDC other = (ReadChangesUsingBinaryLogCDC) o; return + java.util.Objects.deepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && java.util.Objects.deepEquals(this.initialWaitingSeconds, other.initialWaitingSeconds) && java.util.Objects.deepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && java.util.Objects.deepEquals(this.method, other.method) && @@ -175,6 +213,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return java.util.Objects.hash( + initialLoadTimeoutHours, initialWaitingSeconds, invalidCdcCursorPositionBehavior, method, @@ -184,6 +223,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(ReadChangesUsingBinaryLogCDC.class, + "initialLoadTimeoutHours", initialLoadTimeoutHours, "initialWaitingSeconds", initialWaitingSeconds, "invalidCdcCursorPositionBehavior", invalidCdcCursorPositionBehavior, "method", method, @@ -192,6 +232,8 @@ public String toString() { public final static class Builder { + private Optional initialLoadTimeoutHours; + private Optional initialWaitingSeconds; private Optional invalidCdcCursorPositionBehavior; @@ -202,6 +244,24 @@ private Builder() { // force use of static builder() method } + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public Builder initialLoadTimeoutHours(long initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = Optional.ofNullable(initialLoadTimeoutHours); + return this; + } + + /** + * The amount of time an initial load is allowed to continue for before catching up on CDC logs. + */ + public Builder initialLoadTimeoutHours(Optional initialLoadTimeoutHours) { + Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); + this.initialLoadTimeoutHours = initialLoadTimeoutHours; + return this; + } + /** * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. */ @@ -257,6 +317,9 @@ public Builder serverTimeZone(Optional serverTimeZone) { } public ReadChangesUsingBinaryLogCDC build() { + if (initialLoadTimeoutHours == null) { + initialLoadTimeoutHours = _SINGLETON_VALUE_InitialLoadTimeoutHours.value(); + } if (initialWaitingSeconds == null) { initialWaitingSeconds = _SINGLETON_VALUE_InitialWaitingSeconds.value(); } @@ -264,11 +327,18 @@ public ReadChangesUsingBinaryLogCDC build() { invalidCdcCursorPositionBehavior = _SINGLETON_VALUE_InvalidCdcCursorPositionBehavior.value(); } return new ReadChangesUsingBinaryLogCDC( + initialLoadTimeoutHours, initialWaitingSeconds, invalidCdcCursorPositionBehavior, serverTimeZone); } + private static final LazySingletonValue> _SINGLETON_VALUE_InitialLoadTimeoutHours = + new LazySingletonValue<>( + "initial_load_timeout_hours", + "8", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_InitialWaitingSeconds = new LazySingletonValue<>( "initial_waiting_seconds", diff --git a/src/main/java/com/airbyte/api/models/shared/StreamName.java b/src/main/java/com/airbyte/api/models/shared/ReportName.java similarity index 94% rename from src/main/java/com/airbyte/api/models/shared/StreamName.java rename to src/main/java/com/airbyte/api/models/shared/ReportName.java index bf48fe963..97eb9405d 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamName.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportName.java @@ -15,7 +15,7 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum StreamName { +public enum ReportName { GET_AFN_INVENTORY_DATA("GET_AFN_INVENTORY_DATA"), GET_AFN_INVENTORY_DATA_BY_COUNTRY("GET_AFN_INVENTORY_DATA_BY_COUNTRY"), GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL("GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL"), @@ -51,12 +51,13 @@ public enum StreamName { GET_STRANDED_INVENTORY_UI_DATA("GET_STRANDED_INVENTORY_UI_DATA"), GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE("GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE"), GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL("GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL"), - GET_XML_BROWSE_TREE_DATA("GET_XML_BROWSE_TREE_DATA"); + GET_XML_BROWSE_TREE_DATA("GET_XML_BROWSE_TREE_DATA"), + GET_VENDOR_REAL_TIME_INVENTORY_REPORT("GET_VENDOR_REAL_TIME_INVENTORY_REPORT"); @JsonValue private final String value; - private StreamName(String value) { + private ReportName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ReportOptions.java b/src/main/java/com/airbyte/api/models/shared/ReportOptions.java index e8e1151ab..5baa4bc5a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportOptions.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportOptions.java @@ -23,16 +23,22 @@ public class ReportOptions { @JsonProperty("options_list") private java.util.List optionsList; + @JsonProperty("report_name") + private ReportName reportName; + @JsonProperty("stream_name") - private StreamName streamName; + private String streamName; @JsonCreator public ReportOptions( @JsonProperty("options_list") java.util.List optionsList, - @JsonProperty("stream_name") StreamName streamName) { + @JsonProperty("report_name") ReportName reportName, + @JsonProperty("stream_name") String streamName) { Utils.checkNotNull(optionsList, "optionsList"); + Utils.checkNotNull(reportName, "reportName"); Utils.checkNotNull(streamName, "streamName"); this.optionsList = optionsList; + this.reportName = reportName; this.streamName = streamName; } @@ -45,7 +51,12 @@ public java.util.List optionsList() { } @JsonIgnore - public StreamName streamName() { + public ReportName reportName() { + return reportName; + } + + @JsonIgnore + public String streamName() { return streamName; } @@ -62,7 +73,13 @@ public ReportOptions withOptionsList(java.util.List optionsList) { return this; } - public ReportOptions withStreamName(StreamName streamName) { + public ReportOptions withReportName(ReportName reportName) { + Utils.checkNotNull(reportName, "reportName"); + this.reportName = reportName; + return this; + } + + public ReportOptions withStreamName(String streamName) { Utils.checkNotNull(streamName, "streamName"); this.streamName = streamName; return this; @@ -79,6 +96,7 @@ public boolean equals(java.lang.Object o) { ReportOptions other = (ReportOptions) o; return java.util.Objects.deepEquals(this.optionsList, other.optionsList) && + java.util.Objects.deepEquals(this.reportName, other.reportName) && java.util.Objects.deepEquals(this.streamName, other.streamName); } @@ -86,6 +104,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return java.util.Objects.hash( optionsList, + reportName, streamName); } @@ -93,6 +112,7 @@ public int hashCode() { public String toString() { return Utils.toString(ReportOptions.class, "optionsList", optionsList, + "reportName", reportName, "streamName", streamName); } @@ -100,7 +120,9 @@ public final static class Builder { private java.util.List optionsList; - private StreamName streamName; + private ReportName reportName; + + private String streamName; private Builder() { // force use of static builder() method @@ -115,7 +137,13 @@ public Builder optionsList(java.util.List optionsList) { return this; } - public Builder streamName(StreamName streamName) { + public Builder reportName(ReportName reportName) { + Utils.checkNotNull(reportName, "reportName"); + this.reportName = reportName; + return this; + } + + public Builder streamName(String streamName) { Utils.checkNotNull(streamName, "streamName"); this.streamName = streamName; return this; @@ -124,6 +152,7 @@ public Builder streamName(StreamName streamName) { public ReportOptions build() { return new ReportOptions( optionsList, + reportName, streamName); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Standard.java b/src/main/java/com/airbyte/api/models/shared/SQLInserts.java similarity index 67% rename from src/main/java/com/airbyte/api/models/shared/Standard.java rename to src/main/java/com/airbyte/api/models/shared/SQLInserts.java index 223cc1054..c46073215 100644 --- a/src/main/java/com/airbyte/api/models/shared/Standard.java +++ b/src/main/java/com/airbyte/api/models/shared/SQLInserts.java @@ -15,23 +15,20 @@ import java.lang.Deprecated; import java.math.BigDecimal; import java.math.BigInteger; -/** - * Standard - <i>(not recommended)</i> Direct loading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In all other cases, you should use S3 uploading. - */ -public class Standard { +public class SQLInserts { @JsonProperty("method") - private DestinationRedshiftSchemasMethod method; + private DestinationFireboltMethod method; @JsonCreator - public Standard() { + public SQLInserts() { this.method = Builder._SINGLETON_VALUE_Method.value(); } @JsonIgnore - public DestinationRedshiftSchemasMethod method() { + public DestinationFireboltMethod method() { return method; } @@ -47,7 +44,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Standard other = (Standard) o; + SQLInserts other = (SQLInserts) o; return java.util.Objects.deepEquals(this.method, other.method); } @@ -60,7 +57,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(Standard.class, + return Utils.toString(SQLInserts.class, "method", method); } @@ -70,16 +67,16 @@ private Builder() { // force use of static builder() method } - public Standard build() { - return new Standard( + public SQLInserts build() { + return new SQLInserts( ); } - private static final LazySingletonValue _SINGLETON_VALUE_Method = + private static final LazySingletonValue _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", - "\"Standard\"", - new TypeReference() {}); + "\"SQL\"", + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java b/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java new file mode 100644 index 000000000..a8b055a9e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.SpeakeasyMetadata; +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 SchemeClientCredentials { + + @SpeakeasyMetadata("security:name=clientID") + private String clientID; + + @SpeakeasyMetadata("security:name=clientSecret") + private String clientSecret; + + private String tokenURL; + + @JsonCreator + public SchemeClientCredentials( + String clientID, + String clientSecret) { + Utils.checkNotNull(clientID, "clientID"); + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientID = clientID; + this.clientSecret = clientSecret; + this.tokenURL = Builder._SINGLETON_VALUE_TokenURL.value(); + } + + @JsonIgnore + public String clientID() { + return clientID; + } + + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + @JsonIgnore + public String tokenURL() { + return tokenURL; + } + + public final static Builder builder() { + return new Builder(); + } + + public SchemeClientCredentials withClientID(String clientID) { + Utils.checkNotNull(clientID, "clientID"); + this.clientID = clientID; + return this; + } + + public SchemeClientCredentials withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SchemeClientCredentials other = (SchemeClientCredentials) o; + return + java.util.Objects.deepEquals(this.clientID, other.clientID) && + java.util.Objects.deepEquals(this.clientSecret, other.clientSecret) && + java.util.Objects.deepEquals(this.tokenURL, other.tokenURL); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + clientID, + clientSecret, + tokenURL); + } + + @Override + public String toString() { + return Utils.toString(SchemeClientCredentials.class, + "clientID", clientID, + "clientSecret", clientSecret, + "tokenURL", tokenURL); + } + + public final static class Builder { + + private String clientID; + + private String clientSecret; + + private Builder() { + // force use of static builder() method + } + + public Builder clientID(String clientID) { + Utils.checkNotNull(clientID, "clientID"); + this.clientID = clientID; + return this; + } + + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public SchemeClientCredentials build() { + return new SchemeClientCredentials( + clientID, + clientSecret); + } + + private static final LazySingletonValue _SINGLETON_VALUE_TokenURL = + new LazySingletonValue<>( + "TokenURL", + "\"/applications/token\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Security.java b/src/main/java/com/airbyte/api/models/shared/Security.java index a26e2c463..28321ecf8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Security.java +++ b/src/main/java/com/airbyte/api/models/shared/Security.java @@ -24,14 +24,14 @@ public class Security { @SpeakeasyMetadata("security:scheme=true,type=http,subtype=bearer,name=Authorization") private Optional bearerAuth; - @SpeakeasyMetadata("security:scheme=true,type=oauth2,name=Authorization") - private Optional clientCredentials; + @SpeakeasyMetadata("security:scheme=true,type=oauth2,subtype=client_credentials") + private Optional clientCredentials; @JsonCreator public Security( Optional basicAuth, Optional bearerAuth, - Optional clientCredentials) { + Optional clientCredentials) { Utils.checkNotNull(basicAuth, "basicAuth"); Utils.checkNotNull(bearerAuth, "bearerAuth"); Utils.checkNotNull(clientCredentials, "clientCredentials"); @@ -58,8 +58,8 @@ public Optional bearerAuth() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional clientCredentials() { - return (Optional) clientCredentials; + public Optional clientCredentials() { + return (Optional) clientCredentials; } public final static Builder builder() { @@ -90,13 +90,13 @@ public Security withBearerAuth(Optional bearerAuth) { return this; } - public Security withClientCredentials(String clientCredentials) { + public Security withClientCredentials(SchemeClientCredentials clientCredentials) { Utils.checkNotNull(clientCredentials, "clientCredentials"); this.clientCredentials = Optional.ofNullable(clientCredentials); return this; } - public Security withClientCredentials(Optional clientCredentials) { + public Security withClientCredentials(Optional clientCredentials) { Utils.checkNotNull(clientCredentials, "clientCredentials"); this.clientCredentials = clientCredentials; return this; @@ -139,7 +139,7 @@ public final static class Builder { private Optional bearerAuth = Optional.empty(); - private Optional clientCredentials = Optional.empty(); + private Optional clientCredentials = Optional.empty(); private Builder() { // force use of static builder() method @@ -169,13 +169,13 @@ public Builder bearerAuth(Optional bearerAuth) { return this; } - public Builder clientCredentials(String clientCredentials) { + public Builder clientCredentials(SchemeClientCredentials clientCredentials) { Utils.checkNotNull(clientCredentials, "clientCredentials"); this.clientCredentials = Optional.ofNullable(clientCredentials); return this; } - public Builder clientCredentials(Optional clientCredentials) { + public Builder clientCredentials(Optional clientCredentials) { Utils.checkNotNull(clientCredentials, "clientCredentials"); this.clientCredentials = clientCredentials; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java b/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java new file mode 100644 index 000000000..f5bb918a6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java @@ -0,0 +1,114 @@ +/* + * 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.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; +/** + * SelectedFieldInfo - Path to a field/column/property in a stream to be selected. For example, if the field to be selected is a database column called "foo", this will be ["foo"]. Use multiple path elements for nested schemas. + */ + +public class SelectedFieldInfo { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("fieldPath") + private Optional> fieldPath; + + @JsonCreator + public SelectedFieldInfo( + @JsonProperty("fieldPath") Optional> fieldPath) { + Utils.checkNotNull(fieldPath, "fieldPath"); + this.fieldPath = fieldPath; + } + + public SelectedFieldInfo() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> fieldPath() { + return (Optional>) fieldPath; + } + + public final static Builder builder() { + return new Builder(); + } + + public SelectedFieldInfo withFieldPath(java.util.List fieldPath) { + Utils.checkNotNull(fieldPath, "fieldPath"); + this.fieldPath = Optional.ofNullable(fieldPath); + return this; + } + + public SelectedFieldInfo withFieldPath(Optional> fieldPath) { + Utils.checkNotNull(fieldPath, "fieldPath"); + this.fieldPath = fieldPath; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SelectedFieldInfo other = (SelectedFieldInfo) o; + return + java.util.Objects.deepEquals(this.fieldPath, other.fieldPath); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + fieldPath); + } + + @Override + public String toString() { + return Utils.toString(SelectedFieldInfo.class, + "fieldPath", fieldPath); + } + + public final static class Builder { + + private Optional> fieldPath = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder fieldPath(java.util.List fieldPath) { + Utils.checkNotNull(fieldPath, "fieldPath"); + this.fieldPath = Optional.ofNullable(fieldPath); + return this; + } + + public Builder fieldPath(Optional> fieldPath) { + Utils.checkNotNull(fieldPath, "fieldPath"); + this.fieldPath = fieldPath; + return this; + } + + public SelectedFieldInfo build() { + return new SelectedFieldInfo( + fieldPath); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java index 993333ed0..b09b8432c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java @@ -21,36 +21,36 @@ public class ServiceAccountKeyAuthentication { - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("auth_type") - private Optional authType; - /** - * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. */ - @JsonProperty("credentials_json") - private String credentialsJson; + @JsonProperty("access_token") + private String accessToken; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("auth_type") + private Optional authType; @JsonCreator public ServiceAccountKeyAuthentication( - @JsonProperty("credentials_json") String credentialsJson) { - Utils.checkNotNull(credentialsJson, "credentialsJson"); + @JsonProperty("access_token") String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; this.authType = Builder._SINGLETON_VALUE_AuthType.value(); - this.credentialsJson = credentialsJson; } - @SuppressWarnings("unchecked") + /** + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + */ @JsonIgnore - public Optional authType() { - return (Optional) authType; + public String accessToken() { + return accessToken; } - /** - * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. - */ + @SuppressWarnings("unchecked") @JsonIgnore - public String credentialsJson() { - return credentialsJson; + public Optional authType() { + return (Optional) authType; } public final static Builder builder() { @@ -58,11 +58,11 @@ public final static Builder builder() { } /** - * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. */ - public ServiceAccountKeyAuthentication withCredentialsJson(String credentialsJson) { - Utils.checkNotNull(credentialsJson, "credentialsJson"); - this.credentialsJson = credentialsJson; + public ServiceAccountKeyAuthentication withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; return this; } @@ -76,51 +76,51 @@ public boolean equals(java.lang.Object o) { } ServiceAccountKeyAuthentication other = (ServiceAccountKeyAuthentication) o; return - java.util.Objects.deepEquals(this.authType, other.authType) && - java.util.Objects.deepEquals(this.credentialsJson, other.credentialsJson); + java.util.Objects.deepEquals(this.accessToken, other.accessToken) && + java.util.Objects.deepEquals(this.authType, other.authType); } @Override public int hashCode() { return java.util.Objects.hash( - authType, - credentialsJson); + accessToken, + authType); } @Override public String toString() { return Utils.toString(ServiceAccountKeyAuthentication.class, - "authType", authType, - "credentialsJson", credentialsJson); + "accessToken", accessToken, + "authType", authType); } public final static class Builder { - private String credentialsJson; + private String accessToken; private Builder() { // force use of static builder() method } /** - * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. */ - public Builder credentialsJson(String credentialsJson) { - Utils.checkNotNull(credentialsJson, "credentialsJson"); - this.credentialsJson = credentialsJson; + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; return this; } public ServiceAccountKeyAuthentication build() { return new ServiceAccountKeyAuthentication( - credentialsJson); + accessToken); } - private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"Service\"", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Site.java b/src/main/java/com/airbyte/api/models/shared/Site.java new file mode 100644 index 000000000..33ff7f18d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Site.java @@ -0,0 +1,38 @@ +/* + * 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; + +/** + * Site - The site where Datadog data resides in. + */ +public enum Site { + DATADOGHQ_COM("datadoghq.com"), + US3_DATADOGHQ_COM("us3.datadoghq.com"), + US5_DATADOGHQ_COM("us5.datadoghq.com"), + DATADOGHQ_EU("datadoghq.eu"), + DDOG_GOV_COM("ddog-gov.com"); + + @JsonValue + private final String value; + + private Site(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexIndexing.java b/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java similarity index 86% rename from src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexIndexing.java rename to src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java index b3f324d38..27e05b878 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexIndexing.java +++ b/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java @@ -15,10 +15,10 @@ import java.math.BigDecimal; import java.math.BigInteger; /** - * DestinationSnowflakeCortexIndexing - Snowflake can be used to store vector data and retrieve embeddings. + * SnowflakeConnection - Snowflake can be used to store vector data and retrieve embeddings. */ -public class DestinationSnowflakeCortexIndexing { +public class SnowflakeConnection { @JsonProperty("credentials") private DestinationSnowflakeCortexCredentials credentials; @@ -54,13 +54,13 @@ public class DestinationSnowflakeCortexIndexing { private String username; /** - * Enter the name of the warehouse that you want to sync data into + * Enter the name of the warehouse that you want to use as a compute cluster */ @JsonProperty("warehouse") private String warehouse; @JsonCreator - public DestinationSnowflakeCortexIndexing( + public SnowflakeConnection( @JsonProperty("credentials") DestinationSnowflakeCortexCredentials credentials, @JsonProperty("database") String database, @JsonProperty("default_schema") String defaultSchema, @@ -130,7 +130,7 @@ public String username() { } /** - * Enter the name of the warehouse that you want to sync data into + * Enter the name of the warehouse that you want to use as a compute cluster */ @JsonIgnore public String warehouse() { @@ -141,7 +141,7 @@ public final static Builder builder() { return new Builder(); } - public DestinationSnowflakeCortexIndexing withCredentials(DestinationSnowflakeCortexCredentials credentials) { + public SnowflakeConnection withCredentials(DestinationSnowflakeCortexCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; @@ -150,7 +150,7 @@ public DestinationSnowflakeCortexIndexing withCredentials(DestinationSnowflakeCo /** * Enter the name of the database that you want to sync data into */ - public DestinationSnowflakeCortexIndexing withDatabase(String database) { + public SnowflakeConnection withDatabase(String database) { Utils.checkNotNull(database, "database"); this.database = database; return this; @@ -159,7 +159,7 @@ public DestinationSnowflakeCortexIndexing withDatabase(String database) { /** * Enter the name of the default schema */ - public DestinationSnowflakeCortexIndexing withDefaultSchema(String defaultSchema) { + public SnowflakeConnection withDefaultSchema(String defaultSchema) { Utils.checkNotNull(defaultSchema, "defaultSchema"); this.defaultSchema = defaultSchema; return this; @@ -168,7 +168,7 @@ public DestinationSnowflakeCortexIndexing withDefaultSchema(String defaultSchema /** * Enter the account name you want to use to access the database. This is usually the identifier before .snowflakecomputing.com */ - public DestinationSnowflakeCortexIndexing withHost(String host) { + public SnowflakeConnection withHost(String host) { Utils.checkNotNull(host, "host"); this.host = host; return this; @@ -177,7 +177,7 @@ public DestinationSnowflakeCortexIndexing withHost(String host) { /** * Enter the role that you want to use to access Snowflake */ - public DestinationSnowflakeCortexIndexing withRole(String role) { + public SnowflakeConnection withRole(String role) { Utils.checkNotNull(role, "role"); this.role = role; return this; @@ -186,16 +186,16 @@ public DestinationSnowflakeCortexIndexing withRole(String role) { /** * Enter the name of the user you want to use to access the database */ - public DestinationSnowflakeCortexIndexing withUsername(String username) { + public SnowflakeConnection withUsername(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } /** - * Enter the name of the warehouse that you want to sync data into + * Enter the name of the warehouse that you want to use as a compute cluster */ - public DestinationSnowflakeCortexIndexing withWarehouse(String warehouse) { + public SnowflakeConnection withWarehouse(String warehouse) { Utils.checkNotNull(warehouse, "warehouse"); this.warehouse = warehouse; return this; @@ -209,7 +209,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DestinationSnowflakeCortexIndexing other = (DestinationSnowflakeCortexIndexing) o; + SnowflakeConnection other = (SnowflakeConnection) o; return java.util.Objects.deepEquals(this.credentials, other.credentials) && java.util.Objects.deepEquals(this.database, other.database) && @@ -234,7 +234,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(DestinationSnowflakeCortexIndexing.class, + return Utils.toString(SnowflakeConnection.class, "credentials", credentials, "database", database, "defaultSchema", defaultSchema, @@ -316,7 +316,7 @@ public Builder username(String username) { } /** - * Enter the name of the warehouse that you want to sync data into + * Enter the name of the warehouse that you want to use as a compute cluster */ public Builder warehouse(String warehouse) { Utils.checkNotNull(warehouse, "warehouse"); @@ -324,8 +324,8 @@ public Builder warehouse(String warehouse) { return this; } - public DestinationSnowflakeCortexIndexing build() { - return new DestinationSnowflakeCortexIndexing( + public SnowflakeConnection build() { + return new SnowflakeConnection( credentials, database, defaultSchema, diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java index 5ca4f1805..e9bc27b45 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java @@ -82,7 +82,7 @@ public class SourceAmazonSellerPartner { private Optional replicationEndDate; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("replication_start_date") @@ -217,7 +217,7 @@ public Optional replicationEndDate() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -361,7 +361,7 @@ public SourceAmazonSellerPartner withReplicationEndDate(Optional replicationStartDate) { Utils.checkNotNull(replicationStartDate, "replicationStartDate"); @@ -598,7 +598,7 @@ public Builder replicationEndDate(Optional replication } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. */ public Builder replicationStartDate(OffsetDateTime replicationStartDate) { Utils.checkNotNull(replicationStartDate, "replicationStartDate"); @@ -607,7 +607,7 @@ public Builder replicationStartDate(OffsetDateTime replicationStartDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. */ public Builder replicationStartDate(Optional replicationStartDate) { Utils.checkNotNull(replicationStartDate, "replicationStartDate"); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java b/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java index e02ed8c0d..d24e99745 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java @@ -31,8 +31,9 @@ public class SourceAwsCloudtrail { /** * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("aws_region_name") - private String awsRegionName; + private Optional awsRegionName; /** * AWS CloudTrail Access Key ID. See the <a href="https://docs.airbyte.com/integrations/sources/aws-cloudtrail">docs</a> for more information on how to obtain this key. @@ -40,6 +41,10 @@ public class SourceAwsCloudtrail { @JsonProperty("aws_secret_key") private String awsSecretKey; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lookup_attributes_filter") + private Optional lookupAttributesFilter; + @JsonProperty("sourceType") private AwsCloudtrail sourceType; @@ -53,25 +58,27 @@ public class SourceAwsCloudtrail { @JsonCreator public SourceAwsCloudtrail( @JsonProperty("aws_key_id") String awsKeyId, - @JsonProperty("aws_region_name") String awsRegionName, + @JsonProperty("aws_region_name") Optional awsRegionName, @JsonProperty("aws_secret_key") String awsSecretKey, + @JsonProperty("lookup_attributes_filter") Optional lookupAttributesFilter, @JsonProperty("start_date") Optional startDate) { Utils.checkNotNull(awsKeyId, "awsKeyId"); Utils.checkNotNull(awsRegionName, "awsRegionName"); Utils.checkNotNull(awsSecretKey, "awsSecretKey"); + Utils.checkNotNull(lookupAttributesFilter, "lookupAttributesFilter"); Utils.checkNotNull(startDate, "startDate"); this.awsKeyId = awsKeyId; this.awsRegionName = awsRegionName; this.awsSecretKey = awsSecretKey; + this.lookupAttributesFilter = lookupAttributesFilter; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; } public SourceAwsCloudtrail( String awsKeyId, - String awsRegionName, String awsSecretKey) { - this(awsKeyId, awsRegionName, awsSecretKey, Optional.empty()); + this(awsKeyId, Optional.empty(), awsSecretKey, Optional.empty(), Optional.empty()); } /** @@ -85,9 +92,10 @@ public String awsKeyId() { /** * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. */ + @SuppressWarnings("unchecked") @JsonIgnore - public String awsRegionName() { - return awsRegionName; + public Optional awsRegionName() { + return (Optional) awsRegionName; } /** @@ -98,6 +106,12 @@ public String awsSecretKey() { return awsSecretKey; } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional lookupAttributesFilter() { + return (Optional) lookupAttributesFilter; + } + @JsonIgnore public AwsCloudtrail sourceType() { return sourceType; @@ -129,6 +143,15 @@ public SourceAwsCloudtrail withAwsKeyId(String awsKeyId) { * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. */ public SourceAwsCloudtrail withAwsRegionName(String awsRegionName) { + Utils.checkNotNull(awsRegionName, "awsRegionName"); + this.awsRegionName = Optional.ofNullable(awsRegionName); + return this; + } + + /** + * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. + */ + public SourceAwsCloudtrail withAwsRegionName(Optional awsRegionName) { Utils.checkNotNull(awsRegionName, "awsRegionName"); this.awsRegionName = awsRegionName; return this; @@ -143,6 +166,18 @@ public SourceAwsCloudtrail withAwsSecretKey(String awsSecretKey) { return this; } + public SourceAwsCloudtrail withLookupAttributesFilter(FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody lookupAttributesFilter) { + Utils.checkNotNull(lookupAttributesFilter, "lookupAttributesFilter"); + this.lookupAttributesFilter = Optional.ofNullable(lookupAttributesFilter); + return this; + } + + public SourceAwsCloudtrail withLookupAttributesFilter(Optional lookupAttributesFilter) { + Utils.checkNotNull(lookupAttributesFilter, "lookupAttributesFilter"); + this.lookupAttributesFilter = lookupAttributesFilter; + return this; + } + /** * The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. */ @@ -174,6 +209,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.awsKeyId, other.awsKeyId) && java.util.Objects.deepEquals(this.awsRegionName, other.awsRegionName) && java.util.Objects.deepEquals(this.awsSecretKey, other.awsSecretKey) && + java.util.Objects.deepEquals(this.lookupAttributesFilter, other.lookupAttributesFilter) && java.util.Objects.deepEquals(this.sourceType, other.sourceType) && java.util.Objects.deepEquals(this.startDate, other.startDate); } @@ -184,6 +220,7 @@ public int hashCode() { awsKeyId, awsRegionName, awsSecretKey, + lookupAttributesFilter, sourceType, startDate); } @@ -194,6 +231,7 @@ public String toString() { "awsKeyId", awsKeyId, "awsRegionName", awsRegionName, "awsSecretKey", awsSecretKey, + "lookupAttributesFilter", lookupAttributesFilter, "sourceType", sourceType, "startDate", startDate); } @@ -202,11 +240,13 @@ public final static class Builder { private String awsKeyId; - private String awsRegionName; + private Optional awsRegionName; private String awsSecretKey; - private Optional startDate; + private Optional lookupAttributesFilter = Optional.empty(); + + private Optional startDate = Optional.empty(); private Builder() { // force use of static builder() method @@ -225,6 +265,15 @@ public Builder awsKeyId(String awsKeyId) { * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. */ public Builder awsRegionName(String awsRegionName) { + Utils.checkNotNull(awsRegionName, "awsRegionName"); + this.awsRegionName = Optional.ofNullable(awsRegionName); + return this; + } + + /** + * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. + */ + public Builder awsRegionName(Optional awsRegionName) { Utils.checkNotNull(awsRegionName, "awsRegionName"); this.awsRegionName = awsRegionName; return this; @@ -239,6 +288,18 @@ public Builder awsSecretKey(String awsSecretKey) { return this; } + public Builder lookupAttributesFilter(FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody lookupAttributesFilter) { + Utils.checkNotNull(lookupAttributesFilter, "lookupAttributesFilter"); + this.lookupAttributesFilter = Optional.ofNullable(lookupAttributesFilter); + return this; + } + + public Builder lookupAttributesFilter(Optional lookupAttributesFilter) { + Utils.checkNotNull(lookupAttributesFilter, "lookupAttributesFilter"); + this.lookupAttributesFilter = lookupAttributesFilter; + return this; + } + /** * The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. */ @@ -258,27 +319,28 @@ public Builder startDate(Optional startDate) { } public SourceAwsCloudtrail build() { - if (startDate == null) { - startDate = _SINGLETON_VALUE_StartDate.value(); + if (awsRegionName == null) { + awsRegionName = _SINGLETON_VALUE_AwsRegionName.value(); } return new SourceAwsCloudtrail( awsKeyId, awsRegionName, awsSecretKey, + lookupAttributesFilter, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AwsRegionName = + new LazySingletonValue<>( + "aws_region_name", + "\"us-east-1\"", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"aws-cloudtrail\"", new TypeReference() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_StartDate = - new LazySingletonValue<>( - "start_date", - "\"1970-01-01\"", - new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java b/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java index aa4ee6b56..22a0536e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java @@ -211,7 +211,7 @@ public final static class Builder { private String apiKey; - private Optional customReportsFields; + private Optional customReportsFields = Optional.empty(); private Optional customReportsIncludeDefaultFields; @@ -276,9 +276,6 @@ public Builder subdomain(String subdomain) { } public SourceBambooHr build() { - if (customReportsFields == null) { - customReportsFields = _SINGLETON_VALUE_CustomReportsFields.value(); - } if (customReportsIncludeDefaultFields == null) { customReportsIncludeDefaultFields = _SINGLETON_VALUE_CustomReportsIncludeDefaultFields.value(); } @@ -289,12 +286,6 @@ public SourceBambooHr build() { subdomain); } - private static final LazySingletonValue> _SINGLETON_VALUE_CustomReportsFields = - new LazySingletonValue<>( - "custom_reports_fields", - "\"\"", - new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_CustomReportsIncludeDefaultFields = new LazySingletonValue<>( "custom_reports_include_default_fields", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClazar.java b/src/main/java/com/airbyte/api/models/shared/SourceClazar.java new file mode 100644 index 000000000..1450170be --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceClazar.java @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourceClazar { + + @JsonProperty("client_id") + private String clientId; + + @JsonProperty("client_secret") + private String clientSecret; + + @JsonProperty("sourceType") + private Clazar sourceType; + + @JsonCreator + public SourceClazar( + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String clientId() { + return clientId; + } + + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + @JsonIgnore + public Clazar sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceClazar withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public SourceClazar withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceClazar other = (SourceClazar) o; + return + java.util.Objects.deepEquals(this.clientId, other.clientId) && + java.util.Objects.deepEquals(this.clientSecret, other.clientSecret) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + clientId, + clientSecret, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceClazar.class, + "clientId", clientId, + "clientSecret", clientSecret, + "sourceType", sourceType); + } + + public final static class Builder { + + private String clientId; + + private String clientSecret; + + private Builder() { + // force use of static builder() method + } + + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public SourceClazar build() { + return new SourceClazar( + clientId, + clientSecret); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"clazar\"", + 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 73c3625df..3510c9d55 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java @@ -145,6 +145,11 @@ public static SourceConfiguration of(SourceChartmogul value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceClazar value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceClickhouse value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -195,6 +200,11 @@ public static SourceConfiguration of(SourceConvex value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceDatadog value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceDatascope value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -265,6 +275,11 @@ public static SourceConfiguration of(SourceFirebolt value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceFleetio value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceFreshcaller value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -315,6 +330,11 @@ public static SourceConfiguration of(SourceGnews value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceGoldcast value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceGoogleAds value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -325,11 +345,6 @@ public static SourceConfiguration of(SourceGoogleAnalyticsDataApi value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceConfiguration of(SourceGoogleAnalyticsV4ServiceAccountOnly value) { - Utils.checkNotNull(value, "value"); - return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - public static SourceConfiguration of(SourceGoogleDirectory value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -675,11 +690,6 @@ public static SourceConfiguration of(SourcePrestashop value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceConfiguration of(SourcePunkApi value) { - Utils.checkNotNull(value, "value"); - return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - public static SourceConfiguration of(SourcePypi value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1030,6 +1040,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceCart}
  • *
  • {@code SourceChargebee}
  • *
  • {@code SourceChartmogul}
  • + *
  • {@code SourceClazar}
  • *
  • {@code SourceClickhouse}
  • *
  • {@code SourceClickupApi}
  • *
  • {@code SourceClockify}
  • @@ -1040,6 +1051,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceConfigcat}
  • *
  • {@code SourceConfluence}
  • *
  • {@code SourceConvex}
  • + *
  • {@code SourceDatadog}
  • *
  • {@code SourceDatascope}
  • *
  • {@code SourceDelighted}
  • *
  • {@code SourceDixa}
  • @@ -1054,6 +1066,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceFauna}
  • *
  • {@code SourceFile}
  • *
  • {@code SourceFirebolt}
  • + *
  • {@code SourceFleetio}
  • *
  • {@code SourceFreshcaller}
  • *
  • {@code SourceFreshdesk}
  • *
  • {@code SourceFreshsales}
  • @@ -1064,9 +1077,9 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourceGitlab}
  • *
  • {@code SourceGlassfrog}
  • *
  • {@code SourceGnews}
  • + *
  • {@code SourceGoldcast}
  • *
  • {@code SourceGoogleAds}
  • *
  • {@code SourceGoogleAnalyticsDataApi}
  • - *
  • {@code SourceGoogleAnalyticsV4ServiceAccountOnly}
  • *
  • {@code SourceGoogleDirectory}
  • *
  • {@code SourceGoogleDrive}
  • *
  • {@code SourceGooglePagespeedInsights}
  • @@ -1136,7 +1149,6 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code SourcePosthog}
  • *
  • {@code SourcePostmarkapp}
  • *
  • {@code SourcePrestashop}
  • - *
  • {@code SourcePunkApi}
  • *
  • {@code SourcePypi}
  • *
  • {@code SourceQualaroo}
  • *
  • {@code SourceRailz}
  • @@ -1263,6 +1275,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), @@ -1273,6 +1286,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), @@ -1287,6 +1301,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), @@ -1297,9 +1312,9 @@ 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), @@ -1369,7 +1384,6 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java b/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java new file mode 100644 index 000000000..df20c029e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java @@ -0,0 +1,555 @@ +/* + * 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 SourceDatadog { + + /** + * Datadog API key + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * Datadog application key + */ + @JsonProperty("application_key") + private String applicationKey; + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("end_date") + private Optional endDate; + + /** + * Maximum number of records to collect per request. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("max_records_per_request") + private Optional maxRecordsPerRequest; + + /** + * List of queries to be run and used as inputs. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("queries") + private Optional> queries; + + /** + * The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("query") + private Optional query; + + /** + * The site where Datadog data resides in. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("site") + private Optional site; + + @JsonProperty("sourceType") + private Datadog sourceType; + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start_date") + private Optional startDate; + + @JsonCreator + public SourceDatadog( + @JsonProperty("api_key") String apiKey, + @JsonProperty("application_key") String applicationKey, + @JsonProperty("end_date") Optional endDate, + @JsonProperty("max_records_per_request") Optional maxRecordsPerRequest, + @JsonProperty("queries") Optional> queries, + @JsonProperty("query") Optional query, + @JsonProperty("site") Optional site, + @JsonProperty("start_date") Optional startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(applicationKey, "applicationKey"); + Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(maxRecordsPerRequest, "maxRecordsPerRequest"); + Utils.checkNotNull(queries, "queries"); + Utils.checkNotNull(query, "query"); + Utils.checkNotNull(site, "site"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.applicationKey = applicationKey; + this.endDate = endDate; + this.maxRecordsPerRequest = maxRecordsPerRequest; + this.queries = queries; + this.query = query; + this.site = site; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + public SourceDatadog( + String apiKey, + String applicationKey) { + this(apiKey, applicationKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Datadog API key + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Datadog application key + */ + @JsonIgnore + public String applicationKey() { + return applicationKey; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional endDate() { + return (Optional) endDate; + } + + /** + * Maximum number of records to collect per request. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional maxRecordsPerRequest() { + return (Optional) maxRecordsPerRequest; + } + + /** + * List of queries to be run and used as inputs. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> queries() { + return (Optional>) queries; + } + + /** + * The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional query() { + return (Optional) query; + } + + /** + * The site where Datadog data resides in. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional site() { + return (Optional) site; + } + + @JsonIgnore + public Datadog sourceType() { + return sourceType; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional startDate() { + return (Optional) startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Datadog API key + */ + public SourceDatadog withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Datadog application key + */ + public SourceDatadog withApplicationKey(String applicationKey) { + Utils.checkNotNull(applicationKey, "applicationKey"); + this.applicationKey = applicationKey; + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + */ + public SourceDatadog withEndDate(String endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = Optional.ofNullable(endDate); + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + */ + public SourceDatadog withEndDate(Optional endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + /** + * Maximum number of records to collect per request. + */ + public SourceDatadog withMaxRecordsPerRequest(long maxRecordsPerRequest) { + Utils.checkNotNull(maxRecordsPerRequest, "maxRecordsPerRequest"); + this.maxRecordsPerRequest = Optional.ofNullable(maxRecordsPerRequest); + return this; + } + + /** + * Maximum number of records to collect per request. + */ + public SourceDatadog withMaxRecordsPerRequest(Optional maxRecordsPerRequest) { + Utils.checkNotNull(maxRecordsPerRequest, "maxRecordsPerRequest"); + this.maxRecordsPerRequest = maxRecordsPerRequest; + return this; + } + + /** + * List of queries to be run and used as inputs. + */ + public SourceDatadog withQueries(java.util.List queries) { + Utils.checkNotNull(queries, "queries"); + this.queries = Optional.ofNullable(queries); + return this; + } + + /** + * List of queries to be run and used as inputs. + */ + public SourceDatadog withQueries(Optional> queries) { + Utils.checkNotNull(queries, "queries"); + this.queries = queries; + return this; + } + + /** + * The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. + */ + public SourceDatadog withQuery(String query) { + Utils.checkNotNull(query, "query"); + this.query = Optional.ofNullable(query); + return this; + } + + /** + * The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. + */ + public SourceDatadog withQuery(Optional query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + /** + * The site where Datadog data resides in. + */ + public SourceDatadog withSite(Site site) { + Utils.checkNotNull(site, "site"); + this.site = Optional.ofNullable(site); + return this; + } + + /** + * The site where Datadog data resides in. + */ + public SourceDatadog withSite(Optional site) { + Utils.checkNotNull(site, "site"); + this.site = site; + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + */ + public SourceDatadog withStartDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + */ + public SourceDatadog withStartDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceDatadog other = (SourceDatadog) o; + return + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.applicationKey, other.applicationKey) && + java.util.Objects.deepEquals(this.endDate, other.endDate) && + java.util.Objects.deepEquals(this.maxRecordsPerRequest, other.maxRecordsPerRequest) && + java.util.Objects.deepEquals(this.queries, other.queries) && + java.util.Objects.deepEquals(this.query, other.query) && + java.util.Objects.deepEquals(this.site, other.site) && + 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, + applicationKey, + endDate, + maxRecordsPerRequest, + queries, + query, + site, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceDatadog.class, + "apiKey", apiKey, + "applicationKey", applicationKey, + "endDate", endDate, + "maxRecordsPerRequest", maxRecordsPerRequest, + "queries", queries, + "query", query, + "site", site, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String apiKey; + + private String applicationKey; + + private Optional endDate = Optional.empty(); + + private Optional maxRecordsPerRequest; + + private Optional> queries = Optional.empty(); + + private Optional query = Optional.empty(); + + private Optional site; + + private Optional startDate = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * Datadog API key + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Datadog application key + */ + public Builder applicationKey(String applicationKey) { + Utils.checkNotNull(applicationKey, "applicationKey"); + this.applicationKey = applicationKey; + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + */ + public Builder endDate(String endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = Optional.ofNullable(endDate); + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + */ + public Builder endDate(Optional endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + /** + * Maximum number of records to collect per request. + */ + public Builder maxRecordsPerRequest(long maxRecordsPerRequest) { + Utils.checkNotNull(maxRecordsPerRequest, "maxRecordsPerRequest"); + this.maxRecordsPerRequest = Optional.ofNullable(maxRecordsPerRequest); + return this; + } + + /** + * Maximum number of records to collect per request. + */ + public Builder maxRecordsPerRequest(Optional maxRecordsPerRequest) { + Utils.checkNotNull(maxRecordsPerRequest, "maxRecordsPerRequest"); + this.maxRecordsPerRequest = maxRecordsPerRequest; + return this; + } + + /** + * List of queries to be run and used as inputs. + */ + public Builder queries(java.util.List queries) { + Utils.checkNotNull(queries, "queries"); + this.queries = Optional.ofNullable(queries); + return this; + } + + /** + * List of queries to be run and used as inputs. + */ + public Builder queries(Optional> queries) { + Utils.checkNotNull(queries, "queries"); + this.queries = queries; + return this; + } + + /** + * The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. + */ + public Builder query(String query) { + Utils.checkNotNull(query, "query"); + this.query = Optional.ofNullable(query); + return this; + } + + /** + * The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. + */ + public Builder query(Optional query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + /** + * The site where Datadog data resides in. + */ + public Builder site(Site site) { + Utils.checkNotNull(site, "site"); + this.site = Optional.ofNullable(site); + return this; + } + + /** + * The site where Datadog data resides in. + */ + public Builder site(Optional site) { + Utils.checkNotNull(site, "site"); + this.site = site; + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + */ + public Builder startDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + */ + public Builder startDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceDatadog build() { + if (maxRecordsPerRequest == null) { + maxRecordsPerRequest = _SINGLETON_VALUE_MaxRecordsPerRequest.value(); + } + if (site == null) { + site = _SINGLETON_VALUE_Site.value(); + } + return new SourceDatadog( + apiKey, + applicationKey, + endDate, + maxRecordsPerRequest, + queries, + query, + site, + startDate); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_MaxRecordsPerRequest = + new LazySingletonValue<>( + "max_records_per_request", + "5000", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Site = + new LazySingletonValue<>( + "site", + "\"datadoghq.com\"", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"datadog\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDatadogDataSource.java b/src/main/java/com/airbyte/api/models/shared/SourceDatadogDataSource.java new file mode 100644 index 000000000..f3bc95a04 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceDatadogDataSource.java @@ -0,0 +1,37 @@ +/* + * 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; + +/** + * SourceDatadogDataSource - A data source that is powered by the platform. + */ +public enum SourceDatadogDataSource { + METRICS("metrics"), + CLOUD_COST("cloud_cost"), + LOGS("logs"), + RUM("rum"); + + @JsonValue + private final String value; + + private SourceDatadogDataSource(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java index f430d0b26..67946cdba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java @@ -27,8 +27,9 @@ public class SourceFacebookMarketing { /** * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("access_token") - private String accessToken; + private Optional accessToken; /** * The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown menu or in your browser's address bar of your <a href="https://adsmanager.facebook.com/adsmanager/">Meta Ads Manager</a>. See the <a href="https://www.facebook.com/business/help/1492627900875762">docs</a> for more information. @@ -78,6 +79,13 @@ public class SourceFacebookMarketing { @JsonProperty("client_secret") private Optional clientSecret; + /** + * Credentials for connecting to the Facebook Marketing API + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("credentials") + private Optional credentials; + /** * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. */ @@ -132,7 +140,7 @@ public class SourceFacebookMarketing { @JsonCreator public SourceFacebookMarketing( - @JsonProperty("access_token") String accessToken, + @JsonProperty("access_token") Optional accessToken, @JsonProperty("account_ids") java.util.List accountIds, @JsonProperty("action_breakdowns_allow_empty") Optional actionBreakdownsAllowEmpty, @JsonProperty("ad_statuses") Optional> adStatuses, @@ -140,6 +148,7 @@ public SourceFacebookMarketing( @JsonProperty("campaign_statuses") Optional> campaignStatuses, @JsonProperty("client_id") Optional clientId, @JsonProperty("client_secret") Optional clientSecret, + @JsonProperty("credentials") Optional credentials, @JsonProperty("custom_insights") Optional> customInsights, @JsonProperty("end_date") Optional endDate, @JsonProperty("fetch_thumbnail_images") Optional fetchThumbnailImages, @@ -155,6 +164,7 @@ public SourceFacebookMarketing( Utils.checkNotNull(campaignStatuses, "campaignStatuses"); Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(customInsights, "customInsights"); Utils.checkNotNull(endDate, "endDate"); Utils.checkNotNull(fetchThumbnailImages, "fetchThumbnailImages"); @@ -170,6 +180,7 @@ public SourceFacebookMarketing( this.campaignStatuses = campaignStatuses; this.clientId = clientId; this.clientSecret = clientSecret; + this.credentials = credentials; this.customInsights = customInsights; this.endDate = endDate; this.fetchThumbnailImages = fetchThumbnailImages; @@ -181,17 +192,17 @@ public SourceFacebookMarketing( } public SourceFacebookMarketing( - String accessToken, java.util.List accountIds) { - this(accessToken, accountIds, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), accountIds, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. */ + @SuppressWarnings("unchecked") @JsonIgnore - public String accessToken() { - return accessToken; + public Optional accessToken() { + return (Optional) accessToken; } /** @@ -256,6 +267,15 @@ public Optional clientSecret() { return (Optional) clientSecret; } + /** + * Credentials for connecting to the Facebook Marketing API + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional credentials() { + return (Optional) credentials; + } + /** * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. */ @@ -332,6 +352,15 @@ public final static Builder builder() { * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. */ public SourceFacebookMarketing withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + /** + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + */ + public SourceFacebookMarketing withAccessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; @@ -454,6 +483,24 @@ public SourceFacebookMarketing withClientSecret(Optional clien return this; } + /** + * Credentials for connecting to the Facebook Marketing API + */ + public SourceFacebookMarketing withCredentials(SourceFacebookMarketingAuthentication credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = Optional.ofNullable(credentials); + return this; + } + + /** + * Credentials for connecting to the Facebook Marketing API + */ + public SourceFacebookMarketing withCredentials(Optional credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + /** * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. */ @@ -598,6 +645,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.campaignStatuses, other.campaignStatuses) && java.util.Objects.deepEquals(this.clientId, other.clientId) && java.util.Objects.deepEquals(this.clientSecret, other.clientSecret) && + java.util.Objects.deepEquals(this.credentials, other.credentials) && java.util.Objects.deepEquals(this.customInsights, other.customInsights) && java.util.Objects.deepEquals(this.endDate, other.endDate) && java.util.Objects.deepEquals(this.fetchThumbnailImages, other.fetchThumbnailImages) && @@ -619,6 +667,7 @@ public int hashCode() { campaignStatuses, clientId, clientSecret, + credentials, customInsights, endDate, fetchThumbnailImages, @@ -640,6 +689,7 @@ public String toString() { "campaignStatuses", campaignStatuses, "clientId", clientId, "clientSecret", clientSecret, + "credentials", credentials, "customInsights", customInsights, "endDate", endDate, "fetchThumbnailImages", fetchThumbnailImages, @@ -652,7 +702,7 @@ public String toString() { public final static class Builder { - private String accessToken; + private Optional accessToken = Optional.empty(); private java.util.List accountIds; @@ -668,6 +718,8 @@ public final static class Builder { private Optional clientSecret = Optional.empty(); + private Optional credentials = Optional.empty(); + private Optional> customInsights = Optional.empty(); private Optional endDate = Optional.empty(); @@ -690,6 +742,15 @@ private Builder() { * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. */ public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + /** + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + */ + public Builder accessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; @@ -812,6 +873,24 @@ public Builder clientSecret(Optional clientSecret) { return this; } + /** + * Credentials for connecting to the Facebook Marketing API + */ + public Builder credentials(SourceFacebookMarketingAuthentication credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = Optional.ofNullable(credentials); + return this; + } + + /** + * Credentials for connecting to the Facebook Marketing API + */ + public Builder credentials(Optional credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + /** * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. */ @@ -963,6 +1042,7 @@ public SourceFacebookMarketing build() { campaignStatuses, clientId, clientSecret, + credentials, customInsights, endDate, fetchThumbnailImages, diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java similarity index 84% rename from src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasMode.java rename to src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java index 9ebc5ca41..4257d282b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum DestinationLangchainSchemasMode { - FAKE("fake"); +public enum SourceFacebookMarketingAuthType { + CLIENT("Client"); @JsonValue private final String value; - private DestinationLangchainSchemasMode(String value) { + private SourceFacebookMarketingAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainEmbedding.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java similarity index 61% rename from src/main/java/com/airbyte/api/models/shared/DestinationLangchainEmbedding.java rename to src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java index 3ce8f4f3b..76cdb859f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java @@ -22,34 +22,34 @@ import com.airbyte.api.utils.Utils.JsonShape; /** - * DestinationLangchainEmbedding - Embedding configuration + * SourceFacebookMarketingAuthentication - Credentials for connecting to the Facebook Marketing API */ -@JsonDeserialize(using = DestinationLangchainEmbedding._Deserializer.class) -public class DestinationLangchainEmbedding { +@JsonDeserialize(using = SourceFacebookMarketingAuthentication._Deserializer.class) +public class SourceFacebookMarketingAuthentication { @com.fasterxml.jackson.annotation.JsonValue private TypedObject value; - private DestinationLangchainEmbedding(TypedObject value) { + private SourceFacebookMarketingAuthentication(TypedObject value) { this.value = value; } - public static DestinationLangchainEmbedding of(DestinationLangchainOpenAI value) { + public static SourceFacebookMarketingAuthentication of(AuthenticateViaFacebookMarketingOauth value) { Utils.checkNotNull(value, "value"); - return new DestinationLangchainEmbedding(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceFacebookMarketingAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static DestinationLangchainEmbedding of(DestinationLangchainFake value) { + public static SourceFacebookMarketingAuthentication of(ServiceAccountKeyAuthentication value) { Utils.checkNotNull(value, "value"); - return new DestinationLangchainEmbedding(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceFacebookMarketingAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
      - *
    • {@code DestinationLangchainOpenAI}
    • - *
    • {@code DestinationLangchainFake}
    • + *
    • {@code AuthenticateViaFacebookMarketingOauth}
    • + *
    • {@code ServiceAccountKeyAuthentication}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -75,7 +75,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DestinationLangchainEmbedding other = (DestinationLangchainEmbedding) o; + SourceFacebookMarketingAuthentication other = (SourceFacebookMarketingAuthentication) o; return java.util.Objects.deepEquals(this.value.value(), other.value.value()); } @@ -85,18 +85,18 @@ public int hashCode() { } @SuppressWarnings("serial") - public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeserializer { + public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeserializer { public _Deserializer() { - super(DestinationLangchainEmbedding.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + super(SourceFacebookMarketingAuthentication.class, + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } @Override public String toString() { - return Utils.toString(DestinationLangchainEmbedding.class, + return Utils.toString(SourceFacebookMarketingAuthentication.class, "value", value); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java similarity index 83% rename from src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType.java rename to src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java index 9685163db..85e027d3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType { +public enum SourceFacebookMarketingSchemasAuthType { SERVICE("Service"); @JsonValue private final String value; - private SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType(String value) { + private SourceFacebookMarketingSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java index f30622bac..f99747998 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java @@ -31,7 +31,6 @@ public enum SourceFacebookMarketingValidEnums { ADSET_END("adset_end"), ADSET_ID("adset_id"), ADSET_NAME("adset_name"), - ADSET_START("adset_start"), AGE_TARGETING("age_targeting"), ATTRIBUTION_SETTING("attribution_setting"), AUCTION_BID("auction_bid"), @@ -48,7 +47,6 @@ public enum SourceFacebookMarketingValidEnums { CATALOG_SEGMENT_VALUE_OMNI_PURCHASE_ROAS("catalog_segment_value_omni_purchase_roas"), CATALOG_SEGMENT_VALUE_WEBSITE_PURCHASE_ROAS("catalog_segment_value_website_purchase_roas"), CLICKS("clicks"), - CONVERSION_LEAD_RATE("conversion_lead_rate"), CONVERSION_RATE_RANKING("conversion_rate_ranking"), CONVERSION_VALUES("conversion_values"), CONVERSIONS("conversions"), @@ -59,7 +57,6 @@ public enum SourceFacebookMarketingValidEnums { COST_PER_ACTION_TYPE("cost_per_action_type"), COST_PER_AD_CLICK("cost_per_ad_click"), COST_PER_CONVERSION("cost_per_conversion"), - COST_PER_CONVERSION_LEAD("cost_per_conversion_lead"), COST_PER_DDA_COUNTBY_CONVS("cost_per_dda_countby_convs"), COST_PER_ESTIMATED_AD_RECALLERS("cost_per_estimated_ad_recallers"), COST_PER_INLINE_LINK_CLICK("cost_per_inline_link_click"), diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java b/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java index a76b1e70f..9e8f3fdeb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java @@ -59,7 +59,7 @@ public class SourceFirebolt { private Optional host; @JsonProperty("sourceType") - private Firebolt sourceType; + private SourceFireboltFirebolt sourceType; @JsonCreator public SourceFirebolt( @@ -143,7 +143,7 @@ public Optional host() { } @JsonIgnore - public Firebolt sourceType() { + public SourceFireboltFirebolt sourceType() { return sourceType; } @@ -348,11 +348,11 @@ public SourceFirebolt build() { host); } - private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"firebolt\"", - new TypeReference() {}); + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java b/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java new file mode 100644 index 000000000..5a576d8f6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.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 SourceFireboltFirebolt { + FIREBOLT("firebolt"); + + @JsonValue + private final String value; + + private SourceFireboltFirebolt(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java b/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java new file mode 100644 index 000000000..826ae3758 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; + +public class SourceFleetio { + + @JsonProperty("account_token") + private String accountToken; + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Fleetio sourceType; + + @JsonCreator + public SourceFleetio( + @JsonProperty("account_token") String accountToken, + @JsonProperty("api_key") String apiKey) { + Utils.checkNotNull(accountToken, "accountToken"); + Utils.checkNotNull(apiKey, "apiKey"); + this.accountToken = accountToken; + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String accountToken() { + return accountToken; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Fleetio sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceFleetio withAccountToken(String accountToken) { + Utils.checkNotNull(accountToken, "accountToken"); + this.accountToken = accountToken; + return this; + } + + public SourceFleetio withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceFleetio other = (SourceFleetio) o; + return + java.util.Objects.deepEquals(this.accountToken, other.accountToken) && + java.util.Objects.deepEquals(this.apiKey, other.apiKey) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + accountToken, + apiKey, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceFleetio.class, + "accountToken", accountToken, + "apiKey", apiKey, + "sourceType", sourceType); + } + + public final static class Builder { + + private String accountToken; + + private String apiKey; + + private Builder() { + // force use of static builder() method + } + + public Builder accountToken(String accountToken) { + Utils.checkNotNull(accountToken, "accountToken"); + this.accountToken = accountToken; + return this; + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceFleetio build() { + return new SourceFleetio( + accountToken, + apiKey); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"fleetio\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithub.java b/src/main/java/com/airbyte/api/models/shared/SourceGithub.java index 9c638e47f..35e885a38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithub.java @@ -51,6 +51,13 @@ public class SourceGithub { @JsonProperty("credentials") private SourceGithubAuthentication credentials; + /** + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("max_waiting_time") + private Optional maxWaitingTime; + /** * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. */ @@ -80,6 +87,7 @@ public SourceGithub( @JsonProperty("branch") Optional branch, @JsonProperty("branches") Optional> branches, @JsonProperty("credentials") SourceGithubAuthentication credentials, + @JsonProperty("max_waiting_time") Optional maxWaitingTime, @JsonProperty("repositories") java.util.List repositories, @JsonProperty("repository") Optional repository, @JsonProperty("start_date") Optional startDate) { @@ -87,6 +95,7 @@ public SourceGithub( Utils.checkNotNull(branch, "branch"); Utils.checkNotNull(branches, "branches"); Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(maxWaitingTime, "maxWaitingTime"); Utils.checkNotNull(repositories, "repositories"); Utils.checkNotNull(repository, "repository"); Utils.checkNotNull(startDate, "startDate"); @@ -94,6 +103,7 @@ public SourceGithub( this.branch = branch; this.branches = branches; this.credentials = credentials; + this.maxWaitingTime = maxWaitingTime; this.repositories = repositories; this.repository = repository; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); @@ -103,7 +113,7 @@ public SourceGithub( public SourceGithub( SourceGithubAuthentication credentials, java.util.List repositories) { - this(Optional.empty(), Optional.empty(), Optional.empty(), credentials, repositories, Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), credentials, Optional.empty(), repositories, Optional.empty(), Optional.empty()); } /** @@ -141,6 +151,15 @@ public SourceGithubAuthentication credentials() { return credentials; } + /** + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional maxWaitingTime() { + return (Optional) maxWaitingTime; + } + /** * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. */ @@ -239,6 +258,24 @@ public SourceGithub withCredentials(SourceGithubAuthentication credentials) { return this; } + /** + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + */ + public SourceGithub withMaxWaitingTime(long maxWaitingTime) { + Utils.checkNotNull(maxWaitingTime, "maxWaitingTime"); + this.maxWaitingTime = Optional.ofNullable(maxWaitingTime); + return this; + } + + /** + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + */ + public SourceGithub withMaxWaitingTime(Optional maxWaitingTime) { + Utils.checkNotNull(maxWaitingTime, "maxWaitingTime"); + this.maxWaitingTime = maxWaitingTime; + return this; + } + /** * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. */ @@ -298,6 +335,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.branch, other.branch) && java.util.Objects.deepEquals(this.branches, other.branches) && java.util.Objects.deepEquals(this.credentials, other.credentials) && + java.util.Objects.deepEquals(this.maxWaitingTime, other.maxWaitingTime) && java.util.Objects.deepEquals(this.repositories, other.repositories) && java.util.Objects.deepEquals(this.repository, other.repository) && java.util.Objects.deepEquals(this.sourceType, other.sourceType) && @@ -311,6 +349,7 @@ public int hashCode() { branch, branches, credentials, + maxWaitingTime, repositories, repository, sourceType, @@ -324,6 +363,7 @@ public String toString() { "branch", branch, "branches", branches, "credentials", credentials, + "maxWaitingTime", maxWaitingTime, "repositories", repositories, "repository", repository, "sourceType", sourceType, @@ -340,6 +380,8 @@ public final static class Builder { private SourceGithubAuthentication credentials; + private Optional maxWaitingTime; + private java.util.List repositories; private Optional repository = Optional.empty(); @@ -413,6 +455,24 @@ public Builder credentials(SourceGithubAuthentication credentials) { return this; } + /** + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + */ + public Builder maxWaitingTime(long maxWaitingTime) { + Utils.checkNotNull(maxWaitingTime, "maxWaitingTime"); + this.maxWaitingTime = Optional.ofNullable(maxWaitingTime); + return this; + } + + /** + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + */ + public Builder maxWaitingTime(Optional maxWaitingTime) { + Utils.checkNotNull(maxWaitingTime, "maxWaitingTime"); + this.maxWaitingTime = maxWaitingTime; + return this; + } + /** * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. */ @@ -462,11 +522,15 @@ public SourceGithub build() { if (apiUrl == null) { apiUrl = _SINGLETON_VALUE_ApiUrl.value(); } + if (maxWaitingTime == null) { + maxWaitingTime = _SINGLETON_VALUE_MaxWaitingTime.value(); + } return new SourceGithub( apiUrl, branch, branches, credentials, + maxWaitingTime, repositories, repository, startDate); @@ -478,6 +542,12 @@ public SourceGithub build() { "\"https://api.github.com/\"", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_MaxWaitingTime = + new LazySingletonValue<>( + "max_waiting_time", + "10", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java b/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java new file mode 100644 index 000000000..289d4e3d6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.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 SourceGoldcast { + + /** + * Your API Access Key. See <a href="https://help.goldcast.io/hc/en-us/articles/22931655725723-How-To-Create-an-API-Token-in-Goldcast">here</a>. The key is case sensitive. + */ + @JsonProperty("access_key") + private String accessKey; + + @JsonProperty("sourceType") + private Goldcast sourceType; + + @JsonCreator + public SourceGoldcast( + @JsonProperty("access_key") String accessKey) { + Utils.checkNotNull(accessKey, "accessKey"); + this.accessKey = accessKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * Your API Access Key. See <a href="https://help.goldcast.io/hc/en-us/articles/22931655725723-How-To-Create-an-API-Token-in-Goldcast">here</a>. The key is case sensitive. + */ + @JsonIgnore + public String accessKey() { + return accessKey; + } + + @JsonIgnore + public Goldcast sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Your API Access Key. See <a href="https://help.goldcast.io/hc/en-us/articles/22931655725723-How-To-Create-an-API-Token-in-Goldcast">here</a>. The key is case sensitive. + */ + public SourceGoldcast withAccessKey(String accessKey) { + Utils.checkNotNull(accessKey, "accessKey"); + this.accessKey = accessKey; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceGoldcast other = (SourceGoldcast) o; + return + java.util.Objects.deepEquals(this.accessKey, other.accessKey) && + java.util.Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + accessKey, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceGoldcast.class, + "accessKey", accessKey, + "sourceType", sourceType); + } + + public final static class Builder { + + private String accessKey; + + private Builder() { + // force use of static builder() method + } + + /** + * Your API Access Key. See <a href="https://help.goldcast.io/hc/en-us/articles/22931655725723-How-To-Create-an-API-Token-in-Goldcast">here</a>. The key is case sensitive. + */ + public Builder accessKey(String accessKey) { + Utils.checkNotNull(accessKey, "accessKey"); + this.accessKey = accessKey; + return this; + } + + public SourceGoldcast build() { + return new SourceGoldcast( + accessKey); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"goldcast\"", + new TypeReference() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java index d57110636..58f809b02 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java @@ -57,6 +57,13 @@ public class SourceGoogleAnalyticsDataApi { @JsonProperty("keep_empty_rows") private Optional keepEmptyRows; + /** + * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lookback_window") + private Optional lookbackWindow; + /** * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the <a href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google Analytics documentation</a> to locate your property ID. */ @@ -80,6 +87,7 @@ public SourceGoogleAnalyticsDataApi( @JsonProperty("custom_reports_array") Optional> customReportsArray, @JsonProperty("date_ranges_start_date") Optional dateRangesStartDate, @JsonProperty("keep_empty_rows") Optional keepEmptyRows, + @JsonProperty("lookback_window") Optional lookbackWindow, @JsonProperty("property_ids") java.util.List propertyIds, @JsonProperty("window_in_days") Optional windowInDays) { Utils.checkNotNull(convertConversionsEvent, "convertConversionsEvent"); @@ -87,6 +95,7 @@ public SourceGoogleAnalyticsDataApi( Utils.checkNotNull(customReportsArray, "customReportsArray"); Utils.checkNotNull(dateRangesStartDate, "dateRangesStartDate"); Utils.checkNotNull(keepEmptyRows, "keepEmptyRows"); + Utils.checkNotNull(lookbackWindow, "lookbackWindow"); Utils.checkNotNull(propertyIds, "propertyIds"); Utils.checkNotNull(windowInDays, "windowInDays"); this.convertConversionsEvent = convertConversionsEvent; @@ -94,6 +103,7 @@ public SourceGoogleAnalyticsDataApi( this.customReportsArray = customReportsArray; this.dateRangesStartDate = dateRangesStartDate; this.keepEmptyRows = keepEmptyRows; + this.lookbackWindow = lookbackWindow; this.propertyIds = propertyIds; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.windowInDays = windowInDays; @@ -101,7 +111,7 @@ public SourceGoogleAnalyticsDataApi( public SourceGoogleAnalyticsDataApi( java.util.List propertyIds) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), propertyIds, Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), propertyIds, Optional.empty()); } /** @@ -149,6 +159,15 @@ public Optional keepEmptyRows() { return (Optional) keepEmptyRows; } + /** + * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional lookbackWindow() { + return (Optional) lookbackWindow; + } + /** * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the <a href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google Analytics documentation</a> to locate your property ID. */ @@ -265,6 +284,24 @@ public SourceGoogleAnalyticsDataApi withKeepEmptyRows(Optional lookbackWindow) { + Utils.checkNotNull(lookbackWindow, "lookbackWindow"); + this.lookbackWindow = lookbackWindow; + return this; + } + /** * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the <a href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google Analytics documentation</a> to locate your property ID. */ @@ -307,6 +344,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.customReportsArray, other.customReportsArray) && java.util.Objects.deepEquals(this.dateRangesStartDate, other.dateRangesStartDate) && java.util.Objects.deepEquals(this.keepEmptyRows, other.keepEmptyRows) && + java.util.Objects.deepEquals(this.lookbackWindow, other.lookbackWindow) && java.util.Objects.deepEquals(this.propertyIds, other.propertyIds) && java.util.Objects.deepEquals(this.sourceType, other.sourceType) && java.util.Objects.deepEquals(this.windowInDays, other.windowInDays); @@ -320,6 +358,7 @@ public int hashCode() { customReportsArray, dateRangesStartDate, keepEmptyRows, + lookbackWindow, propertyIds, sourceType, windowInDays); @@ -333,6 +372,7 @@ public String toString() { "customReportsArray", customReportsArray, "dateRangesStartDate", dateRangesStartDate, "keepEmptyRows", keepEmptyRows, + "lookbackWindow", lookbackWindow, "propertyIds", propertyIds, "sourceType", sourceType, "windowInDays", windowInDays); @@ -350,6 +390,8 @@ public final static class Builder { private Optional keepEmptyRows; + private Optional lookbackWindow; + private java.util.List propertyIds; private Optional windowInDays; @@ -448,6 +490,24 @@ public Builder keepEmptyRows(Optional keepEmptyRows) { return this; } + /** + * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + */ + public Builder lookbackWindow(long lookbackWindow) { + Utils.checkNotNull(lookbackWindow, "lookbackWindow"); + this.lookbackWindow = Optional.ofNullable(lookbackWindow); + return this; + } + + /** + * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + */ + public Builder lookbackWindow(Optional lookbackWindow) { + Utils.checkNotNull(lookbackWindow, "lookbackWindow"); + this.lookbackWindow = lookbackWindow; + return this; + } + /** * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the <a href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google Analytics documentation</a> to locate your property ID. */ @@ -482,6 +542,9 @@ public SourceGoogleAnalyticsDataApi build() { if (keepEmptyRows == null) { keepEmptyRows = _SINGLETON_VALUE_KeepEmptyRows.value(); } + if (lookbackWindow == null) { + lookbackWindow = _SINGLETON_VALUE_LookbackWindow.value(); + } if (windowInDays == null) { windowInDays = _SINGLETON_VALUE_WindowInDays.value(); } @@ -491,6 +554,7 @@ public SourceGoogleAnalyticsDataApi build() { customReportsArray, dateRangesStartDate, keepEmptyRows, + lookbackWindow, propertyIds, windowInDays); } @@ -507,6 +571,12 @@ public SourceGoogleAnalyticsDataApi build() { "false", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackWindow = + new LazySingletonValue<>( + "lookback_window", + "2", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java index 720c169e0..a96716eca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java @@ -40,16 +40,16 @@ public static SourceGoogleAnalyticsDataApiCredentials of(AuthenticateViaGoogleOa return new SourceGoogleAnalyticsDataApiCredentials(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceGoogleAnalyticsDataApiCredentials of(ServiceAccountKeyAuthentication value) { + public static SourceGoogleAnalyticsDataApiCredentials of(SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication value) { Utils.checkNotNull(value, "value"); - return new SourceGoogleAnalyticsDataApiCredentials(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceGoogleAnalyticsDataApiCredentials(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *

      *
    • {@code AuthenticateViaGoogleOauth}
    • - *
    • {@code ServiceAccountKeyAuthentication}
    • + *
    • {@code SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -90,7 +90,7 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(SourceGoogleAnalyticsDataApiCredentials.class, Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java similarity index 59% rename from src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication.java rename to src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java index 464c889b0..760b9d239 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java @@ -19,20 +19,20 @@ import java.math.BigInteger; import java.util.Optional; -public class SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication { +public class SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication { @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") - private Optional authType; + private Optional authType; /** - * The JSON key of the service account to use for authorization + * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. */ @JsonProperty("credentials_json") private String credentialsJson; @JsonCreator - public SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication( + public SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication( @JsonProperty("credentials_json") String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); this.authType = Builder._SINGLETON_VALUE_AuthType.value(); @@ -41,12 +41,12 @@ public SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication( @SuppressWarnings("unchecked") @JsonIgnore - public Optional authType() { - return (Optional) authType; + public Optional authType() { + return (Optional) authType; } /** - * The JSON key of the service account to use for authorization + * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. */ @JsonIgnore public String credentialsJson() { @@ -58,9 +58,9 @@ public final static Builder builder() { } /** - * The JSON key of the service account to use for authorization + * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. */ - public SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication withCredentialsJson(String credentialsJson) { + public SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication withCredentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); this.credentialsJson = credentialsJson; return this; @@ -74,7 +74,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication other = (SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication) o; + SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication other = (SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication) o; return java.util.Objects.deepEquals(this.authType, other.authType) && java.util.Objects.deepEquals(this.credentialsJson, other.credentialsJson); @@ -89,7 +89,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication.class, + return Utils.toString(SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.class, "authType", authType, "credentialsJson", credentialsJson); } @@ -103,7 +103,7 @@ private Builder() { } /** - * The JSON key of the service account to use for authorization + * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. */ public Builder credentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -111,16 +111,16 @@ public Builder credentialsJson(String credentialsJson) { return this; } - public SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication build() { - return new SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication( + public SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication build() { + return new SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication( credentialsJson); } - private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"Service\"", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnly.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnly.java deleted file mode 100644 index 9b7fe9cae..000000000 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnly.java +++ /dev/null @@ -1,425 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Optional; - -public class SourceGoogleAnalyticsV4ServiceAccountOnly { - - /** - * Credentials for the service - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("credentials") - private Optional credentials; - - /** - * A JSON array describing the custom reports you want to sync from Google Analytics. See <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4#data-processing-latency">the docs</a> for more information about the exact format you can use to fill out this field. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("custom_reports") - private Optional customReports; - - /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("end_date") - private Optional endDate; - - @JsonProperty("sourceType") - private GoogleAnalyticsV4ServiceAccountOnly sourceType; - - /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. - */ - @JsonProperty("start_date") - private LocalDate startDate; - - /** - * The ID for the Google Analytics View you want to fetch data from. This can be found from the <a href="https://ga-dev-tools.appspot.com/account-explorer/">Google Analytics Account Explorer</a>. - */ - @JsonProperty("view_id") - private String viewId; - - /** - * The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4/#sampling-in-reports">the docs</a>. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("window_in_days") - private Optional windowInDays; - - @JsonCreator - public SourceGoogleAnalyticsV4ServiceAccountOnly( - @JsonProperty("credentials") Optional credentials, - @JsonProperty("custom_reports") Optional customReports, - @JsonProperty("end_date") Optional endDate, - @JsonProperty("start_date") LocalDate startDate, - @JsonProperty("view_id") String viewId, - @JsonProperty("window_in_days") Optional windowInDays) { - Utils.checkNotNull(credentials, "credentials"); - Utils.checkNotNull(customReports, "customReports"); - Utils.checkNotNull(endDate, "endDate"); - Utils.checkNotNull(startDate, "startDate"); - Utils.checkNotNull(viewId, "viewId"); - Utils.checkNotNull(windowInDays, "windowInDays"); - this.credentials = credentials; - this.customReports = customReports; - this.endDate = endDate; - this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); - this.startDate = startDate; - this.viewId = viewId; - this.windowInDays = windowInDays; - } - - public SourceGoogleAnalyticsV4ServiceAccountOnly( - LocalDate startDate, - String viewId) { - this(Optional.empty(), Optional.empty(), Optional.empty(), startDate, viewId, Optional.empty()); - } - - /** - * Credentials for the service - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional credentials() { - return (Optional) credentials; - } - - /** - * A JSON array describing the custom reports you want to sync from Google Analytics. See <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4#data-processing-latency">the docs</a> for more information about the exact format you can use to fill out this field. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional customReports() { - return (Optional) customReports; - } - - /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional endDate() { - return (Optional) endDate; - } - - @JsonIgnore - public GoogleAnalyticsV4ServiceAccountOnly sourceType() { - return sourceType; - } - - /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. - */ - @JsonIgnore - public LocalDate startDate() { - return startDate; - } - - /** - * The ID for the Google Analytics View you want to fetch data from. This can be found from the <a href="https://ga-dev-tools.appspot.com/account-explorer/">Google Analytics Account Explorer</a>. - */ - @JsonIgnore - public String viewId() { - return viewId; - } - - /** - * The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4/#sampling-in-reports">the docs</a>. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional windowInDays() { - return (Optional) windowInDays; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Credentials for the service - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withCredentials(SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = Optional.ofNullable(credentials); - return this; - } - - /** - * Credentials for the service - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withCredentials(Optional credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = credentials; - return this; - } - - /** - * A JSON array describing the custom reports you want to sync from Google Analytics. See <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4#data-processing-latency">the docs</a> for more information about the exact format you can use to fill out this field. - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withCustomReports(String customReports) { - Utils.checkNotNull(customReports, "customReports"); - this.customReports = Optional.ofNullable(customReports); - return this; - } - - /** - * A JSON array describing the custom reports you want to sync from Google Analytics. See <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4#data-processing-latency">the docs</a> for more information about the exact format you can use to fill out this field. - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withCustomReports(Optional customReports) { - Utils.checkNotNull(customReports, "customReports"); - this.customReports = customReports; - return this; - } - - /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withEndDate(LocalDate endDate) { - Utils.checkNotNull(endDate, "endDate"); - this.endDate = Optional.ofNullable(endDate); - return this; - } - - /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withEndDate(Optional endDate) { - Utils.checkNotNull(endDate, "endDate"); - this.endDate = endDate; - return this; - } - - /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withStartDate(LocalDate startDate) { - Utils.checkNotNull(startDate, "startDate"); - this.startDate = startDate; - return this; - } - - /** - * The ID for the Google Analytics View you want to fetch data from. This can be found from the <a href="https://ga-dev-tools.appspot.com/account-explorer/">Google Analytics Account Explorer</a>. - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withViewId(String viewId) { - Utils.checkNotNull(viewId, "viewId"); - this.viewId = viewId; - return this; - } - - /** - * The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4/#sampling-in-reports">the docs</a>. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withWindowInDays(long windowInDays) { - Utils.checkNotNull(windowInDays, "windowInDays"); - this.windowInDays = Optional.ofNullable(windowInDays); - return this; - } - - /** - * The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4/#sampling-in-reports">the docs</a>. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. - */ - public SourceGoogleAnalyticsV4ServiceAccountOnly withWindowInDays(Optional windowInDays) { - Utils.checkNotNull(windowInDays, "windowInDays"); - this.windowInDays = windowInDays; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SourceGoogleAnalyticsV4ServiceAccountOnly other = (SourceGoogleAnalyticsV4ServiceAccountOnly) o; - return - java.util.Objects.deepEquals(this.credentials, other.credentials) && - java.util.Objects.deepEquals(this.customReports, other.customReports) && - java.util.Objects.deepEquals(this.endDate, other.endDate) && - java.util.Objects.deepEquals(this.sourceType, other.sourceType) && - java.util.Objects.deepEquals(this.startDate, other.startDate) && - java.util.Objects.deepEquals(this.viewId, other.viewId) && - java.util.Objects.deepEquals(this.windowInDays, other.windowInDays); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - credentials, - customReports, - endDate, - sourceType, - startDate, - viewId, - windowInDays); - } - - @Override - public String toString() { - return Utils.toString(SourceGoogleAnalyticsV4ServiceAccountOnly.class, - "credentials", credentials, - "customReports", customReports, - "endDate", endDate, - "sourceType", sourceType, - "startDate", startDate, - "viewId", viewId, - "windowInDays", windowInDays); - } - - public final static class Builder { - - private Optional credentials = Optional.empty(); - - private Optional customReports = Optional.empty(); - - private Optional endDate = Optional.empty(); - - private LocalDate startDate; - - private String viewId; - - private Optional windowInDays; - - private Builder() { - // force use of static builder() method - } - - /** - * Credentials for the service - */ - public Builder credentials(SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = Optional.ofNullable(credentials); - return this; - } - - /** - * Credentials for the service - */ - public Builder credentials(Optional credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = credentials; - return this; - } - - /** - * A JSON array describing the custom reports you want to sync from Google Analytics. See <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4#data-processing-latency">the docs</a> for more information about the exact format you can use to fill out this field. - */ - public Builder customReports(String customReports) { - Utils.checkNotNull(customReports, "customReports"); - this.customReports = Optional.ofNullable(customReports); - return this; - } - - /** - * A JSON array describing the custom reports you want to sync from Google Analytics. See <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4#data-processing-latency">the docs</a> for more information about the exact format you can use to fill out this field. - */ - public Builder customReports(Optional customReports) { - Utils.checkNotNull(customReports, "customReports"); - this.customReports = customReports; - return this; - } - - /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. - */ - public Builder endDate(LocalDate endDate) { - Utils.checkNotNull(endDate, "endDate"); - this.endDate = Optional.ofNullable(endDate); - return this; - } - - /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. - */ - public Builder endDate(Optional endDate) { - Utils.checkNotNull(endDate, "endDate"); - this.endDate = endDate; - return this; - } - - /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. - */ - public Builder startDate(LocalDate startDate) { - Utils.checkNotNull(startDate, "startDate"); - this.startDate = startDate; - return this; - } - - /** - * The ID for the Google Analytics View you want to fetch data from. This can be found from the <a href="https://ga-dev-tools.appspot.com/account-explorer/">Google Analytics Account Explorer</a>. - */ - public Builder viewId(String viewId) { - Utils.checkNotNull(viewId, "viewId"); - this.viewId = viewId; - return this; - } - - /** - * The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4/#sampling-in-reports">the docs</a>. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. - */ - public Builder windowInDays(long windowInDays) { - Utils.checkNotNull(windowInDays, "windowInDays"); - this.windowInDays = Optional.ofNullable(windowInDays); - return this; - } - - /** - * The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the <a href="https://docs.airbyte.com/integrations/sources/google-analytics-v4/#sampling-in-reports">the docs</a>. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. - */ - public Builder windowInDays(Optional windowInDays) { - Utils.checkNotNull(windowInDays, "windowInDays"); - this.windowInDays = windowInDays; - return this; - } - - public SourceGoogleAnalyticsV4ServiceAccountOnly build() { - if (windowInDays == null) { - windowInDays = _SINGLETON_VALUE_WindowInDays.value(); - } - return new SourceGoogleAnalyticsV4ServiceAccountOnly( - credentials, - customReports, - endDate, - startDate, - viewId, - windowInDays); - } - - private static final LazySingletonValue _SINGLETON_VALUE_SourceType = - new LazySingletonValue<>( - "sourceType", - "\"google-analytics-v4-service-account-only\"", - new TypeReference() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_WindowInDays = - new LazySingletonValue<>( - "window_in_days", - "1", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.java deleted file mode 100644 index de090fe79..000000000 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.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; - -/** - * SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials - Credentials for the service - */ - -@JsonDeserialize(using = SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials._Deserializer.class) -public class SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials { - - @com.fasterxml.jackson.annotation.JsonValue - private TypedObject value; - - private SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials(TypedObject value) { - this.value = value; - } - - public static SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials of(SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication value) { - Utils.checkNotNull(value, "value"); - return new SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - /** - * Returns an instance of one of these types: - *

      - *
    • {@code SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication}
    • - *
    - * - *

    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; - } - SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials other = (SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials) 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(SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); - } - } - - @Override - public String toString() { - return Utils.toString(SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials.class, - "value", value); - } - -} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java index 0282d43eb..cb3622afe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java @@ -67,6 +67,13 @@ public class SourceGoogleDriveCSVFormat { @JsonProperty("header_definition") private Optional headerDefinition; + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ignore_errors_on_fields_mismatch") + private Optional ignoreErrorsOnFieldsMismatch; + /** * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. */ @@ -117,6 +124,7 @@ public SourceGoogleDriveCSVFormat( @JsonProperty("escape_char") Optional escapeChar, @JsonProperty("false_values") Optional> falseValues, @JsonProperty("header_definition") Optional headerDefinition, + @JsonProperty("ignore_errors_on_fields_mismatch") Optional ignoreErrorsOnFieldsMismatch, @JsonProperty("null_values") Optional> nullValues, @JsonProperty("quote_char") Optional quoteChar, @JsonProperty("skip_rows_after_header") Optional skipRowsAfterHeader, @@ -129,6 +137,7 @@ public SourceGoogleDriveCSVFormat( Utils.checkNotNull(escapeChar, "escapeChar"); Utils.checkNotNull(falseValues, "falseValues"); Utils.checkNotNull(headerDefinition, "headerDefinition"); + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); Utils.checkNotNull(nullValues, "nullValues"); Utils.checkNotNull(quoteChar, "quoteChar"); Utils.checkNotNull(skipRowsAfterHeader, "skipRowsAfterHeader"); @@ -142,6 +151,7 @@ public SourceGoogleDriveCSVFormat( this.falseValues = falseValues; this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); this.headerDefinition = headerDefinition; + this.ignoreErrorsOnFieldsMismatch = ignoreErrorsOnFieldsMismatch; this.nullValues = nullValues; this.quoteChar = quoteChar; this.skipRowsAfterHeader = skipRowsAfterHeader; @@ -151,7 +161,7 @@ public SourceGoogleDriveCSVFormat( } public SourceGoogleDriveCSVFormat() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -214,6 +224,15 @@ public Optional headerDefinition() { return (Optional) headerDefinition; } + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional ignoreErrorsOnFieldsMismatch() { + return (Optional) ignoreErrorsOnFieldsMismatch; + } + /** * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. */ @@ -380,6 +399,24 @@ public SourceGoogleDriveCSVFormat withHeaderDefinition(Optional ignoreErrorsOnFieldsMismatch) { + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); + this.ignoreErrorsOnFieldsMismatch = ignoreErrorsOnFieldsMismatch; + return this; + } + /** * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. */ @@ -505,6 +542,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.falseValues, other.falseValues) && java.util.Objects.deepEquals(this.filetype, other.filetype) && java.util.Objects.deepEquals(this.headerDefinition, other.headerDefinition) && + java.util.Objects.deepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && java.util.Objects.deepEquals(this.nullValues, other.nullValues) && java.util.Objects.deepEquals(this.quoteChar, other.quoteChar) && java.util.Objects.deepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && @@ -523,6 +561,7 @@ public int hashCode() { falseValues, filetype, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, skipRowsAfterHeader, @@ -541,6 +580,7 @@ public String toString() { "falseValues", falseValues, "filetype", filetype, "headerDefinition", headerDefinition, + "ignoreErrorsOnFieldsMismatch", ignoreErrorsOnFieldsMismatch, "nullValues", nullValues, "quoteChar", quoteChar, "skipRowsAfterHeader", skipRowsAfterHeader, @@ -563,6 +603,8 @@ public final static class Builder { private Optional headerDefinition = Optional.empty(); + private Optional ignoreErrorsOnFieldsMismatch; + private Optional> nullValues = Optional.empty(); private Optional quoteChar; @@ -687,6 +729,24 @@ public Builder headerDefinition(Optional ignoreErrorsOnFieldsMismatch) { + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); + this.ignoreErrorsOnFieldsMismatch = ignoreErrorsOnFieldsMismatch; + return this; + } + /** * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. */ @@ -805,6 +865,9 @@ public SourceGoogleDriveCSVFormat build() { if (encoding == null) { encoding = _SINGLETON_VALUE_Encoding.value(); } + if (ignoreErrorsOnFieldsMismatch == null) { + ignoreErrorsOnFieldsMismatch = _SINGLETON_VALUE_IgnoreErrorsOnFieldsMismatch.value(); + } if (quoteChar == null) { quoteChar = _SINGLETON_VALUE_QuoteChar.value(); } @@ -824,6 +887,7 @@ public SourceGoogleDriveCSVFormat build() { escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, skipRowsAfterHeader, @@ -856,6 +920,12 @@ public SourceGoogleDriveCSVFormat build() { "\"csv\"", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_IgnoreErrorsOnFieldsMismatch = + new LazySingletonValue<>( + "ignore_errors_on_fields_mismatch", + "false", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_QuoteChar = new LazySingletonValue<>( "quote_char", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java b/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java index e860d2c57..35aa5fa44 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java @@ -30,6 +30,13 @@ public class SourceIntercom { @JsonProperty("access_token") private String accessToken; + /** + * Set lower value in case of failing long running sync of Activity Logs stream. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("activity_logs_time_step") + private Optional activityLogsTimeStep; + /** * Client Id for your Intercom application. */ @@ -56,14 +63,17 @@ public class SourceIntercom { @JsonCreator public SourceIntercom( @JsonProperty("access_token") String accessToken, + @JsonProperty("activity_logs_time_step") Optional activityLogsTimeStep, @JsonProperty("client_id") Optional clientId, @JsonProperty("client_secret") Optional clientSecret, @JsonProperty("start_date") OffsetDateTime startDate) { Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(activityLogsTimeStep, "activityLogsTimeStep"); Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); Utils.checkNotNull(startDate, "startDate"); this.accessToken = accessToken; + this.activityLogsTimeStep = activityLogsTimeStep; this.clientId = clientId; this.clientSecret = clientSecret; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); @@ -73,7 +83,7 @@ public SourceIntercom( public SourceIntercom( String accessToken, OffsetDateTime startDate) { - this(accessToken, Optional.empty(), Optional.empty(), startDate); + this(accessToken, Optional.empty(), Optional.empty(), Optional.empty(), startDate); } /** @@ -84,6 +94,15 @@ public String accessToken() { return accessToken; } + /** + * Set lower value in case of failing long running sync of Activity Logs stream. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityLogsTimeStep() { + return (Optional) activityLogsTimeStep; + } + /** * Client Id for your Intercom application. */ @@ -128,6 +147,24 @@ public SourceIntercom withAccessToken(String accessToken) { return this; } + /** + * Set lower value in case of failing long running sync of Activity Logs stream. + */ + public SourceIntercom withActivityLogsTimeStep(long activityLogsTimeStep) { + Utils.checkNotNull(activityLogsTimeStep, "activityLogsTimeStep"); + this.activityLogsTimeStep = Optional.ofNullable(activityLogsTimeStep); + return this; + } + + /** + * Set lower value in case of failing long running sync of Activity Logs stream. + */ + public SourceIntercom withActivityLogsTimeStep(Optional activityLogsTimeStep) { + Utils.checkNotNull(activityLogsTimeStep, "activityLogsTimeStep"); + this.activityLogsTimeStep = activityLogsTimeStep; + return this; + } + /** * Client Id for your Intercom application. */ @@ -184,6 +221,7 @@ public boolean equals(java.lang.Object o) { SourceIntercom other = (SourceIntercom) o; return java.util.Objects.deepEquals(this.accessToken, other.accessToken) && + java.util.Objects.deepEquals(this.activityLogsTimeStep, other.activityLogsTimeStep) && java.util.Objects.deepEquals(this.clientId, other.clientId) && java.util.Objects.deepEquals(this.clientSecret, other.clientSecret) && java.util.Objects.deepEquals(this.sourceType, other.sourceType) && @@ -194,6 +232,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return java.util.Objects.hash( accessToken, + activityLogsTimeStep, clientId, clientSecret, sourceType, @@ -204,6 +243,7 @@ public int hashCode() { public String toString() { return Utils.toString(SourceIntercom.class, "accessToken", accessToken, + "activityLogsTimeStep", activityLogsTimeStep, "clientId", clientId, "clientSecret", clientSecret, "sourceType", sourceType, @@ -214,6 +254,8 @@ public final static class Builder { private String accessToken; + private Optional activityLogsTimeStep; + private Optional clientId = Optional.empty(); private Optional clientSecret = Optional.empty(); @@ -233,6 +275,24 @@ public Builder accessToken(String accessToken) { return this; } + /** + * Set lower value in case of failing long running sync of Activity Logs stream. + */ + public Builder activityLogsTimeStep(long activityLogsTimeStep) { + Utils.checkNotNull(activityLogsTimeStep, "activityLogsTimeStep"); + this.activityLogsTimeStep = Optional.ofNullable(activityLogsTimeStep); + return this; + } + + /** + * Set lower value in case of failing long running sync of Activity Logs stream. + */ + public Builder activityLogsTimeStep(Optional activityLogsTimeStep) { + Utils.checkNotNull(activityLogsTimeStep, "activityLogsTimeStep"); + this.activityLogsTimeStep = activityLogsTimeStep; + return this; + } + /** * Client Id for your Intercom application. */ @@ -279,13 +339,23 @@ public Builder startDate(OffsetDateTime startDate) { } public SourceIntercom build() { + if (activityLogsTimeStep == null) { + activityLogsTimeStep = _SINGLETON_VALUE_ActivityLogsTimeStep.value(); + } return new SourceIntercom( accessToken, + activityLogsTimeStep, clientId, clientSecret, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_ActivityLogsTimeStep = + new LazySingletonValue<>( + "activity_logs_time_step", + "30", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java b/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java index 30c295ce0..5a1a09f46 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java @@ -35,9 +35,8 @@ public class SourceIp2whois { @JsonProperty("domain") private Optional domain; - @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") - private Optional sourceType; + private Ip2whois sourceType; @JsonCreator public SourceIp2whois( @@ -72,10 +71,9 @@ public Optional domain() { return (Optional) domain; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional sourceType() { - return (Optional) sourceType; + public Ip2whois sourceType() { + return sourceType; } public final static Builder builder() { @@ -201,11 +199,11 @@ public SourceIp2whois build() { domain); } - private static final LazySingletonValue> _SINGLETON_VALUE_SourceType = + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"ip2whois\"", - new TypeReference>() {}); + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java b/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java index 66d47dd5c..4f3ee2f28 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java @@ -35,7 +35,7 @@ public class SourceKlarna { private Optional playground; /** - * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc' + * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ @JsonProperty("region") private SourceKlarnaRegion region; @@ -91,7 +91,7 @@ public Optional playground() { } /** - * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc' + * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ @JsonIgnore public SourceKlarnaRegion region() { @@ -143,7 +143,7 @@ public SourceKlarna withPlayground(Optional playground) { } /** - * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc' + * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ public SourceKlarna withRegion(SourceKlarnaRegion region) { Utils.checkNotNull(region, "region"); @@ -239,7 +239,7 @@ public Builder playground(Optional playground) { } /** - * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc' + * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ public Builder region(SourceKlarnaRegion region) { Utils.checkNotNull(region, "region"); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java index 52960cf8b..63c0ec316 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java @@ -16,11 +16,11 @@ import java.math.BigInteger; /** - * SourceKlarnaRegion - Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc' + * SourceKlarnaRegion - Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ public enum SourceKlarnaRegion { EU("eu"), - US("us"), + NA("na"), OC("oc"); @JsonValue diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java index 7367d5397..c6981b525 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java @@ -13,10 +13,13 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.io.InputStream; import java.lang.Deprecated; import java.math.BigDecimal; import java.math.BigInteger; +import java.time.OffsetDateTime; import java.util.Optional; public class SourceLinkedinPages { @@ -34,20 +37,40 @@ public class SourceLinkedinPages { @JsonProperty("sourceType") private LinkedinPages sourceType; + /** + * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start_date") + private Optional startDate; + + /** + * Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("time_granularity_type") + private Optional timeGranularityType; + @JsonCreator public SourceLinkedinPages( @JsonProperty("credentials") Optional credentials, - @JsonProperty("org_id") String orgId) { + @JsonProperty("org_id") String orgId, + @JsonProperty("start_date") Optional startDate, + @JsonProperty("time_granularity_type") Optional timeGranularityType) { Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(orgId, "orgId"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(timeGranularityType, "timeGranularityType"); this.credentials = credentials; this.orgId = orgId; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + this.timeGranularityType = timeGranularityType; } public SourceLinkedinPages( String orgId) { - this(Optional.empty(), orgId); + this(Optional.empty(), orgId, Optional.empty(), Optional.empty()); } @SuppressWarnings("unchecked") @@ -69,6 +92,24 @@ public LinkedinPages sourceType() { return sourceType; } + /** + * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional startDate() { + return (Optional) startDate; + } + + /** + * Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional timeGranularityType() { + return (Optional) timeGranularityType; + } + public final static Builder builder() { return new Builder(); } @@ -93,6 +134,42 @@ public SourceLinkedinPages withOrgId(String orgId) { this.orgId = orgId; return this; } + + /** + * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + */ + public SourceLinkedinPages withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + /** + * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + */ + public SourceLinkedinPages withStartDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" + */ + public SourceLinkedinPages withTimeGranularityType(TimeGranularityType timeGranularityType) { + Utils.checkNotNull(timeGranularityType, "timeGranularityType"); + this.timeGranularityType = Optional.ofNullable(timeGranularityType); + return this; + } + + /** + * Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" + */ + public SourceLinkedinPages withTimeGranularityType(Optional timeGranularityType) { + Utils.checkNotNull(timeGranularityType, "timeGranularityType"); + this.timeGranularityType = timeGranularityType; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -106,7 +183,9 @@ public boolean equals(java.lang.Object o) { return java.util.Objects.deepEquals(this.credentials, other.credentials) && java.util.Objects.deepEquals(this.orgId, other.orgId) && - java.util.Objects.deepEquals(this.sourceType, other.sourceType); + java.util.Objects.deepEquals(this.sourceType, other.sourceType) && + java.util.Objects.deepEquals(this.startDate, other.startDate) && + java.util.Objects.deepEquals(this.timeGranularityType, other.timeGranularityType); } @Override @@ -114,7 +193,9 @@ public int hashCode() { return java.util.Objects.hash( credentials, orgId, - sourceType); + sourceType, + startDate, + timeGranularityType); } @Override @@ -122,14 +203,20 @@ public String toString() { return Utils.toString(SourceLinkedinPages.class, "credentials", credentials, "orgId", orgId, - "sourceType", sourceType); + "sourceType", sourceType, + "startDate", startDate, + "timeGranularityType", timeGranularityType); } public final static class Builder { private Optional credentials = Optional.empty(); - private String orgId; + private String orgId; + + private Optional startDate; + + private Optional timeGranularityType; private Builder() { // force use of static builder() method @@ -155,11 +242,55 @@ public Builder orgId(String orgId) { this.orgId = orgId; return this; } + + /** + * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + */ + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + /** + * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + */ + public Builder startDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" + */ + public Builder timeGranularityType(TimeGranularityType timeGranularityType) { + Utils.checkNotNull(timeGranularityType, "timeGranularityType"); + this.timeGranularityType = Optional.ofNullable(timeGranularityType); + return this; + } + + /** + * Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" + */ + public Builder timeGranularityType(Optional timeGranularityType) { + Utils.checkNotNull(timeGranularityType, "timeGranularityType"); + this.timeGranularityType = timeGranularityType; + return this; + } public SourceLinkedinPages build() { + if (startDate == null) { + startDate = _SINGLETON_VALUE_StartDate.value(); + } + if (timeGranularityType == null) { + timeGranularityType = _SINGLETON_VALUE_TimeGranularityType.value(); + } return new SourceLinkedinPages( credentials, - orgId); + orgId, + startDate, + timeGranularityType); } private static final LazySingletonValue _SINGLETON_VALUE_SourceType = @@ -167,6 +298,18 @@ public SourceLinkedinPages build() { "sourceType", "\"linkedin-pages\"", new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StartDate = + new LazySingletonValue<>( + "start_date", + "\"2023-01-01T00:00:00Z\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_TimeGranularityType = + new LazySingletonValue<>( + "time_granularity_type", + "\"DAY\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java b/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java index 6486ebde5..e1a5df2b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java @@ -29,7 +29,7 @@ public class SourceMailgun { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("domain_region") - private Optional domainRegion; + private Optional domainRegion; /** * Primary account API key to access your Mailgun data. @@ -49,7 +49,7 @@ public class SourceMailgun { @JsonCreator public SourceMailgun( - @JsonProperty("domain_region") Optional domainRegion, + @JsonProperty("domain_region") Optional domainRegion, @JsonProperty("private_key") String privateKey, @JsonProperty("start_date") Optional startDate) { Utils.checkNotNull(domainRegion, "domainRegion"); @@ -71,8 +71,8 @@ public SourceMailgun( */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional domainRegion() { - return (Optional) domainRegion; + public Optional domainRegion() { + return (Optional) domainRegion; } /** @@ -104,7 +104,7 @@ public final static Builder builder() { /** * Domain region code. 'EU' or 'US' are possible values. The default is 'US'. */ - public SourceMailgun withDomainRegion(String domainRegion) { + public SourceMailgun withDomainRegion(DomainRegionCode domainRegion) { Utils.checkNotNull(domainRegion, "domainRegion"); this.domainRegion = Optional.ofNullable(domainRegion); return this; @@ -113,7 +113,7 @@ public SourceMailgun withDomainRegion(String domainRegion) { /** * Domain region code. 'EU' or 'US' are possible values. The default is 'US'. */ - public SourceMailgun withDomainRegion(Optional domainRegion) { + public SourceMailgun withDomainRegion(Optional domainRegion) { Utils.checkNotNull(domainRegion, "domainRegion"); this.domainRegion = domainRegion; return this; @@ -182,7 +182,7 @@ public String toString() { public final static class Builder { - private Optional domainRegion; + private Optional domainRegion; private String privateKey; @@ -195,7 +195,7 @@ private Builder() { /** * Domain region code. 'EU' or 'US' are possible values. The default is 'US'. */ - public Builder domainRegion(String domainRegion) { + public Builder domainRegion(DomainRegionCode domainRegion) { Utils.checkNotNull(domainRegion, "domainRegion"); this.domainRegion = Optional.ofNullable(domainRegion); return this; @@ -204,7 +204,7 @@ public Builder domainRegion(String domainRegion) { /** * Domain region code. 'EU' or 'US' are possible values. The default is 'US'. */ - public Builder domainRegion(Optional domainRegion) { + public Builder domainRegion(Optional domainRegion) { Utils.checkNotNull(domainRegion, "domainRegion"); this.domainRegion = domainRegion; return this; @@ -247,11 +247,11 @@ public SourceMailgun build() { startDate); } - private static final LazySingletonValue> _SINGLETON_VALUE_DomainRegion = + private static final LazySingletonValue> _SINGLETON_VALUE_DomainRegion = new LazySingletonValue<>( "domain_region", "\"US\"", - new TypeReference>() {}); + new TypeReference>() {}); private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java index 5a6990fbe..387ab6ebe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java @@ -67,6 +67,13 @@ public class SourceMicrosoftOnedriveCSVFormat { @JsonProperty("header_definition") private Optional headerDefinition; + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ignore_errors_on_fields_mismatch") + private Optional ignoreErrorsOnFieldsMismatch; + /** * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. */ @@ -117,6 +124,7 @@ public SourceMicrosoftOnedriveCSVFormat( @JsonProperty("escape_char") Optional escapeChar, @JsonProperty("false_values") Optional> falseValues, @JsonProperty("header_definition") Optional headerDefinition, + @JsonProperty("ignore_errors_on_fields_mismatch") Optional ignoreErrorsOnFieldsMismatch, @JsonProperty("null_values") Optional> nullValues, @JsonProperty("quote_char") Optional quoteChar, @JsonProperty("skip_rows_after_header") Optional skipRowsAfterHeader, @@ -129,6 +137,7 @@ public SourceMicrosoftOnedriveCSVFormat( Utils.checkNotNull(escapeChar, "escapeChar"); Utils.checkNotNull(falseValues, "falseValues"); Utils.checkNotNull(headerDefinition, "headerDefinition"); + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); Utils.checkNotNull(nullValues, "nullValues"); Utils.checkNotNull(quoteChar, "quoteChar"); Utils.checkNotNull(skipRowsAfterHeader, "skipRowsAfterHeader"); @@ -142,6 +151,7 @@ public SourceMicrosoftOnedriveCSVFormat( this.falseValues = falseValues; this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); this.headerDefinition = headerDefinition; + this.ignoreErrorsOnFieldsMismatch = ignoreErrorsOnFieldsMismatch; this.nullValues = nullValues; this.quoteChar = quoteChar; this.skipRowsAfterHeader = skipRowsAfterHeader; @@ -151,7 +161,7 @@ public SourceMicrosoftOnedriveCSVFormat( } public SourceMicrosoftOnedriveCSVFormat() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -214,6 +224,15 @@ public Optional headerDefinition() { return (Optional) headerDefinition; } + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional ignoreErrorsOnFieldsMismatch() { + return (Optional) ignoreErrorsOnFieldsMismatch; + } + /** * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. */ @@ -380,6 +399,24 @@ public SourceMicrosoftOnedriveCSVFormat withHeaderDefinition(Optional ignoreErrorsOnFieldsMismatch) { + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); + this.ignoreErrorsOnFieldsMismatch = ignoreErrorsOnFieldsMismatch; + return this; + } + /** * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. */ @@ -505,6 +542,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.falseValues, other.falseValues) && java.util.Objects.deepEquals(this.filetype, other.filetype) && java.util.Objects.deepEquals(this.headerDefinition, other.headerDefinition) && + java.util.Objects.deepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && java.util.Objects.deepEquals(this.nullValues, other.nullValues) && java.util.Objects.deepEquals(this.quoteChar, other.quoteChar) && java.util.Objects.deepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && @@ -523,6 +561,7 @@ public int hashCode() { falseValues, filetype, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, skipRowsAfterHeader, @@ -541,6 +580,7 @@ public String toString() { "falseValues", falseValues, "filetype", filetype, "headerDefinition", headerDefinition, + "ignoreErrorsOnFieldsMismatch", ignoreErrorsOnFieldsMismatch, "nullValues", nullValues, "quoteChar", quoteChar, "skipRowsAfterHeader", skipRowsAfterHeader, @@ -563,6 +603,8 @@ public final static class Builder { private Optional headerDefinition = Optional.empty(); + private Optional ignoreErrorsOnFieldsMismatch; + private Optional> nullValues = Optional.empty(); private Optional quoteChar; @@ -687,6 +729,24 @@ public Builder headerDefinition(Optional ignoreErrorsOnFieldsMismatch) { + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); + this.ignoreErrorsOnFieldsMismatch = ignoreErrorsOnFieldsMismatch; + return this; + } + /** * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. */ @@ -805,6 +865,9 @@ public SourceMicrosoftOnedriveCSVFormat build() { if (encoding == null) { encoding = _SINGLETON_VALUE_Encoding.value(); } + if (ignoreErrorsOnFieldsMismatch == null) { + ignoreErrorsOnFieldsMismatch = _SINGLETON_VALUE_IgnoreErrorsOnFieldsMismatch.value(); + } if (quoteChar == null) { quoteChar = _SINGLETON_VALUE_QuoteChar.value(); } @@ -824,6 +887,7 @@ public SourceMicrosoftOnedriveCSVFormat build() { escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, skipRowsAfterHeader, @@ -856,6 +920,12 @@ public SourceMicrosoftOnedriveCSVFormat build() { "\"csv\"", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_IgnoreErrorsOnFieldsMismatch = + new LazySingletonValue<>( + "ignore_errors_on_fields_mismatch", + "false", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_QuoteChar = new LazySingletonValue<>( "quote_char", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java index 0d91aaf65..e74635a6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java @@ -55,9 +55,9 @@ public static SourceMicrosoftOnedriveFormat of(SourceMicrosoftOnedriveParquetFor return new SourceMicrosoftOnedriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceMicrosoftOnedriveFormat of(SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental value) { + public static SourceMicrosoftOnedriveFormat of(UnstructuredDocumentFormat value) { Utils.checkNotNull(value, "value"); - return new SourceMicrosoftOnedriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceMicrosoftOnedriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** @@ -67,7 +67,7 @@ public static SourceMicrosoftOnedriveFormat of(SourceMicrosoftOnedriveDocumentFi *
  • {@code SourceMicrosoftOnedriveCSVFormat}
  • *
  • {@code SourceMicrosoftOnedriveJsonlFormat}
  • *
  • {@code SourceMicrosoftOnedriveParquetFormat}
  • - *
  • {@code SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental}
  • + *
  • {@code UnstructuredDocumentFormat}
  • * * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -111,7 +111,7 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java index 2f80a2d68..384093c14 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java @@ -55,9 +55,9 @@ public static SourceMicrosoftSharepointFormat of(SourceMicrosoftSharepointParque return new SourceMicrosoftSharepointFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceMicrosoftSharepointFormat of(SourceMicrosoftSharepointDocumentFileTypeFormatExperimental value) { + public static SourceMicrosoftSharepointFormat of(SourceMicrosoftSharepointUnstructuredDocumentFormat value) { Utils.checkNotNull(value, "value"); - return new SourceMicrosoftSharepointFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceMicrosoftSharepointFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** @@ -67,7 +67,7 @@ public static SourceMicrosoftSharepointFormat of(SourceMicrosoftSharepointDocume *

  • {@code SourceMicrosoftSharepointCSVFormat}
  • *
  • {@code SourceMicrosoftSharepointJsonlFormat}
  • *
  • {@code SourceMicrosoftSharepointParquetFormat}
  • - *
  • {@code SourceMicrosoftSharepointDocumentFileTypeFormatExperimental}
  • + *
  • {@code SourceMicrosoftSharepointUnstructuredDocumentFormat}
  • * * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -111,7 +111,7 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDocumentFileTypeFormatExperimental.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java similarity index 88% rename from src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDocumentFileTypeFormatExperimental.java rename to src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java index 84e39a7e2..134b80740 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDocumentFileTypeFormatExperimental.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java @@ -19,10 +19,10 @@ import java.math.BigInteger; import java.util.Optional; /** - * SourceMicrosoftSharepointDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. + * SourceMicrosoftSharepointUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ -public class SourceMicrosoftSharepointDocumentFileTypeFormatExperimental { +public class SourceMicrosoftSharepointUnstructuredDocumentFormat { @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") @@ -50,7 +50,7 @@ public class SourceMicrosoftSharepointDocumentFileTypeFormatExperimental { private Optional strategy; @JsonCreator - public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental( + public SourceMicrosoftSharepointUnstructuredDocumentFormat( @JsonProperty("processing") Optional processing, @JsonProperty("skip_unprocessable_files") Optional skipUnprocessableFiles, @JsonProperty("strategy") Optional strategy) { @@ -63,7 +63,7 @@ public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental( this.strategy = strategy; } - public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental() { + public SourceMicrosoftSharepointUnstructuredDocumentFormat() { this(Optional.empty(), Optional.empty(), Optional.empty()); } @@ -107,7 +107,7 @@ public final static Builder builder() { /** * Processing configuration */ - public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withProcessing(SourceMicrosoftSharepointProcessing processing) { + public SourceMicrosoftSharepointUnstructuredDocumentFormat withProcessing(SourceMicrosoftSharepointProcessing processing) { Utils.checkNotNull(processing, "processing"); this.processing = Optional.ofNullable(processing); return this; @@ -116,7 +116,7 @@ public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withProcessin /** * Processing configuration */ - public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withProcessing(Optional processing) { + public SourceMicrosoftSharepointUnstructuredDocumentFormat withProcessing(Optional processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; @@ -125,7 +125,7 @@ public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withProcessin /** * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. */ - public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { + public SourceMicrosoftSharepointUnstructuredDocumentFormat withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); this.skipUnprocessableFiles = Optional.ofNullable(skipUnprocessableFiles); return this; @@ -134,7 +134,7 @@ public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withSkipUnpro /** * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. */ - public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { + public SourceMicrosoftSharepointUnstructuredDocumentFormat withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); this.skipUnprocessableFiles = skipUnprocessableFiles; return this; @@ -143,7 +143,7 @@ public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withSkipUnpro /** * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ - public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withStrategy(SourceMicrosoftSharepointParsingStrategy strategy) { + public SourceMicrosoftSharepointUnstructuredDocumentFormat withStrategy(SourceMicrosoftSharepointParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = Optional.ofNullable(strategy); return this; @@ -152,7 +152,7 @@ public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withStrategy( /** * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ - public SourceMicrosoftSharepointDocumentFileTypeFormatExperimental withStrategy(Optional strategy) { + public SourceMicrosoftSharepointUnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; @@ -166,7 +166,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceMicrosoftSharepointDocumentFileTypeFormatExperimental other = (SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) o; + SourceMicrosoftSharepointUnstructuredDocumentFormat other = (SourceMicrosoftSharepointUnstructuredDocumentFormat) o; return java.util.Objects.deepEquals(this.filetype, other.filetype) && java.util.Objects.deepEquals(this.processing, other.processing) && @@ -185,7 +185,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SourceMicrosoftSharepointDocumentFileTypeFormatExperimental.class, + return Utils.toString(SourceMicrosoftSharepointUnstructuredDocumentFormat.class, "filetype", filetype, "processing", processing, "skipUnprocessableFiles", skipUnprocessableFiles, @@ -258,14 +258,14 @@ public Builder strategy(Optional endDate; + private Optional endDate; /** * Time zone in which integer date times are stored. The project timezone may be found in the project settings in the <a href="https://help.mixpanel.com/hc/en-us/articles/115004547203-Manage-Timezones-for-Projects-in-Mixpanel">Mixpanel console</a>. @@ -78,18 +80,18 @@ public class SourceMixpanel { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") - private Optional startDate; + private Optional startDate; @JsonCreator public SourceMixpanel( @JsonProperty("attribution_window") Optional attributionWindow, @JsonProperty("credentials") AuthenticationWildcard credentials, @JsonProperty("date_window_size") Optional dateWindowSize, - @JsonProperty("end_date") Optional endDate, + @JsonProperty("end_date") Optional endDate, @JsonProperty("project_timezone") Optional projectTimezone, @JsonProperty("region") Optional region, @JsonProperty("select_properties_by_default") Optional selectPropertiesByDefault, - @JsonProperty("start_date") Optional startDate) { + @JsonProperty("start_date") Optional startDate) { Utils.checkNotNull(attributionWindow, "attributionWindow"); Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(dateWindowSize, "dateWindowSize"); @@ -145,8 +147,8 @@ public Optional dateWindowSize() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional endDate() { - return (Optional) endDate; + public Optional endDate() { + return (Optional) endDate; } /** @@ -186,8 +188,8 @@ public Mixpanel sourceType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional startDate() { - return (Optional) startDate; + public Optional startDate() { + return (Optional) startDate; } public final static Builder builder() { @@ -242,7 +244,7 @@ public SourceMixpanel withDateWindowSize(Optional dateWindowSize /** * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date */ - public SourceMixpanel withEndDate(LocalDate endDate) { + public SourceMixpanel withEndDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = Optional.ofNullable(endDate); return this; @@ -251,7 +253,7 @@ public SourceMixpanel withEndDate(LocalDate endDate) { /** * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date */ - public SourceMixpanel withEndDate(Optional endDate) { + public SourceMixpanel withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; @@ -314,7 +316,7 @@ public SourceMixpanel withSelectPropertiesByDefault(Optional /** * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. */ - public SourceMixpanel withStartDate(LocalDate startDate) { + public SourceMixpanel withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = Optional.ofNullable(startDate); return this; @@ -323,7 +325,7 @@ public SourceMixpanel withStartDate(LocalDate startDate) { /** * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. */ - public SourceMixpanel withStartDate(Optional startDate) { + public SourceMixpanel withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; @@ -386,7 +388,7 @@ public final static class Builder { private Optional dateWindowSize; - private Optional endDate = Optional.empty(); + private Optional endDate = Optional.empty(); private Optional projectTimezone; @@ -394,7 +396,7 @@ public final static class Builder { private Optional selectPropertiesByDefault; - private Optional startDate = Optional.empty(); + private Optional startDate = Optional.empty(); private Builder() { // force use of static builder() method @@ -448,7 +450,7 @@ public Builder dateWindowSize(Optional dateWindowSize) { /** * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date */ - public Builder endDate(LocalDate endDate) { + public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = Optional.ofNullable(endDate); return this; @@ -457,7 +459,7 @@ public Builder endDate(LocalDate endDate) { /** * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date */ - public Builder endDate(Optional endDate) { + public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; @@ -520,7 +522,7 @@ public Builder selectPropertiesByDefault(Optional selectPrope /** * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. */ - public Builder startDate(LocalDate startDate) { + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = Optional.ofNullable(startDate); return this; @@ -529,7 +531,7 @@ public Builder startDate(LocalDate startDate) { /** * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. */ - public Builder startDate(Optional startDate) { + public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java b/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java index 8d9ae1d9a..4a09c36ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java @@ -17,7 +17,6 @@ import java.lang.Deprecated; import java.math.BigDecimal; import java.math.BigInteger; -import java.time.LocalDate; import java.util.Optional; public class SourceNytimes { @@ -33,7 +32,7 @@ public class SourceNytimes { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") - private Optional endDate; + private Optional endDate; /** * Period of time (in days) @@ -55,15 +54,15 @@ public class SourceNytimes { * Start date to begin the article retrieval (format YYYY-MM) */ @JsonProperty("start_date") - private LocalDate startDate; + private String startDate; @JsonCreator public SourceNytimes( @JsonProperty("api_key") String apiKey, - @JsonProperty("end_date") Optional endDate, + @JsonProperty("end_date") Optional endDate, @JsonProperty("period") PeriodUsedForMostPopularStreams period, @JsonProperty("share_type") Optional shareType, - @JsonProperty("start_date") LocalDate startDate) { + @JsonProperty("start_date") String startDate) { Utils.checkNotNull(apiKey, "apiKey"); Utils.checkNotNull(endDate, "endDate"); Utils.checkNotNull(period, "period"); @@ -80,7 +79,7 @@ public SourceNytimes( public SourceNytimes( String apiKey, PeriodUsedForMostPopularStreams period, - LocalDate startDate) { + String startDate) { this(apiKey, Optional.empty(), period, Optional.empty(), startDate); } @@ -97,8 +96,8 @@ public String apiKey() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional endDate() { - return (Optional) endDate; + public Optional endDate() { + return (Optional) endDate; } /** @@ -127,7 +126,7 @@ public Nytimes sourceType() { * Start date to begin the article retrieval (format YYYY-MM) */ @JsonIgnore - public LocalDate startDate() { + public String startDate() { return startDate; } @@ -147,7 +146,7 @@ public SourceNytimes withApiKey(String apiKey) { /** * End date to stop the article retrieval (format YYYY-MM) */ - public SourceNytimes withEndDate(LocalDate endDate) { + public SourceNytimes withEndDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = Optional.ofNullable(endDate); return this; @@ -156,7 +155,7 @@ public SourceNytimes withEndDate(LocalDate endDate) { /** * End date to stop the article retrieval (format YYYY-MM) */ - public SourceNytimes withEndDate(Optional endDate) { + public SourceNytimes withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; @@ -192,7 +191,7 @@ public SourceNytimes withShareType(Optional endDate = Optional.empty(); + private Optional endDate = Optional.empty(); private PeriodUsedForMostPopularStreams period; private Optional shareType = Optional.empty(); - private LocalDate startDate; + private String startDate; private Builder() { // force use of static builder() method @@ -266,7 +265,7 @@ public Builder apiKey(String apiKey) { /** * End date to stop the article retrieval (format YYYY-MM) */ - public Builder endDate(LocalDate endDate) { + public Builder endDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = Optional.ofNullable(endDate); return this; @@ -275,7 +274,7 @@ public Builder endDate(LocalDate endDate) { /** * End date to stop the article retrieval (format YYYY-MM) */ - public Builder endDate(Optional endDate) { + public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; @@ -311,7 +310,7 @@ public Builder shareType(Optional startDate; + private Optional startDate; @JsonCreator public SourceOkta( @JsonProperty("credentials") Optional credentials, @JsonProperty("domain") Optional domain, - @JsonProperty("start_date") Optional startDate) { + @JsonProperty("start_date") Optional startDate) { Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(domain, "domain"); Utils.checkNotNull(startDate, "startDate"); @@ -85,8 +88,8 @@ public Okta sourceType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional startDate() { - return (Optional) startDate; + public Optional startDate() { + return (Optional) startDate; } public final static Builder builder() { @@ -126,7 +129,7 @@ public SourceOkta withDomain(Optional domain) { /** * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. */ - public SourceOkta withStartDate(String startDate) { + public SourceOkta withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = Optional.ofNullable(startDate); return this; @@ -135,7 +138,7 @@ public SourceOkta withStartDate(String startDate) { /** * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. */ - public SourceOkta withStartDate(Optional startDate) { + public SourceOkta withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; @@ -181,7 +184,7 @@ public final static class Builder { private Optional domain = Optional.empty(); - private Optional startDate = Optional.empty(); + private Optional startDate = Optional.empty(); private Builder() { // force use of static builder() method @@ -220,7 +223,7 @@ public Builder domain(Optional domain) { /** * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. */ - public Builder startDate(String startDate) { + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = Optional.ofNullable(startDate); return this; @@ -229,7 +232,7 @@ public Builder startDate(String startDate) { /** * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. */ - public Builder startDate(Optional startDate) { + public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOrb.java b/src/main/java/com/airbyte/api/models/shared/SourceOrb.java index 2d84abc84..1a2af82ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOrb.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOrb.java @@ -13,10 +13,13 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.io.InputStream; import java.lang.Deprecated; import java.math.BigDecimal; import java.math.BigInteger; +import java.time.OffsetDateTime; import java.util.Optional; public class SourceOrb { @@ -62,7 +65,7 @@ public class SourceOrb { * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ @JsonProperty("start_date") - private String startDate; + private OffsetDateTime startDate; /** * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. @@ -85,7 +88,7 @@ public SourceOrb( @JsonProperty("lookback_window_days") Optional lookbackWindowDays, @JsonProperty("numeric_event_properties_keys") Optional> numericEventPropertiesKeys, @JsonProperty("plan_id") Optional planId, - @JsonProperty("start_date") String startDate, + @JsonProperty("start_date") OffsetDateTime startDate, @JsonProperty("string_event_properties_keys") Optional> stringEventPropertiesKeys, @JsonProperty("subscription_usage_grouping_key") Optional subscriptionUsageGroupingKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -109,7 +112,7 @@ public SourceOrb( public SourceOrb( String apiKey, - String startDate) { + OffsetDateTime startDate) { this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate, Optional.empty(), Optional.empty()); } @@ -166,7 +169,7 @@ public Orb sourceType() { * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ @JsonIgnore - public String startDate() { + public OffsetDateTime startDate() { return startDate; } @@ -276,7 +279,7 @@ public SourceOrb withPlanId(Optional planId) { /** * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ - public SourceOrb withStartDate(String startDate) { + public SourceOrb withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; @@ -379,7 +382,7 @@ public final static class Builder { private Optional planId = Optional.empty(); - private String startDate; + private OffsetDateTime startDate; private Optional> stringEventPropertiesKeys = Optional.empty(); @@ -473,7 +476,7 @@ public Builder planId(Optional planId) { /** * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ - public Builder startDate(String startDate) { + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePunkApi.java b/src/main/java/com/airbyte/api/models/shared/SourcePunkApi.java deleted file mode 100644 index 05fec1c7c..000000000 --- a/src/main/java/com/airbyte/api/models/shared/SourcePunkApi.java +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; - -public class SourcePunkApi { - - /** - * To extract specific data with Unique ID - */ - @JsonProperty("brewed_after") - private String brewedAfter; - - /** - * To extract specific data with Unique ID - */ - @JsonProperty("brewed_before") - private String brewedBefore; - - /** - * To extract specific data with Unique ID - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonProperty("sourceType") - private PunkApi sourceType; - - @JsonCreator - public SourcePunkApi( - @JsonProperty("brewed_after") String brewedAfter, - @JsonProperty("brewed_before") String brewedBefore, - @JsonProperty("id") Optional id) { - Utils.checkNotNull(brewedAfter, "brewedAfter"); - Utils.checkNotNull(brewedBefore, "brewedBefore"); - Utils.checkNotNull(id, "id"); - this.brewedAfter = brewedAfter; - this.brewedBefore = brewedBefore; - this.id = id; - this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); - } - - public SourcePunkApi( - String brewedAfter, - String brewedBefore) { - this(brewedAfter, brewedBefore, Optional.empty()); - } - - /** - * To extract specific data with Unique ID - */ - @JsonIgnore - public String brewedAfter() { - return brewedAfter; - } - - /** - * To extract specific data with Unique ID - */ - @JsonIgnore - public String brewedBefore() { - return brewedBefore; - } - - /** - * To extract specific data with Unique ID - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @JsonIgnore - public PunkApi sourceType() { - return sourceType; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * To extract specific data with Unique ID - */ - public SourcePunkApi withBrewedAfter(String brewedAfter) { - Utils.checkNotNull(brewedAfter, "brewedAfter"); - this.brewedAfter = brewedAfter; - return this; - } - - /** - * To extract specific data with Unique ID - */ - public SourcePunkApi withBrewedBefore(String brewedBefore) { - Utils.checkNotNull(brewedBefore, "brewedBefore"); - this.brewedBefore = brewedBefore; - return this; - } - - /** - * To extract specific data with Unique ID - */ - public SourcePunkApi withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * To extract specific data with Unique ID - */ - public SourcePunkApi withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SourcePunkApi other = (SourcePunkApi) o; - return - java.util.Objects.deepEquals(this.brewedAfter, other.brewedAfter) && - java.util.Objects.deepEquals(this.brewedBefore, other.brewedBefore) && - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.sourceType, other.sourceType); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - brewedAfter, - brewedBefore, - id, - sourceType); - } - - @Override - public String toString() { - return Utils.toString(SourcePunkApi.class, - "brewedAfter", brewedAfter, - "brewedBefore", brewedBefore, - "id", id, - "sourceType", sourceType); - } - - public final static class Builder { - - private String brewedAfter; - - private String brewedBefore; - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * To extract specific data with Unique ID - */ - public Builder brewedAfter(String brewedAfter) { - Utils.checkNotNull(brewedAfter, "brewedAfter"); - this.brewedAfter = brewedAfter; - return this; - } - - /** - * To extract specific data with Unique ID - */ - public Builder brewedBefore(String brewedBefore) { - Utils.checkNotNull(brewedBefore, "brewedBefore"); - this.brewedBefore = brewedBefore; - return this; - } - - /** - * To extract specific data with Unique ID - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * To extract specific data with Unique ID - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public SourcePunkApi build() { - return new SourcePunkApi( - brewedAfter, - brewedBefore, - id); - } - - private static final LazySingletonValue _SINGLETON_VALUE_SourceType = - new LazySingletonValue<>( - "sourceType", - "\"punk-api\"", - new TypeReference() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java index 994ee4f62..2b47b56f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java @@ -55,9 +55,9 @@ public static SourceS3Format of(SourceS3ParquetFormat value) { return new SourceS3Format(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceS3Format of(SourceS3DocumentFileTypeFormatExperimental value) { + public static SourceS3Format of(SourceS3UnstructuredDocumentFormat value) { Utils.checkNotNull(value, "value"); - return new SourceS3Format(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceS3Format(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** @@ -67,7 +67,7 @@ public static SourceS3Format of(SourceS3DocumentFileTypeFormatExperimental value *

  • {@code SourceS3CSVFormat}
  • *
  • {@code SourceS3JsonlFormat}
  • *
  • {@code SourceS3ParquetFormat}
  • - *
  • {@code SourceS3DocumentFileTypeFormatExperimental}
  • + *
  • {@code SourceS3UnstructuredDocumentFormat}
  • * * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -111,7 +111,7 @@ public _Deserializer() { Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3DocumentFileTypeFormatExperimental.java b/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java similarity index 90% rename from src/main/java/com/airbyte/api/models/shared/SourceS3DocumentFileTypeFormatExperimental.java rename to src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java index 5624f4521..f7164889e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3DocumentFileTypeFormatExperimental.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java @@ -19,10 +19,10 @@ import java.math.BigInteger; import java.util.Optional; /** - * SourceS3DocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. + * SourceS3UnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ -public class SourceS3DocumentFileTypeFormatExperimental { +public class SourceS3UnstructuredDocumentFormat { @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") @@ -50,7 +50,7 @@ public class SourceS3DocumentFileTypeFormatExperimental { private Optional strategy; @JsonCreator - public SourceS3DocumentFileTypeFormatExperimental( + public SourceS3UnstructuredDocumentFormat( @JsonProperty("processing") Optional processing, @JsonProperty("skip_unprocessable_files") Optional skipUnprocessableFiles, @JsonProperty("strategy") Optional strategy) { @@ -63,7 +63,7 @@ public SourceS3DocumentFileTypeFormatExperimental( this.strategy = strategy; } - public SourceS3DocumentFileTypeFormatExperimental() { + public SourceS3UnstructuredDocumentFormat() { this(Optional.empty(), Optional.empty(), Optional.empty()); } @@ -107,7 +107,7 @@ public final static Builder builder() { /** * Processing configuration */ - public SourceS3DocumentFileTypeFormatExperimental withProcessing(SourceS3Processing processing) { + public SourceS3UnstructuredDocumentFormat withProcessing(SourceS3Processing processing) { Utils.checkNotNull(processing, "processing"); this.processing = Optional.ofNullable(processing); return this; @@ -116,7 +116,7 @@ public SourceS3DocumentFileTypeFormatExperimental withProcessing(SourceS3Process /** * Processing configuration */ - public SourceS3DocumentFileTypeFormatExperimental withProcessing(Optional processing) { + public SourceS3UnstructuredDocumentFormat withProcessing(Optional processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; @@ -125,7 +125,7 @@ public SourceS3DocumentFileTypeFormatExperimental withProcessing(Optional skipUnprocessableFiles) { + public SourceS3UnstructuredDocumentFormat withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); this.skipUnprocessableFiles = skipUnprocessableFiles; return this; @@ -143,7 +143,7 @@ public SourceS3DocumentFileTypeFormatExperimental withSkipUnprocessableFiles(Opt /** * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ - public SourceS3DocumentFileTypeFormatExperimental withStrategy(SourceS3ParsingStrategy strategy) { + public SourceS3UnstructuredDocumentFormat withStrategy(SourceS3ParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = Optional.ofNullable(strategy); return this; @@ -152,7 +152,7 @@ public SourceS3DocumentFileTypeFormatExperimental withStrategy(SourceS3ParsingSt /** * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ - public SourceS3DocumentFileTypeFormatExperimental withStrategy(Optional strategy) { + public SourceS3UnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; @@ -166,7 +166,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceS3DocumentFileTypeFormatExperimental other = (SourceS3DocumentFileTypeFormatExperimental) o; + SourceS3UnstructuredDocumentFormat other = (SourceS3UnstructuredDocumentFormat) o; return java.util.Objects.deepEquals(this.filetype, other.filetype) && java.util.Objects.deepEquals(this.processing, other.processing) && @@ -185,7 +185,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SourceS3DocumentFileTypeFormatExperimental.class, + return Utils.toString(SourceS3UnstructuredDocumentFormat.class, "filetype", filetype, "processing", processing, "skipUnprocessableFiles", skipUnprocessableFiles, @@ -258,14 +258,14 @@ public Builder strategy(Optional strategy) { return this; } - public SourceS3DocumentFileTypeFormatExperimental build() { + public SourceS3UnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); } if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); } - return new SourceS3DocumentFileTypeFormatExperimental( + return new SourceS3UnstructuredDocumentFormat( processing, skipUnprocessableFiles, strategy); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopify.java b/src/main/java/com/airbyte/api/models/shared/SourceShopify.java index 4850301f9..655f29687 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopify.java @@ -43,6 +43,13 @@ public class SourceShopify { @JsonProperty("fetch_transactions_user_id") private Optional fetchTransactionsUserId; + /** + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("job_termination_threshold") + private Optional jobTerminationThreshold; + /** * The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. */ @@ -64,16 +71,19 @@ public SourceShopify( @JsonProperty("bulk_window_in_days") Optional bulkWindowInDays, @JsonProperty("credentials") Optional credentials, @JsonProperty("fetch_transactions_user_id") Optional fetchTransactionsUserId, + @JsonProperty("job_termination_threshold") Optional jobTerminationThreshold, @JsonProperty("shop") String shop, @JsonProperty("start_date") Optional startDate) { Utils.checkNotNull(bulkWindowInDays, "bulkWindowInDays"); Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(fetchTransactionsUserId, "fetchTransactionsUserId"); + Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); Utils.checkNotNull(shop, "shop"); Utils.checkNotNull(startDate, "startDate"); this.bulkWindowInDays = bulkWindowInDays; this.credentials = credentials; this.fetchTransactionsUserId = fetchTransactionsUserId; + this.jobTerminationThreshold = jobTerminationThreshold; this.shop = shop; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; @@ -81,7 +91,7 @@ public SourceShopify( public SourceShopify( String shop) { - this(Optional.empty(), Optional.empty(), Optional.empty(), shop, Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), shop, Optional.empty()); } /** @@ -111,6 +121,15 @@ public Optional fetchTransactionsUserId() { return (Optional) fetchTransactionsUserId; } + /** + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional jobTerminationThreshold() { + return (Optional) jobTerminationThreshold; + } + /** * The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. */ @@ -191,6 +210,24 @@ public SourceShopify withFetchTransactionsUserId(Optional fet return this; } + /** + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + */ + public SourceShopify withJobTerminationThreshold(long jobTerminationThreshold) { + Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); + this.jobTerminationThreshold = Optional.ofNullable(jobTerminationThreshold); + return this; + } + + /** + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + */ + public SourceShopify withJobTerminationThreshold(Optional jobTerminationThreshold) { + Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); + this.jobTerminationThreshold = jobTerminationThreshold; + return this; + } + /** * The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. */ @@ -231,6 +268,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.bulkWindowInDays, other.bulkWindowInDays) && java.util.Objects.deepEquals(this.credentials, other.credentials) && java.util.Objects.deepEquals(this.fetchTransactionsUserId, other.fetchTransactionsUserId) && + java.util.Objects.deepEquals(this.jobTerminationThreshold, other.jobTerminationThreshold) && java.util.Objects.deepEquals(this.shop, other.shop) && java.util.Objects.deepEquals(this.sourceType, other.sourceType) && java.util.Objects.deepEquals(this.startDate, other.startDate); @@ -242,6 +280,7 @@ public int hashCode() { bulkWindowInDays, credentials, fetchTransactionsUserId, + jobTerminationThreshold, shop, sourceType, startDate); @@ -253,6 +292,7 @@ public String toString() { "bulkWindowInDays", bulkWindowInDays, "credentials", credentials, "fetchTransactionsUserId", fetchTransactionsUserId, + "jobTerminationThreshold", jobTerminationThreshold, "shop", shop, "sourceType", sourceType, "startDate", startDate); @@ -266,6 +306,8 @@ public final static class Builder { private Optional fetchTransactionsUserId; + private Optional jobTerminationThreshold; + private String shop; private Optional startDate; @@ -328,6 +370,24 @@ public Builder fetchTransactionsUserId(Optional fetchTransact return this; } + /** + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + */ + public Builder jobTerminationThreshold(long jobTerminationThreshold) { + Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); + this.jobTerminationThreshold = Optional.ofNullable(jobTerminationThreshold); + return this; + } + + /** + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + */ + public Builder jobTerminationThreshold(Optional jobTerminationThreshold) { + Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); + this.jobTerminationThreshold = jobTerminationThreshold; + return this; + } + /** * The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. */ @@ -362,6 +422,9 @@ public SourceShopify build() { if (fetchTransactionsUserId == null) { fetchTransactionsUserId = _SINGLETON_VALUE_FetchTransactionsUserId.value(); } + if (jobTerminationThreshold == null) { + jobTerminationThreshold = _SINGLETON_VALUE_JobTerminationThreshold.value(); + } if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } @@ -369,6 +432,7 @@ public SourceShopify build() { bulkWindowInDays, credentials, fetchTransactionsUserId, + jobTerminationThreshold, shop, startDate); } @@ -385,6 +449,12 @@ public SourceShopify build() { "false", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_JobTerminationThreshold = + new LazySingletonValue<>( + "job_termination_threshold", + "3600", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java index 7404ad6af..0275b4612 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java @@ -37,6 +37,11 @@ public static SourceSnowflakeAuthorizationMethod of(SourceSnowflakeOAuth20 value return new SourceSnowflakeAuthorizationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceSnowflakeAuthorizationMethod of(SourceSnowflakeKeyPairAuthentication value) { + Utils.checkNotNull(value, "value"); + return new SourceSnowflakeAuthorizationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceSnowflakeAuthorizationMethod of(SourceSnowflakeUsernameAndPassword value) { Utils.checkNotNull(value, "value"); return new SourceSnowflakeAuthorizationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -46,6 +51,7 @@ public static SourceSnowflakeAuthorizationMethod of(SourceSnowflakeUsernameAndPa * Returns an instance of one of these types: *

      *
    • {@code SourceSnowflakeOAuth20}
    • + *
    • {@code SourceSnowflakeKeyPairAuthentication}
    • *
    • {@code SourceSnowflakeUsernameAndPassword}
    • *
    * @@ -87,6 +93,7 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(SourceSnowflakeAuthorizationMethod.class, Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java new file mode 100644 index 000000000..a038f384a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java @@ -0,0 +1,234 @@ +/* + * 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 SourceSnowflakeKeyPairAuthentication { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("auth_type") + private Optional authType; + + /** + * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/sources/snowflake#key-pair-authentication">docs</a> for more information on how to obtain this key. + */ + @JsonProperty("private_key") + private String privateKey; + + /** + * Passphrase for private key + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("private_key_password") + private Optional privateKeyPassword; + + /** + * The username you created to allow Airbyte to access the database. + */ + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceSnowflakeKeyPairAuthentication( + @JsonProperty("private_key") String privateKey, + @JsonProperty("private_key_password") Optional privateKeyPassword, + @JsonProperty("username") String username) { + Utils.checkNotNull(privateKey, "privateKey"); + Utils.checkNotNull(privateKeyPassword, "privateKeyPassword"); + Utils.checkNotNull(username, "username"); + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.privateKey = privateKey; + this.privateKeyPassword = privateKeyPassword; + this.username = username; + } + + public SourceSnowflakeKeyPairAuthentication( + String privateKey, + String username) { + this(privateKey, Optional.empty(), username); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional authType() { + return (Optional) authType; + } + + /** + * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/sources/snowflake#key-pair-authentication">docs</a> for more information on how to obtain this key. + */ + @JsonIgnore + public String privateKey() { + return privateKey; + } + + /** + * Passphrase for private key + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional privateKeyPassword() { + return (Optional) privateKeyPassword; + } + + /** + * The username you created to allow Airbyte to access the database. + */ + @JsonIgnore + public String username() { + return username; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/sources/snowflake#key-pair-authentication">docs</a> for more information on how to obtain this key. + */ + public SourceSnowflakeKeyPairAuthentication withPrivateKey(String privateKey) { + Utils.checkNotNull(privateKey, "privateKey"); + this.privateKey = privateKey; + return this; + } + + /** + * Passphrase for private key + */ + public SourceSnowflakeKeyPairAuthentication withPrivateKeyPassword(String privateKeyPassword) { + Utils.checkNotNull(privateKeyPassword, "privateKeyPassword"); + this.privateKeyPassword = Optional.ofNullable(privateKeyPassword); + return this; + } + + /** + * Passphrase for private key + */ + public SourceSnowflakeKeyPairAuthentication withPrivateKeyPassword(Optional privateKeyPassword) { + Utils.checkNotNull(privateKeyPassword, "privateKeyPassword"); + this.privateKeyPassword = privateKeyPassword; + return this; + } + + /** + * The username you created to allow Airbyte to access the database. + */ + public SourceSnowflakeKeyPairAuthentication 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; + } + SourceSnowflakeKeyPairAuthentication other = (SourceSnowflakeKeyPairAuthentication) o; + return + java.util.Objects.deepEquals(this.authType, other.authType) && + java.util.Objects.deepEquals(this.privateKey, other.privateKey) && + java.util.Objects.deepEquals(this.privateKeyPassword, other.privateKeyPassword) && + java.util.Objects.deepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + authType, + privateKey, + privateKeyPassword, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceSnowflakeKeyPairAuthentication.class, + "authType", authType, + "privateKey", privateKey, + "privateKeyPassword", privateKeyPassword, + "username", username); + } + + public final static class Builder { + + private String privateKey; + + private Optional privateKeyPassword = Optional.empty(); + + private String username; + + private Builder() { + // force use of static builder() method + } + + /** + * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/sources/snowflake#key-pair-authentication">docs</a> for more information on how to obtain this key. + */ + public Builder privateKey(String privateKey) { + Utils.checkNotNull(privateKey, "privateKey"); + this.privateKey = privateKey; + return this; + } + + /** + * Passphrase for private key + */ + public Builder privateKeyPassword(String privateKeyPassword) { + Utils.checkNotNull(privateKeyPassword, "privateKeyPassword"); + this.privateKeyPassword = Optional.ofNullable(privateKeyPassword); + return this; + } + + /** + * Passphrase for private key + */ + public Builder privateKeyPassword(Optional privateKeyPassword) { + Utils.checkNotNull(privateKeyPassword, "privateKeyPassword"); + this.privateKeyPassword = privateKeyPassword; + return this; + } + + /** + * The username you created to allow Airbyte to access the database. + */ + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceSnowflakeKeyPairAuthentication build() { + return new SourceSnowflakeKeyPairAuthentication( + privateKey, + privateKeyPassword, + username); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"Key Pair Authentication\"", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java index 3f21eab23..9be9ce1ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java @@ -16,7 +16,7 @@ import java.math.BigInteger; public enum SourceSnowflakeSchemasAuthType { - USERNAME_PASSWORD("username/password"); + KEY_PAIR_AUTHENTICATION("Key Pair Authentication"); @JsonValue private final String value; diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingMode.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java similarity index 80% rename from src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingMode.java rename to src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java index 8fc88c307..3ac3940b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java @@ -15,13 +15,13 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum DestinationLangchainSchemasIndexingMode { - PINECONE("pinecone"); +public enum SourceSnowflakeSchemasCredentialsAuthType { + USERNAME_PASSWORD("username/password"); @JsonValue private final String value; - private DestinationLangchainSchemasIndexingMode(String value) { + private SourceSnowflakeSchemasCredentialsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java index 689987e6b..cfc56581b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java @@ -19,7 +19,7 @@ public class SourceSnowflakeUsernameAndPassword { @JsonProperty("auth_type") - private SourceSnowflakeSchemasAuthType authType; + private SourceSnowflakeSchemasCredentialsAuthType authType; /** * The password associated with the username. @@ -45,7 +45,7 @@ public SourceSnowflakeUsernameAndPassword( } @JsonIgnore - public SourceSnowflakeSchemasAuthType authType() { + public SourceSnowflakeSchemasCredentialsAuthType authType() { return authType; } @@ -152,11 +152,11 @@ public SourceSnowflakeUsernameAndPassword build() { username); } - private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"username/password\"", - new TypeReference() {}); + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java index 633748a94..43df3f94f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java @@ -44,7 +44,7 @@ public class SourceTiktokMarketing { private Optional endDate; /** - * Set to active if you want to include deleted data in reports. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("include_deleted") @@ -113,7 +113,7 @@ public Optional endDate() { } /** - * Set to active if you want to include deleted data in reports. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -195,7 +195,7 @@ public SourceTiktokMarketing withEndDate(Optional endDate) } /** - * Set to active if you want to include deleted data in reports. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. */ public SourceTiktokMarketing withIncludeDeleted(boolean includeDeleted) { Utils.checkNotNull(includeDeleted, "includeDeleted"); @@ -204,7 +204,7 @@ public SourceTiktokMarketing withIncludeDeleted(boolean includeDeleted) { } /** - * Set to active if you want to include deleted data in reports. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. */ public SourceTiktokMarketing withIncludeDeleted(Optional includeDeleted) { Utils.checkNotNull(includeDeleted, "includeDeleted"); @@ -341,7 +341,7 @@ public Builder endDate(Optional endDate) { } /** - * Set to active if you want to include deleted data in reports. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. */ public Builder includeDeleted(boolean includeDeleted) { Utils.checkNotNull(includeDeleted, "includeDeleted"); @@ -350,7 +350,7 @@ public Builder includeDeleted(boolean includeDeleted) { } /** - * Set to active if you want to include deleted data in reports. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. */ public Builder includeDeleted(Optional includeDeleted) { Utils.checkNotNull(includeDeleted, "includeDeleted"); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java b/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java index 659423216..513615fda 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java @@ -9,21 +9,17 @@ 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 SourceWhiskyHunter { - @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") - private Optional sourceType; + private WhiskyHunter sourceType; @JsonCreator public SourceWhiskyHunter() { @@ -31,10 +27,9 @@ public SourceWhiskyHunter() { this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional sourceType() { - return (Optional) sourceType; + public WhiskyHunter sourceType() { + return sourceType; } public final static Builder builder() { @@ -77,11 +72,11 @@ public SourceWhiskyHunter build() { ); } - private static final LazySingletonValue> _SINGLETON_VALUE_SourceType = + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"whisky-hunter\"", - new TypeReference>() {}); + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java b/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java index 39b006cc2..c8dc44df0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java @@ -58,7 +58,7 @@ public class SourceWikipediaPageviews { private WikipediaPageviews sourceType; /** - * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. + * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. */ @JsonProperty("start") private String start; @@ -143,7 +143,7 @@ public WikipediaPageviews sourceType() { } /** - * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. + * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. */ @JsonIgnore public String start() { @@ -209,7 +209,7 @@ public SourceWikipediaPageviews withProject(String project) { } /** - * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. + * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. */ public SourceWikipediaPageviews withStart(String start) { Utils.checkNotNull(start, "start"); @@ -338,7 +338,7 @@ public Builder project(String project) { } /** - * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. + * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. */ public Builder start(String start) { Utils.checkNotNull(start, "start"); diff --git a/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java b/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java index 46048e9d1..92fe3730e 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java @@ -40,6 +40,13 @@ public class StreamConfiguration { @JsonProperty("primaryKey") private Optional>> primaryKey; + /** + * Paths to the fields that will be included in the configured catalog. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("selectedFields") + private Optional> selectedFields; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("syncMode") private Optional syncMode; @@ -49,20 +56,23 @@ public StreamConfiguration( @JsonProperty("cursorField") Optional> cursorField, @JsonProperty("name") String name, @JsonProperty("primaryKey") Optional>> primaryKey, + @JsonProperty("selectedFields") Optional> selectedFields, @JsonProperty("syncMode") Optional syncMode) { Utils.checkNotNull(cursorField, "cursorField"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(primaryKey, "primaryKey"); + Utils.checkNotNull(selectedFields, "selectedFields"); Utils.checkNotNull(syncMode, "syncMode"); this.cursorField = cursorField; this.name = name; this.primaryKey = primaryKey; + this.selectedFields = selectedFields; this.syncMode = syncMode; } public StreamConfiguration( String name) { - this(Optional.empty(), name, Optional.empty(), Optional.empty()); + this(Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -88,6 +98,15 @@ public Optional>> primaryKey() { return (Optional>>) primaryKey; } + /** + * Paths to the fields that will be included in the configured catalog. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> selectedFields() { + return (Optional>) selectedFields; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional syncMode() { @@ -140,6 +159,24 @@ public StreamConfiguration withPrimaryKey(Optional selectedFields) { + Utils.checkNotNull(selectedFields, "selectedFields"); + this.selectedFields = Optional.ofNullable(selectedFields); + return this; + } + + /** + * Paths to the fields that will be included in the configured catalog. + */ + public StreamConfiguration withSelectedFields(Optional> selectedFields) { + Utils.checkNotNull(selectedFields, "selectedFields"); + this.selectedFields = selectedFields; + return this; + } + public StreamConfiguration withSyncMode(ConnectionSyncModeEnum syncMode) { Utils.checkNotNull(syncMode, "syncMode"); this.syncMode = Optional.ofNullable(syncMode); @@ -165,6 +202,7 @@ public boolean equals(java.lang.Object o) { java.util.Objects.deepEquals(this.cursorField, other.cursorField) && java.util.Objects.deepEquals(this.name, other.name) && java.util.Objects.deepEquals(this.primaryKey, other.primaryKey) && + java.util.Objects.deepEquals(this.selectedFields, other.selectedFields) && java.util.Objects.deepEquals(this.syncMode, other.syncMode); } @@ -174,6 +212,7 @@ public int hashCode() { cursorField, name, primaryKey, + selectedFields, syncMode); } @@ -183,6 +222,7 @@ public String toString() { "cursorField", cursorField, "name", name, "primaryKey", primaryKey, + "selectedFields", selectedFields, "syncMode", syncMode); } @@ -194,6 +234,8 @@ public final static class Builder { private Optional>> primaryKey = Optional.empty(); + private Optional> selectedFields = Optional.empty(); + private Optional syncMode = Optional.empty(); private Builder() { @@ -242,6 +284,24 @@ public Builder primaryKey(Optional selectedFields) { + Utils.checkNotNull(selectedFields, "selectedFields"); + this.selectedFields = Optional.ofNullable(selectedFields); + return this; + } + + /** + * Paths to the fields that will be included in the configured catalog. + */ + public Builder selectedFields(Optional> selectedFields) { + Utils.checkNotNull(selectedFields, "selectedFields"); + this.selectedFields = selectedFields; + return this; + } + public Builder syncMode(ConnectionSyncModeEnum syncMode) { Utils.checkNotNull(syncMode, "syncMode"); this.syncMode = Optional.ofNullable(syncMode); @@ -259,6 +319,7 @@ public StreamConfiguration build() { cursorField, name, primaryKey, + selectedFields, syncMode); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingIndexing3Mode.java b/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java similarity index 73% rename from src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingIndexing3Mode.java rename to src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java index 238a29454..2f51975e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationLangchainSchemasIndexingIndexing3Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java @@ -15,13 +15,17 @@ import java.math.BigDecimal; import java.math.BigInteger; -public enum DestinationLangchainSchemasIndexingIndexing3Mode { - CHROMA_LOCAL("chroma_local"); +/** + * TimeGranularityType - Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" + */ +public enum TimeGranularityType { + DAY("DAY"), + MONTH("MONTH"); @JsonValue private final String value; - private DestinationLangchainSchemasIndexingIndexing3Mode(String value) { + private TimeGranularityType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental.java b/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java similarity index 88% rename from src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental.java rename to src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java index 964325071..c16296f8e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental.java +++ b/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java @@ -19,10 +19,10 @@ import java.math.BigInteger; import java.util.Optional; /** - * SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. + * UnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ -public class SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental { +public class UnstructuredDocumentFormat { @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") @@ -50,7 +50,7 @@ public class SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental { private Optional strategy; @JsonCreator - public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental( + public UnstructuredDocumentFormat( @JsonProperty("processing") Optional processing, @JsonProperty("skip_unprocessable_files") Optional skipUnprocessableFiles, @JsonProperty("strategy") Optional strategy) { @@ -63,7 +63,7 @@ public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental( this.strategy = strategy; } - public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental() { + public UnstructuredDocumentFormat() { this(Optional.empty(), Optional.empty(), Optional.empty()); } @@ -107,7 +107,7 @@ public final static Builder builder() { /** * Processing configuration */ - public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withProcessing(SourceMicrosoftOnedriveProcessing processing) { + public UnstructuredDocumentFormat withProcessing(SourceMicrosoftOnedriveProcessing processing) { Utils.checkNotNull(processing, "processing"); this.processing = Optional.ofNullable(processing); return this; @@ -116,7 +116,7 @@ public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withProcessing( /** * Processing configuration */ - public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withProcessing(Optional processing) { + public UnstructuredDocumentFormat withProcessing(Optional processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; @@ -125,7 +125,7 @@ public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withProcessing( /** * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. */ - public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { + public UnstructuredDocumentFormat withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); this.skipUnprocessableFiles = Optional.ofNullable(skipUnprocessableFiles); return this; @@ -134,7 +134,7 @@ public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withSkipUnproce /** * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. */ - public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { + public UnstructuredDocumentFormat withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); this.skipUnprocessableFiles = skipUnprocessableFiles; return this; @@ -143,7 +143,7 @@ public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withSkipUnproce /** * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ - public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withStrategy(SourceMicrosoftOnedriveParsingStrategy strategy) { + public UnstructuredDocumentFormat withStrategy(SourceMicrosoftOnedriveParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = Optional.ofNullable(strategy); return this; @@ -152,7 +152,7 @@ public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withStrategy(So /** * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ - public SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental withStrategy(Optional strategy) { + public UnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; @@ -166,7 +166,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental other = (SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) o; + UnstructuredDocumentFormat other = (UnstructuredDocumentFormat) o; return java.util.Objects.deepEquals(this.filetype, other.filetype) && java.util.Objects.deepEquals(this.processing, other.processing) && @@ -185,7 +185,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental.class, + return Utils.toString(UnstructuredDocumentFormat.class, "filetype", filetype, "processing", processing, "skipUnprocessableFiles", skipUnprocessableFiles, @@ -258,14 +258,14 @@ public Builder strategy(Optional(){})); } - - public static UploadingMethod of(Standard value) { - Utils.checkNotNull(value, "value"); - return new UploadingMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } /** * Returns an instance of one of these types: *
      *
    • {@code AWSS3Staging}
    • - *
    • {@code Standard}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -89,8 +83,7 @@ public static final class _Deserializer extends com.airbyte.api.utils.OneOfDeser public _Deserializer() { super(UploadingMethod.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/UserResponse.java b/src/main/java/com/airbyte/api/models/shared/UserResponse.java new file mode 100644 index 000000000..90f1bcdff --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/UserResponse.java @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +/** + * UserResponse - Provides details of a single user in an organization. + */ + +public class UserResponse { + + @JsonProperty("email") + private String email; + + /** + * Internal Airbyte user ID + */ + @JsonProperty("id") + private String id; + + /** + * Name of the user + */ + @JsonProperty("name") + private String name; + + @JsonCreator + public UserResponse( + @JsonProperty("email") String email, + @JsonProperty("id") String id, + @JsonProperty("name") String name) { + Utils.checkNotNull(email, "email"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(name, "name"); + this.email = email; + this.id = id; + this.name = name; + } + + @JsonIgnore + public String email() { + return email; + } + + /** + * Internal Airbyte user ID + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * Name of the user + */ + @JsonIgnore + public String name() { + return name; + } + + public final static Builder builder() { + return new Builder(); + } + + public UserResponse withEmail(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * Internal Airbyte user ID + */ + public UserResponse withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Name of the user + */ + public UserResponse withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserResponse other = (UserResponse) o; + return + java.util.Objects.deepEquals(this.email, other.email) && + java.util.Objects.deepEquals(this.id, other.id) && + java.util.Objects.deepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + email, + id, + name); + } + + @Override + public String toString() { + return Utils.toString(UserResponse.class, + "email", email, + "id", id, + "name", name); + } + + public final static class Builder { + + private String email; + + private String id; + + private String name; + + private Builder() { + // force use of static builder() method + } + + public Builder email(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * Internal Airbyte user ID + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Name of the user + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public UserResponse build() { + return new UserResponse( + email, + id, + name); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/UsersResponse.java b/src/main/java/com/airbyte/api/models/shared/UsersResponse.java new file mode 100644 index 000000000..8541d3372 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/UsersResponse.java @@ -0,0 +1,93 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Deprecated; +import java.math.BigDecimal; +import java.math.BigInteger; +/** + * UsersResponse - List/Array of multiple users in an organization + */ + +public class UsersResponse { + + @JsonProperty("data") + private java.util.List data; + + @JsonCreator + public UsersResponse( + @JsonProperty("data") java.util.List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + } + + @JsonIgnore + public java.util.List data() { + return data; + } + + public final static Builder builder() { + return new Builder(); + } + + public UsersResponse withData(java.util.List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsersResponse other = (UsersResponse) o; + return + java.util.Objects.deepEquals(this.data, other.data); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + data); + } + + @Override + public String toString() { + return Utils.toString(UsersResponse.class, + "data", data); + } + + public final static class Builder { + + private java.util.List data; + + private Builder() { + // force use of static builder() method + } + + public Builder data(java.util.List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public UsersResponse build() { + return new UsersResponse( + data); + } + } +} + diff --git a/src/main/java/com/airbyte/api/utils/BackoffStrategy.java b/src/main/java/com/airbyte/api/utils/BackoffStrategy.java index 0cd9809c4..a74b7b87d 100644 --- a/src/main/java/com/airbyte/api/utils/BackoffStrategy.java +++ b/src/main/java/com/airbyte/api/utils/BackoffStrategy.java @@ -5,7 +5,6 @@ package com.airbyte.api.utils; import java.util.concurrent.TimeUnit; -import com.airbyte.api.utils.Utils; /** * Exponential Backoff Strategy with Jitter @@ -65,7 +64,7 @@ public double baseFactor() { } /** - * @deprecated use baseFactor instead. + * @deprecated use {@link #baseFactor()} instead. */ @Deprecated public double exponent() { @@ -169,8 +168,8 @@ public Builder baseFactor(double baseFactor) { /** * Sets the backoff base factor. * - * @deprecated use baseFactor instead. - * @param exponent The base factor to use. + * @deprecated use {@link #baseFactor(double)} instead. + * @param baseFactor The base factor to use. * @return The builder instance. */ @Deprecated diff --git a/src/main/java/com/airbyte/api/utils/HTTPClient.java b/src/main/java/com/airbyte/api/utils/HTTPClient.java index aa1674bd7..523ca6e9c 100644 --- a/src/main/java/com/airbyte/api/utils/HTTPClient.java +++ b/src/main/java/com/airbyte/api/utils/HTTPClient.java @@ -11,6 +11,22 @@ import java.net.http.HttpRequest; public interface HTTPClient { + + /** + * Sends an HTTP request and returns the response. + * + *

    Note that {@link HttpRequest} is immutable. To modify the request you can use + * {@link HttpRequest#newBuilder(HttpRequest, BiPredicate)} with + * JDK 16 and later (which will copy the request for modification in a builder). + * If that method is not available then use {@link Helpers#copy} (which also returns + * a builder). + * + * @param request HTTP request + * @return HTTP response + * @throws IOException + * @throws InterruptedException + * @throws URISyntaxException + */ HttpResponse send(HttpRequest request) throws IOException, InterruptedException, URISyntaxException; } diff --git a/src/main/java/com/airbyte/api/utils/HTTPRequest.java b/src/main/java/com/airbyte/api/utils/HTTPRequest.java index 191db8040..45671cab6 100644 --- a/src/main/java/com/airbyte/api/utils/HTTPRequest.java +++ b/src/main/java/com/airbyte/api/utils/HTTPRequest.java @@ -4,11 +4,10 @@ package com.airbyte.api.utils; -import java.net.URI; +import java.net.URISyntaxException; import java.net.http.HttpRequest; import java.net.http.HttpRequest.BodyPublisher; import java.net.http.HttpRequest.BodyPublishers; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; @@ -17,7 +16,7 @@ import java.util.Optional; import org.apache.http.NameValuePair; -import org.apache.http.client.utils.URLEncodedUtils; +import org.apache.http.client.utils.URIBuilder; import org.apache.http.message.BasicNameValuePair; public class HTTPRequest { @@ -81,17 +80,15 @@ public HttpRequest build() { bodyPublisher = BodyPublishers.noBody(); } requestBuilder.method(method, bodyPublisher); - requestBuilder.uri(resolveURL()); - + try { + URIBuilder b = new URIBuilder(this.baseURL); + queryParams.forEach(pair -> b.addParameter(pair.getName(), pair.getValue())); + requestBuilder.uri(b.build()); + } catch (URISyntaxException e) { + throw new RuntimeException(e); + } headers.forEach((k, list) -> list.forEach(v -> requestBuilder.header(k, v))); return requestBuilder.build(); } - private URI resolveURL() { - String url = this.baseURL; - if (queryParams != null && queryParams.size() > 0) { - url += "?" + URLEncodedUtils.format(queryParams, StandardCharsets.UTF_8); - } - return URI.create(url); - } } \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/utils/Helpers.java b/src/main/java/com/airbyte/api/utils/Helpers.java new file mode 100644 index 000000000..df34af16c --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/Helpers.java @@ -0,0 +1,48 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.airbyte.api.utils; + +import java.net.http.HttpRequest; +import java.util.function.BiPredicate; + +/** + * Public helper methods for use by customers and end-users. + * + */ +public final class Helpers { + + /** + * Returns an {@link HttpRequest.Builder} which is initialized with the + * state of the given {@link HttpRequest}. + * + *

    Note that headers can be added and modified but not removed. To + * remove headers use {@link #copy(HttpRequest, BiPredicate)} (which applies + * a filter to the headers while copying). + * + *

    Note also that this method is redundant from JDK 16 because the + * method {@code HttpRequest.newBuilder(HttpRequest)} is available. + * + * @param request request to copy + * @return a builder initialized with values from {@code request} + */ + public static HttpRequest.Builder copy(HttpRequest request) { + return Utils.copy(request); + } + + /** + * Returns an {@link HttpRequest.Builder} which is initialized with the + * state of the given {@link HttpRequest}. + * + *

    Note that this method is redundant from JDK 16 because the + * method {@code HttpRequest.newBuilder(HttpRequest, BiPredicate)} is available. + + * @param request request to copy + * @param filter selects which header key-values to include in the copied request + * @return a builder initialized with values from {@code request} + */ + public static HttpRequest.Builder copy(HttpRequest request, BiPredicate filter) { + return Utils.copy(request, filter); + } +} diff --git a/src/main/java/com/airbyte/api/utils/Hook.java b/src/main/java/com/airbyte/api/utils/Hook.java index d62c81c36..23ae4d7e9 100644 --- a/src/main/java/com/airbyte/api/utils/Hook.java +++ b/src/main/java/com/airbyte/api/utils/Hook.java @@ -7,6 +7,7 @@ import java.io.InputStream; import java.net.http.HttpResponse; import java.net.http.HttpRequest; +import java.util.List; import java.util.Optional; import java.util.UUID; @@ -27,6 +28,7 @@ private Hook() { */ public interface HookContext { String operationId(); + Optional> oauthScopes(); Optional securitySource(); } @@ -39,10 +41,12 @@ public interface BeforeRequestContext extends HookContext { public static final class BeforeRequestContextImpl implements BeforeRequestContext { private final String operationId; + private final Optional> oauthScopes; private final Optional securitySource; - public BeforeRequestContextImpl(String operationId, Optional securitySource) { + public BeforeRequestContextImpl(String operationId, Optional> oauthScopes, Optional securitySource) { this.operationId = operationId; + this.oauthScopes = oauthScopes; this.securitySource = securitySource; } @@ -55,6 +59,11 @@ public String operationId() { public Optional securitySource() { return securitySource; } + + @Override + public Optional> oauthScopes() { + return oauthScopes; + } } /** @@ -66,11 +75,13 @@ public interface AfterSuccessContext extends HookContext { public static final class AfterSuccessContextImpl implements AfterSuccessContext { private final String operationId; + private final Optional> oauthScopes; private final Optional securitySource; - public AfterSuccessContextImpl(String operationId, Optional securitySource) { + public AfterSuccessContextImpl(String operationId, Optional> oauthScopes, Optional securitySource) { Utils.checkNotNull(securitySource, "securitySource"); this.operationId = operationId; + this.oauthScopes = oauthScopes; this.securitySource = securitySource; } @@ -83,6 +94,11 @@ public String operationId() { public Optional securitySource() { return securitySource; } + + @Override + public Optional> oauthScopes() { + return oauthScopes; + } } /** @@ -94,21 +110,30 @@ public interface AfterErrorContext extends HookContext { public static final class AfterErrorContextImpl implements AfterErrorContext { private final String operationId; + private final Optional> oauthScopes; private final Optional securitySource; - public AfterErrorContextImpl(String operationId, Optional securitySource) { + public AfterErrorContextImpl(String operationId, Optional> oauthScopes, Optional securitySource) { Utils.checkNotNull(securitySource, "securitySource"); this.operationId = operationId; + this.oauthScopes = oauthScopes; this.securitySource = securitySource; } + @Override public String operationId() { return operationId; } + @Override public Optional securitySource() { return securitySource; } + + @Override + public Optional> oauthScopes() { + return oauthScopes; + } } /** @@ -119,6 +144,12 @@ public interface BeforeRequest { /** * Transforms the given {@link HttpRequest} before sending. * + *

    Note that {@link HttpRequest} is immutable. To modify the request you can use + * {@link HttpRequest#newBuilder(HttpRequest, BiPredicate)} with + * JDK 16 and later (which will copy the request for modification in a builder). + * If that method is not available then use {@link Helpers#copy} (which also returns + * a builder). + * * @param context context for the hook call * @param request request to be transformed * @return transformed request @@ -233,7 +264,7 @@ public static final class IdempotencyHook implements BeforeRequest { @Override public HttpRequest beforeRequest(BeforeRequestContext context, HttpRequest request) throws Exception { - HttpRequest.Builder b = Utils.copy(request); + HttpRequest.Builder b = Helpers.copy(request); b.header("Idempotency-Key", UUID.randomUUID().toString()); return b.build(); } diff --git a/src/main/java/com/airbyte/api/utils/Hooks.java b/src/main/java/com/airbyte/api/utils/Hooks.java index 8c918b93f..05a6f63b1 100644 --- a/src/main/java/com/airbyte/api/utils/Hooks.java +++ b/src/main/java/com/airbyte/api/utils/Hooks.java @@ -99,7 +99,7 @@ public Hooks registerAfterError(AfterError afterError) { } /** - * Registers a {@SdkInit} hook to be applied in order of registration + * Registers a {@link SdkInit} hook to be applied in order of registration * (multiple can be registered). * * @param SdkInit hook to be registered diff --git a/src/main/java/com/airbyte/api/utils/RequestBody.java b/src/main/java/com/airbyte/api/utils/RequestBody.java index 4fac93a58..2d2ba9687 100644 --- a/src/main/java/com/airbyte/api/utils/RequestBody.java +++ b/src/main/java/com/airbyte/api/utils/RequestBody.java @@ -212,7 +212,7 @@ private static void serializeMultipartFile(MultipartEntityBuilder builder, Objec builder.addBinaryBody(fieldName, content, ContentType.APPLICATION_OCTET_STREAM, fileName); } - private static SerializedBody serializeFormData(Object value) + public static SerializedBody serializeFormData(Object value) throws IOException, IllegalArgumentException, IllegalAccessException { List params = new ArrayList<>(); diff --git a/src/main/java/com/airbyte/api/utils/Utils.java b/src/main/java/com/airbyte/api/utils/Utils.java index 0630c671d..211e381f7 100644 --- a/src/main/java/com/airbyte/api/utils/Utils.java +++ b/src/main/java/com/airbyte/api/utils/Utils.java @@ -5,12 +5,17 @@ package com.airbyte.api.utils; import java.io.InputStream; +import java.io.ByteArrayInputStream; import java.io.IOException; import java.lang.reflect.Field; import java.math.BigDecimal; import java.math.BigInteger; +import java.net.URI; import java.net.URLEncoder; +import java.net.http.HttpClient.Version; +import java.net.http.HttpHeaders; import java.net.http.HttpRequest; +import java.net.http.HttpResponse; import java.nio.charset.StandardCharsets; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -18,6 +23,7 @@ import java.util.Arrays; import java.util.Collections; import java.util.concurrent.Callable; +import java.util.function.BiPredicate; import java.util.HashMap; import java.util.Iterator; import java.util.List; @@ -32,6 +38,8 @@ import java.util.stream.Stream; import java.util.stream.StreamSupport; +import javax.net.ssl.SSLSession; + import org.apache.commons.io.IOUtils; import org.apache.http.NameValuePair; @@ -836,6 +844,18 @@ public static boolean statusCodeMatchesOne(int statusCode, String expectedStatus * @return a builder initialized with values from {@code request} */ public static HttpRequest.Builder copy(HttpRequest request) { + return copy(request, (k, v) -> true); + } + + /** + * Returns an {@link HttpRequest.Builder} which is initialized with the + * state of the given {@link HttpRequest}. + * + * @param request request to copy + * @param filter selects which header key-values to include in the copied request + * @return a builder initialized with values from {@code request} + */ + public static HttpRequest.Builder copy(HttpRequest request, BiPredicate filter) { // in JDK 16+ we can use this // return HttpRequest.newBuilder(request, (k, v) -> true); checkNotNull(request, "request"); @@ -844,8 +864,12 @@ public static HttpRequest.Builder copy(HttpRequest request) { builder.uri(request.uri()); builder.expectContinue(request.expectContinue()); - request.headers().map().forEach((name, values) -> - values.forEach(value -> builder.header(name, value))); + request.headers() + .map() + .forEach((name, values) -> + values.stream() + .filter(v -> filter.test(name, v)) + .forEach(value -> builder.header(name, value))); request.version().ifPresent(builder::version); request.timeout().ifPresent(builder::timeout); @@ -903,4 +927,100 @@ public static String json(EventStreamMessage m, ObjectMapper mapper, boolean dat return mapper.writeValueAsString(node); } + /** + * Fully reads the body of the given response and caches it in memory. The + * returned response has utility methods to view the body + * ({@code bodyAsUtf8(), bodyAsBytes()} and the {@code body()} method can be + * called multiple times, each returning a fresh {@link InputStream} that will + * read from the cached byte array. + * + *

    + * This method is most likely to be used in a diagnostic/logging situtation so + * that the contents of a response can be viewed without affecting processing. + * Using this method with a very large body may be problematic in + * terms of memory use. + * + * @param response response to cache + * @return response with a cached body + * @throws IOException + */ + public static HttpResponseCached cache(HttpResponse response) throws IOException { + return new HttpResponseCached(response); + } + + public static final class HttpResponseCached implements HttpResponse { + + private final HttpResponse response; + private final byte[] bytes; + + public HttpResponseCached(HttpResponse response) throws IOException { + this.response = response; + this.bytes = Utils.toByteArrayAndClose(response.body()); + } + + public String bodyAsUtf8() { + return new String(bytes, StandardCharsets.UTF_8); + } + + public byte[] bodyAsBytes() { + return bytes; + } + + @Override + public int statusCode() { + return response.statusCode(); + } + + @Override + public HttpRequest request() { + return response.request(); + } + + @Override + public Optional> previousResponse() { + return response.previousResponse(); + } + + @Override + public HttpHeaders headers() { + return response.headers(); + } + + @Override + public InputStream body() { + return new ByteArrayInputStream(bytes); + } + + @Override + public Optional sslSession() { + return response.sslSession(); + } + + @Override + public URI uri() { + return response.uri(); + } + + @Override + public Version version() { + return response.version(); + } + + @Override + public String toString() { + return response.toString(); + } + } + + private static final char[] HEX_ARRAY = "0123456789abcdef".toCharArray(); + + public static String bytesToLowerCaseHex(byte[] bytes) { + char[] hexChars = new char[bytes.length * 2]; + for (int j = 0; j < bytes.length; j++) { + int v = bytes[j] & 0xFF; + hexChars[j * 2] = HEX_ARRAY[v >>> 4]; + hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F]; + } + return new String(hexChars); + } }