diff --git a/.gitignore b/.gitignore index 262ba6b80..972e3cad5 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.speakeasy/reports # Ignore IDE-specific configs .project .settings/ diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 193887651..3206835fa 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: c154fc44f8133a378fdc9e766757a427 + docChecksum: 27d70e9764f21458bb96f926035aceb3 docVersion: 1.0.0 - speakeasyVersion: 1.453.10 - generationVersion: 2.474.15 - releaseVersion: 1.6.0 - configChecksum: d006360ef852d40cb8491ae4b4ea9373 + speakeasyVersion: 1.513.2 + generationVersion: 2.545.2 + releaseVersion: 1.7.0 + configChecksum: 8da377f750b39b84f91fc4e37d52ce76 repoURL: https://github.com/airbytehq/airbyte-api-java-sdk.git repoSubDirectory: . published: true @@ -15,18 +15,18 @@ features: additionalDependencies: 0.1.0 additionalProperties: 0.0.1 constsAndDefaults: 0.1.1 - core: 3.33.1 - globalSecurity: 2.82.7 + core: 3.34.0 + globalSecurity: 2.82.8 globalSecurityCallbacks: 0.1.0 globalServerURLs: 2.82.1 groups: 2.81.2 + inputOutputModels: 2.83.0 nullables: 0.1.0 oauth2ClientCredentials: 0.1.1 sdkHooks: 0.1.0 unions: 0.0.6 generatedFiles: - .gitattributes - - CONTRIBUTING.md - USAGE.md - build.gradle - docs/models/operations/CancelJobRequest.md @@ -38,6 +38,7 @@ generatedFiles: - docs/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.md - docs/models/operations/CreatePermissionResponse.md - docs/models/operations/CreateSourceResponse.md + - docs/models/operations/CreateTagResponse.md - docs/models/operations/CreateWorkspaceResponse.md - docs/models/operations/DeleteConnectionRequest.md - docs/models/operations/DeleteConnectionResponse.md @@ -47,6 +48,8 @@ generatedFiles: - docs/models/operations/DeletePermissionResponse.md - docs/models/operations/DeleteSourceRequest.md - docs/models/operations/DeleteSourceResponse.md + - docs/models/operations/DeleteTagRequest.md + - docs/models/operations/DeleteTagResponse.md - docs/models/operations/DeleteWorkspaceRequest.md - docs/models/operations/DeleteWorkspaceResponse.md - docs/models/operations/GetConnectionRequest.md @@ -62,6 +65,8 @@ generatedFiles: - docs/models/operations/GetSourceResponse.md - docs/models/operations/GetStreamPropertiesRequest.md - docs/models/operations/GetStreamPropertiesResponse.md + - docs/models/operations/GetTagRequest.md + - docs/models/operations/GetTagResponse.md - docs/models/operations/GetWorkspaceRequest.md - docs/models/operations/GetWorkspaceResponse.md - docs/models/operations/InitiateOAuthResponse.md @@ -76,6 +81,8 @@ generatedFiles: - docs/models/operations/ListPermissionsResponse.md - docs/models/operations/ListSourcesRequest.md - docs/models/operations/ListSourcesResponse.md + - docs/models/operations/ListTagsRequest.md + - docs/models/operations/ListTagsResponse.md - docs/models/operations/ListUsersWithinAnOrganizationRequest.md - docs/models/operations/ListUsersWithinAnOrganizationResponse.md - docs/models/operations/ListWorkspacesRequest.md @@ -92,6 +99,8 @@ generatedFiles: - docs/models/operations/PutSourceResponse.md - docs/models/operations/UpdatePermissionRequest.md - docs/models/operations/UpdatePermissionResponse.md + - docs/models/operations/UpdateTagRequest.md + - docs/models/operations/UpdateTagResponse.md - docs/models/operations/UpdateWorkspaceRequest.md - docs/models/operations/UpdateWorkspaceResponse.md - docs/models/shared/APIAccessToken.md @@ -121,6 +130,7 @@ generatedFiles: - docs/models/shared/Akeneo.md - docs/models/shared/Algolia.md - docs/models/shared/Allow.md + - docs/models/shared/AlphaVantage.md - docs/models/shared/AmazonAds.md - docs/models/shared/AmazonSellerPartner.md - docs/models/shared/AmazonSqs.md @@ -145,6 +155,7 @@ generatedFiles: - docs/models/shared/AuthenticateViaAPIKey.md - docs/models/shared/AuthenticateViaAccessKeys.md - docs/models/shared/AuthenticateViaAsanaOauth.md + - docs/models/shared/AuthenticateViaClientCredentials.md - docs/models/shared/AuthenticateViaFacebookMarketingOauth.md - docs/models/shared/AuthenticateViaGoogleOAuth.md - docs/models/shared/AuthenticateViaHarvestOAuth.md @@ -183,6 +194,7 @@ generatedFiles: - docs/models/shared/AzureBlobStorageCredentials.md - docs/models/shared/AzureOpenAI.md - docs/models/shared/AzureTable.md + - docs/models/shared/Babelforce.md - docs/models/shared/BambooHr.md - docs/models/shared/BaseURL.md - docs/models/shared/BaseURLPrefix.md @@ -200,6 +212,7 @@ generatedFiles: - docs/models/shared/Box.md - docs/models/shared/Braintree.md - docs/models/shared/Braze.md + - docs/models/shared/Breezometer.md - docs/models/shared/BreezyHr.md - docs/models/shared/Brevo.md - docs/models/shared/Brex.md @@ -222,6 +235,7 @@ generatedFiles: - docs/models/shared/Campayn.md - docs/models/shared/Canny.md - docs/models/shared/CapsuleCrm.md + - docs/models/shared/CaptainData.md - docs/models/shared/CaptureModeAdvanced.md - docs/models/shared/CareQualityCommission.md - docs/models/shared/Cart.md @@ -260,6 +274,7 @@ generatedFiles: - docs/models/shared/Cohorts.md - docs/models/shared/CohortsRange.md - docs/models/shared/CoinApi.md + - docs/models/shared/CoingeckoCoins.md - docs/models/shared/Coinmarketcap.md - docs/models/shared/Collection.md - docs/models/shared/Compression.md @@ -307,6 +322,7 @@ generatedFiles: - docs/models/shared/Datascope.md - docs/models/shared/DatasetLocation.md - docs/models/shared/DateRange.md + - docs/models/shared/Days.md - docs/models/shared/Dbt.md - docs/models/shared/DefaultVectorizer.md - docs/models/shared/Deflate.md @@ -318,7 +334,7 @@ generatedFiles: - docs/models/shared/DestinationAstra.md - docs/models/shared/DestinationAstraLanguage.md - docs/models/shared/DestinationAstraMode.md - - docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.md + - docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.md - docs/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.md - docs/models/shared/DestinationAstraSchemasEmbeddingMode.md - docs/models/shared/DestinationAstraSchemasMode.md @@ -401,6 +417,7 @@ generatedFiles: - docs/models/shared/DestinationIcebergS3.md - docs/models/shared/DestinationIcebergS3BucketRegion.md - docs/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.md + - docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.md - docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.md - docs/models/shared/DestinationIcebergSchemasCatalogType.md - docs/models/shared/DestinationIcebergStorageType.md @@ -458,6 +475,13 @@ generatedFiles: - docs/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.md - docs/models/shared/DestinationMssqlSslMethod.md - docs/models/shared/DestinationMssqlTunnelMethod.md + - docs/models/shared/DestinationMssqlV2.md + - docs/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.md + - docs/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.md + - docs/models/shared/DestinationMssqlV2Name.md + - docs/models/shared/DestinationMssqlV2SSLMethod.md + - docs/models/shared/DestinationMssqlV2SchemasName.md + - docs/models/shared/DestinationMssqlV2Unencrypted.md - docs/models/shared/DestinationMysql.md - docs/models/shared/DestinationMysqlNoTunnel.md - docs/models/shared/DestinationMysqlPasswordAuthentication.md @@ -467,6 +491,7 @@ generatedFiles: - docs/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.md - docs/models/shared/DestinationMysqlTunnelMethod.md - docs/models/shared/DestinationOracle.md + - docs/models/shared/DestinationOracleEncryption.md - docs/models/shared/DestinationOracleEncryptionMethod.md - docs/models/shared/DestinationOracleNoTunnel.md - docs/models/shared/DestinationOraclePasswordAuthentication.md @@ -531,7 +556,7 @@ generatedFiles: - docs/models/shared/DestinationPostgresSSHKeyAuthentication.md - docs/models/shared/DestinationPostgresSSHTunnelMethod.md - docs/models/shared/DestinationPostgresSchemasMode.md - - docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.md + - docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.md - docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.md - docs/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.md - docs/models/shared/DestinationPostgresSchemasSslModeMode.md @@ -599,6 +624,13 @@ generatedFiles: - docs/models/shared/DestinationS3Compression.md - docs/models/shared/DestinationS3CompressionCodec.md - docs/models/shared/DestinationS3CompressionType.md + - docs/models/shared/DestinationS3DataLake.md + - docs/models/shared/DestinationS3DataLakeCatalogType.md + - docs/models/shared/DestinationS3DataLakeGlueCatalog.md + - docs/models/shared/DestinationS3DataLakeRestCatalog.md + - docs/models/shared/DestinationS3DataLakeS3BucketRegion.md + - docs/models/shared/DestinationS3DataLakeSchemasCatalogType.md + - docs/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.md - docs/models/shared/DestinationS3Deflate.md - docs/models/shared/DestinationS3Flattening.md - docs/models/shared/DestinationS3FormatType.md @@ -606,6 +638,7 @@ generatedFiles: - docs/models/shared/DestinationS3Glue.md - docs/models/shared/DestinationS3GlueCompression.md - docs/models/shared/DestinationS3GlueCompressionType.md + - docs/models/shared/DestinationS3GlueFlattening.md - docs/models/shared/DestinationS3GlueFormatType.md - docs/models/shared/DestinationS3GlueGZIP.md - docs/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.md @@ -622,7 +655,6 @@ generatedFiles: - docs/models/shared/DestinationS3SchemasCompression.md - docs/models/shared/DestinationS3SchemasCompressionCodec.md - docs/models/shared/DestinationS3SchemasCompressionType.md - - docs/models/shared/DestinationS3SchemasFlattening.md - docs/models/shared/DestinationS3SchemasFormatCodec.md - docs/models/shared/DestinationS3SchemasFormatCompressionType.md - docs/models/shared/DestinationS3SchemasFormatFormatType.md @@ -766,6 +798,7 @@ generatedFiles: - docs/models/shared/Easypromos.md - docs/models/shared/Elasticemail.md - docs/models/shared/Elasticsearch.md + - docs/models/shared/EmailNotificationConfig.md - docs/models/shared/Emailoctopus.md - docs/models/shared/Embedding.md - docs/models/shared/EmploymentHero.md @@ -774,15 +807,20 @@ generatedFiles: - docs/models/shared/EncryptedTrustServerCertificate.md - docs/models/shared/EncryptedVerifyCertificate.md - docs/models/shared/Encryption.md + - docs/models/shared/EncryptionAES.md - docs/models/shared/EncryptionAlgorithm.md + - docs/models/shared/EncryptionMapperAlgorithm.md - docs/models/shared/EncryptionMethod.md + - docs/models/shared/EncryptionRSA.md - docs/models/shared/EngagementWindowDays.md - docs/models/shared/Enterprise.md - docs/models/shared/Entity.md - docs/models/shared/Environment.md + - docs/models/shared/Equal.md - docs/models/shared/Eventbrite.md - docs/models/shared/Eventee.md - docs/models/shared/Eventzilla.md + - docs/models/shared/Everhour.md - docs/models/shared/EveryNThEntry.md - docs/models/shared/ExcelFormat.md - docs/models/shared/ExchangeRates.md @@ -795,8 +833,10 @@ generatedFiles: - docs/models/shared/Failing.md - docs/models/shared/Fake.md - docs/models/shared/Faker.md + - docs/models/shared/Fastbill.md - docs/models/shared/Fauna.md - docs/models/shared/FieldNameMappingConfigModel.md + - docs/models/shared/FieldRenaming.md - docs/models/shared/File.md - docs/models/shared/FileBasedStreamConfig.md - docs/models/shared/FileFormat.md @@ -838,6 +878,7 @@ generatedFiles: - docs/models/shared/FromValue.md - docs/models/shared/Front.md - docs/models/shared/Fulcrum.md + - docs/models/shared/Fullstory.md - docs/models/shared/GCSBucketRegion.md - docs/models/shared/GCSGoogleCloudStorage.md - docs/models/shared/GCSStaging.md @@ -885,6 +926,7 @@ generatedFiles: - docs/models/shared/GranularityForGeoLocationRegion.md - docs/models/shared/GranularityForPeriodicReports.md - docs/models/shared/Greenhouse.md + - docs/models/shared/Greythr.md - docs/models/shared/Gridly.md - docs/models/shared/GroupBy.md - docs/models/shared/Guru.md @@ -895,16 +937,23 @@ generatedFiles: - docs/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.md - docs/models/shared/HardcodedRecords.md - docs/models/shared/Harvest.md + - docs/models/shared/Hashing.md + - docs/models/shared/HashingMethod.md - docs/models/shared/Header.md - docs/models/shared/HeaderDefinitionType.md - docs/models/shared/Height.md + - docs/models/shared/Hellobaton.md + - docs/models/shared/HelpScout.md - docs/models/shared/Hibob.md - docs/models/shared/HighLevel.md - docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md + - docs/models/shared/Hoorayhr.md - docs/models/shared/Hubplanner.md - docs/models/shared/Hubspot.md - docs/models/shared/HubspotCredentials.md + - docs/models/shared/HuggingFaceDatasets.md - docs/models/shared/Humanitix.md + - docs/models/shared/Huntr.md - docs/models/shared/IAMRole.md - docs/models/shared/IAMUser.md - docs/models/shared/Iceberg.md @@ -924,6 +973,7 @@ generatedFiles: - docs/models/shared/Int64Value.md - docs/models/shared/Intercom.md - docs/models/shared/Interval.md + - docs/models/shared/Intruder.md - docs/models/shared/InvalidCDCPositionBehaviorAdvanced.md - docs/models/shared/Invoiced.md - docs/models/shared/Invoiceninja.md @@ -944,6 +994,7 @@ generatedFiles: - docs/models/shared/Justcall.md - docs/models/shared/K6Cloud.md - docs/models/shared/Katana.md + - docs/models/shared/Keka.md - docs/models/shared/KeyPairAuthentication.md - docs/models/shared/Kind.md - docs/models/shared/Kisi.md @@ -981,6 +1032,7 @@ generatedFiles: - docs/models/shared/Mailchimp.md - docs/models/shared/MailchimpCredentials.md - docs/models/shared/Mailerlite.md + - docs/models/shared/Mailersend.md - docs/models/shared/Mailgun.md - docs/models/shared/MailjetMail.md - docs/models/shared/MailjetSms.md @@ -991,6 +1043,7 @@ generatedFiles: - docs/models/shared/Marketo.md - docs/models/shared/Marketstack.md - docs/models/shared/Mention.md + - docs/models/shared/Merge.md - docs/models/shared/Metabase.md - docs/models/shared/Method.md - docs/models/shared/MetricsFilter.md @@ -1018,16 +1071,21 @@ generatedFiles: - docs/models/shared/MongodbV2.md - docs/models/shared/Motherduck.md - docs/models/shared/Mssql.md + - docs/models/shared/MssqlV2.md - docs/models/shared/Mux.md - docs/models/shared/MyHours.md - docs/models/shared/Mysql.md - docs/models/shared/N8n.md + - docs/models/shared/Name.md - docs/models/shared/NamespaceDefinitionEnum.md - docs/models/shared/NamespaceDefinitionEnumNoDefault.md - docs/models/shared/Nasa.md - docs/models/shared/NativeNetworkEncryptionNNE.md + - docs/models/shared/Navan.md + - docs/models/shared/NessieCatalog.md - docs/models/shared/Netsuite.md - docs/models/shared/NewsApi.md + - docs/models/shared/Newsdata.md - docs/models/shared/NewsdataIo.md - docs/models/shared/NoAuth.md - docs/models/shared/NoAuthentication.md @@ -1041,7 +1099,10 @@ generatedFiles: - docs/models/shared/Normalization.md - docs/models/shared/NormalizationFlattening.md - docs/models/shared/NorthpassLms.md + - docs/models/shared/Not.md - docs/models/shared/NotExpression.md + - docs/models/shared/NotificationConfig.md + - docs/models/shared/NotificationsConfig.md - docs/models/shared/Notion.md - docs/models/shared/NotionCredentials.md - docs/models/shared/Nullable.md @@ -1079,7 +1140,6 @@ generatedFiles: - docs/models/shared/OrGroup.md - docs/models/shared/Oracle.md - docs/models/shared/Orb.md - - docs/models/shared/Orbit.md - docs/models/shared/OrganizationResponse.md - docs/models/shared/OrganizationsResponse.md - docs/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.md @@ -1087,9 +1147,11 @@ generatedFiles: - docs/models/shared/OutbrainAmplify.md - docs/models/shared/OutputFormat.md - docs/models/shared/OutputFormatWildcard.md + - docs/models/shared/OutputSize.md - docs/models/shared/Outreach.md - docs/models/shared/Oveit.md - docs/models/shared/PabblySubscriptionsBilling.md + - docs/models/shared/Padding.md - docs/models/shared/Pandadoc.md - docs/models/shared/Paperform.md - docs/models/shared/Papersign.md @@ -1098,6 +1160,7 @@ generatedFiles: - docs/models/shared/ParquetFormat.md - docs/models/shared/ParsingStrategy.md - docs/models/shared/PasswordAuthentication.md + - docs/models/shared/Payfit.md - docs/models/shared/PaypalTransaction.md - docs/models/shared/Paystack.md - docs/models/shared/Pendo.md @@ -1117,6 +1180,7 @@ generatedFiles: - docs/models/shared/Pgvector.md - docs/models/shared/Picqer.md - docs/models/shared/Pinecone.md + - docs/models/shared/Pingdom.md - docs/models/shared/Pinterest.md - docs/models/shared/PinterestCredentials.md - docs/models/shared/Pipedrive.md @@ -1157,13 +1221,14 @@ generatedFiles: - docs/models/shared/Qualaroo.md - docs/models/shared/Queries.md - docs/models/shared/Quickbooks.md + - docs/models/shared/RESTAPIStreams.md - docs/models/shared/RESTCatalog.md + - docs/models/shared/Raas.md - docs/models/shared/Railz.md - docs/models/shared/RandomSampling.md - docs/models/shared/Range.md - docs/models/shared/RdStationMarketing.md - docs/models/shared/RdStationMarketingAuthorization.md - - docs/models/shared/ReadChangesUsingBinaryLogCDC.md - docs/models/shared/ReadChangesUsingChangeDataCaptureCDC.md - docs/models/shared/ReadChangesUsingWriteAheadLogCDC.md - docs/models/shared/Recharge.md @@ -1178,28 +1243,38 @@ generatedFiles: - docs/models/shared/Rentcast.md - docs/models/shared/Repairshopr.md - docs/models/shared/ReplicaSet.md + - docs/models/shared/ReplicatePermissionsACL.md - docs/models/shared/ReplicateRecords.md - docs/models/shared/ReplyIo.md + - docs/models/shared/ReportBasedStreams.md - docs/models/shared/ReportConfig.md - docs/models/shared/ReportName.md - docs/models/shared/ReportOptions.md - - docs/models/shared/ReportRecordTypeEnum.md - docs/models/shared/ReportingDataObject.md - docs/models/shared/Require.md - docs/models/shared/Required.md + - docs/models/shared/Resolution.md + - docs/models/shared/Rest.md + - docs/models/shared/RetailexpressByMaropost.md - docs/models/shared/Retently.md - docs/models/shared/Revenuecat.md - docs/models/shared/RevolutMerchant.md + - docs/models/shared/Ringcentral.md - docs/models/shared/RkiCovid.md + - docs/models/shared/RocketChat.md - docs/models/shared/Rocketlane.md - docs/models/shared/RoleBasedAuthentication.md - docs/models/shared/Rollbar.md - docs/models/shared/Rootly.md + - docs/models/shared/RowFiltering.md + - docs/models/shared/RowFilteringOperation.md + - docs/models/shared/RowFilteringOperationType.md - docs/models/shared/Rss.md - docs/models/shared/Ruddr.md - docs/models/shared/S3.md - docs/models/shared/S3AmazonWebServices.md - docs/models/shared/S3BucketRegion.md + - docs/models/shared/S3DataLake.md - docs/models/shared/S3Glue.md - docs/models/shared/SCPSecureCopyProtocol.md - docs/models/shared/SFTPSecureFileTransferProtocol.md @@ -1239,6 +1314,7 @@ generatedFiles: - docs/models/shared/Senseforce.md - docs/models/shared/Sentry.md - docs/models/shared/SerializationLibrary.md + - docs/models/shared/Serpstat.md - docs/models/shared/ServerManaged.md - docs/models/shared/ServiceAccount.md - docs/models/shared/ServiceAccountAuthentication.md @@ -1246,6 +1322,7 @@ generatedFiles: - docs/models/shared/ServiceAccountKeyAuthentication.md - docs/models/shared/ServiceKeyAuthentication.md - docs/models/shared/ServiceName.md + - docs/models/shared/ServiceNow.md - docs/models/shared/Sevenshifts.md - docs/models/shared/Sftp.md - docs/models/shared/SftpBulk.md @@ -1253,6 +1330,7 @@ generatedFiles: - docs/models/shared/ShareTypeUsedForMostPopularSharedStream.md - docs/models/shared/Sharetribe.md - docs/models/shared/Shippo.md + - docs/models/shared/Shipstation.md - docs/models/shared/Shopify.md - docs/models/shared/ShopifyAuthorizationMethod.md - docs/models/shared/ShopifyCredentials.md @@ -1300,6 +1378,7 @@ generatedFiles: - docs/models/shared/SourceAirtableSchemasAuthMethod.md - docs/models/shared/SourceAkeneo.md - docs/models/shared/SourceAlgolia.md + - docs/models/shared/SourceAlphaVantage.md - docs/models/shared/SourceAmazonAds.md - docs/models/shared/SourceAmazonAdsAmazonAds.md - docs/models/shared/SourceAmazonAdsAuthType.md @@ -1333,11 +1412,14 @@ generatedFiles: - docs/models/shared/SourceAzureBlobStorageHeaderDefinitionType.md - docs/models/shared/SourceAzureBlobStorageMode.md - docs/models/shared/SourceAzureBlobStorageSchemasAuthType.md + - docs/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.md - docs/models/shared/SourceAzureBlobStorageSchemasFiletype.md - docs/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.md - docs/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.md - docs/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.md - docs/models/shared/SourceAzureTable.md + - docs/models/shared/SourceBabelforce.md + - docs/models/shared/SourceBabelforceRegion.md - docs/models/shared/SourceBambooHr.md - docs/models/shared/SourceBasecamp.md - docs/models/shared/SourceBeamer.md @@ -1352,6 +1434,7 @@ generatedFiles: - docs/models/shared/SourceBraintree.md - docs/models/shared/SourceBraintreeEnvironment.md - docs/models/shared/SourceBraze.md + - docs/models/shared/SourceBreezometer.md - docs/models/shared/SourceBreezyHr.md - docs/models/shared/SourceBrevo.md - docs/models/shared/SourceBrex.md @@ -1366,6 +1449,7 @@ generatedFiles: - docs/models/shared/SourceCampayn.md - docs/models/shared/SourceCanny.md - docs/models/shared/SourceCapsuleCrm.md + - docs/models/shared/SourceCaptainData.md - docs/models/shared/SourceCareQualityCommission.md - docs/models/shared/SourceCart.md - docs/models/shared/SourceCartAuthType.md @@ -1401,6 +1485,7 @@ generatedFiles: - docs/models/shared/SourceCoda.md - docs/models/shared/SourceCodefresh.md - docs/models/shared/SourceCoinApi.md + - docs/models/shared/SourceCoingeckoCoins.md - docs/models/shared/SourceCoinmarketcap.md - docs/models/shared/SourceConcord.md - docs/models/shared/SourceConcordEnvironment.md @@ -1446,6 +1531,7 @@ generatedFiles: - docs/models/shared/SourceEventbrite.md - docs/models/shared/SourceEventee.md - docs/models/shared/SourceEventzilla.md + - docs/models/shared/SourceEverhour.md - docs/models/shared/SourceExchangeRates.md - docs/models/shared/SourceEzofficeinventory.md - docs/models/shared/SourceFacebookMarketing.md @@ -1457,6 +1543,7 @@ generatedFiles: - docs/models/shared/SourceFacebookMarketingValidEnums.md - docs/models/shared/SourceFactorial.md - docs/models/shared/SourceFaker.md + - docs/models/shared/SourceFastbill.md - docs/models/shared/SourceFauna.md - docs/models/shared/SourceFaunaDeletionMode.md - docs/models/shared/SourceFaunaSchemasDeletionMode.md @@ -1493,6 +1580,7 @@ generatedFiles: - docs/models/shared/SourceFreshservice.md - docs/models/shared/SourceFront.md - docs/models/shared/SourceFulcrum.md + - docs/models/shared/SourceFullstory.md - docs/models/shared/SourceGainsightPx.md - docs/models/shared/SourceGcs.md - docs/models/shared/SourceGcsAuthType.md @@ -1790,7 +1878,8 @@ generatedFiles: - docs/models/shared/SourceGoogleDriveAvroFormat.md - docs/models/shared/SourceGoogleDriveCSVFormat.md - docs/models/shared/SourceGoogleDriveCSVHeaderDefinition.md - - docs/models/shared/SourceGoogleDriveDocumentFileTypeFormatExperimental.md + - docs/models/shared/SourceGoogleDriveDeliveryType.md + - docs/models/shared/SourceGoogleDriveExcelFormat.md - docs/models/shared/SourceGoogleDriveFileBasedStreamConfig.md - docs/models/shared/SourceGoogleDriveFiletype.md - docs/models/shared/SourceGoogleDriveFormat.md @@ -1804,13 +1893,16 @@ generatedFiles: - docs/models/shared/SourceGoogleDriveParsingStrategy.md - docs/models/shared/SourceGoogleDriveProcessing.md - docs/models/shared/SourceGoogleDriveSchemasAuthType.md + - docs/models/shared/SourceGoogleDriveSchemasDeliveryType.md - docs/models/shared/SourceGoogleDriveSchemasFiletype.md - docs/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.md - docs/models/shared/SourceGoogleDriveSchemasStreamsFiletype.md - docs/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.md + - docs/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.md - docs/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.md - docs/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.md - docs/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.md + - docs/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.md - docs/models/shared/SourceGoogleDriveUserProvided.md - docs/models/shared/SourceGoogleDriveValidationPolicy.md - docs/models/shared/SourceGoogleForms.md @@ -1834,6 +1926,7 @@ generatedFiles: - docs/models/shared/SourceGoogleWebfonts.md - docs/models/shared/SourceGorgias.md - docs/models/shared/SourceGreenhouse.md + - docs/models/shared/SourceGreythr.md - docs/models/shared/SourceGridly.md - docs/models/shared/SourceGuru.md - docs/models/shared/SourceGutendex.md @@ -1844,8 +1937,11 @@ generatedFiles: - docs/models/shared/SourceHarvestAuthenticationMechanism.md - docs/models/shared/SourceHarvestSchemasAuthType.md - docs/models/shared/SourceHeight.md + - docs/models/shared/SourceHellobaton.md + - docs/models/shared/SourceHelpScout.md - docs/models/shared/SourceHibob.md - docs/models/shared/SourceHighLevel.md + - docs/models/shared/SourceHoorayhr.md - docs/models/shared/SourceHubplanner.md - docs/models/shared/SourceHubspot.md - docs/models/shared/SourceHubspotAuthType.md @@ -1853,7 +1949,9 @@ generatedFiles: - docs/models/shared/SourceHubspotHubspot.md - docs/models/shared/SourceHubspotOAuth.md - docs/models/shared/SourceHubspotSchemasAuthType.md + - docs/models/shared/SourceHuggingFaceDatasets.md - docs/models/shared/SourceHumanitix.md + - docs/models/shared/SourceHuntr.md - docs/models/shared/SourceIlluminaBasespace.md - docs/models/shared/SourceIncidentIo.md - docs/models/shared/SourceInflowinventory.md @@ -1862,7 +1960,7 @@ generatedFiles: - docs/models/shared/SourceInstagramInstagram.md - docs/models/shared/SourceInstatus.md - docs/models/shared/SourceIntercom.md - - docs/models/shared/SourceIntercomIntercom.md + - docs/models/shared/SourceIntruder.md - docs/models/shared/SourceInvoiced.md - docs/models/shared/SourceInvoiceninja.md - docs/models/shared/SourceIp2whois.md @@ -1876,6 +1974,7 @@ generatedFiles: - docs/models/shared/SourceJustcall.md - docs/models/shared/SourceK6Cloud.md - docs/models/shared/SourceKatana.md + - docs/models/shared/SourceKeka.md - docs/models/shared/SourceKisi.md - docs/models/shared/SourceKissmetrics.md - docs/models/shared/SourceKlarna.md @@ -1919,6 +2018,7 @@ generatedFiles: - docs/models/shared/SourceMailchimpOAuth20.md - docs/models/shared/SourceMailchimpSchemasAuthType.md - docs/models/shared/SourceMailerlite.md + - docs/models/shared/SourceMailersend.md - docs/models/shared/SourceMailgun.md - docs/models/shared/SourceMailjetMail.md - docs/models/shared/SourceMailjetSms.md @@ -1927,6 +2027,7 @@ generatedFiles: - docs/models/shared/SourceMarketo.md - docs/models/shared/SourceMarketstack.md - docs/models/shared/SourceMention.md + - docs/models/shared/SourceMerge.md - docs/models/shared/SourceMetabase.md - docs/models/shared/SourceMicrosoftDataverse.md - docs/models/shared/SourceMicrosoftEntraId.md @@ -1968,6 +2069,9 @@ generatedFiles: - docs/models/shared/SourceMicrosoftSharepointAvroFormat.md - docs/models/shared/SourceMicrosoftSharepointCSVFormat.md - docs/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.md + - docs/models/shared/SourceMicrosoftSharepointCopyRawFiles.md + - docs/models/shared/SourceMicrosoftSharepointDeliveryMethod.md + - docs/models/shared/SourceMicrosoftSharepointDeliveryType.md - docs/models/shared/SourceMicrosoftSharepointExcelFormat.md - docs/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.md - docs/models/shared/SourceMicrosoftSharepointFiletype.md @@ -1981,7 +2085,9 @@ generatedFiles: - docs/models/shared/SourceMicrosoftSharepointParquetFormat.md - docs/models/shared/SourceMicrosoftSharepointParsingStrategy.md - docs/models/shared/SourceMicrosoftSharepointProcessing.md + - docs/models/shared/SourceMicrosoftSharepointReplicateRecords.md - docs/models/shared/SourceMicrosoftSharepointSchemasAuthType.md + - docs/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.md - docs/models/shared/SourceMicrosoftSharepointSchemasFiletype.md - docs/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.md - docs/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.md @@ -2007,6 +2113,7 @@ generatedFiles: - docs/models/shared/SourceMixpanelRegion.md - docs/models/shared/SourceMixpanelSchemasOptionTitle.md - docs/models/shared/SourceMode.md + - docs/models/shared/SourceModeMode.md - docs/models/shared/SourceMonday.md - docs/models/shared/SourceMondayAuthType.md - docs/models/shared/SourceMondayAuthorizationMethod.md @@ -2038,30 +2145,36 @@ generatedFiles: - docs/models/shared/SourceMux.md - docs/models/shared/SourceMyHours.md - docs/models/shared/SourceMysql.md + - docs/models/shared/SourceMysqlEncryption.md - docs/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.md - docs/models/shared/SourceMysqlMethod.md - docs/models/shared/SourceMysqlMode.md - docs/models/shared/SourceMysqlMysql.md - docs/models/shared/SourceMysqlNoTunnel.md - docs/models/shared/SourceMysqlPasswordAuthentication.md + - docs/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.md - docs/models/shared/SourceMysqlSSHKeyAuthentication.md - docs/models/shared/SourceMysqlSSHTunnelMethod.md - - docs/models/shared/SourceMysqlSSLModes.md - docs/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.md - docs/models/shared/SourceMysqlSchemasMethod.md - docs/models/shared/SourceMysqlSchemasMode.md - - docs/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.md + - docs/models/shared/SourceMysqlSchemasSslModeEncryptionMode.md - docs/models/shared/SourceMysqlSchemasSslModeMode.md - docs/models/shared/SourceMysqlSchemasTunnelMethod.md - docs/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.md - docs/models/shared/SourceMysqlTunnelMethod.md - docs/models/shared/SourceMysqlUpdateMethod.md - - docs/models/shared/SourceMysqlVerifyCA.md + - docs/models/shared/SourceMysqlVerifyCa.md - docs/models/shared/SourceN8n.md - docs/models/shared/SourceNasa.md + - docs/models/shared/SourceNavan.md - docs/models/shared/SourceNetsuite.md - docs/models/shared/SourceNewsApi.md + - docs/models/shared/SourceNewsdata.md + - docs/models/shared/SourceNewsdataCategory.md + - docs/models/shared/SourceNewsdataCountry.md - docs/models/shared/SourceNewsdataIo.md + - docs/models/shared/SourceNewsdataLanguage.md - docs/models/shared/SourceNocrm.md - docs/models/shared/SourceNorthpassLms.md - docs/models/shared/SourceNotion.md @@ -2111,7 +2224,6 @@ generatedFiles: - docs/models/shared/SourceOracleTunnelMethod.md - docs/models/shared/SourceOracleUnencrypted.md - docs/models/shared/SourceOrb.md - - docs/models/shared/SourceOrbit.md - docs/models/shared/SourceOura.md - docs/models/shared/SourceOutbrainAmplify.md - docs/models/shared/SourceOutbrainAmplifyAccessToken.md @@ -2125,6 +2237,7 @@ generatedFiles: - docs/models/shared/SourcePapersign.md - docs/models/shared/SourcePardot.md - docs/models/shared/SourcePatchRequest.md + - docs/models/shared/SourcePayfit.md - docs/models/shared/SourcePaypalTransaction.md - docs/models/shared/SourcePaystack.md - docs/models/shared/SourcePendo.md @@ -2133,6 +2246,7 @@ generatedFiles: - docs/models/shared/SourcePersona.md - docs/models/shared/SourcePexelsApi.md - docs/models/shared/SourcePicqer.md + - docs/models/shared/SourcePingdom.md - docs/models/shared/SourcePinterest.md - docs/models/shared/SourcePinterestAuthMethod.md - docs/models/shared/SourcePinterestLevel.md @@ -2189,9 +2303,6 @@ generatedFiles: - docs/models/shared/SourcePypi.md - docs/models/shared/SourceQualaroo.md - docs/models/shared/SourceQuickbooks.md - - docs/models/shared/SourceQuickbooksAuthType.md - - docs/models/shared/SourceQuickbooksAuthorizationMethod.md - - docs/models/shared/SourceQuickbooksOAuth20.md - docs/models/shared/SourceRailz.md - docs/models/shared/SourceRdStationMarketing.md - docs/models/shared/SourceRdStationMarketingAuthType.md @@ -2209,6 +2320,7 @@ generatedFiles: - docs/models/shared/SourceRepairshopr.md - docs/models/shared/SourceReplyIo.md - docs/models/shared/SourceResponse.md + - docs/models/shared/SourceRetailexpressByMaropost.md - docs/models/shared/SourceRetently.md - docs/models/shared/SourceRetentlyAuthType.md - docs/models/shared/SourceRetentlyAuthenticationMechanism.md @@ -2216,7 +2328,9 @@ generatedFiles: - docs/models/shared/SourceRevenuecat.md - docs/models/shared/SourceRevolutMerchant.md - docs/models/shared/SourceRevolutMerchantEnvironment.md + - docs/models/shared/SourceRingcentral.md - docs/models/shared/SourceRkiCovid.md + - docs/models/shared/SourceRocketChat.md - docs/models/shared/SourceRocketlane.md - docs/models/shared/SourceRollbar.md - docs/models/shared/SourceRootly.md @@ -2227,6 +2341,8 @@ generatedFiles: - docs/models/shared/SourceS3AvroFormat.md - docs/models/shared/SourceS3CSVFormat.md - docs/models/shared/SourceS3CSVHeaderDefinition.md + - docs/models/shared/SourceS3CopyRawFiles.md + - docs/models/shared/SourceS3DeliveryMethod.md - docs/models/shared/SourceS3DeliveryType.md - docs/models/shared/SourceS3ExcelFormat.md - docs/models/shared/SourceS3FileBasedStreamConfig.md @@ -2240,7 +2356,9 @@ generatedFiles: - docs/models/shared/SourceS3ParquetFormat.md - docs/models/shared/SourceS3ParsingStrategy.md - docs/models/shared/SourceS3Processing.md + - docs/models/shared/SourceS3ReplicateRecords.md - docs/models/shared/SourceS3S3.md + - docs/models/shared/SourceS3SchemasDeliveryType.md - docs/models/shared/SourceS3SchemasFiletype.md - docs/models/shared/SourceS3SchemasHeaderDefinitionType.md - docs/models/shared/SourceS3SchemasStreamsFiletype.md @@ -2255,6 +2373,7 @@ generatedFiles: - docs/models/shared/SourceSageHr.md - docs/models/shared/SourceSalesflare.md - docs/models/shared/SourceSalesforce.md + - docs/models/shared/SourceSalesforceAuthType.md - docs/models/shared/SourceSalesforceSalesforce.md - docs/models/shared/SourceSalesloft.md - docs/models/shared/SourceSalesloftAuthType.md @@ -2271,6 +2390,8 @@ generatedFiles: - docs/models/shared/SourceSendpulse.md - docs/models/shared/SourceSenseforce.md - docs/models/shared/SourceSentry.md + - docs/models/shared/SourceSerpstat.md + - docs/models/shared/SourceServiceNow.md - docs/models/shared/SourceSftp.md - docs/models/shared/SourceSftpAuthMethod.md - docs/models/shared/SourceSftpAuthentication.md @@ -2317,6 +2438,7 @@ generatedFiles: - docs/models/shared/SourceSftpSchemasAuthMethod.md - docs/models/shared/SourceSharetribe.md - docs/models/shared/SourceShippo.md + - docs/models/shared/SourceShipstation.md - docs/models/shared/SourceShopify.md - docs/models/shared/SourceShopifyAuthMethod.md - docs/models/shared/SourceShopifyOAuth20.md @@ -2397,7 +2519,9 @@ generatedFiles: - docs/models/shared/SourceTiktokMarketingTiktokMarketing.md - docs/models/shared/SourceTimely.md - docs/models/shared/SourceTinyemail.md + - docs/models/shared/SourceTmdb.md - docs/models/shared/SourceTodoist.md + - docs/models/shared/SourceToggl.md - docs/models/shared/SourceTrackPms.md - docs/models/shared/SourceTrello.md - docs/models/shared/SourceTremendous.md @@ -2410,9 +2534,11 @@ generatedFiles: - docs/models/shared/SourceTrustpilotSchemasAuthType.md - docs/models/shared/SourceTvmazeSchedule.md - docs/models/shared/SourceTwelveData.md + - docs/models/shared/SourceTwelveDataInterval.md - docs/models/shared/SourceTwilio.md - docs/models/shared/SourceTwilioTaskrouter.md - docs/models/shared/SourceTwitter.md + - docs/models/shared/SourceTyntecSms.md - docs/models/shared/SourceTypeform.md - docs/models/shared/SourceTypeformAuthType.md - docs/models/shared/SourceTypeformAuthorizationMethod.md @@ -2443,6 +2569,8 @@ generatedFiles: - docs/models/shared/SourceWoocommerce.md - docs/models/shared/SourceWordpress.md - docs/models/shared/SourceWorkable.md + - docs/models/shared/SourceWorkday.md + - docs/models/shared/SourceWorkdayAuthentication.md - docs/models/shared/SourceWorkflowmax.md - docs/models/shared/SourceWorkramp.md - docs/models/shared/SourceWrike.md @@ -2454,6 +2582,7 @@ generatedFiles: - docs/models/shared/SourceYandexMetrica.md - docs/models/shared/SourceYotpo.md - docs/models/shared/SourceYouNeedABudgetYnab.md + - docs/models/shared/SourceYounium.md - docs/models/shared/SourceYoutubeAnalytics.md - docs/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.md - docs/models/shared/SourceYoutubeData.md @@ -2516,7 +2645,6 @@ generatedFiles: - docs/models/shared/Squarespace.md - docs/models/shared/StandaloneMongoDbInstance.md - docs/models/shared/State.md - - docs/models/shared/StateFilterEnum.md - docs/models/shared/StatisticsInterval.md - docs/models/shared/Statsig.md - docs/models/shared/Status.md @@ -2530,6 +2658,7 @@ generatedFiles: - docs/models/shared/Strava.md - docs/models/shared/StreamConfiguration.md - docs/models/shared/StreamConfigurations.md + - docs/models/shared/StreamConfigurationsInput.md - docs/models/shared/StreamMapperType.md - docs/models/shared/StreamProperties.md - docs/models/shared/StreamsCriteria.md @@ -2545,6 +2674,11 @@ generatedFiles: - docs/models/shared/Systeme.md - docs/models/shared/TLSEncryptedVerifyCertificate.md - docs/models/shared/Taboola.md + - docs/models/shared/Tag.md + - docs/models/shared/TagCreateRequest.md + - docs/models/shared/TagPatchRequest.md + - docs/models/shared/TagResponse.md + - docs/models/shared/TagsResponse.md - docs/models/shared/TargetsType.md - docs/models/shared/Teamtailor.md - docs/models/shared/Teamwork.md @@ -2556,6 +2690,7 @@ generatedFiles: - docs/models/shared/Testrail.md - docs/models/shared/TextSplitter.md - docs/models/shared/TheGuardianApi.md + - docs/models/shared/TheTargetedActionResourceForTheFetch.md - docs/models/shared/Thinkific.md - docs/models/shared/Throttled.md - docs/models/shared/Ticketmaster.md @@ -2571,8 +2706,10 @@ generatedFiles: - docs/models/shared/Timely.md - docs/models/shared/Timeplus.md - docs/models/shared/Tinyemail.md + - docs/models/shared/Tmdb.md - docs/models/shared/ToValue.md - docs/models/shared/Todoist.md + - docs/models/shared/Toggl.md - docs/models/shared/TopHeadlinesTopic.md - docs/models/shared/TrackPms.md - docs/models/shared/TransformationQueryRunType.md @@ -2585,6 +2722,7 @@ generatedFiles: - docs/models/shared/Twilio.md - docs/models/shared/TwilioTaskrouter.md - docs/models/shared/Twitter.md + - docs/models/shared/TyntecSms.md - docs/models/shared/Typeform.md - docs/models/shared/TypeformCredentials.md - docs/models/shared/Typesense.md @@ -2634,12 +2772,14 @@ generatedFiles: - docs/models/shared/Weaviate.md - docs/models/shared/WebScrapper.md - docs/models/shared/Webflow.md + - docs/models/shared/WebhookNotificationConfig.md - docs/models/shared/WhenIWork.md - docs/models/shared/WhiskyHunter.md - docs/models/shared/WikipediaPageviews.md - docs/models/shared/Woocommerce.md - docs/models/shared/Wordpress.md - docs/models/shared/Workable.md + - docs/models/shared/Workday.md - docs/models/shared/Workflowmax.md - docs/models/shared/Workramp.md - docs/models/shared/WorkspaceCreateRequest.md @@ -2657,6 +2797,7 @@ generatedFiles: - docs/models/shared/Yellowbrick.md - docs/models/shared/Yotpo.md - docs/models/shared/YouNeedABudgetYnab.md + - docs/models/shared/Younium.md - docs/models/shared/YoutubeAnalytics.md - docs/models/shared/YoutubeAnalyticsCredentials.md - docs/models/shared/YoutubeData.md @@ -2693,6 +2834,7 @@ generatedFiles: - docs/sdks/permissions/README.md - docs/sdks/sources/README.md - docs/sdks/streams/README.md + - docs/sdks/tags/README.md - docs/sdks/users/README.md - docs/sdks/workspaces/README.md - gradle/wrapper/gradle-wrapper.jar @@ -2711,6 +2853,7 @@ generatedFiles: - src/main/java/com/airbyte/api/SecuritySource.java - src/main/java/com/airbyte/api/Sources.java - src/main/java/com/airbyte/api/Streams.java + - src/main/java/com/airbyte/api/Tags.java - src/main/java/com/airbyte/api/Users.java - src/main/java/com/airbyte/api/Workspaces.java - src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java @@ -2732,6 +2875,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java - src/main/java/com/airbyte/api/models/operations/CreateSourceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/CreateSourceResponse.java + - src/main/java/com/airbyte/api/models/operations/CreateTagRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations/CreateTagResponse.java - src/main/java/com/airbyte/api/models/operations/CreateWorkspaceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java - src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java @@ -2746,6 +2891,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/DeleteSourceRequest.java - src/main/java/com/airbyte/api/models/operations/DeleteSourceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/DeleteSourceResponse.java + - src/main/java/com/airbyte/api/models/operations/DeleteTagRequest.java + - src/main/java/com/airbyte/api/models/operations/DeleteTagRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations/DeleteTagResponse.java - src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequest.java - src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceResponse.java @@ -2769,6 +2917,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java - src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java + - src/main/java/com/airbyte/api/models/operations/GetTagRequest.java + - src/main/java/com/airbyte/api/models/operations/GetTagRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations/GetTagResponse.java - src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequest.java - src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/GetWorkspaceResponse.java @@ -2791,6 +2942,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/ListSourcesRequest.java - src/main/java/com/airbyte/api/models/operations/ListSourcesRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/ListSourcesResponse.java + - src/main/java/com/airbyte/api/models/operations/ListTagsRequest.java + - src/main/java/com/airbyte/api/models/operations/ListTagsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations/ListTagsResponse.java - src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java - src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java @@ -2816,6 +2970,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequest.java - src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/UpdatePermissionResponse.java + - src/main/java/com/airbyte/api/models/operations/UpdateTagRequest.java + - src/main/java/com/airbyte/api/models/operations/UpdateTagRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations/UpdateTagResponse.java - src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java - src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java @@ -2847,6 +3004,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Akeneo.java - src/main/java/com/airbyte/api/models/shared/Algolia.java - src/main/java/com/airbyte/api/models/shared/Allow.java + - src/main/java/com/airbyte/api/models/shared/AlphaVantage.java - src/main/java/com/airbyte/api/models/shared/AmazonAds.java - src/main/java/com/airbyte/api/models/shared/AmazonSellerPartner.java - src/main/java/com/airbyte/api/models/shared/AmazonSqs.java @@ -2871,6 +3029,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/AuthenticateViaAPIKey.java - src/main/java/com/airbyte/api/models/shared/AuthenticateViaAccessKeys.java - src/main/java/com/airbyte/api/models/shared/AuthenticateViaAsanaOauth.java + - src/main/java/com/airbyte/api/models/shared/AuthenticateViaClientCredentials.java - src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java - src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOAuth.java - src/main/java/com/airbyte/api/models/shared/AuthenticateViaHarvestOAuth.java @@ -2908,6 +3067,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java - src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java - src/main/java/com/airbyte/api/models/shared/AzureTable.java + - src/main/java/com/airbyte/api/models/shared/Babelforce.java - src/main/java/com/airbyte/api/models/shared/BambooHr.java - src/main/java/com/airbyte/api/models/shared/BaseURL.java - src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java @@ -2925,6 +3085,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Box.java - src/main/java/com/airbyte/api/models/shared/Braintree.java - src/main/java/com/airbyte/api/models/shared/Braze.java + - src/main/java/com/airbyte/api/models/shared/Breezometer.java - src/main/java/com/airbyte/api/models/shared/BreezyHr.java - src/main/java/com/airbyte/api/models/shared/Brevo.java - src/main/java/com/airbyte/api/models/shared/Brex.java @@ -2947,6 +3108,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Campayn.java - src/main/java/com/airbyte/api/models/shared/Canny.java - src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java + - src/main/java/com/airbyte/api/models/shared/CaptainData.java - src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java - src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java - src/main/java/com/airbyte/api/models/shared/Cart.java @@ -2985,6 +3147,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Cohorts.java - src/main/java/com/airbyte/api/models/shared/CohortsRange.java - src/main/java/com/airbyte/api/models/shared/CoinApi.java + - src/main/java/com/airbyte/api/models/shared/CoingeckoCoins.java - src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java - src/main/java/com/airbyte/api/models/shared/Collection.java - src/main/java/com/airbyte/api/models/shared/Compression.java @@ -3032,6 +3195,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Datascope.java - src/main/java/com/airbyte/api/models/shared/DatasetLocation.java - src/main/java/com/airbyte/api/models/shared/DateRange.java + - src/main/java/com/airbyte/api/models/shared/Days.java - src/main/java/com/airbyte/api/models/shared/Dbt.java - src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java - src/main/java/com/airbyte/api/models/shared/Deflate.java @@ -3043,7 +3207,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationAstra.java - src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java - src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java - - src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.java + - src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.java - src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java - src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java - src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java @@ -3126,6 +3290,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java - src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java - src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java + - src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.java - src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java - src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java - src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java @@ -3183,6 +3348,13 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationMssqlSslMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Name.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SSLMethod.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasName.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Unencrypted.java - src/main/java/com/airbyte/api/models/shared/DestinationMysql.java - src/main/java/com/airbyte/api/models/shared/DestinationMysqlNoTunnel.java - src/main/java/com/airbyte/api/models/shared/DestinationMysqlPasswordAuthentication.java @@ -3192,6 +3364,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationOracle.java + - src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java - src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationOracleNoTunnel.java - src/main/java/com/airbyte/api/models/shared/DestinationOraclePasswordAuthentication.java @@ -3256,7 +3429,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHKeyAuthentication.java - src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java - - src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.java + - src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.java - src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java - src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java - src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java @@ -3324,6 +3497,13 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationS3Compression.java - src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionCodec.java - src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java + - src/main/java/com/airbyte/api/models/shared/DestinationS3DataLake.java + - src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeCatalogType.java + - src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeGlueCatalog.java + - src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeRestCatalog.java + - src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeS3BucketRegion.java + - src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogType.java + - src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.java - src/main/java/com/airbyte/api/models/shared/DestinationS3Deflate.java - src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java - src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java @@ -3331,6 +3511,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationS3Glue.java - src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompression.java - src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompressionType.java + - src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFlattening.java - src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFormatType.java - src/main/java/com/airbyte/api/models/shared/DestinationS3GlueGZIP.java - src/main/java/com/airbyte/api/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.java @@ -3347,7 +3528,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompression.java - src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java - src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java - - src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java - src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java - src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java - src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java @@ -3491,6 +3671,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Easypromos.java - src/main/java/com/airbyte/api/models/shared/Elasticemail.java - src/main/java/com/airbyte/api/models/shared/Elasticsearch.java + - src/main/java/com/airbyte/api/models/shared/EmailNotificationConfig.java - src/main/java/com/airbyte/api/models/shared/Emailoctopus.java - src/main/java/com/airbyte/api/models/shared/Embedding.java - src/main/java/com/airbyte/api/models/shared/EmploymentHero.java @@ -3499,15 +3680,20 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/EncryptedTrustServerCertificate.java - src/main/java/com/airbyte/api/models/shared/EncryptedVerifyCertificate.java - src/main/java/com/airbyte/api/models/shared/Encryption.java + - src/main/java/com/airbyte/api/models/shared/EncryptionAES.java - src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java + - src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.java - src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java + - src/main/java/com/airbyte/api/models/shared/EncryptionRSA.java - src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java - src/main/java/com/airbyte/api/models/shared/Enterprise.java - src/main/java/com/airbyte/api/models/shared/Entity.java - src/main/java/com/airbyte/api/models/shared/Environment.java + - src/main/java/com/airbyte/api/models/shared/Equal.java - src/main/java/com/airbyte/api/models/shared/Eventbrite.java - src/main/java/com/airbyte/api/models/shared/Eventee.java - src/main/java/com/airbyte/api/models/shared/Eventzilla.java + - src/main/java/com/airbyte/api/models/shared/Everhour.java - src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java - src/main/java/com/airbyte/api/models/shared/ExcelFormat.java - src/main/java/com/airbyte/api/models/shared/ExchangeRates.java @@ -3520,8 +3706,10 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Failing.java - src/main/java/com/airbyte/api/models/shared/Fake.java - src/main/java/com/airbyte/api/models/shared/Faker.java + - src/main/java/com/airbyte/api/models/shared/Fastbill.java - src/main/java/com/airbyte/api/models/shared/Fauna.java - src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java + - src/main/java/com/airbyte/api/models/shared/FieldRenaming.java - src/main/java/com/airbyte/api/models/shared/File.java - src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java - src/main/java/com/airbyte/api/models/shared/FileFormat.java @@ -3563,6 +3751,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/FromValue.java - src/main/java/com/airbyte/api/models/shared/Front.java - src/main/java/com/airbyte/api/models/shared/Fulcrum.java + - src/main/java/com/airbyte/api/models/shared/Fullstory.java - src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java - src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java - src/main/java/com/airbyte/api/models/shared/GCSStaging.java @@ -3610,6 +3799,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java - src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java - src/main/java/com/airbyte/api/models/shared/Greenhouse.java + - src/main/java/com/airbyte/api/models/shared/Greythr.java - src/main/java/com/airbyte/api/models/shared/Gridly.java - src/main/java/com/airbyte/api/models/shared/GroupBy.java - src/main/java/com/airbyte/api/models/shared/Guru.java @@ -3620,16 +3810,23 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java - src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java - src/main/java/com/airbyte/api/models/shared/Harvest.java + - src/main/java/com/airbyte/api/models/shared/Hashing.java + - src/main/java/com/airbyte/api/models/shared/HashingMethod.java - src/main/java/com/airbyte/api/models/shared/Header.java - src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java - src/main/java/com/airbyte/api/models/shared/Height.java + - src/main/java/com/airbyte/api/models/shared/Hellobaton.java + - src/main/java/com/airbyte/api/models/shared/HelpScout.java - src/main/java/com/airbyte/api/models/shared/Hibob.java - src/main/java/com/airbyte/api/models/shared/HighLevel.java - src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java + - src/main/java/com/airbyte/api/models/shared/Hoorayhr.java - src/main/java/com/airbyte/api/models/shared/Hubplanner.java - src/main/java/com/airbyte/api/models/shared/Hubspot.java - src/main/java/com/airbyte/api/models/shared/HubspotCredentials.java + - src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java - src/main/java/com/airbyte/api/models/shared/Humanitix.java + - src/main/java/com/airbyte/api/models/shared/Huntr.java - src/main/java/com/airbyte/api/models/shared/IAMRole.java - src/main/java/com/airbyte/api/models/shared/IAMUser.java - src/main/java/com/airbyte/api/models/shared/Iceberg.java @@ -3649,6 +3846,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Int64Value.java - src/main/java/com/airbyte/api/models/shared/Intercom.java - src/main/java/com/airbyte/api/models/shared/Interval.java + - src/main/java/com/airbyte/api/models/shared/Intruder.java - src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java - src/main/java/com/airbyte/api/models/shared/Invoiced.java - src/main/java/com/airbyte/api/models/shared/Invoiceninja.java @@ -3669,6 +3867,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Justcall.java - src/main/java/com/airbyte/api/models/shared/K6Cloud.java - src/main/java/com/airbyte/api/models/shared/Katana.java + - src/main/java/com/airbyte/api/models/shared/Keka.java - src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java - src/main/java/com/airbyte/api/models/shared/Kind.java - src/main/java/com/airbyte/api/models/shared/Kisi.java @@ -3706,6 +3905,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Mailchimp.java - src/main/java/com/airbyte/api/models/shared/MailchimpCredentials.java - src/main/java/com/airbyte/api/models/shared/Mailerlite.java + - src/main/java/com/airbyte/api/models/shared/Mailersend.java - src/main/java/com/airbyte/api/models/shared/Mailgun.java - src/main/java/com/airbyte/api/models/shared/MailjetMail.java - src/main/java/com/airbyte/api/models/shared/MailjetSms.java @@ -3716,6 +3916,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Marketo.java - src/main/java/com/airbyte/api/models/shared/Marketstack.java - src/main/java/com/airbyte/api/models/shared/Mention.java + - src/main/java/com/airbyte/api/models/shared/Merge.java - src/main/java/com/airbyte/api/models/shared/Metabase.java - src/main/java/com/airbyte/api/models/shared/Method.java - src/main/java/com/airbyte/api/models/shared/MetricsFilter.java @@ -3743,16 +3944,21 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/MongodbV2.java - src/main/java/com/airbyte/api/models/shared/Motherduck.java - src/main/java/com/airbyte/api/models/shared/Mssql.java + - src/main/java/com/airbyte/api/models/shared/MssqlV2.java - src/main/java/com/airbyte/api/models/shared/Mux.java - src/main/java/com/airbyte/api/models/shared/MyHours.java - src/main/java/com/airbyte/api/models/shared/Mysql.java - src/main/java/com/airbyte/api/models/shared/N8n.java + - src/main/java/com/airbyte/api/models/shared/Name.java - src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java - src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java - src/main/java/com/airbyte/api/models/shared/Nasa.java - src/main/java/com/airbyte/api/models/shared/NativeNetworkEncryptionNNE.java + - src/main/java/com/airbyte/api/models/shared/Navan.java + - src/main/java/com/airbyte/api/models/shared/NessieCatalog.java - src/main/java/com/airbyte/api/models/shared/Netsuite.java - src/main/java/com/airbyte/api/models/shared/NewsApi.java + - src/main/java/com/airbyte/api/models/shared/Newsdata.java - src/main/java/com/airbyte/api/models/shared/NewsdataIo.java - src/main/java/com/airbyte/api/models/shared/NoAuth.java - src/main/java/com/airbyte/api/models/shared/NoAuthentication.java @@ -3766,7 +3972,10 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Normalization.java - src/main/java/com/airbyte/api/models/shared/NormalizationFlattening.java - src/main/java/com/airbyte/api/models/shared/NorthpassLms.java + - src/main/java/com/airbyte/api/models/shared/Not.java - src/main/java/com/airbyte/api/models/shared/NotExpression.java + - src/main/java/com/airbyte/api/models/shared/NotificationConfig.java + - src/main/java/com/airbyte/api/models/shared/NotificationsConfig.java - src/main/java/com/airbyte/api/models/shared/Notion.java - src/main/java/com/airbyte/api/models/shared/NotionCredentials.java - src/main/java/com/airbyte/api/models/shared/Nullable.java @@ -3804,7 +4013,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/OrGroup.java - src/main/java/com/airbyte/api/models/shared/Oracle.java - src/main/java/com/airbyte/api/models/shared/Orb.java - - src/main/java/com/airbyte/api/models/shared/Orbit.java - src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java - src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java - src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java @@ -3812,9 +4020,11 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java - src/main/java/com/airbyte/api/models/shared/OutputFormat.java - src/main/java/com/airbyte/api/models/shared/OutputFormatWildcard.java + - src/main/java/com/airbyte/api/models/shared/OutputSize.java - src/main/java/com/airbyte/api/models/shared/Outreach.java - src/main/java/com/airbyte/api/models/shared/Oveit.java - src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java + - src/main/java/com/airbyte/api/models/shared/Padding.java - src/main/java/com/airbyte/api/models/shared/Pandadoc.java - src/main/java/com/airbyte/api/models/shared/Paperform.java - src/main/java/com/airbyte/api/models/shared/Papersign.java @@ -3823,6 +4033,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/ParquetFormat.java - src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java - src/main/java/com/airbyte/api/models/shared/PasswordAuthentication.java + - src/main/java/com/airbyte/api/models/shared/Payfit.java - src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java - src/main/java/com/airbyte/api/models/shared/Paystack.java - src/main/java/com/airbyte/api/models/shared/Pendo.java @@ -3842,6 +4053,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Pgvector.java - src/main/java/com/airbyte/api/models/shared/Picqer.java - src/main/java/com/airbyte/api/models/shared/Pinecone.java + - src/main/java/com/airbyte/api/models/shared/Pingdom.java - src/main/java/com/airbyte/api/models/shared/Pinterest.java - src/main/java/com/airbyte/api/models/shared/PinterestCredentials.java - src/main/java/com/airbyte/api/models/shared/Pipedrive.java @@ -3882,13 +4094,14 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Qualaroo.java - src/main/java/com/airbyte/api/models/shared/Queries.java - src/main/java/com/airbyte/api/models/shared/Quickbooks.java + - src/main/java/com/airbyte/api/models/shared/RESTAPIStreams.java - src/main/java/com/airbyte/api/models/shared/RESTCatalog.java + - src/main/java/com/airbyte/api/models/shared/Raas.java - src/main/java/com/airbyte/api/models/shared/Railz.java - src/main/java/com/airbyte/api/models/shared/RandomSampling.java - src/main/java/com/airbyte/api/models/shared/Range.java - src/main/java/com/airbyte/api/models/shared/RdStationMarketing.java - src/main/java/com/airbyte/api/models/shared/RdStationMarketingAuthorization.java - - src/main/java/com/airbyte/api/models/shared/ReadChangesUsingBinaryLogCDC.java - src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java - src/main/java/com/airbyte/api/models/shared/ReadChangesUsingWriteAheadLogCDC.java - src/main/java/com/airbyte/api/models/shared/Recharge.java @@ -3903,28 +4116,38 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Rentcast.java - src/main/java/com/airbyte/api/models/shared/Repairshopr.java - src/main/java/com/airbyte/api/models/shared/ReplicaSet.java + - src/main/java/com/airbyte/api/models/shared/ReplicatePermissionsACL.java - src/main/java/com/airbyte/api/models/shared/ReplicateRecords.java - src/main/java/com/airbyte/api/models/shared/ReplyIo.java + - src/main/java/com/airbyte/api/models/shared/ReportBasedStreams.java - src/main/java/com/airbyte/api/models/shared/ReportConfig.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/ReportRecordTypeEnum.java - src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java - src/main/java/com/airbyte/api/models/shared/Require.java - src/main/java/com/airbyte/api/models/shared/Required.java + - src/main/java/com/airbyte/api/models/shared/Resolution.java + - src/main/java/com/airbyte/api/models/shared/Rest.java + - src/main/java/com/airbyte/api/models/shared/RetailexpressByMaropost.java - src/main/java/com/airbyte/api/models/shared/Retently.java - src/main/java/com/airbyte/api/models/shared/Revenuecat.java - src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java + - src/main/java/com/airbyte/api/models/shared/Ringcentral.java - src/main/java/com/airbyte/api/models/shared/RkiCovid.java + - src/main/java/com/airbyte/api/models/shared/RocketChat.java - src/main/java/com/airbyte/api/models/shared/Rocketlane.java - src/main/java/com/airbyte/api/models/shared/RoleBasedAuthentication.java - src/main/java/com/airbyte/api/models/shared/Rollbar.java - src/main/java/com/airbyte/api/models/shared/Rootly.java + - src/main/java/com/airbyte/api/models/shared/RowFiltering.java + - src/main/java/com/airbyte/api/models/shared/RowFilteringOperation.java + - src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.java - src/main/java/com/airbyte/api/models/shared/Rss.java - src/main/java/com/airbyte/api/models/shared/Ruddr.java - src/main/java/com/airbyte/api/models/shared/S3.java - src/main/java/com/airbyte/api/models/shared/S3AmazonWebServices.java - src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java + - src/main/java/com/airbyte/api/models/shared/S3DataLake.java - src/main/java/com/airbyte/api/models/shared/S3Glue.java - src/main/java/com/airbyte/api/models/shared/SCPSecureCopyProtocol.java - src/main/java/com/airbyte/api/models/shared/SFTPSecureFileTransferProtocol.java @@ -3964,6 +4187,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Senseforce.java - src/main/java/com/airbyte/api/models/shared/Sentry.java - src/main/java/com/airbyte/api/models/shared/SerializationLibrary.java + - src/main/java/com/airbyte/api/models/shared/Serpstat.java - src/main/java/com/airbyte/api/models/shared/ServerManaged.java - src/main/java/com/airbyte/api/models/shared/ServiceAccount.java - src/main/java/com/airbyte/api/models/shared/ServiceAccountAuthentication.java @@ -3971,6 +4195,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java - src/main/java/com/airbyte/api/models/shared/ServiceKeyAuthentication.java - src/main/java/com/airbyte/api/models/shared/ServiceName.java + - src/main/java/com/airbyte/api/models/shared/ServiceNow.java - src/main/java/com/airbyte/api/models/shared/Sevenshifts.java - src/main/java/com/airbyte/api/models/shared/Sftp.java - src/main/java/com/airbyte/api/models/shared/SftpBulk.java @@ -3978,6 +4203,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java - src/main/java/com/airbyte/api/models/shared/Sharetribe.java - src/main/java/com/airbyte/api/models/shared/Shippo.java + - src/main/java/com/airbyte/api/models/shared/Shipstation.java - src/main/java/com/airbyte/api/models/shared/Shopify.java - src/main/java/com/airbyte/api/models/shared/ShopifyAuthorizationMethod.java - src/main/java/com/airbyte/api/models/shared/ShopifyCredentials.java @@ -4025,6 +4251,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java - src/main/java/com/airbyte/api/models/shared/SourceAkeneo.java - src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java + - src/main/java/com/airbyte/api/models/shared/SourceAlphaVantage.java - src/main/java/com/airbyte/api/models/shared/SourceAmazonAds.java - src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java - src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java @@ -4058,11 +4285,14 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java + - src/main/java/com/airbyte/api/models/shared/SourceBabelforce.java + - src/main/java/com/airbyte/api/models/shared/SourceBabelforceRegion.java - src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java - src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java - src/main/java/com/airbyte/api/models/shared/SourceBeamer.java @@ -4077,6 +4307,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceBraintree.java - src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java - src/main/java/com/airbyte/api/models/shared/SourceBraze.java + - src/main/java/com/airbyte/api/models/shared/SourceBreezometer.java - src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java - src/main/java/com/airbyte/api/models/shared/SourceBrevo.java - src/main/java/com/airbyte/api/models/shared/SourceBrex.java @@ -4091,6 +4322,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceCampayn.java - src/main/java/com/airbyte/api/models/shared/SourceCanny.java - src/main/java/com/airbyte/api/models/shared/SourceCapsuleCrm.java + - src/main/java/com/airbyte/api/models/shared/SourceCaptainData.java - src/main/java/com/airbyte/api/models/shared/SourceCareQualityCommission.java - src/main/java/com/airbyte/api/models/shared/SourceCart.java - src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java @@ -4126,6 +4358,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceCoda.java - src/main/java/com/airbyte/api/models/shared/SourceCodefresh.java - src/main/java/com/airbyte/api/models/shared/SourceCoinApi.java + - src/main/java/com/airbyte/api/models/shared/SourceCoingeckoCoins.java - src/main/java/com/airbyte/api/models/shared/SourceCoinmarketcap.java - src/main/java/com/airbyte/api/models/shared/SourceConcord.java - src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java @@ -4171,6 +4404,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java - src/main/java/com/airbyte/api/models/shared/SourceEventee.java - src/main/java/com/airbyte/api/models/shared/SourceEventzilla.java + - src/main/java/com/airbyte/api/models/shared/SourceEverhour.java - src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java - src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java @@ -4182,6 +4416,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java - src/main/java/com/airbyte/api/models/shared/SourceFactorial.java - src/main/java/com/airbyte/api/models/shared/SourceFaker.java + - src/main/java/com/airbyte/api/models/shared/SourceFastbill.java - src/main/java/com/airbyte/api/models/shared/SourceFauna.java - src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java - src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java @@ -4218,6 +4453,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceFreshservice.java - src/main/java/com/airbyte/api/models/shared/SourceFront.java - src/main/java/com/airbyte/api/models/shared/SourceFulcrum.java + - src/main/java/com/airbyte/api/models/shared/SourceFullstory.java - src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java - src/main/java/com/airbyte/api/models/shared/SourceGcs.java - src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java @@ -4515,7 +4751,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAvroFormat.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVHeaderDefinition.java - - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDocumentFileTypeFormatExperimental.java + - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDeliveryType.java + - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveExcelFormat.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFileBasedStreamConfig.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFormat.java @@ -4529,13 +4766,16 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveProcessing.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasDeliveryType.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.java + - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUserProvided.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleForms.java @@ -4559,6 +4799,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceGoogleWebfonts.java - src/main/java/com/airbyte/api/models/shared/SourceGorgias.java - src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java + - src/main/java/com/airbyte/api/models/shared/SourceGreythr.java - src/main/java/com/airbyte/api/models/shared/SourceGridly.java - src/main/java/com/airbyte/api/models/shared/SourceGuru.java - src/main/java/com/airbyte/api/models/shared/SourceGutendex.java @@ -4569,8 +4810,11 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticationMechanism.java - src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceHeight.java + - src/main/java/com/airbyte/api/models/shared/SourceHellobaton.java + - src/main/java/com/airbyte/api/models/shared/SourceHelpScout.java - src/main/java/com/airbyte/api/models/shared/SourceHibob.java - src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java + - src/main/java/com/airbyte/api/models/shared/SourceHoorayhr.java - src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java - src/main/java/com/airbyte/api/models/shared/SourceHubspot.java - src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java @@ -4578,7 +4822,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java - src/main/java/com/airbyte/api/models/shared/SourceHubspotOAuth.java - src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.java - src/main/java/com/airbyte/api/models/shared/SourceHumanitix.java + - src/main/java/com/airbyte/api/models/shared/SourceHuntr.java - src/main/java/com/airbyte/api/models/shared/SourceIlluminaBasespace.java - src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java - src/main/java/com/airbyte/api/models/shared/SourceInflowinventory.java @@ -4587,7 +4833,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java - src/main/java/com/airbyte/api/models/shared/SourceInstatus.java - src/main/java/com/airbyte/api/models/shared/SourceIntercom.java - - src/main/java/com/airbyte/api/models/shared/SourceIntercomIntercom.java + - src/main/java/com/airbyte/api/models/shared/SourceIntruder.java - src/main/java/com/airbyte/api/models/shared/SourceInvoiced.java - src/main/java/com/airbyte/api/models/shared/SourceInvoiceninja.java - src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java @@ -4601,6 +4847,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceJustcall.java - src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java - src/main/java/com/airbyte/api/models/shared/SourceKatana.java + - src/main/java/com/airbyte/api/models/shared/SourceKeka.java - src/main/java/com/airbyte/api/models/shared/SourceKisi.java - src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java - src/main/java/com/airbyte/api/models/shared/SourceKlarna.java @@ -4644,6 +4891,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMailchimpOAuth20.java - src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceMailerlite.java + - src/main/java/com/airbyte/api/models/shared/SourceMailersend.java - src/main/java/com/airbyte/api/models/shared/SourceMailgun.java - src/main/java/com/airbyte/api/models/shared/SourceMailjetMail.java - src/main/java/com/airbyte/api/models/shared/SourceMailjetSms.java @@ -4652,6 +4900,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMarketo.java - src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java - src/main/java/com/airbyte/api/models/shared/SourceMention.java + - src/main/java/com/airbyte/api/models/shared/SourceMerge.java - src/main/java/com/airbyte/api/models/shared/SourceMetabase.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftEntraId.java @@ -4693,6 +4942,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAvroFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.java + - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCopyRawFiles.java + - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryMethod.java + - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryType.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java @@ -4706,7 +4958,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java + - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointReplicateRecords.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java @@ -4732,6 +4986,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java - src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java - src/main/java/com/airbyte/api/models/shared/SourceMode.java + - src/main/java/com/airbyte/api/models/shared/SourceModeMode.java - src/main/java/com/airbyte/api/models/shared/SourceMonday.java - src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java @@ -4763,30 +5018,36 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMux.java - src/main/java/com/airbyte/api/models/shared/SourceMyHours.java - src/main/java/com/airbyte/api/models/shared/SourceMysql.java + - src/main/java/com/airbyte/api/models/shared/SourceMysqlEncryption.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlNoTunnel.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlPasswordAuthentication.java + - src/main/java/com/airbyte/api/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHKeyAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHTunnelMethod.java - - src/main/java/com/airbyte/api/models/shared/SourceMysqlSSLModes.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java - - src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.java + - src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeEncryptionMode.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/SourceMysqlUpdateMethod.java - - src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCA.java + - src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCa.java - src/main/java/com/airbyte/api/models/shared/SourceN8n.java - src/main/java/com/airbyte/api/models/shared/SourceNasa.java + - src/main/java/com/airbyte/api/models/shared/SourceNavan.java - src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java - src/main/java/com/airbyte/api/models/shared/SourceNewsApi.java + - src/main/java/com/airbyte/api/models/shared/SourceNewsdata.java + - src/main/java/com/airbyte/api/models/shared/SourceNewsdataCategory.java + - src/main/java/com/airbyte/api/models/shared/SourceNewsdataCountry.java - src/main/java/com/airbyte/api/models/shared/SourceNewsdataIo.java + - src/main/java/com/airbyte/api/models/shared/SourceNewsdataLanguage.java - src/main/java/com/airbyte/api/models/shared/SourceNocrm.java - src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java - src/main/java/com/airbyte/api/models/shared/SourceNotion.java @@ -4836,7 +5097,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/SourceOracleUnencrypted.java - src/main/java/com/airbyte/api/models/shared/SourceOrb.java - - src/main/java/com/airbyte/api/models/shared/SourceOrbit.java - src/main/java/com/airbyte/api/models/shared/SourceOura.java - src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplify.java - src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAccessToken.java @@ -4850,6 +5110,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourcePapersign.java - src/main/java/com/airbyte/api/models/shared/SourcePardot.java - src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java + - src/main/java/com/airbyte/api/models/shared/SourcePayfit.java - src/main/java/com/airbyte/api/models/shared/SourcePaypalTransaction.java - src/main/java/com/airbyte/api/models/shared/SourcePaystack.java - src/main/java/com/airbyte/api/models/shared/SourcePendo.java @@ -4858,6 +5119,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourcePersona.java - src/main/java/com/airbyte/api/models/shared/SourcePexelsApi.java - src/main/java/com/airbyte/api/models/shared/SourcePicqer.java + - src/main/java/com/airbyte/api/models/shared/SourcePingdom.java - src/main/java/com/airbyte/api/models/shared/SourcePinterest.java - src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java - src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java @@ -4914,9 +5176,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourcePypi.java - src/main/java/com/airbyte/api/models/shared/SourceQualaroo.java - src/main/java/com/airbyte/api/models/shared/SourceQuickbooks.java - - src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java - - src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthorizationMethod.java - - src/main/java/com/airbyte/api/models/shared/SourceQuickbooksOAuth20.java - src/main/java/com/airbyte/api/models/shared/SourceRailz.java - src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketing.java - src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java @@ -4934,6 +5193,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceRepairshopr.java - src/main/java/com/airbyte/api/models/shared/SourceReplyIo.java - src/main/java/com/airbyte/api/models/shared/SourceResponse.java + - src/main/java/com/airbyte/api/models/shared/SourceRetailexpressByMaropost.java - src/main/java/com/airbyte/api/models/shared/SourceRetently.java - src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthenticationMechanism.java @@ -4941,7 +5201,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceRevenuecat.java - src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchant.java - src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java + - src/main/java/com/airbyte/api/models/shared/SourceRingcentral.java - src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java + - src/main/java/com/airbyte/api/models/shared/SourceRocketChat.java - src/main/java/com/airbyte/api/models/shared/SourceRocketlane.java - src/main/java/com/airbyte/api/models/shared/SourceRollbar.java - src/main/java/com/airbyte/api/models/shared/SourceRootly.java @@ -4952,6 +5214,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceS3AvroFormat.java - src/main/java/com/airbyte/api/models/shared/SourceS3CSVFormat.java - src/main/java/com/airbyte/api/models/shared/SourceS3CSVHeaderDefinition.java + - src/main/java/com/airbyte/api/models/shared/SourceS3CopyRawFiles.java + - src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryMethod.java - src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java - src/main/java/com/airbyte/api/models/shared/SourceS3ExcelFormat.java - src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java @@ -4965,7 +5229,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java - src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java - src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java + - src/main/java/com/airbyte/api/models/shared/SourceS3ReplicateRecords.java - src/main/java/com/airbyte/api/models/shared/SourceS3S3.java + - src/main/java/com/airbyte/api/models/shared/SourceS3SchemasDeliveryType.java - src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java - src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java - src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java @@ -4980,6 +5246,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceSageHr.java - src/main/java/com/airbyte/api/models/shared/SourceSalesflare.java - src/main/java/com/airbyte/api/models/shared/SourceSalesforce.java + - src/main/java/com/airbyte/api/models/shared/SourceSalesforceAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java - src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java - src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java @@ -4996,6 +5263,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceSendpulse.java - src/main/java/com/airbyte/api/models/shared/SourceSenseforce.java - src/main/java/com/airbyte/api/models/shared/SourceSentry.java + - src/main/java/com/airbyte/api/models/shared/SourceSerpstat.java + - src/main/java/com/airbyte/api/models/shared/SourceServiceNow.java - src/main/java/com/airbyte/api/models/shared/SourceSftp.java - src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java - src/main/java/com/airbyte/api/models/shared/SourceSftpAuthentication.java @@ -5042,6 +5311,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java - src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java - src/main/java/com/airbyte/api/models/shared/SourceShippo.java + - src/main/java/com/airbyte/api/models/shared/SourceShipstation.java - src/main/java/com/airbyte/api/models/shared/SourceShopify.java - src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java - src/main/java/com/airbyte/api/models/shared/SourceShopifyOAuth20.java @@ -5122,7 +5392,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java - src/main/java/com/airbyte/api/models/shared/SourceTimely.java - src/main/java/com/airbyte/api/models/shared/SourceTinyemail.java + - src/main/java/com/airbyte/api/models/shared/SourceTmdb.java - src/main/java/com/airbyte/api/models/shared/SourceTodoist.java + - src/main/java/com/airbyte/api/models/shared/SourceToggl.java - src/main/java/com/airbyte/api/models/shared/SourceTrackPms.java - src/main/java/com/airbyte/api/models/shared/SourceTrello.java - src/main/java/com/airbyte/api/models/shared/SourceTremendous.java @@ -5135,9 +5407,11 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceTvmazeSchedule.java - src/main/java/com/airbyte/api/models/shared/SourceTwelveData.java + - src/main/java/com/airbyte/api/models/shared/SourceTwelveDataInterval.java - src/main/java/com/airbyte/api/models/shared/SourceTwilio.java - src/main/java/com/airbyte/api/models/shared/SourceTwilioTaskrouter.java - src/main/java/com/airbyte/api/models/shared/SourceTwitter.java + - src/main/java/com/airbyte/api/models/shared/SourceTyntecSms.java - src/main/java/com/airbyte/api/models/shared/SourceTypeform.java - src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthorizationMethod.java @@ -5168,6 +5442,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceWoocommerce.java - src/main/java/com/airbyte/api/models/shared/SourceWordpress.java - src/main/java/com/airbyte/api/models/shared/SourceWorkable.java + - src/main/java/com/airbyte/api/models/shared/SourceWorkday.java + - src/main/java/com/airbyte/api/models/shared/SourceWorkdayAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceWorkflowmax.java - src/main/java/com/airbyte/api/models/shared/SourceWorkramp.java - src/main/java/com/airbyte/api/models/shared/SourceWrike.java @@ -5179,6 +5455,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceYandexMetrica.java - src/main/java/com/airbyte/api/models/shared/SourceYotpo.java - src/main/java/com/airbyte/api/models/shared/SourceYouNeedABudgetYnab.java + - src/main/java/com/airbyte/api/models/shared/SourceYounium.java - src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalytics.java - src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java - src/main/java/com/airbyte/api/models/shared/SourceYoutubeData.java @@ -5241,7 +5518,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Squarespace.java - src/main/java/com/airbyte/api/models/shared/StandaloneMongoDbInstance.java - src/main/java/com/airbyte/api/models/shared/State.java - - src/main/java/com/airbyte/api/models/shared/StateFilterEnum.java - src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java - src/main/java/com/airbyte/api/models/shared/Statsig.java - src/main/java/com/airbyte/api/models/shared/Status.java @@ -5255,6 +5531,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Strava.java - src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java - src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java + - src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java - src/main/java/com/airbyte/api/models/shared/StreamMapperType.java - src/main/java/com/airbyte/api/models/shared/StreamProperties.java - src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java @@ -5270,6 +5547,11 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Systeme.java - src/main/java/com/airbyte/api/models/shared/TLSEncryptedVerifyCertificate.java - src/main/java/com/airbyte/api/models/shared/Taboola.java + - src/main/java/com/airbyte/api/models/shared/Tag.java + - src/main/java/com/airbyte/api/models/shared/TagCreateRequest.java + - src/main/java/com/airbyte/api/models/shared/TagPatchRequest.java + - src/main/java/com/airbyte/api/models/shared/TagResponse.java + - src/main/java/com/airbyte/api/models/shared/TagsResponse.java - src/main/java/com/airbyte/api/models/shared/TargetsType.java - src/main/java/com/airbyte/api/models/shared/Teamtailor.java - src/main/java/com/airbyte/api/models/shared/Teamwork.java @@ -5281,6 +5563,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Testrail.java - src/main/java/com/airbyte/api/models/shared/TextSplitter.java - src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java + - src/main/java/com/airbyte/api/models/shared/TheTargetedActionResourceForTheFetch.java - src/main/java/com/airbyte/api/models/shared/Thinkific.java - src/main/java/com/airbyte/api/models/shared/Throttled.java - src/main/java/com/airbyte/api/models/shared/Ticketmaster.java @@ -5296,8 +5579,10 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Timely.java - src/main/java/com/airbyte/api/models/shared/Timeplus.java - src/main/java/com/airbyte/api/models/shared/Tinyemail.java + - src/main/java/com/airbyte/api/models/shared/Tmdb.java - src/main/java/com/airbyte/api/models/shared/ToValue.java - src/main/java/com/airbyte/api/models/shared/Todoist.java + - src/main/java/com/airbyte/api/models/shared/Toggl.java - src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java - src/main/java/com/airbyte/api/models/shared/TrackPms.java - src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java @@ -5310,6 +5595,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Twilio.java - src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java - src/main/java/com/airbyte/api/models/shared/Twitter.java + - src/main/java/com/airbyte/api/models/shared/TyntecSms.java - src/main/java/com/airbyte/api/models/shared/Typeform.java - src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java - src/main/java/com/airbyte/api/models/shared/Typesense.java @@ -5359,12 +5645,14 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Weaviate.java - src/main/java/com/airbyte/api/models/shared/WebScrapper.java - src/main/java/com/airbyte/api/models/shared/Webflow.java + - src/main/java/com/airbyte/api/models/shared/WebhookNotificationConfig.java - src/main/java/com/airbyte/api/models/shared/WhenIWork.java - src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java - src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java - src/main/java/com/airbyte/api/models/shared/Woocommerce.java - src/main/java/com/airbyte/api/models/shared/Wordpress.java - src/main/java/com/airbyte/api/models/shared/Workable.java + - src/main/java/com/airbyte/api/models/shared/Workday.java - src/main/java/com/airbyte/api/models/shared/Workflowmax.java - src/main/java/com/airbyte/api/models/shared/Workramp.java - src/main/java/com/airbyte/api/models/shared/WorkspaceCreateRequest.java @@ -5382,6 +5670,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Yellowbrick.java - src/main/java/com/airbyte/api/models/shared/Yotpo.java - src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java + - src/main/java/com/airbyte/api/models/shared/Younium.java - src/main/java/com/airbyte/api/models/shared/YoutubeAnalytics.java - src/main/java/com/airbyte/api/models/shared/YoutubeAnalyticsCredentials.java - src/main/java/com/airbyte/api/models/shared/YoutubeData.java @@ -5427,13 +5716,17 @@ generatedFiles: - src/main/java/com/airbyte/api/utils/JSON.java - src/main/java/com/airbyte/api/utils/LazySingletonValue.java - src/main/java/com/airbyte/api/utils/Metadata.java + - src/main/java/com/airbyte/api/utils/Multipart.java - src/main/java/com/airbyte/api/utils/MultipartFormMetadata.java + - src/main/java/com/airbyte/api/utils/NameValue.java - src/main/java/com/airbyte/api/utils/OneOfDeserializer.java - src/main/java/com/airbyte/api/utils/Options.java - src/main/java/com/airbyte/api/utils/PathParamsMetadata.java + - src/main/java/com/airbyte/api/utils/QueryEncoding.java - src/main/java/com/airbyte/api/utils/QueryParameter.java - src/main/java/com/airbyte/api/utils/QueryParameters.java - src/main/java/com/airbyte/api/utils/QueryParamsMetadata.java + - src/main/java/com/airbyte/api/utils/RecordingClient.java - src/main/java/com/airbyte/api/utils/RequestBody.java - src/main/java/com/airbyte/api/utils/RequestMetadata.java - src/main/java/com/airbyte/api/utils/Response.java @@ -5453,16 +5746,16 @@ examples: createConnection: Connection Creation Request Example: requestBody: - application/json: {"destinationId": "e478de0d-a3a0-475c-b019-25f7dd29e281", "name": "Postgres-to-Bigquery", "sourceId": "95e66a59-8045-4307-9678-63bc3c9b8c93"} + application/json: {"dataResidency": "auto", "destinationId": "e478de0d-a3a0-475c-b019-25f7dd29e281", "name": "Postgres-to-Bigquery", "namespaceDefinition": "destination", "namespaceFormat": "<value>", "nonBreakingSchemaUpdatesBehavior": "ignore", "prefix": "", "sourceId": "95e66a59-8045-4307-9678-63bc3c9b8c93"} responses: "200": - application/json: {"connectionId": "<value>", "createdAt": 781932, "destinationId": "<value>", "name": "<value>", "schedule": {"scheduleType": "cron"}, "sourceId": "<value>", "status": "deprecated", "workspaceId": "<value>"} + application/json: {"configurations": {}, "connectionId": "<value>", "createdAt": 781932, "dataResidency": "auto", "destinationId": "<value>", "name": "<value>", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "<value>", "status": "deprecated", "tags": [], "workspaceId": "<value>"} Connection Creation Response Example: requestBody: - application/json: {"destinationId": "1328ef85-1ea7-4fd4-b78a-5873822bcbf2", "namespaceFormat": "${SOURCE_NAMESPACE}", "sourceId": "0d0b7adc-3b02-490e-a47c-6957e4827afd"} + application/json: {"dataResidency": "auto", "destinationId": "328ef851-ea7f-4d47-88a5-873822bcbf2d", "namespaceDefinition": "destination", "namespaceFormat": "<value>", "nonBreakingSchemaUpdatesBehavior": "ignore", "prefix": "", "sourceId": "d0b7adc3-b029-40e4-a7c6-957e4827afdb"} responses: "200": - application/json: {"connectionId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "createdAt": 633409, "destinationId": "<value>", "name": "<value>", "schedule": {"scheduleType": "cron"}, "sourceId": "<value>", "status": "active", "workspaceId": "<value>"} + application/json: {"configurations": {}, "connectionId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "createdAt": 640872, "dataResidency": "auto", "destinationId": "<value>", "name": "<value>", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "<value>", "status": "active", "tags": [{"color": "cyan", "name": "<value>", "tagId": "e853523a-fb3a-4e6f-ab07-c3dab5d69d79", "workspaceId": "ebc4c796-c29d-4482-8595-4d13693c59a2"}], "workspaceId": "<value>"} deleteConnection: speakeasy-default-delete-connection: parameters: @@ -5475,44 +5768,49 @@ examples: connectionId: "<value>" responses: "200": - application/json: {"connectionId": "<value>", "createdAt": 934653, "destinationId": "744cc0ed-7f05-4949-9e60-2a814f90c035", "name": "Postgres To Snowflake", "schedule": {"scheduleType": "basic"}, "sourceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "status": "deprecated", "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} + application/json: {"configurations": {}, "connectionId": "<value>", "createdAt": 934653, "dataResidency": "auto", "destinationId": "744cc0ed-7f05-4949-9e60-2a814f90c035", "name": "Postgres To Snowflake", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "status": "deprecated", "tags": [{"color": "plum", "name": "<value>", "tagId": "b4546de2-f321-41c6-9948-142095324d2e", "workspaceId": "17e4951a-e407-4789-8206-b16864ce5f12"}, {"color": "sky blue", "name": "<value>", "tagId": "b4405e44-2947-4837-b244-47b66ef5e8ae", "workspaceId": "918d2ca9-a317-4203-8b6e-805981f43fe2"}], "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} listConnections: speakeasy-default-list-connections: + parameters: + query: + includeDeleted: false + limit: 20 + offset: 0 responses: "200": - application/json: {"data": [{"connectionId": "<value>", "createdAt": 726733, "destinationId": "<value>", "name": "test-connection", "schedule": {"scheduleType": "basic"}, "sourceId": "<value>", "status": "deprecated", "workspaceId": "<value>"}, {"connectionId": "<value>", "createdAt": 909205, "destinationId": "<value>", "name": "<value>", "schedule": {"scheduleType": "manual"}, "sourceId": "<value>", "status": "inactive", "workspaceId": "<value>"}, {"connectionId": "<value>", "createdAt": 374233, "destinationId": "<value>", "name": "<value>", "schedule": {"scheduleType": "cron"}, "sourceId": "49237019-645d-47d4-b45b-5eddf97775ce", "status": "deprecated", "workspaceId": "<value>"}, {"connectionId": "<value>", "createdAt": 731924, "destinationId": "al312fs-0ab1-4f72-9ed7-0b8fc27c5826", "name": "<value>", "schedule": {"scheduleType": "manual"}, "sourceId": "<value>", "status": "inactive", "workspaceId": "<value>"}, {"connectionId": "<value>", "createdAt": 901846, "destinationId": "<value>", "name": "<value>", "schedule": {"scheduleType": "manual"}, "sourceId": "<value>", "status": "deprecated", "workspaceId": "<value>"}, {"connectionId": "<value>", "createdAt": 475200, "destinationId": "<value>", "name": "<value>", "schedule": {"scheduleType": "cron"}, "sourceId": "<value>", "status": "active", "workspaceId": "<value>"}, {"connectionId": "<value>", "createdAt": 143014, "dataResidency": "auto", "destinationId": "<value>", "name": "<value>", "schedule": {"scheduleType": "cron"}, "sourceId": "<value>", "status": "active", "workspaceId": "<value>"}], "next": "https://api.airbyte.com/v1/connections?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/connections?limit=5&offset=0"} + application/json: {"data": [{"configurations": {}, "connectionId": "<value>", "createdAt": 726733, "dataResidency": "auto", "destinationId": "<value>", "name": "test-connection", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "<value>", "status": "deprecated", "tags": [{"color": "grey", "name": "<value>", "tagId": "a57cb08e-c762-471d-8a7a-04783f69e675", "workspaceId": "3c652149-922c-4e01-aac2-001d6f740af7"}, {"color": "white", "name": "<value>", "tagId": "67a4cae4-cdf0-465b-a6aa-51c0435bd42a", "workspaceId": "ced986f7-e9d0-4438-b0f0-4622226f5515"}, {"color": "white", "name": "<value>", "tagId": "6e726826-84d9-475b-9843-2b202970fa01", "workspaceId": "2f301cba-1d84-41d1-9873-2c8d3acb53bb"}], "workspaceId": "<value>"}, {"configurations": {}, "connectionId": "<value>", "createdAt": 808076, "dataResidency": "auto", "destinationId": "<value>", "name": "<value>", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "<value>", "status": "inactive", "tags": [], "workspaceId": "<value>"}, {"configurations": {}, "connectionId": "<value>", "createdAt": 884379, "dataResidency": "auto", "destinationId": "<value>", "name": "<value>", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "49237019-645d-47d4-b45b-5eddf97775ce", "status": "active", "tags": [{"color": "orange", "name": "<value>", "tagId": "164a228e-17f2-4cbb-832a-554182adc8da", "workspaceId": "6207024d-c903-4e50-8969-f94237c9d7c9"}, {"color": "gold", "name": "<value>", "tagId": "b0cc902b-acff-4def-85ce-25c37e2027ce", "workspaceId": "52bb088a-99ac-49b4-93c4-fdb8fe8d3612"}, {"color": "maroon", "name": "<value>", "tagId": "af798c5c-737f-47ad-95ce-eb405bab6ad1", "workspaceId": "ec04abc4-49b4-4a61-a77f-6c0dd2c2ed68"}], "workspaceId": "<value>"}, {"configurations": {}, "connectionId": "<value>", "createdAt": 584545, "dataResidency": "auto", "destinationId": "al312fs-0ab1-4f72-9ed7-0b8fc27c5826", "name": "<value>", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "<value>", "status": "inactive", "tags": [{"color": "teal", "name": "<value>", "tagId": "e17d727d-7971-4e63-bc8a-8443f551b94a", "workspaceId": "40a42bea-9fa7-49d3-858c-d28e26b5d262"}, {"color": "tan", "name": "<value>", "tagId": "7f8a0fc7-e3ff-45a9-bc05-4fb599f3003f", "workspaceId": "2a86dca0-6682-477b-b194-3225cfb3db50"}, {"color": "red", "name": "<value>", "tagId": "15955c87-4dcd-4f1e-8d4c-c9a2ad68d233", "workspaceId": "4564af4a-f7b0-407b-8201-5ce5c0aa5c24"}], "workspaceId": "<value>"}, {"configurations": {}, "connectionId": "<value>", "createdAt": 821882, "dataResidency": "auto", "destinationId": "<value>", "name": "<value>", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "<value>", "status": "active", "tags": [], "workspaceId": "<value>"}, {"configurations": {}, "connectionId": "<value>", "createdAt": 105968, "dataResidency": "auto", "destinationId": "<value>", "name": "<value>", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "<value>", "status": "active", "tags": [], "workspaceId": "<value>"}, {"configurations": {}, "connectionId": "<value>", "createdAt": 283785, "dataResidency": "auto", "destinationId": "<value>", "name": "<value>", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "<value>", "status": "inactive", "tags": [], "workspaceId": "<value>"}], "next": "https://api.airbyte.com/v1/connections?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/connections?limit=5&offset=0"} patchConnection: Connection Update Request Example: parameters: path: connectionId: "<value>" requestBody: - application/json: {"name": "Postgres-to-Bigquery"} + application/json: {"name": "Postgres-to-Bigquery", "namespaceFormat": "<value>"} responses: "200": - application/json: {"connectionId": "<value>", "createdAt": 106227, "destinationId": "<value>", "name": "<value>", "schedule": {"scheduleType": "basic"}, "sourceId": "<value>", "status": "active", "workspaceId": "<value>"} + application/json: {"configurations": {}, "connectionId": "<value>", "createdAt": 106227, "dataResidency": "auto", "destinationId": "<value>", "name": "<value>", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "<value>", "status": "active", "tags": [], "workspaceId": "<value>"} Connection Get Response Example: parameters: path: connectionId: "<value>" requestBody: - application/json: {"namespaceFormat": "${SOURCE_NAMESPACE}"} + application/json: {"namespaceFormat": "<value>"} responses: "200": - application/json: {"connectionId": "<value>", "createdAt": 184214, "destinationId": "744cc0ed-7f05-4949-9e60-2a814f90c035", "name": "Postgres To Snowflake", "schedule": {"scheduleType": "manual"}, "sourceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "status": "active", "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} + application/json: {"configurations": {}, "connectionId": "<value>", "createdAt": 287886, "dataResidency": "auto", "destinationId": "744cc0ed-7f05-4949-9e60-2a814f90c035", "name": "Postgres To Snowflake", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "status": "active", "tags": [{"color": "sky blue", "name": "<value>", "tagId": "2532230c-083c-40b4-8513-a87f320dcb52", "workspaceId": "73f7fe79-5e52-4d4f-a4a0-e68d60f6f5f8"}, {"color": "red", "name": "<value>", "tagId": "761f7386-b693-45f8-a46c-01122647425f", "workspaceId": "e8035a4c-bbbe-4aca-9e68-2a0b466b2ded"}], "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} createDestination: Destination Creation Request Example: requestBody: - application/json: {"configuration": {"indexing": {"credentials": {"password": "AIRBYTE_PASSWORD"}, "database": "AIRBYTE_DATABASE", "default_schema": "AIRBYTE_SCHEMA", "host": "AIRBYTE_ACCOUNT", "port": "5432", "username": "AIRBYTE_USER"}, "processing": {"chunk_size": 540943, "metadata_fields": ["age"], "text_fields": ["users.*.name"]}}, "name": "Postgres", "workspaceId": "2155ae5a-de39-4808-af6a-16fe7b8b4ed2"} + application/json: {"configuration": {"embedding": {}, "indexing": {"credentials": {"password": "AIRBYTE_PASSWORD"}, "database": "AIRBYTE_DATABASE", "default_schema": "public", "host": "AIRBYTE_ACCOUNT", "port": 5432, "username": "AIRBYTE_USER"}, "omit_raw_text": false, "processing": {"chunk_overlap": 0, "chunk_size": 540943, "metadata_fields": ["age"], "text_fields": ["users.*.name"]}}, "name": "Postgres", "workspaceId": "2155ae5a-de39-4808-af6a-16fe7b8b4ed2"} responses: "200": - application/json: {"configuration": {"indexing": {"auth": {"password": "0SAaZ1kxEg7h49V", "username": "Sonny.Miller"}, "collection": "<value>", "host": "tcp://my-local-milvus:19530"}, "processing": {"chunk_size": 727665, "metadata_fields": ["age"], "text_fields": ["text"]}}, "createdAt": 656314, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"auth_type": {"password": "G0SAaZ1kxEg7h49", "username": "Virgil.Tremblay59"}, "database": "<value>"}, "createdAt": 167061, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Destination Creation Response Example: requestBody: - application/json: {"configuration": {"credential": {"hmac_key_access_id": "1234567890abcdefghij1234", "hmac_key_secret": "1234567890abcdefghij1234567890ABCDEFGHIJ"}, "gcs_bucket_name": "airbyte_sync", "gcs_bucket_path": "data_sync/test"}, "name": "<value>", "workspaceId": "b4797bfc-7d8a-4652-9eb4-9a265e47b02e"} + application/json: {"configuration": {"database": "<value>", "disable_type_dedupe": false, "host": "soft-railway.com", "port": 3306, "ssl": true, "username": "Cole_Hermiston74"}, "name": "<value>", "workspaceId": "797bfc7d-8a65-42eb-a49a-265e47b02e60"} responses: "200": - application/json: {"configuration": {"bucket_name": "<value>", "credentials": {"aws_access_key_id": "<id>", "aws_secret_access_key": "<value>"}, "lakeformation_database_name": "<value>"}, "createdAt": 948482, "definitionId": "<value>", "destinationId": "af0c3c67-aa61-419f-8922-95b0bf840e86", "destinationType": "<value>", "name": "<value>", "workspaceId": "<value>"} + application/json: {"configuration": {"corpus_name": "<value>", "customer_id": "<id>", "oauth2": {"client_id": "<id>", "client_secret": "<value>"}, "parallelize": false, "title_field": ""}, "createdAt": 90520, "definitionId": "<value>", "destinationId": "af0c3c67-aa61-419f-8922-95b0bf840e86", "destinationType": "<value>", "name": "<value>", "workspaceId": "<value>"} deleteDestination: speakeasy-default-delete-destination: parameters: @@ -5525,12 +5823,17 @@ examples: destinationId: "<value>" responses: "200": - application/json: {"configuration": {"host": "cooperative-brochure.biz", "sid": "<id>", "username": "Colt_Greenfelder"}, "createdAt": 243454, "definitionId": "<value>", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "<value>", "name": "My Destination", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"host": "cooperative-brochure.biz", "port": 1521, "schema": "airbyte", "sid": "<id>", "username": "Colt_Greenfelder"}, "createdAt": 243454, "definitionId": "<value>", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "<value>", "name": "My Destination", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} listDestinations: speakeasy-default-list-destinations: + parameters: + query: + includeDeleted: false + limit: 20 + offset: 0 responses: "200": - application/json: {"data": [{"configuration": {"glue_database": "airbyte_database", "s3_bucket_name": "airbyte_sync", "s3_bucket_path": "data_sync/test"}, "createdAt": 607289, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/destinations?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/destinations?limit=5&offset=0"} + application/json: {"data": [{"configuration": {"format": {"flattening": "Root level flattening", "format_type": "JSONL"}, "glue_database": "airbyte_database", "glue_serialization_library": "org.openx.data.jsonserde.JsonSerDe", "s3_bucket_name": "airbyte_sync", "s3_bucket_path": "data_sync/test", "s3_bucket_region": "", "s3_endpoint": ""}, "createdAt": 607289, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/destinations?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/destinations?limit=5&offset=0"} patchDestination: Destination Update Request Example: parameters: @@ -5540,35 +5843,35 @@ examples: application/json: {"configuration": {"destination_path": "motherduck:"}, "name": "My Destination"} responses: "200": - application/json: {"configuration": {"database": "<value>", "host": "disloyal-lox.net", "username": "Tania.Lehner-Yundt67"}, "createdAt": 195047, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"database": "<value>", "host": "disloyal-lox.net", "port": 5432, "schema": "public", "ssl": false, "username": "Tania.Lehner-Yundt67"}, "createdAt": 195047, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Destination Update Response Example: parameters: path: destinationId: "<value>" requestBody: - application/json: {"configuration": {"corpus_name": "<value>", "customer_id": "<id>", "oauth2": {"client_id": "<id>", "client_secret": "<value>"}}} + application/json: {"configuration": {"corpus_name": "<value>", "customer_id": "<id>", "oauth2": {"client_id": "<id>", "client_secret": "<value>"}, "parallelize": false, "title_field": ""}} responses: "200": - application/json: {"configuration": {"destination_path": "motherduck:"}, "createdAt": 663057, "definitionId": "<value>", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "<value>", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"access_key_id": "A012345678910EXAMPLE", "dynamodb_endpoint": "", "dynamodb_region": "", "dynamodb_table_name_prefix": "airbyte_sync", "secret_access_key": "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY"}, "createdAt": 800544, "definitionId": "<value>", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "<value>", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} putDestination: Destination Update Request Example: parameters: path: destinationId: "<value>" requestBody: - application/json: {"configuration": {"database": "<value>", "host": "urban-receptor.org", "username": "Kaylie_Terry"}, "name": "My Destination"} + application/json: {"configuration": {"database": "<value>", "host": "urban-receptor.org", "port": 8123, "ssl": false, "username": "Kaylie_Terry"}, "name": "My Destination"} responses: "200": - application/json: {"configuration": {"project_id": "<id>"}, "createdAt": 946510, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"credential": {"credential_type": "HMAC_KEY", "hmac_key_access_id": "1234567890abcdefghij1234", "hmac_key_secret": "1234567890abcdefghij1234567890ABCDEFGHIJ"}, "format": {"block_size_mb": 128, "compression_codec": "UNCOMPRESSED", "dictionary_encoding": true, "dictionary_page_size_kb": 1024, "format_type": "Parquet", "max_padding_size_mb": 8, "page_size_kb": 1024}, "gcs_bucket_name": "airbyte_sync", "gcs_bucket_path": "data_sync/test", "gcs_bucket_region": "us"}, "createdAt": 353152, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Destination Update Response Example: parameters: path: destinationId: "<value>" requestBody: - application/json: {"configuration": {"credential": {"hmac_key_access_id": "1234567890abcdefghij1234", "hmac_key_secret": "1234567890abcdefghij1234567890ABCDEFGHIJ"}, "gcs_bucket_name": "airbyte_sync", "gcs_bucket_path": "data_sync/test"}, "name": "<value>"} + application/json: {"configuration": {"project_id": "<id>"}, "name": "<value>"} responses: "200": - application/json: {"configuration": {"database": "<value>", "host": "concerned-warming.biz", "username": "Helen.Lubowitz52"}, "createdAt": 490036, "definitionId": "<value>", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "<value>", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"database": "<value>", "host": "concerned-warming.biz", "port": "1433", "schema": "public", "ssl_method": {"name": "encrypted_trust_server_certificate"}, "user": "charles"}, "createdAt": 706041, "definitionId": "<value>", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "<value>", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} getHealthCheck: {} cancelJob: speakeasy-default-cancel-job: @@ -5603,6 +5906,8 @@ examples: "": parameters: query: + limit: 20 + offset: 0 createdAtStart: 1687450500000 createdAtEnd: 1687450500000 updatedAtStart: 1687450500000 @@ -5614,6 +5919,8 @@ examples: Job List Response Example: parameters: query: + limit: 20 + offset: 0 createdAtStart: 1687450500000 createdAtEnd: 1687450500000 updatedAtStart: 1687450500000 @@ -5671,16 +5978,16 @@ examples: createSource: Source Creation Request Example: requestBody: - application/json: {"configuration": {"api_key": "<value>", "start_date": "2021-01-01T00:00:00Z"}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"api_key": "<value>", "base_url": "https://app.posthog.com", "events_time_step": 30, "start_date": "2021-01-01T00:00:00Z"}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} responses: "200": - application/json: {"configuration": {"api_key": "<value>"}, "createdAt": 45355, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"include_private_channels": false, "join_channels": true, "lookback_window": 0, "start_date": "2017-01-25T00:00:00Z"}, "createdAt": 45355, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Source Creation Response Example: requestBody: application/json: {"configuration": {"api_key": "<value>"}, "name": "<value>", "workspaceId": "fdc883bf-195a-466e-bf9b-b403f120decf"} responses: "200": - application/json: {"configuration": {"token": "<value>"}, "createdAt": 909345, "definitionId": "<value>", "name": "<value>", "sourceId": "0c31738c-0b2d-4887-b506-e2cd1c39cc35", "sourceType": "<value>", "workspaceId": "<value>"} + application/json: {"configuration": {"start_date": "2020-10-15T00:00:00Z", "subdomain": "<value>"}, "createdAt": 909345, "definitionId": "<value>", "name": "<value>", "sourceId": "0c31738c-0b2d-4887-b506-e2cd1c39cc35", "sourceType": "<value>", "workspaceId": "<value>"} deleteSource: speakeasy-default-delete-source: parameters: @@ -5693,7 +6000,7 @@ examples: sourceId: "<value>" responses: "200": - application/json: {"configuration": {"credentials": {"access_token": "<value>"}}, "createdAt": 227873, "definitionId": "<value>", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"credentials": {"access_token": "<value>"}, "enable_experimental_streams": false}, "createdAt": 227873, "definitionId": "<value>", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} initiateOAuth: speakeasy-default-initiate-O-auth: requestBody: @@ -5703,19 +6010,22 @@ examples: parameters: query: workspaceIds: ["df08f6b0-b364-4cc1-9b3f-96f5d2fccfb2,b0796797-de23-4fc7-a5e2-7e131314718c"] + includeDeleted: false + limit: 20 + offset: 0 responses: "200": - application/json: {"data": [{"configuration": {"api_key": "<value>", "start_date": "2024-07-26T03:28:50.329Z"}, "createdAt": 736973, "definitionId": "<value>", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/sources?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/sources?limit=5&offset=0"} + application/json: {"data": [{"configuration": {"api_token": "<value>", "start_date": "2025-07-26T03:28:50.329Z"}, "createdAt": 736973, "definitionId": "<value>", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/sources?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/sources?limit=5&offset=0"} patchSource: Source Update Request Example: parameters: path: sourceId: "<value>" requestBody: - application/json: {"configuration": {"x-api-key": "<value>"}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"access_key": "<value>", "ignore_weekends": true, "start_date": "YYYY-MM-DD"}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} responses: "200": - application/json: {"configuration": {"secret": "<value>"}, "createdAt": 183665, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"api_key": "<value>", "channel_ids": []}, "createdAt": 107996, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Source Update Response Example: parameters: path: @@ -5724,34 +6034,70 @@ examples: application/json: {"configuration": {"api_key": "<value>"}, "name": "My source"} responses: "200": - application/json: {"configuration": {"api_key": "<value>"}, "createdAt": 291381, "definitionId": "<value>", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"api_key": "<value>"}, "createdAt": 491555, "definitionId": "<value>", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} putSource: Source Update Request Example: parameters: path: sourceId: "<value>" requestBody: - application/json: {"configuration": {"api_key": "<value>", "grid_id": "<id>"}, "name": "My Source"} + application/json: {"configuration": {}, "name": "My Source"} responses: "200": - application/json: {"configuration": {"api_key": "<value>", "api_secret": "<value>", "shop": "<value>", "start_date": "2021-01-01"}, "createdAt": 27682, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"access": "all-access", "agent": "all-agents", "article": "Are_You_the_One%3F", "country": "FR", "end": "<value>", "project": "commons.wikimedia.org", "start": "<value>"}, "createdAt": 634630, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Source Update Response Example: parameters: path: sourceId: "<value>" requestBody: - application/json: {"configuration": {"client_id": "<id>", "developer_token": "<value>", "refresh_token": "<value>"}, "name": "<value>"} + application/json: {"configuration": {"api_key": "<value>", "podcast_id": "<id>", "start_date": "2024-01-08T00:32:16.253Z"}, "name": "<value>"} responses: "200": - application/json: {"configuration": {"api_token": "<value>"}, "createdAt": 959713, "definitionId": "<value>", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"api_key": "<value>", "user_email": "<value>"}, "createdAt": 365058, "definitionId": "<value>", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} getStreamProperties: speakeasy-default-get-stream-properties: parameters: query: sourceId: "<value>" + ignoreCache: false + responses: + "200": + application/json: [{}] + createTag: + speakeasy-default-create-tag: + requestBody: + application/json: {"color": "blue", "name": "<value>", "workspaceId": "5f85d5ab-c889-4273-91d7-c22bac981db2"} responses: "200": - application/json: [] + application/json: {"color": "FF5733", "name": "Analytics Team", "tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + deleteTag: + speakeasy-default-delete-tag: + parameters: + path: + tagId: "da1c4fd4-2786-4b27-8b72-2335c85a5af8" + getTag: + speakeasy-default-get-tag: + parameters: + path: + tagId: "808ab48f-5790-47fe-aa1e-3073281a0300" + responses: + "200": + application/json: {"color": "FF5733", "name": "Analytics Team", "tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + listTags: + speakeasy-default-list-tags: + responses: + "200": + application/json: {"data": [{"color": "FF5733", "name": "Analytics Team", "tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}]} + updateTag: + speakeasy-default-update-tag: + parameters: + path: + tagId: "3043493e-7596-4d2b-8ee9-859838c615f6" + requestBody: + application/json: {"color": "turquoise", "name": "<value>"} + responses: + "200": + application/json: {"color": "FF5733", "name": "Analytics Team", "tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} listUsersWithinAnOrganization: speakeasy-default-list-users-within-an-organization: parameters: @@ -5773,13 +6119,13 @@ examples: application/json: {"name": "Company Workspace Name"} responses: "200": - application/json: {"name": "<value>", "workspaceId": "<value>"} + application/json: {"dataResidency": "auto", "name": "<value>", "notifications": {}, "workspaceId": "<value>"} Workspace Creation Response Example: requestBody: application/json: {"name": "<value>"} responses: "200": - application/json: {"name": "<value>", "workspaceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5"} + application/json: {"dataResidency": "auto", "name": "<value>", "notifications": {}, "workspaceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5"} deleteWorkspace: speakeasy-default-delete-workspace: parameters: @@ -5792,12 +6138,17 @@ examples: workspaceId: "<value>" responses: "200": - application/json: {"dataResidency": "auto", "name": "Acme Company", "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} + application/json: {"dataResidency": "auto", "name": "Acme Company", "notifications": {}, "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} listWorkspaces: speakeasy-default-list-workspaces: + parameters: + query: + includeDeleted: false + limit: 20 + offset: 0 responses: "200": - application/json: {"data": [{"dataResidency": "auto", "name": "Acme Company", "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"}], "next": "https://api.airbyte.com/v1/workspaces?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/workspaces?limit=5&offset=0"} + application/json: {"data": [{"dataResidency": "auto", "name": "Acme Company", "notifications": {}, "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"}], "next": "https://api.airbyte.com/v1/workspaces?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/workspaces?limit=5&offset=0"} updateWorkspace: Workspace Update Request Example: parameters: @@ -5807,14 +6158,15 @@ examples: application/json: {"name": "Company Workspace Name"} responses: "200": - application/json: {"name": "<value>", "workspaceId": "<value>"} + application/json: {"dataResidency": "auto", "name": "<value>", "notifications": {}, "workspaceId": "<value>"} Workspace Update Response Example: parameters: path: workspaceId: "<value>" requestBody: - application/json: {"name": "<value>"} + application/json: {} responses: "200": - application/json: {"name": "<value>", "workspaceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5"} + application/json: {"dataResidency": "auto", "name": "<value>", "notifications": {}, "workspaceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5"} +examplesVersion: 1.0.0 generatedTests: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 45ee62e74..9d1759dd3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.453.10 +speakeasyVersion: 1.513.2 sources: my-source: sourceNamespace: my-source @@ -9,11 +9,11 @@ sources: - main sample-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:aa3c5e64a0c5b50601e64821c42101dc6e22d9c63c67fc5b2c6df95683549fc3 - sourceBlobDigest: sha256:fa5143179ee978611fb032f3948584f4cbf071857ff2ff6611fbac17e1b67eb9 + sourceRevisionDigest: sha256:a441fb0a36b14b862c92a411a820d560f87fdb6ce32f9901972240508c3e2e29 + sourceBlobDigest: sha256:68329e88d0d5bd92109248db5f634fc1ac0611489ccaf3e89d2f2e1208b60aa3 tags: - latest - - speakeasy-sdk-regen-1733271463 + - speakeasy-sdk-regen-1733962674 - 1.0.0 targets: airbyte-api: @@ -24,10 +24,10 @@ targets: testing: source: sample-source sourceNamespace: my-source - sourceRevisionDigest: sha256:aa3c5e64a0c5b50601e64821c42101dc6e22d9c63c67fc5b2c6df95683549fc3 - sourceBlobDigest: sha256:fa5143179ee978611fb032f3948584f4cbf071857ff2ff6611fbac17e1b67eb9 + sourceRevisionDigest: sha256:a441fb0a36b14b862c92a411a820d560f87fdb6ce32f9901972240508c3e2e29 + sourceBlobDigest: sha256:68329e88d0d5bd92109248db5f634fc1ac0611489ccaf3e89d2f2e1208b60aa3 codeSamplesNamespace: my-source-java-code-samples - codeSamplesRevisionDigest: sha256:4bcdc1c05c1002038c44996ff6e1425317394805a9bbc73842fbd2e75ccfab04 + codeSamplesRevisionDigest: sha256:862bc71f1d20b3c0f14742c530c6626846633322491ae325dd4b92822d3575f8 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 66dc9051d..fe3d7a47e 100755 --- a/README.md +++ b/README.md @@ -1 +1,346 @@ -undefined \ No newline at end of file +undefined +<!-- Start Summary [summary] --> +## Summary + +airbyte-api: Programmatically control Airbyte Cloud, OSS & Enterprise. +<!-- End Summary [summary] --> + +<!-- Start Table of Contents [toc] --> +## Table of Contents +<!-- $toc-max-depth=2 --> + * [SDK Installation](#sdk-installation) + * [SDK Example Usage](#sdk-example-usage) + * [Authentication](#authentication) + * [Available Resources and Operations](#available-resources-and-operations) + * [Error Handling](#error-handling) + * [Server Selection](#server-selection) + +<!-- End Table of Contents [toc] --> + +<!-- Start SDK Installation [installation] --> +## SDK Installation + +### 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:1.7.0' +``` + +Maven: +```xml +<dependency> + <groupId>com.airbyte</groupId> + <artifactId>api</artifactId> + <version>1.7.0</version> +</dependency> +``` + +### How to build +After cloning the git repository to your file system you can build the SDK artifact from source to the `build` directory by running `./gradlew build` on *nix systems or `gradlew.bat` on Windows systems. + +If you wish to build from source and publish the SDK artifact to your local Maven repository (on your filesystem) then use the following command (after cloning the git repo locally): + +On *nix: +```bash +./gradlew publishToMavenLocal -Pskip.signing +``` +On Windows: +```bash +gradlew.bat publishToMavenLocal -Pskip.signing +``` +<!-- End SDK Installation [installation] --> + +<!-- Start SDK Example Usage [usage] --> +## SDK Example Usage + +### Example + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.CreateConnectionResponse; +import com.airbyte.api.models.shared.ConnectionCreateRequest; +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + ConnectionCreateRequest req = ConnectionCreateRequest.builder() + .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") + .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") + .name("Postgres-to-Bigquery") + .build(); + + CreateConnectionResponse res = sdk.connections().createConnection() + .request(req) + .call(); + + if (res.connectionResponse().isPresent()) { + // handle response + } + } +} +``` +<!-- End SDK Example Usage [usage] --> + +<!-- Start Authentication [security] --> +## Authentication + +### Per-Client Security Schemes + +This SDK supports the following security schemes globally: + +| Name | Type | Scheme | +| ------------------- | ------ | ------------ | +| `basicAuth` | http | HTTP Basic | +| `bearerAuth` | http | HTTP Bearer | +| `clientCredentials` | oauth2 | OAuth2 token | + +You can set the security parameters through the `security` builder method when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example: +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.CreateConnectionResponse; +import com.airbyte.api.models.shared.ConnectionCreateRequest; +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + ConnectionCreateRequest req = ConnectionCreateRequest.builder() + .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") + .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") + .name("Postgres-to-Bigquery") + .build(); + + CreateConnectionResponse res = sdk.connections().createConnection() + .request(req) + .call(); + + if (res.connectionResponse().isPresent()) { + // handle response + } + } +} +``` +<!-- End Authentication [security] --> + +<!-- Start Available Resources and Operations [operations] --> +## Available Resources and Operations + +<details open> +<summary>Available methods</summary> + + +### [connections()](docs/sdks/connections/README.md) + +* [createConnection](docs/sdks/connections/README.md#createconnection) - Create a connection +* [deleteConnection](docs/sdks/connections/README.md#deleteconnection) - Delete a Connection +* [getConnection](docs/sdks/connections/README.md#getconnection) - Get Connection details +* [listConnections](docs/sdks/connections/README.md#listconnections) - List connections +* [patchConnection](docs/sdks/connections/README.md#patchconnection) - Update Connection details + +### [destinations()](docs/sdks/destinations/README.md) + +* [createDestination](docs/sdks/destinations/README.md#createdestination) - Create a destination +* [deleteDestination](docs/sdks/destinations/README.md#deletedestination) - Delete a Destination +* [getDestination](docs/sdks/destinations/README.md#getdestination) - Get Destination details +* [listDestinations](docs/sdks/destinations/README.md#listdestinations) - List destinations +* [patchDestination](docs/sdks/destinations/README.md#patchdestination) - Update a Destination +* [putDestination](docs/sdks/destinations/README.md#putdestination) - Update a Destination and fully overwrite it + +### [health()](docs/sdks/health/README.md) + +* [getHealthCheck](docs/sdks/health/README.md#gethealthcheck) - Health Check + +### [jobs()](docs/sdks/jobs/README.md) + +* [cancelJob](docs/sdks/jobs/README.md#canceljob) - Cancel a running Job +* [createJob](docs/sdks/jobs/README.md#createjob) - Trigger a sync or reset job of a connection +* [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 +* [deletePermission](docs/sdks/permissions/README.md#deletepermission) - Delete a Permission +* [getPermission](docs/sdks/permissions/README.md#getpermission) - Get Permission details +* [listPermissions](docs/sdks/permissions/README.md#listpermissions) - List Permissions by user id +* [updatePermission](docs/sdks/permissions/README.md#updatepermission) - Update a permission + +### [sources()](docs/sdks/sources/README.md) + +* [createSource](docs/sdks/sources/README.md#createsource) - Create a source +* [deleteSource](docs/sdks/sources/README.md#deletesource) - Delete a Source +* [getSource](docs/sdks/sources/README.md#getsource) - Get Source details +* [initiateOAuth](docs/sdks/sources/README.md#initiateoauth) - Initiate OAuth for a source +* [listSources](docs/sdks/sources/README.md#listsources) - List sources +* [patchSource](docs/sdks/sources/README.md#patchsource) - Update a Source +* [putSource](docs/sdks/sources/README.md#putsource) - Update a Source and fully overwrite it + +### [streams()](docs/sdks/streams/README.md) + +* [getStreamProperties](docs/sdks/streams/README.md#getstreamproperties) - Get stream properties + +### [tags()](docs/sdks/tags/README.md) + +* [createTag](docs/sdks/tags/README.md#createtag) - Create a tag +* [deleteTag](docs/sdks/tags/README.md#deletetag) - Delete a tag +* [getTag](docs/sdks/tags/README.md#gettag) - Get a tag +* [listTags](docs/sdks/tags/README.md#listtags) - List all tags +* [updateTag](docs/sdks/tags/README.md#updatetag) - Update a tag + +### [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. +* [createWorkspace](docs/sdks/workspaces/README.md#createworkspace) - Create a workspace +* [deleteWorkspace](docs/sdks/workspaces/README.md#deleteworkspace) - Delete a Workspace +* [getWorkspace](docs/sdks/workspaces/README.md#getworkspace) - Get Workspace details +* [listWorkspaces](docs/sdks/workspaces/README.md#listworkspaces) - List workspaces +* [updateWorkspace](docs/sdks/workspaces/README.md#updateworkspace) - Update a workspace + +</details> +<!-- End Available Resources and Operations [operations] --> + +<!-- Start Error Handling [errors] --> +## Error Handling + +Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception. + +By default, an API error will throw a `models/errors/SDKError` exception. When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `createConnection` method throws the following exceptions: + +| Error Type | Status Code | Content Type | +| ---------------------- | ----------- | ------------ | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +### Example + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.CreateConnectionResponse; +import com.airbyte.api.models.shared.ConnectionCreateRequest; +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + ConnectionCreateRequest req = ConnectionCreateRequest.builder() + .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") + .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") + .name("Postgres-to-Bigquery") + .build(); + + CreateConnectionResponse res = sdk.connections().createConnection() + .request(req) + .call(); + + if (res.connectionResponse().isPresent()) { + // handle response + } + } +} +``` +<!-- End Error Handling [errors] --> + +<!-- Start Server Selection [server] --> +## Server Selection + +### Override Server URL Per-Client + +The default server can be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example: +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.CreateConnectionResponse; +import com.airbyte.api.models.shared.ConnectionCreateRequest; +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .serverURL("https://api.airbyte.com/v1") + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + ConnectionCreateRequest req = ConnectionCreateRequest.builder() + .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") + .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") + .name("Postgres-to-Bigquery") + .build(); + + CreateConnectionResponse res = sdk.connections().createConnection() + .request(req) + .call(); + + if (res.connectionResponse().isPresent()) { + // handle response + } + } +} +``` +<!-- End Server Selection [server] --> + +<!-- Placeholder for Future Speakeasy SDK Sections --> diff --git a/RELEASES.md b/RELEASES.md index 52a5a2af8..008e86910 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1191,4 +1191,14 @@ Based on: ### Generated - [java v1.6.0] . ### Releases -- [Maven Central v1.6.0] https://central.sonatype.com/artifact/com.airbyte/api/1.6.0 - . \ No newline at end of file +- [Maven Central v1.6.0] https://central.sonatype.com/artifact/com.airbyte/api/1.6.0 - . + +## 2025-03-07 00:17:10 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.513.2 (2.545.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v1.7.0] . +### Releases +- [Maven Central v1.7.0] https://central.sonatype.com/artifact/com.airbyte/api/1.7.0 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 7b74434fc..2925a708d 100644 --- a/build.gradle +++ b/build.gradle @@ -63,7 +63,7 @@ tasks.withType(Javadoc) { } group = "com.airbyte" -version = "1.6.0" +version = "1.7.0" sourcesJar { archiveBaseName = "api" @@ -101,7 +101,7 @@ publishing { maven(MavenPublication) { groupId = 'com.airbyte' artifactId = 'api' - version = '1.6.0' + version = '1.7.0' from components.java @@ -144,17 +144,15 @@ if (!project.hasProperty('skip.signing')) { } } + + dependencies { - api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2' + api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2' api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} - implementation 'org.apache.httpcomponents:httpclient:4.5.14' - implementation 'org.apache.httpcomponents:httpmime:4.5.14' - implementation 'commons-io:commons-io:2.15.1' + implementation 'commons-io:commons-io:2.18.0' } - - apply from: 'build-extras.gradle' diff --git a/docs/models/operations/CreateTagResponse.md b/docs/models/operations/CreateTagResponse.md new file mode 100644 index 000000000..d125b0cfb --- /dev/null +++ b/docs/models/operations/CreateTagResponse.md @@ -0,0 +1,11 @@ +# CreateTagResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `tagResponse` | [Optional\<TagResponse>](../../models/shared/TagResponse.md) | :heavy_minus_sign: | Successful operation | {<br/>"tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",<br/>"name": "Analytics Team",<br/>"color": "FF5733",<br/>"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"<br/>} | \ No newline at end of file diff --git a/docs/models/operations/DeleteTagRequest.md b/docs/models/operations/DeleteTagRequest.md new file mode 100644 index 000000000..dcd3f2bad --- /dev/null +++ b/docs/models/operations/DeleteTagRequest.md @@ -0,0 +1,8 @@ +# DeleteTagRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `tagId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/DeleteTagResponse.md b/docs/models/operations/DeleteTagResponse.md new file mode 100644 index 000000000..2b024b58e --- /dev/null +++ b/docs/models/operations/DeleteTagResponse.md @@ -0,0 +1,10 @@ +# DeleteTagResponse + + +## 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\<InputStream>](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/GetTagRequest.md b/docs/models/operations/GetTagRequest.md new file mode 100644 index 000000000..a689be6b7 --- /dev/null +++ b/docs/models/operations/GetTagRequest.md @@ -0,0 +1,8 @@ +# GetTagRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `tagId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetTagResponse.md b/docs/models/operations/GetTagResponse.md new file mode 100644 index 000000000..c3f41c247 --- /dev/null +++ b/docs/models/operations/GetTagResponse.md @@ -0,0 +1,11 @@ +# GetTagResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `tagResponse` | [Optional\<TagResponse>](../../models/shared/TagResponse.md) | :heavy_minus_sign: | Successful operation | {<br/>"tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",<br/>"name": "Analytics Team",<br/>"color": "FF5733",<br/>"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"<br/>} | \ No newline at end of file diff --git a/docs/models/operations/ListConnectionsRequest.md b/docs/models/operations/ListConnectionsRequest.md index 623e703d1..68c761510 100644 --- a/docs/models/operations/ListConnectionsRequest.md +++ b/docs/models/operations/ListConnectionsRequest.md @@ -8,4 +8,5 @@ | `includeDeleted` | *Optional\<Boolean>* | :heavy_minus_sign: | Include deleted connections in the returned results. | | `limit` | *Optional\<Integer>* | :heavy_minus_sign: | Set the limit on the number of Connections returned. The default is 20. | | `offset` | *Optional\<Integer>* | :heavy_minus_sign: | Set the offset to start at when returning Connections. The default is 0 | +| `tagIds` | List\<*String*> | :heavy_minus_sign: | The UUIDs of the tags you wish to list connections for. Empty list will retrieve all connections. | | `workspaceIds` | List\<*String*> | :heavy_minus_sign: | The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. | \ No newline at end of file diff --git a/docs/models/operations/ListTagsRequest.md b/docs/models/operations/ListTagsRequest.md new file mode 100644 index 000000000..1ade0af00 --- /dev/null +++ b/docs/models/operations/ListTagsRequest.md @@ -0,0 +1,8 @@ +# ListTagsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `workspaceIds` | List\<*String*> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/ListTagsResponse.md b/docs/models/operations/ListTagsResponse.md new file mode 100644 index 000000000..fb78557b8 --- /dev/null +++ b/docs/models/operations/ListTagsResponse.md @@ -0,0 +1,11 @@ +# ListTagsResponse + + +## 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\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `tagsResponse` | [Optional\<TagsResponse>](../../models/shared/TagsResponse.md) | :heavy_minus_sign: | List Tags. | \ No newline at end of file diff --git a/docs/models/operations/UpdateTagRequest.md b/docs/models/operations/UpdateTagRequest.md new file mode 100644 index 000000000..a4d471628 --- /dev/null +++ b/docs/models/operations/UpdateTagRequest.md @@ -0,0 +1,9 @@ +# UpdateTagRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `tagPatchRequest` | [TagPatchRequest](../../models/shared/TagPatchRequest.md) | :heavy_check_mark: | N/A | +| `tagId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateTagResponse.md b/docs/models/operations/UpdateTagResponse.md new file mode 100644 index 000000000..90263cc84 --- /dev/null +++ b/docs/models/operations/UpdateTagResponse.md @@ -0,0 +1,11 @@ +# UpdateTagResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `tagResponse` | [Optional\<TagResponse>](../../models/shared/TagResponse.md) | :heavy_minus_sign: | Successful operation | {<br/>"tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",<br/>"name": "Analytics Team",<br/>"color": "FF5733",<br/>"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"<br/>} | \ No newline at end of file diff --git a/docs/models/shared/Allow.md b/docs/models/shared/Allow.md index d1e7906be..87a8be2ae 100644 --- a/docs/models/shared/Allow.md +++ b/docs/models/shared/Allow.md @@ -5,6 +5,6 @@ Allow SSL mode. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `mode` | [Optional\<DestinationPostgresMode>](../../models/shared/DestinationPostgresMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `mode` | [Optional\<DestinationPostgresSchemasMode>](../../models/shared/DestinationPostgresSchemasMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/AlphaVantage.md b/docs/models/shared/AlphaVantage.md new file mode 100644 index 000000000..0ef807e1e --- /dev/null +++ b/docs/models/shared/AlphaVantage.md @@ -0,0 +1,8 @@ +# AlphaVantage + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `ALPHA_VANTAGE` | alpha-vantage | \ No newline at end of file diff --git a/docs/models/shared/AmazonSellerPartner.md b/docs/models/shared/AmazonSellerPartner.md index 298b34194..5c502e772 100644 --- a/docs/models/shared/AmazonSellerPartner.md +++ b/docs/models/shared/AmazonSellerPartner.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `appId` | *Optional\<String>* | :heavy_minus_sign: | Your Amazon Application ID. | | `lwaAppId` | *Optional\<String>* | :heavy_minus_sign: | Your Login with Amazon Client ID. | | `lwaClientSecret` | *Optional\<String>* | :heavy_minus_sign: | Your Login with Amazon Client Secret. | \ No newline at end of file diff --git a/docs/models/shared/AuthType.md b/docs/models/shared/AuthType.md index 9103a4597..f2fd6a20b 100644 --- a/docs/models/shared/AuthType.md +++ b/docs/models/shared/AuthType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| -------- | -------- | -| `CLIENT` | Client | \ No newline at end of file +| Name | Value | +| --------- | --------- | +| `OAUTH20` | oauth2.0 | \ No newline at end of file diff --git a/docs/models/shared/AuthenticateViaClientCredentials.md b/docs/models/shared/AuthenticateViaClientCredentials.md new file mode 100644 index 000000000..76698494b --- /dev/null +++ b/docs/models/shared/AuthenticateViaClientCredentials.md @@ -0,0 +1,11 @@ +# AuthenticateViaClientCredentials + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `appClientId` | *String* | :heavy_check_mark: | Client ID of your Microsoft developer application | +| `appClientSecret` | *String* | :heavy_check_mark: | Client Secret of your Microsoft developer application | +| `appTenantId` | *String* | :heavy_check_mark: | Tenant ID of the Microsoft Azure Application | +| `authType` | [Optional\<SourceAzureBlobStorageSchemasAuthType>](../../models/shared/SourceAzureBlobStorageSchemasAuthType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/AuthenticateViaStorageAccountKey.md b/docs/models/shared/AuthenticateViaStorageAccountKey.md index 6efdb181e..bfb7be2f0 100644 --- a/docs/models/shared/AuthenticateViaStorageAccountKey.md +++ b/docs/models/shared/AuthenticateViaStorageAccountKey.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `authType` | [Optional\<SourceAzureBlobStorageSchemasAuthType>](../../models/shared/SourceAzureBlobStorageSchemasAuthType.md) | :heavy_minus_sign: | N/A | | -| `azureBlobStorageAccountKey` | *String* | :heavy_check_mark: | The Azure blob storage account key. | Z8ZkZpteggFx394vm+PJHnGTvdRncaYS+JhLKdj789YNmD+iyGTnG+PV+POiuYNhBg/ACS+LKjd%4FG3FHGN12Nd== | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `authType` | [Optional\<SourceAzureBlobStorageSchemasCredentialsAuthType>](../../models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.md) | :heavy_minus_sign: | N/A | | +| `azureBlobStorageAccountKey` | *String* | :heavy_check_mark: | The Azure blob storage account key. | Z8ZkZpteggFx394vm+PJHnGTvdRncaYS+JhLKdj789YNmD+iyGTnG+PV+POiuYNhBg/ACS+LKjd%4FG3FHGN12Nd== | \ No newline at end of file diff --git a/docs/models/shared/AzureOpenAI.md b/docs/models/shared/AzureOpenAI.md index 1f0c5be74..300ead2a5 100644 --- a/docs/models/shared/AzureOpenAI.md +++ b/docs/models/shared/AzureOpenAI.md @@ -5,9 +5,9 @@ Use the Azure-hosted OpenAI API to embed text. This option is using the text-emb ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `apiBase` | *String* | :heavy_check_mark: | The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource | https://your-resource-name.openai.azure.com | -| `deployment` | *String* | :heavy_check_mark: | The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource | your-resource-name | -| `mode` | [Optional\<DestinationAstraSchemasEmbeddingMode>](../../models/shared/DestinationAstraSchemasEmbeddingMode.md) | :heavy_minus_sign: | N/A | | -| `openaiKey` | *String* | :heavy_check_mark: | The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `apiBase` | *String* | :heavy_check_mark: | The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource | https://your-resource-name.openai.azure.com | +| `deployment` | *String* | :heavy_check_mark: | The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource | your-resource-name | +| `mode` | [Optional\<DestinationAstraSchemasEmbeddingEmbeddingMode>](../../models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.md) | :heavy_minus_sign: | N/A | | +| `openaiKey` | *String* | :heavy_check_mark: | The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource | | \ No newline at end of file diff --git a/docs/models/shared/Babelforce.md b/docs/models/shared/Babelforce.md new file mode 100644 index 000000000..8c1fa084e --- /dev/null +++ b/docs/models/shared/Babelforce.md @@ -0,0 +1,8 @@ +# Babelforce + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `BABELFORCE` | babelforce | \ No newline at end of file diff --git a/docs/models/shared/Basic.md b/docs/models/shared/Basic.md index faea3eb57..e25c61619 100644 --- a/docs/models/shared/Basic.md +++ b/docs/models/shared/Basic.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `apiEndpoint` | [Optional\<SourceJotformApiEndpoint>](../../models/shared/SourceJotformApiEndpoint.md) | :heavy_minus_sign: | N/A | +| `apiEndpoint` | [Optional\<SourceJotformSchemasApiEndpoint>](../../models/shared/SourceJotformSchemasApiEndpoint.md) | :heavy_minus_sign: | N/A | | `urlPrefix` | [Optional\<BaseURLPrefix>](../../models/shared/BaseURLPrefix.md) | :heavy_minus_sign: | You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) | \ No newline at end of file diff --git a/docs/models/shared/Breezometer.md b/docs/models/shared/Breezometer.md new file mode 100644 index 000000000..ca3c97893 --- /dev/null +++ b/docs/models/shared/Breezometer.md @@ -0,0 +1,8 @@ +# Breezometer + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `BREEZOMETER` | breezometer | \ No newline at end of file diff --git a/docs/models/shared/CaptainData.md b/docs/models/shared/CaptainData.md new file mode 100644 index 000000000..73c0c004a --- /dev/null +++ b/docs/models/shared/CaptainData.md @@ -0,0 +1,8 @@ +# CaptainData + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `CAPTAIN_DATA` | captain-data | \ No newline at end of file diff --git a/docs/models/shared/CatalogType.md b/docs/models/shared/CatalogType.md index 0b4ef3e65..03e1a191e 100644 --- a/docs/models/shared/CatalogType.md +++ b/docs/models/shared/CatalogType.md @@ -1,8 +1,4 @@ # CatalogType +Specifies the type of Iceberg catalog (e.g., NESSIE, GLUE, REST) and its associated configuration. -## Values - -| Name | Value | -| ------ | ------ | -| `HIVE` | Hive | \ No newline at end of file diff --git a/docs/models/shared/Cohere.md b/docs/models/shared/Cohere.md index 6d7a18175..052ccfa28 100644 --- a/docs/models/shared/Cohere.md +++ b/docs/models/shared/Cohere.md @@ -5,7 +5,7 @@ Use the Cohere API to embed text. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `cohereKey` | *String* | :heavy_check_mark: | N/A | -| `mode` | [Optional\<DestinationAstraMode>](../../models/shared/DestinationAstraMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `cohereKey` | *String* | :heavy_check_mark: | N/A | +| `mode` | [Optional\<DestinationAstraSchemasMode>](../../models/shared/DestinationAstraSchemasMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CoingeckoCoins.md b/docs/models/shared/CoingeckoCoins.md new file mode 100644 index 000000000..fef770f1a --- /dev/null +++ b/docs/models/shared/CoingeckoCoins.md @@ -0,0 +1,8 @@ +# CoingeckoCoins + + +## Values + +| Name | Value | +| ----------------- | ----------------- | +| `COINGECKO_COINS` | coingecko-coins | \ No newline at end of file diff --git a/docs/models/shared/ConfiguredStreamMapper.md b/docs/models/shared/ConfiguredStreamMapper.md index 02472234d..3aebeefda 100644 --- a/docs/models/shared/ConfiguredStreamMapper.md +++ b/docs/models/shared/ConfiguredStreamMapper.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `id` | *Optional\<String>* | :heavy_minus_sign: | N/A | | `mapperConfiguration` | [MapperConfiguration](../../models/shared/MapperConfiguration.md) | :heavy_check_mark: | The values required to configure the mapper. | | `type` | [StreamMapperType](../../models/shared/StreamMapperType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ConnectionCreateRequest.md b/docs/models/shared/ConnectionCreateRequest.md index abf31048e..2ad6ea935 100644 --- a/docs/models/shared/ConnectionCreateRequest.md +++ b/docs/models/shared/ConnectionCreateRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `configurations` | [Optional\<StreamConfigurations>](../../models/shared/StreamConfigurations.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | +| `configurations` | [Optional\<StreamConfigurationsInput>](../../models/shared/StreamConfigurationsInput.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | | `dataResidency` | [Optional\<GeographyEnum>](../../models/shared/GeographyEnum.md) | :heavy_minus_sign: | N/A | | | `destinationId` | *String* | :heavy_check_mark: | N/A | | | `name` | *Optional\<String>* | :heavy_minus_sign: | Optional name of the connection | | @@ -15,4 +15,5 @@ | `prefix` | *Optional\<String>* | :heavy_minus_sign: | Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). | | | `schedule` | [Optional\<AirbyteApiConnectionSchedule>](../../models/shared/AirbyteApiConnectionSchedule.md) | :heavy_minus_sign: | schedule for when the the connection should run, per the schedule type | | | `sourceId` | *String* | :heavy_check_mark: | N/A | | -| `status` | [Optional\<ConnectionStatusEnum>](../../models/shared/ConnectionStatusEnum.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `status` | [Optional\<ConnectionStatusEnum>](../../models/shared/ConnectionStatusEnum.md) | :heavy_minus_sign: | N/A | | +| `tags` | List\<[Tag](../../models/shared/Tag.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/ConnectionPatchRequest.md b/docs/models/shared/ConnectionPatchRequest.md index 4cec96c57..5f50e398a 100644 --- a/docs/models/shared/ConnectionPatchRequest.md +++ b/docs/models/shared/ConnectionPatchRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `configurations` | [Optional\<StreamConfigurations>](../../models/shared/StreamConfigurations.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | +| `configurations` | [Optional\<StreamConfigurationsInput>](../../models/shared/StreamConfigurationsInput.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | | `dataResidency` | [Optional\<GeographyEnumNoDefault>](../../models/shared/GeographyEnumNoDefault.md) | :heavy_minus_sign: | N/A | | | `name` | *Optional\<String>* | :heavy_minus_sign: | Optional name of the connection | | | `namespaceDefinition` | [Optional\<NamespaceDefinitionEnumNoDefault>](../../models/shared/NamespaceDefinitionEnumNoDefault.md) | :heavy_minus_sign: | Define the location where the data will be stored in the destination | | @@ -13,4 +13,5 @@ | `nonBreakingSchemaUpdatesBehavior` | [Optional\<NonBreakingSchemaUpdatesBehaviorEnumNoDefault>](../../models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.md) | :heavy_minus_sign: | Set how Airbyte handles syncs when it detects a non-breaking schema change in the source | | | `prefix` | *Optional\<String>* | :heavy_minus_sign: | Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). | | | `schedule` | [Optional\<AirbyteApiConnectionSchedule>](../../models/shared/AirbyteApiConnectionSchedule.md) | :heavy_minus_sign: | schedule for when the the connection should run, per the schedule type | | -| `status` | [Optional\<ConnectionStatusEnum>](../../models/shared/ConnectionStatusEnum.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `status` | [Optional\<ConnectionStatusEnum>](../../models/shared/ConnectionStatusEnum.md) | :heavy_minus_sign: | N/A | | +| `tags` | List\<[Tag](../../models/shared/Tag.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/ConnectionResponse.md b/docs/models/shared/ConnectionResponse.md index 26e944655..c1078b7b7 100644 --- a/docs/models/shared/ConnectionResponse.md +++ b/docs/models/shared/ConnectionResponse.md @@ -20,4 +20,5 @@ Provides details of a single connection. | `schedule` | [ConnectionScheduleResponse](../../models/shared/ConnectionScheduleResponse.md) | :heavy_check_mark: | schedule for when the the connection should run, per the schedule type | | `sourceId` | *String* | :heavy_check_mark: | N/A | | `status` | [ConnectionStatusEnum](../../models/shared/ConnectionStatusEnum.md) | :heavy_check_mark: | N/A | +| `tags` | List\<[Tag](../../models/shared/Tag.md)> | :heavy_check_mark: | N/A | | `workspaceId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ConnectionSyncModeEnum.md b/docs/models/shared/ConnectionSyncModeEnum.md index 4da09f9d1..0b00e162a 100644 --- a/docs/models/shared/ConnectionSyncModeEnum.md +++ b/docs/models/shared/ConnectionSyncModeEnum.md @@ -3,9 +3,10 @@ ## Values -| Name | Value | -| ----------------------------- | ----------------------------- | -| `FULL_REFRESH_OVERWRITE` | full_refresh_overwrite | -| `FULL_REFRESH_APPEND` | full_refresh_append | -| `INCREMENTAL_APPEND` | incremental_append | -| `INCREMENTAL_DEDUPED_HISTORY` | incremental_deduped_history | \ No newline at end of file +| Name | Value | +| -------------------------------- | -------------------------------- | +| `FULL_REFRESH_OVERWRITE` | full_refresh_overwrite | +| `FULL_REFRESH_OVERWRITE_DEDUPED` | full_refresh_overwrite_deduped | +| `FULL_REFRESH_APPEND` | full_refresh_append | +| `INCREMENTAL_APPEND` | incremental_append | +| `INCREMENTAL_DEDUPED_HISTORY` | incremental_deduped_history | \ No newline at end of file diff --git a/docs/models/shared/CopyRawFiles.md b/docs/models/shared/CopyRawFiles.md index f0836a485..16199abf8 100644 --- a/docs/models/shared/CopyRawFiles.md +++ b/docs/models/shared/CopyRawFiles.md @@ -5,6 +5,7 @@ Copy raw files without parsing their contents. Bits are copied into the destinat ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `deliveryType` | [Optional\<SourceS3DeliveryType>](../../models/shared/SourceS3DeliveryType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `deliveryType` | [Optional\<SourceGoogleDriveDeliveryType>](../../models/shared/SourceGoogleDriveDeliveryType.md) | :heavy_minus_sign: | N/A | +| `preserveDirectoryStructure` | *Optional\<Boolean>* | :heavy_minus_sign: | If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. | \ No newline at end of file diff --git a/docs/models/shared/Credentials.md b/docs/models/shared/Credentials.md index 115006a5d..7463067bd 100644 --- a/docs/models/shared/Credentials.md +++ b/docs/models/shared/Credentials.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `clientId` | *Optional\<String>* | :heavy_minus_sign: | The client ID of the Airtable developer application. | -| `clientSecret` | *Optional\<String>* | :heavy_minus_sign: | The client secret the Airtable developer application. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `clientId` | *Optional\<String>* | :heavy_minus_sign: | The client ID of the Airtable developer application. | +| `clientSecret` | *Optional\<String>* | :heavy_minus_sign: | The client secret of the Airtable developer application. | \ No newline at end of file diff --git a/docs/models/shared/Days.md b/docs/models/shared/Days.md new file mode 100644 index 000000000..7092badc6 --- /dev/null +++ b/docs/models/shared/Days.md @@ -0,0 +1,18 @@ +# Days + +The number of days of data for market chart. + + + +## Values + +| Name | Value | +| ------------------------------ | ------------------------------ | +| `ONE` | 1 | +| `SEVEN` | 7 | +| `FOURTEEN` | 14 | +| `THIRTY` | 30 | +| `NINETY` | 90 | +| `ONE_HUNDRED_AND_EIGHTY` | 180 | +| `THREE_HUNDRED_AND_SIXTY_FIVE` | 365 | +| `MAX` | max | \ No newline at end of file diff --git a/docs/models/shared/DestinationAstraMode.md b/docs/models/shared/DestinationAstraMode.md index 036a58049..e0881dfbc 100644 --- a/docs/models/shared/DestinationAstraMode.md +++ b/docs/models/shared/DestinationAstraMode.md @@ -5,4 +5,4 @@ | Name | Value | | -------- | -------- | -| `COHERE` | cohere | \ No newline at end of file +| `OPENAI` | openai | \ No newline at end of file diff --git a/docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.md b/docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.md deleted file mode 100644 index b2c17679f..000000000 --- a/docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.md +++ /dev/null @@ -1,8 +0,0 @@ -# DestinationAstraSchemasEmbeddingEmbedding1Mode - - -## Values - -| Name | Value | -| -------- | -------- | -| `OPENAI` | openai | \ No newline at end of file diff --git a/docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.md b/docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.md new file mode 100644 index 000000000..e08298110 --- /dev/null +++ b/docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.md @@ -0,0 +1,8 @@ +# DestinationAstraSchemasEmbeddingEmbedding5Mode + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `OPENAI_COMPATIBLE` | openai_compatible | \ No newline at end of file diff --git a/docs/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.md b/docs/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.md index 9feeb8dc7..0baed7374 100644 --- a/docs/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.md +++ b/docs/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------- | ------------------- | -| `OPENAI_COMPATIBLE` | openai_compatible | \ No newline at end of file +| Name | Value | +| -------------- | -------------- | +| `AZURE_OPENAI` | azure_openai | \ No newline at end of file diff --git a/docs/models/shared/DestinationAstraSchemasEmbeddingMode.md b/docs/models/shared/DestinationAstraSchemasEmbeddingMode.md index edbb46b40..70c448aad 100644 --- a/docs/models/shared/DestinationAstraSchemasEmbeddingMode.md +++ b/docs/models/shared/DestinationAstraSchemasEmbeddingMode.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| -------------- | -------------- | -| `AZURE_OPENAI` | azure_openai | \ No newline at end of file +| Name | Value | +| ------ | ------ | +| `FAKE` | fake | \ No newline at end of file diff --git a/docs/models/shared/DestinationAstraSchemasMode.md b/docs/models/shared/DestinationAstraSchemasMode.md index b83aed3df..a36f100fd 100644 --- a/docs/models/shared/DestinationAstraSchemasMode.md +++ b/docs/models/shared/DestinationAstraSchemasMode.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------ | ------ | -| `FAKE` | fake | \ No newline at end of file +| Name | Value | +| -------- | -------- | +| `COHERE` | cohere | \ No newline at end of file diff --git a/docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.md b/docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.md new file mode 100644 index 000000000..1646e527d --- /dev/null +++ b/docs/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.md @@ -0,0 +1,8 @@ +# DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType + + +## Values + +| Name | Value | +| ------ | ------ | +| `HIVE` | Hive | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlSchemasSslMethod.md b/docs/models/shared/DestinationMssqlSchemasSslMethod.md index d28b0cb16..c1b7d5248 100644 --- a/docs/models/shared/DestinationMssqlSchemasSslMethod.md +++ b/docs/models/shared/DestinationMssqlSchemasSslMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------------------------ | ------------------------------------ | -| `ENCRYPTED_TRUST_SERVER_CERTIFICATE` | encrypted_trust_server_certificate | \ No newline at end of file +| Name | Value | +| ------------------------------ | ------------------------------ | +| `ENCRYPTED_VERIFY_CERTIFICATE` | encrypted_verify_certificate | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlSchemasSslMethodSslMethod.md b/docs/models/shared/DestinationMssqlSchemasSslMethodSslMethod.md index 35e48db68..d7d188f7c 100644 --- a/docs/models/shared/DestinationMssqlSchemasSslMethodSslMethod.md +++ b/docs/models/shared/DestinationMssqlSchemasSslMethodSslMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------------------ | ------------------------------ | -| `ENCRYPTED_VERIFY_CERTIFICATE` | encrypted_verify_certificate | \ No newline at end of file +| Name | Value | +| ------------- | ------------- | +| `UNENCRYPTED` | unencrypted | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlSslMethod.md b/docs/models/shared/DestinationMssqlSslMethod.md index 9d6bfdedb..c7c6ee302 100644 --- a/docs/models/shared/DestinationMssqlSslMethod.md +++ b/docs/models/shared/DestinationMssqlSslMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------- | ------------- | -| `UNENCRYPTED` | unencrypted | \ No newline at end of file +| Name | Value | +| ------------------------------------ | ------------------------------------ | +| `ENCRYPTED_TRUST_SERVER_CERTIFICATE` | encrypted_trust_server_certificate | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlV2.md b/docs/models/shared/DestinationMssqlV2.md new file mode 100644 index 000000000..c3d631911 --- /dev/null +++ b/docs/models/shared/DestinationMssqlV2.md @@ -0,0 +1,16 @@ +# DestinationMssqlV2 + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `database` | *String* | :heavy_check_mark: | The name of the MSSQL database. | | +| `destinationType` | [MssqlV2](../../models/shared/MssqlV2.md) | :heavy_check_mark: | N/A | | +| `host` | *String* | :heavy_check_mark: | The host name of the MSSQL database. | | +| `jdbcUrlParams` | *Optional\<String>* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). | | +| `password` | *Optional\<String>* | :heavy_minus_sign: | The password associated with this username. | | +| `port` | *long* | :heavy_check_mark: | The port of the MSSQL database. | 1433 | +| `schema` | *Optional\<String>* | :heavy_minus_sign: | The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". | public | +| `sslMethod` | [DestinationMssqlV2SSLMethod](../../models/shared/DestinationMssqlV2SSLMethod.md) | :heavy_check_mark: | The encryption method which is used to communicate with the database. | | +| `user` | *String* | :heavy_check_mark: | The username which is used to access the database. | | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.md b/docs/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.md new file mode 100644 index 000000000..be64cabc0 --- /dev/null +++ b/docs/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.md @@ -0,0 +1,11 @@ +# DestinationMssqlV2EncryptedTrustServerCertificate + +Use the certificate provided by the server without verification. (For testing purposes only!) + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `name` | [Optional\<DestinationMssqlV2Name>](../../models/shared/DestinationMssqlV2Name.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.md b/docs/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.md new file mode 100644 index 000000000..03cf026cb --- /dev/null +++ b/docs/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.md @@ -0,0 +1,14 @@ +# DestinationMssqlV2EncryptedVerifyCertificate + +Verify and use the certificate provided by the server. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `hostNameInCertificate` | *Optional\<String>* | :heavy_minus_sign: | Specifies the host name of the server. The value of this property must match the subject property of the certificate. | +| `name` | [Optional\<DestinationMssqlV2SchemasName>](../../models/shared/DestinationMssqlV2SchemasName.md) | :heavy_minus_sign: | N/A | +| `trustStoreName` | *Optional\<String>* | :heavy_minus_sign: | Specifies the name of the trust store. | +| `trustStorePassword` | *Optional\<String>* | :heavy_minus_sign: | Specifies the password of the trust store. | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlV2Name.md b/docs/models/shared/DestinationMssqlV2Name.md new file mode 100644 index 000000000..2418d02ee --- /dev/null +++ b/docs/models/shared/DestinationMssqlV2Name.md @@ -0,0 +1,8 @@ +# DestinationMssqlV2Name + + +## Values + +| Name | Value | +| ------------------------------------ | ------------------------------------ | +| `ENCRYPTED_TRUST_SERVER_CERTIFICATE` | encrypted_trust_server_certificate | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlV2SSLMethod.md b/docs/models/shared/DestinationMssqlV2SSLMethod.md new file mode 100644 index 000000000..d792044f6 --- /dev/null +++ b/docs/models/shared/DestinationMssqlV2SSLMethod.md @@ -0,0 +1,4 @@ +# DestinationMssqlV2SSLMethod + +The encryption method which is used to communicate with the database. + diff --git a/docs/models/shared/DestinationMssqlV2SchemasName.md b/docs/models/shared/DestinationMssqlV2SchemasName.md new file mode 100644 index 000000000..07dafc774 --- /dev/null +++ b/docs/models/shared/DestinationMssqlV2SchemasName.md @@ -0,0 +1,8 @@ +# DestinationMssqlV2SchemasName + + +## Values + +| Name | Value | +| ------------------------------ | ------------------------------ | +| `ENCRYPTED_VERIFY_CERTIFICATE` | encrypted_verify_certificate | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlV2Unencrypted.md b/docs/models/shared/DestinationMssqlV2Unencrypted.md new file mode 100644 index 000000000..521c20092 --- /dev/null +++ b/docs/models/shared/DestinationMssqlV2Unencrypted.md @@ -0,0 +1,11 @@ +# DestinationMssqlV2Unencrypted + +The data transfer will not be encrypted. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `name` | [Optional\<Name>](../../models/shared/Name.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationOracle.md b/docs/models/shared/DestinationOracle.md index 8e3147c58..48ed4a539 100644 --- a/docs/models/shared/DestinationOracle.md +++ b/docs/models/shared/DestinationOracle.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `destinationType` | [Oracle](../../models/shared/Oracle.md) | :heavy_check_mark: | N/A | | -| `encryption` | [Optional\<Encryption>](../../models/shared/Encryption.md) | :heavy_minus_sign: | The encryption method which is used when communicating with the database. | | +| `encryption` | [Optional\<DestinationOracleEncryption>](../../models/shared/DestinationOracleEncryption.md) | :heavy_minus_sign: | The encryption method which is used when communicating with the database. | | | `host` | *String* | :heavy_check_mark: | The hostname of the database. | | | `jdbcUrlParams` | *Optional\<String>* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). | | | `password` | *Optional\<String>* | :heavy_minus_sign: | The password associated with the username. | | diff --git a/docs/models/shared/DestinationOracleEncryption.md b/docs/models/shared/DestinationOracleEncryption.md new file mode 100644 index 000000000..1bb2dac87 --- /dev/null +++ b/docs/models/shared/DestinationOracleEncryption.md @@ -0,0 +1,4 @@ +# DestinationOracleEncryption + +The encryption method which is used when communicating with the database. + diff --git a/docs/models/shared/DestinationPostgres.md b/docs/models/shared/DestinationPostgres.md index 7fff7e4b5..8175d6d7d 100644 --- a/docs/models/shared/DestinationPostgres.md +++ b/docs/models/shared/DestinationPostgres.md @@ -18,4 +18,5 @@ | `ssl` | *Optional\<Boolean>* | :heavy_minus_sign: | Encrypt data using SSL. When activating SSL, please select one of the connection modes. | | | `sslMode` | [Optional\<SSLModes>](../../models/shared/SSLModes.md) | :heavy_minus_sign: | SSL connection modes. <br/> <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database<br/> <b>allow</b> - Chose this mode to enable encryption only when required by the source database<br/> <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption<br/> <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail<br/> <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate<br/> <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server<br/> See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. | | | `tunnelMethod` | [Optional\<DestinationPostgresSSHTunnelMethod>](../../models/shared/DestinationPostgresSSHTunnelMethod.md) | :heavy_minus_sign: | Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. | | +| `unconstrainedNumber` | *Optional\<Boolean>* | :heavy_minus_sign: | Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased precision in numeric values. (this is disabled by default for backwards compatibility, but is recommended to enable) | | | `username` | *String* | :heavy_check_mark: | Username to use to access the database. | | \ No newline at end of file diff --git a/docs/models/shared/DestinationPostgresMode.md b/docs/models/shared/DestinationPostgresMode.md index 06ba06b1a..a404aea2c 100644 --- a/docs/models/shared/DestinationPostgresMode.md +++ b/docs/models/shared/DestinationPostgresMode.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------- | ------- | -| `ALLOW` | allow | \ No newline at end of file +| Name | Value | +| --------- | --------- | +| `DISABLE` | disable | \ No newline at end of file diff --git a/docs/models/shared/DestinationPostgresSchemasMode.md b/docs/models/shared/DestinationPostgresSchemasMode.md index 53244bed5..4418e917c 100644 --- a/docs/models/shared/DestinationPostgresSchemasMode.md +++ b/docs/models/shared/DestinationPostgresSchemasMode.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| -------- | -------- | -| `PREFER` | prefer | \ No newline at end of file +| Name | Value | +| ------- | ------- | +| `ALLOW` | allow | \ No newline at end of file diff --git a/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.md b/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.md deleted file mode 100644 index 7dbda3706..000000000 --- a/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.md +++ /dev/null @@ -1,8 +0,0 @@ -# DestinationPostgresSchemasSSLModeSSLModes1Mode - - -## Values - -| Name | Value | -| --------- | --------- | -| `DISABLE` | disable | \ No newline at end of file diff --git a/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.md b/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.md new file mode 100644 index 000000000..721340899 --- /dev/null +++ b/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.md @@ -0,0 +1,8 @@ +# DestinationPostgresSchemasSSLModeSSLModes5Mode + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `VERIFY_CA` | verify-ca | \ No newline at end of file diff --git a/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.md b/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.md index 909652250..60f1a059c 100644 --- a/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.md +++ b/docs/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ----------- | ----------- | -| `VERIFY_CA` | verify-ca | \ No newline at end of file +| Name | Value | +| --------- | --------- | +| `REQUIRE` | require | \ No newline at end of file diff --git a/docs/models/shared/DestinationPostgresSchemasSslModeMode.md b/docs/models/shared/DestinationPostgresSchemasSslModeMode.md index 8b1d66e64..c1914d104 100644 --- a/docs/models/shared/DestinationPostgresSchemasSslModeMode.md +++ b/docs/models/shared/DestinationPostgresSchemasSslModeMode.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| --------- | --------- | -| `REQUIRE` | require | \ No newline at end of file +| Name | Value | +| -------- | -------- | +| `PREFER` | prefer | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3.md b/docs/models/shared/DestinationS3.md index 7fc73d99d..801763a6c 100644 --- a/docs/models/shared/DestinationS3.md +++ b/docs/models/shared/DestinationS3.md @@ -3,16 +3,16 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accessKeyId` | *Optional\<String>* | :heavy_minus_sign: | The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. | A012345678910EXAMPLE | -| `destinationType` | [S3](../../models/shared/S3.md) | :heavy_check_mark: | N/A | | -| `fileNamePattern` | *Optional\<String>* | :heavy_minus_sign: | The pattern allows you to set the file-name format for the S3 staging file(s) | {date} | -| `format` | [DestinationS3OutputFormat](../../models/shared/DestinationS3OutputFormat.md) | :heavy_check_mark: | Format of the data output. See <a href="https://docs.airbyte.com/integrations/destinations/s3/#supported-output-schema">here</a> for more details | | -| `roleArn` | *Optional\<String>* | :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 <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. | airbyte_sync | -| `s3BucketPath` | *String* | :heavy_check_mark: | Directory under the S3 bucket where data will be written. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=to%20format%20the-,bucket%20path,-%3A">here</a> | data_sync/test | -| `s3BucketRegion` | [Optional\<DestinationS3S3BucketRegion>](../../models/shared/DestinationS3S3BucketRegion.md) | :heavy_minus_sign: | The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. | | -| `s3Endpoint` | *Optional\<String>* | :heavy_minus_sign: | Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> | http://localhost:9000 | -| `s3PathFormat` | *Optional\<String>* | :heavy_minus_sign: | Format string on how data will be organized inside the S3 bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> | ${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_ | -| `secretAccessKey` | *Optional\<String>* | :heavy_minus_sign: | The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `accessKeyId` | *Optional\<String>* | :heavy_minus_sign: | The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. | A012345678910EXAMPLE | +| `destinationType` | [S3](../../models/shared/S3.md) | :heavy_check_mark: | N/A | | +| `fileNamePattern` | *Optional\<String>* | :heavy_minus_sign: | Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> | {date} | +| `format` | [DestinationS3OutputFormat](../../models/shared/DestinationS3OutputFormat.md) | :heavy_check_mark: | Format of the data output. See <a href="https://docs.airbyte.com/integrations/destinations/s3/#supported-output-schema">here</a> for more details | | +| `roleArn` | *Optional\<String>* | :heavy_minus_sign: | The ARN of the AWS role to assume. Only usable in Airbyte Cloud. | arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId | +| `s3BucketName` | *String* | :heavy_check_mark: | The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. | airbyte_sync | +| `s3BucketPath` | *String* | :heavy_check_mark: | Directory under the S3 bucket where data will be written. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=to%20format%20the-,bucket%20path,-%3A">here</a> | data_sync/test | +| `s3BucketRegion` | [Optional\<DestinationS3S3BucketRegion>](../../models/shared/DestinationS3S3BucketRegion.md) | :heavy_minus_sign: | The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. | us-east-1 | +| `s3Endpoint` | *Optional\<String>* | :heavy_minus_sign: | Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> | http://localhost:9000 | +| `s3PathFormat` | *Optional\<String>* | :heavy_minus_sign: | Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> | ${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_ | +| `secretAccessKey` | *Optional\<String>* | :heavy_minus_sign: | The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3AvroApacheAvro.md b/docs/models/shared/DestinationS3AvroApacheAvro.md index 7a4006a7d..6f30f23f4 100644 --- a/docs/models/shared/DestinationS3AvroApacheAvro.md +++ b/docs/models/shared/DestinationS3AvroApacheAvro.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `compressionCodec` | [DestinationS3CompressionCodec](../../models/shared/DestinationS3CompressionCodec.md) | :heavy_check_mark: | The compression algorithm used to compress data. Default to no compression. | | `formatType` | [Optional\<DestinationS3SchemasFormatFormatType>](../../models/shared/DestinationS3SchemasFormatFormatType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3Bzip2.md b/docs/models/shared/DestinationS3Bzip2.md index 4ae9ba0f9..3a819e32d 100644 --- a/docs/models/shared/DestinationS3Bzip2.md +++ b/docs/models/shared/DestinationS3Bzip2.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `codec` | [Optional\<DestinationS3SchemasFormatCodec>](../../models/shared/DestinationS3SchemasFormatCodec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3CSVCommaSeparatedValues.md b/docs/models/shared/DestinationS3CSVCommaSeparatedValues.md index eef1ec33c..6579e0b9e 100644 --- a/docs/models/shared/DestinationS3CSVCommaSeparatedValues.md +++ b/docs/models/shared/DestinationS3CSVCommaSeparatedValues.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `compression` | [Optional\<DestinationS3Compression>](../../models/shared/DestinationS3Compression.md) | :heavy_minus_sign: | Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). | -| `flattening` | [Optional\<DestinationS3Flattening>](../../models/shared/DestinationS3Flattening.md) | :heavy_minus_sign: | Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. | -| `formatType` | [Optional\<DestinationS3FormatType>](../../models/shared/DestinationS3FormatType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `compression` | [Optional\<DestinationS3Compression>](../../models/shared/DestinationS3Compression.md) | :heavy_minus_sign: | Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). | +| `flattening` | [Optional\<Flattening>](../../models/shared/Flattening.md) | :heavy_minus_sign: | N/A | +| `formatType` | [Optional\<DestinationS3FormatType>](../../models/shared/DestinationS3FormatType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3Compression.md b/docs/models/shared/DestinationS3Compression.md index 9a369652d..581a5f72b 100644 --- a/docs/models/shared/DestinationS3Compression.md +++ b/docs/models/shared/DestinationS3Compression.md @@ -1,4 +1,4 @@ # DestinationS3Compression -Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). +Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). diff --git a/docs/models/shared/DestinationS3DataLake.md b/docs/models/shared/DestinationS3DataLake.md new file mode 100644 index 000000000..777d61aa6 --- /dev/null +++ b/docs/models/shared/DestinationS3DataLake.md @@ -0,0 +1,18 @@ +# DestinationS3DataLake + +Defines the configurations required to connect to an Iceberg catalog, including warehouse location, main branch name, and catalog type specifics. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `accessKeyId` | *Optional\<String>* | :heavy_minus_sign: | The AWS Access Key ID with permissions for S3 and Glue operations. | | +| `catalogType` | [CatalogType](../../models/shared/CatalogType.md) | :heavy_check_mark: | Specifies the type of Iceberg catalog (e.g., NESSIE, GLUE, REST) and its associated configuration. | | +| `destinationType` | [S3DataLake](../../models/shared/S3DataLake.md) | :heavy_check_mark: | N/A | | +| `mainBranchName` | *Optional\<String>* | :heavy_minus_sign: | The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. | | +| `s3BucketName` | *String* | :heavy_check_mark: | The name of the S3 bucket that will host the Iceberg data. | | +| `s3BucketRegion` | [DestinationS3DataLakeS3BucketRegion](../../models/shared/DestinationS3DataLakeS3BucketRegion.md) | :heavy_check_mark: | The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. | us-east-1 | +| `s3Endpoint` | *Optional\<String>* | :heavy_minus_sign: | Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> | | +| `secretAccessKey` | *Optional\<String>* | :heavy_minus_sign: | The AWS Secret Access Key paired with the Access Key ID for AWS authentication. | | +| `warehouseLocation` | *String* | :heavy_check_mark: | The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such as "s3://" for Amazon S3). | s3://your-bucket/path/to/store/files/in | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3DataLakeCatalogType.md b/docs/models/shared/DestinationS3DataLakeCatalogType.md new file mode 100644 index 000000000..09da131a1 --- /dev/null +++ b/docs/models/shared/DestinationS3DataLakeCatalogType.md @@ -0,0 +1,8 @@ +# DestinationS3DataLakeCatalogType + + +## Values + +| Name | Value | +| ------ | ------ | +| `GLUE` | GLUE | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3DataLakeGlueCatalog.md b/docs/models/shared/DestinationS3DataLakeGlueCatalog.md new file mode 100644 index 000000000..f02cd4d94 --- /dev/null +++ b/docs/models/shared/DestinationS3DataLakeGlueCatalog.md @@ -0,0 +1,14 @@ +# DestinationS3DataLakeGlueCatalog + +Configuration details for connecting to an AWS Glue-based Iceberg catalog. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `catalogType` | [Optional\<DestinationS3DataLakeCatalogType>](../../models/shared/DestinationS3DataLakeCatalogType.md) | :heavy_minus_sign: | N/A | +| `databaseName` | *String* | :heavy_check_mark: | The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the connection is set to `Destination-defined` or `Source-defined` | +| `glueId` | *String* | :heavy_check_mark: | The AWS Account ID associated with the Glue service used by the Iceberg catalog. | +| `roleArn` | *Optional\<String>* | :heavy_minus_sign: | The ARN of the AWS role to assume. Only usable in Airbyte Cloud. | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3DataLakeRestCatalog.md b/docs/models/shared/DestinationS3DataLakeRestCatalog.md new file mode 100644 index 000000000..e3059edda --- /dev/null +++ b/docs/models/shared/DestinationS3DataLakeRestCatalog.md @@ -0,0 +1,13 @@ +# DestinationS3DataLakeRestCatalog + +Configuration details for connecting to a REST catalog. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `catalogType` | [Optional\<DestinationS3DataLakeSchemasCatalogType>](../../models/shared/DestinationS3DataLakeSchemasCatalogType.md) | :heavy_minus_sign: | N/A | +| `namespace` | *String* | :heavy_check_mark: | The namespace to be used in the Table identifier. <br/> This will ONLY be used if the `Destination Namespace` setting for the connection is set to<br/> `Destination-defined` or `Source-defined` | +| `serverUri` | *String* | :heavy_check_mark: | The base URL of the Rest server used to connect to the Rest catalog. | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3DataLakeS3BucketRegion.md b/docs/models/shared/DestinationS3DataLakeS3BucketRegion.md new file mode 100644 index 000000000..f6d746e24 --- /dev/null +++ b/docs/models/shared/DestinationS3DataLakeS3BucketRegion.md @@ -0,0 +1,43 @@ +# DestinationS3DataLakeS3BucketRegion + +The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `UNKNOWN` | | +| `AF_SOUTH1` | af-south-1 | +| `AP_EAST1` | ap-east-1 | +| `AP_NORTHEAST1` | ap-northeast-1 | +| `AP_NORTHEAST2` | ap-northeast-2 | +| `AP_NORTHEAST3` | ap-northeast-3 | +| `AP_SOUTH1` | ap-south-1 | +| `AP_SOUTH2` | ap-south-2 | +| `AP_SOUTHEAST1` | ap-southeast-1 | +| `AP_SOUTHEAST2` | ap-southeast-2 | +| `AP_SOUTHEAST3` | ap-southeast-3 | +| `AP_SOUTHEAST4` | ap-southeast-4 | +| `CA_CENTRAL1` | ca-central-1 | +| `CA_WEST1` | ca-west-1 | +| `CN_NORTH1` | cn-north-1 | +| `CN_NORTHWEST1` | cn-northwest-1 | +| `EU_CENTRAL1` | eu-central-1 | +| `EU_CENTRAL2` | eu-central-2 | +| `EU_NORTH1` | eu-north-1 | +| `EU_SOUTH1` | eu-south-1 | +| `EU_SOUTH2` | eu-south-2 | +| `EU_WEST1` | eu-west-1 | +| `EU_WEST2` | eu-west-2 | +| `EU_WEST3` | eu-west-3 | +| `IL_CENTRAL1` | il-central-1 | +| `ME_CENTRAL1` | me-central-1 | +| `ME_SOUTH1` | me-south-1 | +| `SA_EAST1` | sa-east-1 | +| `US_EAST1` | us-east-1 | +| `US_EAST2` | us-east-2 | +| `US_GOV_EAST1` | us-gov-east-1 | +| `US_GOV_WEST1` | us-gov-west-1 | +| `US_WEST1` | us-west-1 | +| `US_WEST2` | us-west-2 | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3DataLakeSchemasCatalogType.md b/docs/models/shared/DestinationS3DataLakeSchemasCatalogType.md new file mode 100644 index 000000000..ac216e3d5 --- /dev/null +++ b/docs/models/shared/DestinationS3DataLakeSchemasCatalogType.md @@ -0,0 +1,8 @@ +# DestinationS3DataLakeSchemasCatalogType + + +## Values + +| Name | Value | +| ------ | ------ | +| `REST` | REST | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.md b/docs/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.md new file mode 100644 index 000000000..823504c55 --- /dev/null +++ b/docs/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.md @@ -0,0 +1,8 @@ +# DestinationS3DataLakeSchemasCatalogTypeCatalogType + + +## Values + +| Name | Value | +| -------- | -------- | +| `NESSIE` | NESSIE | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3Deflate.md b/docs/models/shared/DestinationS3Deflate.md index acf877849..b9ba436cd 100644 --- a/docs/models/shared/DestinationS3Deflate.md +++ b/docs/models/shared/DestinationS3Deflate.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `codec` | [Optional\<DestinationS3SchemasCodec>](../../models/shared/DestinationS3SchemasCodec.md) | :heavy_minus_sign: | N/A | -| `compressionLevel` | *Optional\<Long>* | :heavy_minus_sign: | 0: no compression & fastest, 9: best compression & slowest. | \ No newline at end of file +| `compressionLevel` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3Flattening.md b/docs/models/shared/DestinationS3Flattening.md index e3838f1bc..dcc514c0d 100644 --- a/docs/models/shared/DestinationS3Flattening.md +++ b/docs/models/shared/DestinationS3Flattening.md @@ -1,7 +1,5 @@ # DestinationS3Flattening -Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. - ## Values diff --git a/docs/models/shared/DestinationS3GZIP.md b/docs/models/shared/DestinationS3GZIP.md index 611224df8..ebc6e1279 100644 --- a/docs/models/shared/DestinationS3GZIP.md +++ b/docs/models/shared/DestinationS3GZIP.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `compressionType` | [Optional\<DestinationS3SchemasCompressionType>](../../models/shared/DestinationS3SchemasCompressionType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3SchemasFlattening.md b/docs/models/shared/DestinationS3GlueFlattening.md similarity index 91% rename from docs/models/shared/DestinationS3SchemasFlattening.md rename to docs/models/shared/DestinationS3GlueFlattening.md index 7b930b9ca..04e129bc0 100644 --- a/docs/models/shared/DestinationS3SchemasFlattening.md +++ b/docs/models/shared/DestinationS3GlueFlattening.md @@ -1,4 +1,4 @@ -# DestinationS3SchemasFlattening +# DestinationS3GlueFlattening Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. diff --git a/docs/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.md b/docs/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.md index cf42d193e..550cf3baa 100644 --- a/docs/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.md +++ b/docs/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | | `compression` | [Optional\<DestinationS3GlueCompression>](../../models/shared/DestinationS3GlueCompression.md) | :heavy_minus_sign: | Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). | -| `flattening` | [Optional\<Flattening>](../../models/shared/Flattening.md) | :heavy_minus_sign: | Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. | +| `flattening` | [Optional\<DestinationS3GlueFlattening>](../../models/shared/DestinationS3GlueFlattening.md) | :heavy_minus_sign: | Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. | | `formatType` | [Optional\<DestinationS3GlueFormatType>](../../models/shared/DestinationS3GlueFormatType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.md b/docs/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.md index 649bb80cb..e20fe0891 100644 --- a/docs/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.md +++ b/docs/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `compression` | [Optional\<DestinationS3SchemasCompression>](../../models/shared/DestinationS3SchemasCompression.md) | :heavy_minus_sign: | Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). | -| `flattening` | [Optional\<DestinationS3SchemasFlattening>](../../models/shared/DestinationS3SchemasFlattening.md) | :heavy_minus_sign: | Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. | +| `flattening` | [Optional\<DestinationS3Flattening>](../../models/shared/DestinationS3Flattening.md) | :heavy_minus_sign: | N/A | | `formatType` | [Optional\<DestinationS3SchemasFormatType>](../../models/shared/DestinationS3SchemasFormatType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3NoCompression.md b/docs/models/shared/DestinationS3NoCompression.md index f794e85cd..f61579fc8 100644 --- a/docs/models/shared/DestinationS3NoCompression.md +++ b/docs/models/shared/DestinationS3NoCompression.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `compressionType` | [Optional\<DestinationS3CompressionType>](../../models/shared/DestinationS3CompressionType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3ParquetColumnarStorage.md b/docs/models/shared/DestinationS3ParquetColumnarStorage.md index 723aed002..e4aee13fa 100644 --- a/docs/models/shared/DestinationS3ParquetColumnarStorage.md +++ b/docs/models/shared/DestinationS3ParquetColumnarStorage.md @@ -3,12 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `blockSizeMb` | *Optional\<Long>* | :heavy_minus_sign: | This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. | 128 | -| `compressionCodec` | [Optional\<DestinationS3SchemasCompressionCodec>](../../models/shared/DestinationS3SchemasCompressionCodec.md) | :heavy_minus_sign: | The compression algorithm used to compress data pages. | | -| `dictionaryEncoding` | *Optional\<Boolean>* | :heavy_minus_sign: | Default: true. | | -| `dictionaryPageSizeKb` | *Optional\<Long>* | :heavy_minus_sign: | There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. | 1024 | -| `formatType` | [Optional\<DestinationS3SchemasFormatOutputFormatFormatType>](../../models/shared/DestinationS3SchemasFormatOutputFormatFormatType.md) | :heavy_minus_sign: | N/A | | -| `maxPaddingSizeMb` | *Optional\<Long>* | :heavy_minus_sign: | Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB. | 8 | -| `pageSizeKb` | *Optional\<Long>* | :heavy_minus_sign: | The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. | 1024 | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `blockSizeMb` | *Optional\<Long>* | :heavy_minus_sign: | This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. | +| `compressionCodec` | [Optional\<DestinationS3SchemasCompressionCodec>](../../models/shared/DestinationS3SchemasCompressionCodec.md) | :heavy_minus_sign: | The compression algorithm used to compress data pages. | +| `dictionaryEncoding` | *Optional\<Boolean>* | :heavy_minus_sign: | Default: true. | +| `dictionaryPageSizeKb` | *Optional\<Long>* | :heavy_minus_sign: | There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. | +| `formatType` | [Optional\<DestinationS3SchemasFormatOutputFormatFormatType>](../../models/shared/DestinationS3SchemasFormatOutputFormatFormatType.md) | :heavy_minus_sign: | N/A | +| `maxPaddingSizeMb` | *Optional\<Long>* | :heavy_minus_sign: | Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB. | +| `pageSizeKb` | *Optional\<Long>* | :heavy_minus_sign: | The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3SchemasFormatNoCompression.md b/docs/models/shared/DestinationS3SchemasFormatNoCompression.md index 3c6709443..66b7ba1ab 100644 --- a/docs/models/shared/DestinationS3SchemasFormatNoCompression.md +++ b/docs/models/shared/DestinationS3SchemasFormatNoCompression.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `codec` | [Optional\<DestinationS3Codec>](../../models/shared/DestinationS3Codec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3SchemasGZIP.md b/docs/models/shared/DestinationS3SchemasGZIP.md index 78092c650..ac0e8e5fc 100644 --- a/docs/models/shared/DestinationS3SchemasGZIP.md +++ b/docs/models/shared/DestinationS3SchemasGZIP.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `compressionType` | [Optional\<DestinationS3SchemasFormatOutputFormatCompressionType>](../../models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3SchemasNoCompression.md b/docs/models/shared/DestinationS3SchemasNoCompression.md index b16168385..051a72985 100644 --- a/docs/models/shared/DestinationS3SchemasNoCompression.md +++ b/docs/models/shared/DestinationS3SchemasNoCompression.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `compressionType` | [Optional\<DestinationS3SchemasFormatCompressionType>](../../models/shared/DestinationS3SchemasFormatCompressionType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3Snappy.md b/docs/models/shared/DestinationS3Snappy.md index b9da8f9fc..d0a2405b5 100644 --- a/docs/models/shared/DestinationS3Snappy.md +++ b/docs/models/shared/DestinationS3Snappy.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | `codec` | [Optional\<DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec>](../../models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3Xz.md b/docs/models/shared/DestinationS3Xz.md index aaf2ae449..06fbaaccc 100644 --- a/docs/models/shared/DestinationS3Xz.md +++ b/docs/models/shared/DestinationS3Xz.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `codec` | [Optional\<DestinationS3SchemasFormatOutputFormatCodec>](../../models/shared/DestinationS3SchemasFormatOutputFormatCodec.md) | :heavy_minus_sign: | N/A | -| `compressionLevel` | *Optional\<Long>* | :heavy_minus_sign: | See <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `codec` | [Optional\<DestinationS3SchemasFormatOutputFormatCodec>](../../models/shared/DestinationS3SchemasFormatOutputFormatCodec.md) | :heavy_minus_sign: | N/A | +| `compressionLevel` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationS3Zstandard.md b/docs/models/shared/DestinationS3Zstandard.md index 11d753f46..d0734b7ba 100644 --- a/docs/models/shared/DestinationS3Zstandard.md +++ b/docs/models/shared/DestinationS3Zstandard.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `codec` | [Optional\<DestinationS3SchemasFormatOutputFormat3Codec>](../../models/shared/DestinationS3SchemasFormatOutputFormat3Codec.md) | :heavy_minus_sign: | N/A | -| `compressionLevel` | *Optional\<Long>* | :heavy_minus_sign: | Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory. | -| `includeChecksum` | *Optional\<Boolean>* | :heavy_minus_sign: | If true, include a checksum with each data block. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `codec` | [Optional\<DestinationS3SchemasFormatOutputFormat3Codec>](../../models/shared/DestinationS3SchemasFormatOutputFormat3Codec.md) | :heavy_minus_sign: | N/A | +| `compressionLevel` | *long* | :heavy_check_mark: | N/A | +| `includeChecksum` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationTypesense.md b/docs/models/shared/DestinationTypesense.md index 4747efd9c..f00b660b8 100644 --- a/docs/models/shared/DestinationTypesense.md +++ b/docs/models/shared/DestinationTypesense.md @@ -10,5 +10,5 @@ | `destinationType` | [Typesense](../../models/shared/Typesense.md) | :heavy_check_mark: | N/A | | `host` | *String* | :heavy_check_mark: | Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. | | `path` | *Optional\<String>* | :heavy_minus_sign: | Path of the Typesense instance. Default is none | -| `port` | *Optional\<String>* | :heavy_minus_sign: | Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443 | +| `port` | *Optional\<String>* | :heavy_minus_sign: | Port of the Typesense instance. Ex: 8108, 80, 443. Default is 8108 | | `protocol` | *Optional\<String>* | :heavy_minus_sign: | Protocol of the Typesense instance. Ex: http or https. Default is https | \ No newline at end of file diff --git a/docs/models/shared/Disable.md b/docs/models/shared/Disable.md index 10d4dd713..00b571d1f 100644 --- a/docs/models/shared/Disable.md +++ b/docs/models/shared/Disable.md @@ -5,6 +5,6 @@ Disable SSL. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `mode` | [Optional\<DestinationPostgresSchemasSSLModeSSLModes1Mode>](../../models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `mode` | [Optional\<DestinationPostgresMode>](../../models/shared/DestinationPostgresMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Disabled.md b/docs/models/shared/Disabled.md index 2aac1b880..2487e9dc2 100644 --- a/docs/models/shared/Disabled.md +++ b/docs/models/shared/Disabled.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `deletionMode` | [SourceFaunaDeletionMode](../../models/shared/SourceFaunaDeletionMode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `deletionMode` | [SourceFaunaSchemasDeletionMode](../../models/shared/SourceFaunaSchemasDeletionMode.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/EmailNotificationConfig.md b/docs/models/shared/EmailNotificationConfig.md new file mode 100644 index 000000000..2d7039a6b --- /dev/null +++ b/docs/models/shared/EmailNotificationConfig.md @@ -0,0 +1,10 @@ +# EmailNotificationConfig + +Configures an email notification. + + +## Fields + +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `enabled` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Enabled.md b/docs/models/shared/Enabled.md index 2dcc3e9f3..fdb79b733 100644 --- a/docs/models/shared/Enabled.md +++ b/docs/models/shared/Enabled.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `column` | *Optional\<String>* | :heavy_minus_sign: | Name of the "deleted at" column. | -| `deletionMode` | [SourceFaunaSchemasDeletionMode](../../models/shared/SourceFaunaSchemasDeletionMode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `column` | *Optional\<String>* | :heavy_minus_sign: | Name of the "deleted at" column. | +| `deletionMode` | [SourceFaunaDeletionMode](../../models/shared/SourceFaunaDeletionMode.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/EncryptedTrustServerCertificate.md b/docs/models/shared/EncryptedTrustServerCertificate.md index 493d489fa..05e90b36e 100644 --- a/docs/models/shared/EncryptedTrustServerCertificate.md +++ b/docs/models/shared/EncryptedTrustServerCertificate.md @@ -5,6 +5,6 @@ Use the certificate provided by the server without verification. (For testing pu ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `sslMethod` | [Optional\<DestinationMssqlSchemasSslMethod>](../../models/shared/DestinationMssqlSchemasSslMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `sslMethod` | [Optional\<DestinationMssqlSslMethod>](../../models/shared/DestinationMssqlSslMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/EncryptedVerifyCertificate.md b/docs/models/shared/EncryptedVerifyCertificate.md index a5d176f70..1e08b5c51 100644 --- a/docs/models/shared/EncryptedVerifyCertificate.md +++ b/docs/models/shared/EncryptedVerifyCertificate.md @@ -5,7 +5,7 @@ Verify and use the certificate provided by the server. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `hostNameInCertificate` | *Optional\<String>* | :heavy_minus_sign: | Specifies the host name of the server. The value of this property must match the subject property of the certificate. | -| `sslMethod` | [Optional\<DestinationMssqlSchemasSslMethodSslMethod>](../../models/shared/DestinationMssqlSchemasSslMethodSslMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `hostNameInCertificate` | *Optional\<String>* | :heavy_minus_sign: | Specifies the host name of the server. The value of this property must match the subject property of the certificate. | +| `sslMethod` | [Optional\<DestinationMssqlSchemasSslMethod>](../../models/shared/DestinationMssqlSchemasSslMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Encryption.md b/docs/models/shared/Encryption.md index fcaa9431a..ec5b8cf16 100644 --- a/docs/models/shared/Encryption.md +++ b/docs/models/shared/Encryption.md @@ -1,4 +1,2 @@ # Encryption -The encryption method which is used when communicating with the database. - diff --git a/docs/models/shared/EncryptionAES.md b/docs/models/shared/EncryptionAES.md new file mode 100644 index 000000000..770d7f062 --- /dev/null +++ b/docs/models/shared/EncryptionAES.md @@ -0,0 +1,13 @@ +# EncryptionAES + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `algorithm` | [EncryptionMapperAlgorithm](../../models/shared/EncryptionMapperAlgorithm.md) | :heavy_check_mark: | N/A | +| `fieldNameSuffix` | *String* | :heavy_check_mark: | N/A | +| `key` | *String* | :heavy_check_mark: | N/A | +| `mode` | [Mode](../../models/shared/Mode.md) | :heavy_check_mark: | N/A | +| `padding` | [Padding](../../models/shared/Padding.md) | :heavy_check_mark: | N/A | +| `targetField` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/EncryptionMapperAlgorithm.md b/docs/models/shared/EncryptionMapperAlgorithm.md new file mode 100644 index 000000000..ce19f31c6 --- /dev/null +++ b/docs/models/shared/EncryptionMapperAlgorithm.md @@ -0,0 +1,9 @@ +# EncryptionMapperAlgorithm + + +## Values + +| Name | Value | +| ----- | ----- | +| `RSA` | RSA | +| `AES` | AES | \ No newline at end of file diff --git a/docs/models/shared/EncryptionRSA.md b/docs/models/shared/EncryptionRSA.md new file mode 100644 index 000000000..18a3919a9 --- /dev/null +++ b/docs/models/shared/EncryptionRSA.md @@ -0,0 +1,11 @@ +# EncryptionRSA + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `algorithm` | [EncryptionMapperAlgorithm](../../models/shared/EncryptionMapperAlgorithm.md) | :heavy_check_mark: | N/A | +| `fieldNameSuffix` | *String* | :heavy_check_mark: | N/A | +| `publicKey` | *String* | :heavy_check_mark: | N/A | +| `targetField` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Enterprise.md b/docs/models/shared/Enterprise.md index e0ffceab5..d2b46ff29 100644 --- a/docs/models/shared/Enterprise.md +++ b/docs/models/shared/Enterprise.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `apiEndpoint` | [Optional\<SourceJotformSchemasApiEndpoint>](../../models/shared/SourceJotformSchemasApiEndpoint.md) | :heavy_minus_sign: | N/A | +| `apiEndpoint` | [Optional\<SourceJotformApiEndpoint>](../../models/shared/SourceJotformApiEndpoint.md) | :heavy_minus_sign: | N/A | | `enterpriseUrl` | *String* | :heavy_check_mark: | Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com | \ No newline at end of file diff --git a/docs/models/shared/Equal.md b/docs/models/shared/Equal.md new file mode 100644 index 000000000..603aba5a0 --- /dev/null +++ b/docs/models/shared/Equal.md @@ -0,0 +1,10 @@ +# Equal + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `comparisonValue` | *String* | :heavy_check_mark: | The value to compare the field against. | +| `fieldName` | *String* | :heavy_check_mark: | The name of the field to apply the operation on. | +| `type` | [RowFilteringOperationType](../../models/shared/RowFilteringOperationType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceIntercomIntercom.md b/docs/models/shared/Everhour.md similarity index 57% rename from docs/models/shared/SourceIntercomIntercom.md rename to docs/models/shared/Everhour.md index 5b16ffdd9..491e10c57 100644 --- a/docs/models/shared/SourceIntercomIntercom.md +++ b/docs/models/shared/Everhour.md @@ -1,8 +1,8 @@ -# SourceIntercomIntercom +# Everhour ## Values | Name | Value | | ---------- | ---------- | -| `INTERCOM` | intercom | \ No newline at end of file +| `EVERHOUR` | everhour | \ No newline at end of file diff --git a/docs/models/shared/Fake.md b/docs/models/shared/Fake.md index a1d9894d1..4b4f8ee64 100644 --- a/docs/models/shared/Fake.md +++ b/docs/models/shared/Fake.md @@ -5,6 +5,6 @@ Use a fake embedding made out of random vectors with 1536 embedding dimensions. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `mode` | [Optional\<DestinationAstraSchemasMode>](../../models/shared/DestinationAstraSchemasMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `mode` | [Optional\<DestinationAstraSchemasEmbeddingMode>](../../models/shared/DestinationAstraSchemasEmbeddingMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Fastbill.md b/docs/models/shared/Fastbill.md new file mode 100644 index 000000000..a26d2d4a9 --- /dev/null +++ b/docs/models/shared/Fastbill.md @@ -0,0 +1,8 @@ +# Fastbill + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `FASTBILL` | fastbill | \ No newline at end of file diff --git a/docs/models/shared/FieldRenaming.md b/docs/models/shared/FieldRenaming.md new file mode 100644 index 000000000..c70a02407 --- /dev/null +++ b/docs/models/shared/FieldRenaming.md @@ -0,0 +1,9 @@ +# FieldRenaming + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `newFieldName` | *String* | :heavy_check_mark: | The new name for the field after renaming. | +| `originalFieldName` | *String* | :heavy_check_mark: | The current name of the field to rename. | \ No newline at end of file diff --git a/docs/models/shared/Flattening.md b/docs/models/shared/Flattening.md index d0897beeb..e8196cb20 100644 --- a/docs/models/shared/Flattening.md +++ b/docs/models/shared/Flattening.md @@ -1,7 +1,5 @@ # Flattening -Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. - ## Values diff --git a/docs/models/shared/Fullstory.md b/docs/models/shared/Fullstory.md new file mode 100644 index 000000000..d7d25d36f --- /dev/null +++ b/docs/models/shared/Fullstory.md @@ -0,0 +1,8 @@ +# Fullstory + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `FULLSTORY` | fullstory | \ No newline at end of file diff --git a/docs/models/shared/SourceQuickbooksAuthType.md b/docs/models/shared/Greythr.md similarity index 55% rename from docs/models/shared/SourceQuickbooksAuthType.md rename to docs/models/shared/Greythr.md index 16522a48d..5d035c107 100644 --- a/docs/models/shared/SourceQuickbooksAuthType.md +++ b/docs/models/shared/Greythr.md @@ -1,8 +1,8 @@ -# SourceQuickbooksAuthType +# Greythr ## Values | Name | Value | | --------- | --------- | -| `OAUTH20` | oauth2.0 | \ No newline at end of file +| `GREYTHR` | greythr | \ No newline at end of file diff --git a/docs/models/shared/Hashing.md b/docs/models/shared/Hashing.md new file mode 100644 index 000000000..76d7226ab --- /dev/null +++ b/docs/models/shared/Hashing.md @@ -0,0 +1,10 @@ +# Hashing + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `fieldNameSuffix` | *String* | :heavy_check_mark: | The suffix to append to the field name after hashing. | +| `method` | [HashingMethod](../../models/shared/HashingMethod.md) | :heavy_check_mark: | The hashing algorithm to use. | +| `targetField` | *String* | :heavy_check_mark: | The name of the field to be hashed. | \ No newline at end of file diff --git a/docs/models/shared/HashingMethod.md b/docs/models/shared/HashingMethod.md new file mode 100644 index 000000000..ddbbf4d87 --- /dev/null +++ b/docs/models/shared/HashingMethod.md @@ -0,0 +1,16 @@ +# HashingMethod + +The hashing algorithm to use. + + +## Values + +| Name | Value | +| -------- | -------- | +| `MD2` | MD2 | +| `MD5` | MD5 | +| `SHA1` | SHA-1 | +| `SHA224` | SHA-224 | +| `SHA256` | SHA-256 | +| `SHA384` | SHA-384 | +| `SHA512` | SHA-512 | \ No newline at end of file diff --git a/docs/models/shared/Hellobaton.md b/docs/models/shared/Hellobaton.md new file mode 100644 index 000000000..b5df54c20 --- /dev/null +++ b/docs/models/shared/Hellobaton.md @@ -0,0 +1,8 @@ +# Hellobaton + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `HELLOBATON` | hellobaton | \ No newline at end of file diff --git a/docs/models/shared/HelpScout.md b/docs/models/shared/HelpScout.md new file mode 100644 index 000000000..54459c5b9 --- /dev/null +++ b/docs/models/shared/HelpScout.md @@ -0,0 +1,8 @@ +# HelpScout + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `HELP_SCOUT` | help-scout | \ No newline at end of file diff --git a/docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md b/docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md index 86c6e2db9..3efa7f96c 100644 --- a/docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md +++ b/docs/models/shared/HiveCatalogUseApacheHiveMetaStore.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `catalogType` | [Optional\<CatalogType>](../../models/shared/CatalogType.md) | :heavy_minus_sign: | N/A | | -| `database` | *Optional\<String>* | :heavy_minus_sign: | The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". | default | -| `hiveThriftUri` | *String* | :heavy_check_mark: | Hive MetaStore thrift server uri of iceberg catalog. | host:port | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `catalogType` | [Optional\<DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType>](../../models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.md) | :heavy_minus_sign: | N/A | | +| `database` | *Optional\<String>* | :heavy_minus_sign: | The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". | default | +| `hiveThriftUri` | *String* | :heavy_check_mark: | Hive MetaStore thrift server uri of iceberg catalog. | host:port | \ No newline at end of file diff --git a/docs/models/shared/Hoorayhr.md b/docs/models/shared/Hoorayhr.md new file mode 100644 index 000000000..1447b9204 --- /dev/null +++ b/docs/models/shared/Hoorayhr.md @@ -0,0 +1,8 @@ +# Hoorayhr + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `HOORAYHR` | hoorayhr | \ No newline at end of file diff --git a/docs/models/shared/HuggingFaceDatasets.md b/docs/models/shared/HuggingFaceDatasets.md new file mode 100644 index 000000000..d3a4abba4 --- /dev/null +++ b/docs/models/shared/HuggingFaceDatasets.md @@ -0,0 +1,8 @@ +# HuggingFaceDatasets + + +## Values + +| Name | Value | +| ----------------------- | ----------------------- | +| `HUGGING_FACE_DATASETS` | hugging-face-datasets | \ No newline at end of file diff --git a/docs/models/shared/Orbit.md b/docs/models/shared/Huntr.md similarity index 66% rename from docs/models/shared/Orbit.md rename to docs/models/shared/Huntr.md index ae74911e7..85bb5ad65 100644 --- a/docs/models/shared/Orbit.md +++ b/docs/models/shared/Huntr.md @@ -1,8 +1,8 @@ -# Orbit +# Huntr ## Values | Name | Value | | ------- | ------- | -| `ORBIT` | orbit | \ No newline at end of file +| `HUNTR` | huntr | \ No newline at end of file diff --git a/docs/models/shared/Intercom.md b/docs/models/shared/Intercom.md index ec14fca2a..2e1e6d6eb 100644 --- a/docs/models/shared/Intercom.md +++ b/docs/models/shared/Intercom.md @@ -1,9 +1,8 @@ # Intercom -## Fields +## Values -| Field | Type | Required | Description | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| `clientId` | *Optional\<String>* | :heavy_minus_sign: | Client Id for your Intercom application. | -| `clientSecret` | *Optional\<String>* | :heavy_minus_sign: | Client Secret for your Intercom application. | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `INTERCOM` | intercom | \ No newline at end of file diff --git a/docs/models/shared/Interval.md b/docs/models/shared/Interval.md index 295b387e7..fd19aa39d 100644 --- a/docs/models/shared/Interval.md +++ b/docs/models/shared/Interval.md @@ -1,20 +1,15 @@ # Interval -Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month +Time-series data point interval. Required for intraday endpoints. + ## Values -| Name | Value | -| --------------- | --------------- | -| `ONEMIN` | 1min | -| `FIVEMIN` | 5min | -| `FIFTEENMIN` | 15min | -| `THIRTYMIN` | 30min | -| `FORTY_FIVEMIN` | 45min | -| `ONEH` | 1h | -| `TWOH` | 2h | -| `FOURH` | 4h | -| `ONEDAY` | 1day | -| `ONEWEEK` | 1week | -| `ONEMONTH` | 1month | \ No newline at end of file +| Name | Value | +| ------------ | ------------ | +| `ONEMIN` | 1min | +| `FIVEMIN` | 5min | +| `FIFTEENMIN` | 15min | +| `THIRTYMIN` | 30min | +| `SIXTYMIN` | 60min | \ No newline at end of file diff --git a/docs/models/shared/Intruder.md b/docs/models/shared/Intruder.md new file mode 100644 index 000000000..d66109f3b --- /dev/null +++ b/docs/models/shared/Intruder.md @@ -0,0 +1,8 @@ +# Intruder + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `INTRUDER` | intruder | \ No newline at end of file diff --git a/docs/models/shared/Keka.md b/docs/models/shared/Keka.md new file mode 100644 index 000000000..08fe091f6 --- /dev/null +++ b/docs/models/shared/Keka.md @@ -0,0 +1,8 @@ +# Keka + + +## Values + +| Name | Value | +| ------ | ------ | +| `KEKA` | keka | \ No newline at end of file diff --git a/docs/models/shared/Mailersend.md b/docs/models/shared/Mailersend.md new file mode 100644 index 000000000..fcaec8ed9 --- /dev/null +++ b/docs/models/shared/Mailersend.md @@ -0,0 +1,8 @@ +# Mailersend + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `MAILERSEND` | mailersend | \ No newline at end of file diff --git a/docs/models/shared/MapperConfiguration.md b/docs/models/shared/MapperConfiguration.md index 1563d94fb..7cf7fd0af 100644 --- a/docs/models/shared/MapperConfiguration.md +++ b/docs/models/shared/MapperConfiguration.md @@ -2,8 +2,3 @@ The values required to configure the mapper. - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/Merge.md b/docs/models/shared/Merge.md new file mode 100644 index 000000000..cb0a15b81 --- /dev/null +++ b/docs/models/shared/Merge.md @@ -0,0 +1,8 @@ +# Merge + + +## Values + +| Name | Value | +| ------- | ------- | +| `MERGE` | merge | \ No newline at end of file diff --git a/docs/models/shared/Mode.md b/docs/models/shared/Mode.md index 3f9f51160..b1b226294 100644 --- a/docs/models/shared/Mode.md +++ b/docs/models/shared/Mode.md @@ -3,6 +3,11 @@ ## Values -| Name | Value | -| ------ | ------ | -| `MODE` | mode | \ No newline at end of file +| Name | Value | +| ----- | ----- | +| `CBC` | CBC | +| `CFB` | CFB | +| `OFB` | OFB | +| `CTR` | CTR | +| `GCM` | GCM | +| `ECB` | ECB | \ No newline at end of file diff --git a/docs/models/shared/MongoDBAtlasReplicaSet.md b/docs/models/shared/MongoDBAtlasReplicaSet.md index c531bbcd9..4fd19ff5b 100644 --- a/docs/models/shared/MongoDBAtlasReplicaSet.md +++ b/docs/models/shared/MongoDBAtlasReplicaSet.md @@ -9,7 +9,7 @@ MongoDB Atlas-hosted cluster configured as a replica set | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | | `authSource` | *Optional\<String>* | :heavy_minus_sign: | The authentication source where the user information is stored. See https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource for more details. | admin | -| `clusterType` | [SourceMongodbV2ClusterType](../../models/shared/SourceMongodbV2ClusterType.md) | :heavy_check_mark: | N/A | | +| `clusterType` | [SourceMongodbV2SchemasClusterType](../../models/shared/SourceMongodbV2SchemasClusterType.md) | :heavy_check_mark: | N/A | | | `connectionString` | *String* | :heavy_check_mark: | The connection string of the cluster that you want to replicate. | mongodb+srv://cluster0.abcd1.mongodb.net/ | | `database` | *String* | :heavy_check_mark: | The name of the MongoDB database that contains the collection(s) to replicate. | | | `password` | *String* | :heavy_check_mark: | The password associated with this username. | | diff --git a/docs/models/shared/MssqlV2.md b/docs/models/shared/MssqlV2.md new file mode 100644 index 000000000..c3ee20a57 --- /dev/null +++ b/docs/models/shared/MssqlV2.md @@ -0,0 +1,8 @@ +# MssqlV2 + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `MSSQL_V2` | mssql-v2 | \ No newline at end of file diff --git a/docs/models/shared/Name.md b/docs/models/shared/Name.md new file mode 100644 index 000000000..8f85b7505 --- /dev/null +++ b/docs/models/shared/Name.md @@ -0,0 +1,8 @@ +# Name + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `UNENCRYPTED` | unencrypted | \ No newline at end of file diff --git a/docs/models/shared/Navan.md b/docs/models/shared/Navan.md new file mode 100644 index 000000000..34fd3a882 --- /dev/null +++ b/docs/models/shared/Navan.md @@ -0,0 +1,8 @@ +# Navan + + +## Values + +| Name | Value | +| ------- | ------- | +| `NAVAN` | navan | \ No newline at end of file diff --git a/docs/models/shared/SourceQuickbooksOAuth20.md b/docs/models/shared/NessieCatalog.md similarity index 53% rename from docs/models/shared/SourceQuickbooksOAuth20.md rename to docs/models/shared/NessieCatalog.md index 4c9dd818a..fc6791f52 100644 --- a/docs/models/shared/SourceQuickbooksOAuth20.md +++ b/docs/models/shared/NessieCatalog.md @@ -1,14 +1,14 @@ -# SourceQuickbooksOAuth20 +# NessieCatalog + +Configuration details for connecting to a Nessie-based Iceberg catalog. ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accessToken` | *String* | :heavy_check_mark: | Access token for making authenticated requests. | -| `authType` | [Optional\<SourceQuickbooksAuthType>](../../models/shared/SourceQuickbooksAuthType.md) | :heavy_minus_sign: | N/A | -| `clientId` | *String* | :heavy_check_mark: | Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. | -| `clientSecret` | *String* | :heavy_check_mark: | Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. | -| `realmId` | *String* | :heavy_check_mark: | Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. | -| `refreshToken` | *String* | :heavy_check_mark: | A token used when refreshing the access token. | -| `tokenExpiryDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date-time when the access token should be refreshed. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | +| `accessToken` | *Optional\<String>* | :heavy_minus_sign: | Optional token for authentication with the Nessie server. | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | +| `catalogType` | [Optional\<DestinationS3DataLakeSchemasCatalogTypeCatalogType>](../../models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.md) | :heavy_minus_sign: | N/A | | +| `namespace` | *String* | :heavy_check_mark: | The Nessie namespace to be used in the Table identifier. <br/> This will ONLY be used if the `Destination Namespace` setting for the connection is set to<br/> `Destination-defined` or `Source-defined` | | +| `serverUri` | *String* | :heavy_check_mark: | The base URL of the Nessie server used to connect to the Nessie catalog. | | \ No newline at end of file diff --git a/docs/models/shared/Newsdata.md b/docs/models/shared/Newsdata.md new file mode 100644 index 000000000..94bf386a5 --- /dev/null +++ b/docs/models/shared/Newsdata.md @@ -0,0 +1,8 @@ +# Newsdata + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `NEWSDATA` | newsdata | \ No newline at end of file diff --git a/docs/models/shared/Not.md b/docs/models/shared/Not.md new file mode 100644 index 000000000..ccf09dcef --- /dev/null +++ b/docs/models/shared/Not.md @@ -0,0 +1,9 @@ +# Not + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `conditions` | List\<[RowFilteringOperation](../../models/shared/RowFilteringOperation.md)> | :heavy_check_mark: | Conditions to evaluate with the NOT operator. | +| `type` | [RowFilteringOperationType](../../models/shared/RowFilteringOperationType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/NotificationConfig.md b/docs/models/shared/NotificationConfig.md new file mode 100644 index 000000000..62926f4c5 --- /dev/null +++ b/docs/models/shared/NotificationConfig.md @@ -0,0 +1,11 @@ +# NotificationConfig + +Configures a notification. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `email` | [Optional\<EmailNotificationConfig>](../../models/shared/EmailNotificationConfig.md) | :heavy_minus_sign: | Configures an email notification. | +| `webhook` | [Optional\<WebhookNotificationConfig>](../../models/shared/WebhookNotificationConfig.md) | :heavy_minus_sign: | Configures a webhook notification. | \ No newline at end of file diff --git a/docs/models/shared/NotificationsConfig.md b/docs/models/shared/NotificationsConfig.md new file mode 100644 index 000000000..8ea23d5f6 --- /dev/null +++ b/docs/models/shared/NotificationsConfig.md @@ -0,0 +1,15 @@ +# NotificationsConfig + +Configures workspace notifications. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `connectionUpdate` | [Optional\<NotificationConfig>](../../models/shared/NotificationConfig.md) | :heavy_minus_sign: | Configures a notification. | +| `connectionUpdateActionRequired` | [Optional\<NotificationConfig>](../../models/shared/NotificationConfig.md) | :heavy_minus_sign: | Configures a notification. | +| `failure` | [Optional\<NotificationConfig>](../../models/shared/NotificationConfig.md) | :heavy_minus_sign: | Configures a notification. | +| `success` | [Optional\<NotificationConfig>](../../models/shared/NotificationConfig.md) | :heavy_minus_sign: | Configures a notification. | +| `syncDisabled` | [Optional\<NotificationConfig>](../../models/shared/NotificationConfig.md) | :heavy_minus_sign: | Configures a notification. | +| `syncDisabledWarning` | [Optional\<NotificationConfig>](../../models/shared/NotificationConfig.md) | :heavy_minus_sign: | Configures a notification. | \ No newline at end of file diff --git a/docs/models/shared/OAuth2AccessToken.md b/docs/models/shared/OAuth2AccessToken.md index ae9127b5f..476c94ec5 100644 --- a/docs/models/shared/OAuth2AccessToken.md +++ b/docs/models/shared/OAuth2AccessToken.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `accessToken` | *String* | :heavy_check_mark: | Also called <a href="https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-testing">API Access Token </a> The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes. | | -| `authType` | [SourceAuth0SchemasCredentialsAuthenticationMethod](../../models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.md) | :heavy_check_mark: | N/A | oauth2_access_token | \ No newline at end of file +| `authType` | [SourceAuth0SchemasAuthenticationMethod](../../models/shared/SourceAuth0SchemasAuthenticationMethod.md) | :heavy_check_mark: | N/A | oauth2_access_token | \ No newline at end of file diff --git a/docs/models/shared/OAuth2ConfidentialApplication.md b/docs/models/shared/OAuth2ConfidentialApplication.md index cb3cfbdc6..a28b54d1d 100644 --- a/docs/models/shared/OAuth2ConfidentialApplication.md +++ b/docs/models/shared/OAuth2ConfidentialApplication.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `audience` | *String* | :heavy_check_mark: | The audience for the token, which is your API. You can find this in the Identifier field on your <a href="https://manage.auth0.com/#/apis">API's settings tab</a> | https://dev-yourOrg.us.auth0.com/api/v2/ | -| `authType` | [SourceAuth0SchemasAuthenticationMethod](../../models/shared/SourceAuth0SchemasAuthenticationMethod.md) | :heavy_check_mark: | N/A | | +| `authType` | [SourceAuth0SchemasCredentialsAuthenticationMethod](../../models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.md) | :heavy_check_mark: | N/A | | | `clientId` | *String* | :heavy_check_mark: | Your application's Client ID. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. | Client_ID | | `clientSecret` | *String* | :heavy_check_mark: | Your application's Client Secret. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. | Client_Secret | \ No newline at end of file diff --git a/docs/models/shared/OAuthActorNames.md b/docs/models/shared/OAuthActorNames.md index fe72ce5c1..7d69c0632 100644 --- a/docs/models/shared/OAuthActorNames.md +++ b/docs/models/shared/OAuthActorNames.md @@ -23,7 +23,6 @@ | `GOOGLE_SHEETS` | google-sheets | | `HUBSPOT` | hubspot | | `INSTAGRAM` | instagram | -| `INTERCOM` | intercom | | `LEVER_HIRING` | lever-hiring | | `LINKEDIN_ADS` | linkedin-ads | | `MAILCHIMP` | mailchimp | diff --git a/docs/models/shared/OpenAI.md b/docs/models/shared/OpenAI.md index e1ace41ed..e504c770c 100644 --- a/docs/models/shared/OpenAI.md +++ b/docs/models/shared/OpenAI.md @@ -5,7 +5,7 @@ Use the OpenAI API to embed text. This option is using the text-embedding-ada-00 ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `mode` | [Optional\<DestinationAstraSchemasEmbeddingEmbedding1Mode>](../../models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.md) | :heavy_minus_sign: | N/A | -| `openaiKey` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `mode` | [Optional\<DestinationAstraMode>](../../models/shared/DestinationAstraMode.md) | :heavy_minus_sign: | N/A | +| `openaiKey` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OpenAICompatible.md b/docs/models/shared/OpenAICompatible.md index b50d584d5..5afeb683e 100644 --- a/docs/models/shared/OpenAICompatible.md +++ b/docs/models/shared/OpenAICompatible.md @@ -5,10 +5,10 @@ Use a service that's compatible with the OpenAI API to embed text. ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `apiKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | | -| `baseUrl` | *String* | :heavy_check_mark: | The base URL for your OpenAI-compatible service | https://your-service-name.com | -| `dimensions` | *long* | :heavy_check_mark: | The number of dimensions the embedding model is generating | 1536 | -| `mode` | [Optional\<DestinationAstraSchemasEmbeddingEmbeddingMode>](../../models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.md) | :heavy_minus_sign: | N/A | | -| `modelName` | *Optional\<String>* | :heavy_minus_sign: | The name of the model to use for embedding | text-embedding-ada-002 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | | +| `baseUrl` | *String* | :heavy_check_mark: | The base URL for your OpenAI-compatible service | https://your-service-name.com | +| `dimensions` | *long* | :heavy_check_mark: | The number of dimensions the embedding model is generating | 1536 | +| `mode` | [Optional\<DestinationAstraSchemasEmbeddingEmbedding5Mode>](../../models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.md) | :heavy_minus_sign: | N/A | | +| `modelName` | *Optional\<String>* | :heavy_minus_sign: | The name of the model to use for embedding | text-embedding-ada-002 | \ No newline at end of file diff --git a/docs/models/shared/OutputSize.md b/docs/models/shared/OutputSize.md new file mode 100644 index 000000000..6deac89a7 --- /dev/null +++ b/docs/models/shared/OutputSize.md @@ -0,0 +1,12 @@ +# OutputSize + +Whether to return full or compact data (the last 100 data points). + + + +## Values + +| Name | Value | +| --------- | --------- | +| `COMPACT` | compact | +| `FULL` | full | \ No newline at end of file diff --git a/docs/models/shared/Padding.md b/docs/models/shared/Padding.md new file mode 100644 index 000000000..d5245f7c4 --- /dev/null +++ b/docs/models/shared/Padding.md @@ -0,0 +1,9 @@ +# Padding + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `NO_PADDING` | NoPadding | +| `PKCS5_PADDING` | PKCS5Padding | \ No newline at end of file diff --git a/docs/models/shared/Payfit.md b/docs/models/shared/Payfit.md new file mode 100644 index 000000000..b47480b0d --- /dev/null +++ b/docs/models/shared/Payfit.md @@ -0,0 +1,8 @@ +# Payfit + + +## Values + +| Name | Value | +| -------- | -------- | +| `PAYFIT` | payfit | \ No newline at end of file diff --git a/docs/models/shared/Pingdom.md b/docs/models/shared/Pingdom.md new file mode 100644 index 000000000..e35ed9278 --- /dev/null +++ b/docs/models/shared/Pingdom.md @@ -0,0 +1,8 @@ +# Pingdom + + +## Values + +| Name | Value | +| --------- | --------- | +| `PINGDOM` | pingdom | \ No newline at end of file diff --git a/docs/models/shared/Prefer.md b/docs/models/shared/Prefer.md index 5eca22a0b..049c34440 100644 --- a/docs/models/shared/Prefer.md +++ b/docs/models/shared/Prefer.md @@ -5,6 +5,6 @@ Prefer SSL mode. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `mode` | [Optional\<DestinationPostgresSchemasMode>](../../models/shared/DestinationPostgresSchemasMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `mode` | [Optional\<DestinationPostgresSchemasSslModeMode>](../../models/shared/DestinationPostgresSchemasSslModeMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Preferred.md b/docs/models/shared/Preferred.md index adffac8ee..fc109a88b 100644 --- a/docs/models/shared/Preferred.md +++ b/docs/models/shared/Preferred.md @@ -1,10 +1,11 @@ # Preferred -Automatically attempt SSL connection. If the MySQL server does not support SSL, continue with a regular connection. +To allow unencrypted communication only when the source doesn't support encryption. ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `mode` | [SourceMysqlMode](../../models/shared/SourceMysqlMode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `mode` | [Optional\<SourceMysqlMode>](../../models/shared/SourceMysqlMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/RESTAPIStreams.md b/docs/models/shared/RESTAPIStreams.md new file mode 100644 index 000000000..b973c4c6e --- /dev/null +++ b/docs/models/shared/RESTAPIStreams.md @@ -0,0 +1,10 @@ +# RESTAPIStreams + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accessToken` | *String* | :heavy_check_mark: | Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the Workday community docs to obtain access token. | | +| `authType` | [Rest](../../models/shared/Rest.md) | :heavy_check_mark: | N/A | | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Rows after this date will be synced, default 2 years ago. | 2024-10-26T07:00:00.000Z | \ No newline at end of file diff --git a/docs/models/shared/Raas.md b/docs/models/shared/Raas.md new file mode 100644 index 000000000..43d15a15c --- /dev/null +++ b/docs/models/shared/Raas.md @@ -0,0 +1,8 @@ +# Raas + + +## Values + +| Name | Value | +| ------ | ------ | +| `RAAS` | RAAS | \ No newline at end of file diff --git a/docs/models/shared/ReplicatePermissionsACL.md b/docs/models/shared/ReplicatePermissionsACL.md new file mode 100644 index 000000000..d2f72321c --- /dev/null +++ b/docs/models/shared/ReplicatePermissionsACL.md @@ -0,0 +1,12 @@ +# ReplicatePermissionsACL + +Sends one identity stream and one for more permissions (ACL) streams to the destination. This data can be used in downstream systems to recreate permission restrictions mirroring the original source. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `deliveryType` | [Optional\<SourceGoogleDriveSchemasDeliveryType>](../../models/shared/SourceGoogleDriveSchemasDeliveryType.md) | :heavy_minus_sign: | N/A | +| `domain` | *Optional\<String>* | :heavy_minus_sign: | The Google domain of the identities. | +| `includeIdentitiesStream` | *Optional\<Boolean>* | :heavy_minus_sign: | This data can be used in downstream systems to recreate permission restrictions mirroring the original source | \ No newline at end of file diff --git a/docs/models/shared/ReportBasedStreams.md b/docs/models/shared/ReportBasedStreams.md new file mode 100644 index 000000000..2e0e29ebf --- /dev/null +++ b/docs/models/shared/ReportBasedStreams.md @@ -0,0 +1,11 @@ +# ReportBasedStreams + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `authType` | [Raas](../../models/shared/Raas.md) | :heavy_check_mark: | N/A | | +| `password` | *String* | :heavy_check_mark: | N/A | | +| `reportIds` | List\<*Object*> | :heavy_check_mark: | Report IDs can be found by clicking the three dots on the right side of the report > Web Service > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. | for JSON url https://hostname/ccx/service/customreport2/tenant/report/id?format=json Report ID is report/id. | +| `username` | *String* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/ReportName.md b/docs/models/shared/ReportName.md index a7162f467..ef7fd8792 100644 --- a/docs/models/shared/ReportName.md +++ b/docs/models/shared/ReportName.md @@ -41,12 +41,4 @@ | `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_VENDOR_REAL_TIME_INVENTORY_REPORT` | GET_VENDOR_REAL_TIME_INVENTORY_REPORT | -| `GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT` | GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT | -| `GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT` | GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT | -| `GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT` | GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT | -| `GET_SALES_AND_TRAFFIC_REPORT` | GET_SALES_AND_TRAFFIC_REPORT | -| `GET_VENDOR_SALES_REPORT` | GET_VENDOR_SALES_REPORT | -| `GET_VENDOR_INVENTORY_REPORT` | GET_VENDOR_INVENTORY_REPORT | -| `GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT` | GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT | -| `GET_VENDOR_TRAFFIC_REPORT` | GET_VENDOR_TRAFFIC_REPORT | \ No newline at end of file +| `GET_VENDOR_REAL_TIME_INVENTORY_REPORT` | GET_VENDOR_REAL_TIME_INVENTORY_REPORT | \ No newline at end of file diff --git a/docs/models/shared/ReportRecordTypeEnum.md b/docs/models/shared/ReportRecordTypeEnum.md deleted file mode 100644 index 09c75d198..000000000 --- a/docs/models/shared/ReportRecordTypeEnum.md +++ /dev/null @@ -1,17 +0,0 @@ -# ReportRecordTypeEnum - -An enumeration. - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `AD_GROUPS` | adGroups | -| `ASINS` | asins | -| `ASINS_KEYWORDS` | asins_keywords | -| `ASINS_TARGETS` | asins_targets | -| `CAMPAIGNS` | campaigns | -| `KEYWORDS` | keywords | -| `PRODUCT_ADS` | productAds | -| `TARGETS` | targets | \ No newline at end of file diff --git a/docs/models/shared/Require.md b/docs/models/shared/Require.md index fee402c8c..05121b838 100644 --- a/docs/models/shared/Require.md +++ b/docs/models/shared/Require.md @@ -5,6 +5,6 @@ Require SSL mode. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `mode` | [Optional\<DestinationPostgresSchemasSslModeMode>](../../models/shared/DestinationPostgresSchemasSslModeMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `mode` | [Optional\<DestinationPostgresSchemasSSLModeSSLModesMode>](../../models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Required.md b/docs/models/shared/Required.md index 389a31f26..777082199 100644 --- a/docs/models/shared/Required.md +++ b/docs/models/shared/Required.md @@ -1,10 +1,11 @@ # Required -Always connect with SSL. If the MySQL server doesn’t support SSL, the connection will not be established. Certificate Authority (CA) and Hostname are not verified. +To always require encryption. Note: The connection will fail if the source doesn't support encryption. ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `mode` | [SourceMysqlSchemasMode](../../models/shared/SourceMysqlSchemasMode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `mode` | [Optional\<SourceMysqlSchemasMode>](../../models/shared/SourceMysqlSchemasMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Resolution.md b/docs/models/shared/Resolution.md new file mode 100644 index 000000000..e7460ed66 --- /dev/null +++ b/docs/models/shared/Resolution.md @@ -0,0 +1,10 @@ +# Resolution + + +## Values + +| Name | Value | +| ------ | ------ | +| `HOUR` | hour | +| `DAY` | day | +| `WEEK` | week | \ No newline at end of file diff --git a/docs/models/shared/Rest.md b/docs/models/shared/Rest.md new file mode 100644 index 000000000..dfc37a3ba --- /dev/null +++ b/docs/models/shared/Rest.md @@ -0,0 +1,8 @@ +# Rest + + +## Values + +| Name | Value | +| ------ | ------ | +| `REST` | REST | \ No newline at end of file diff --git a/docs/models/shared/RetailexpressByMaropost.md b/docs/models/shared/RetailexpressByMaropost.md new file mode 100644 index 000000000..aac65ee93 --- /dev/null +++ b/docs/models/shared/RetailexpressByMaropost.md @@ -0,0 +1,8 @@ +# RetailexpressByMaropost + + +## Values + +| Name | Value | +| --------------------------- | --------------------------- | +| `RETAILEXPRESS_BY_MAROPOST` | retailexpress-by-maropost | \ No newline at end of file diff --git a/docs/models/shared/Ringcentral.md b/docs/models/shared/Ringcentral.md new file mode 100644 index 000000000..931841aeb --- /dev/null +++ b/docs/models/shared/Ringcentral.md @@ -0,0 +1,8 @@ +# Ringcentral + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `RINGCENTRAL` | ringcentral | \ No newline at end of file diff --git a/docs/models/shared/RocketChat.md b/docs/models/shared/RocketChat.md new file mode 100644 index 000000000..e75256709 --- /dev/null +++ b/docs/models/shared/RocketChat.md @@ -0,0 +1,8 @@ +# RocketChat + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `ROCKET_CHAT` | rocket-chat | \ No newline at end of file diff --git a/docs/models/shared/RowFiltering.md b/docs/models/shared/RowFiltering.md new file mode 100644 index 000000000..1f24a2c65 --- /dev/null +++ b/docs/models/shared/RowFiltering.md @@ -0,0 +1,8 @@ +# RowFiltering + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `conditions` | [RowFilteringOperation](../../models/shared/RowFilteringOperation.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/RowFilteringOperation.md b/docs/models/shared/RowFilteringOperation.md new file mode 100644 index 000000000..c5a4eeda7 --- /dev/null +++ b/docs/models/shared/RowFilteringOperation.md @@ -0,0 +1,2 @@ +# RowFilteringOperation + diff --git a/docs/models/shared/RowFilteringOperationType.md b/docs/models/shared/RowFilteringOperationType.md new file mode 100644 index 000000000..749ae389f --- /dev/null +++ b/docs/models/shared/RowFilteringOperationType.md @@ -0,0 +1,9 @@ +# RowFilteringOperationType + + +## Values + +| Name | Value | +| ------- | ------- | +| `EQUAL` | EQUAL | +| `NOT` | NOT | \ No newline at end of file diff --git a/docs/models/shared/S3DataLake.md b/docs/models/shared/S3DataLake.md new file mode 100644 index 000000000..8ca7cf820 --- /dev/null +++ b/docs/models/shared/S3DataLake.md @@ -0,0 +1,8 @@ +# S3DataLake + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `S3_DATA_LAKE` | s3-data-lake | \ No newline at end of file diff --git a/docs/models/shared/SelfManagedReplicaSet.md b/docs/models/shared/SelfManagedReplicaSet.md index 1ae99f5d0..bde2e3aa1 100644 --- a/docs/models/shared/SelfManagedReplicaSet.md +++ b/docs/models/shared/SelfManagedReplicaSet.md @@ -9,7 +9,7 @@ MongoDB self-hosted cluster configured as a replica set | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | | | `authSource` | *Optional\<String>* | :heavy_minus_sign: | The authentication source where the user information is stored. | admin | -| `clusterType` | [SourceMongodbV2SchemasClusterType](../../models/shared/SourceMongodbV2SchemasClusterType.md) | :heavy_check_mark: | N/A | | +| `clusterType` | [SourceMongodbV2ClusterType](../../models/shared/SourceMongodbV2ClusterType.md) | :heavy_check_mark: | N/A | | | `connectionString` | *String* | :heavy_check_mark: | The connection string of the cluster that you want to replicate. https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string for more information. | mongodb://example1.host.com:27017,example2.host.com:27017,example3.host.com:27017/ | | `database` | *String* | :heavy_check_mark: | The name of the MongoDB database that contains the collection(s) to replicate. | | | `password` | *Optional\<String>* | :heavy_minus_sign: | The password associated with this username. | | diff --git a/docs/models/shared/Serpstat.md b/docs/models/shared/Serpstat.md new file mode 100644 index 000000000..a68048097 --- /dev/null +++ b/docs/models/shared/Serpstat.md @@ -0,0 +1,8 @@ +# Serpstat + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `SERPSTAT` | serpstat | \ No newline at end of file diff --git a/docs/models/shared/ServiceNow.md b/docs/models/shared/ServiceNow.md new file mode 100644 index 000000000..5be592c4f --- /dev/null +++ b/docs/models/shared/ServiceNow.md @@ -0,0 +1,8 @@ +# ServiceNow + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `SERVICE_NOW` | service-now | \ No newline at end of file diff --git a/docs/models/shared/Shipstation.md b/docs/models/shared/Shipstation.md new file mode 100644 index 000000000..78470ba48 --- /dev/null +++ b/docs/models/shared/Shipstation.md @@ -0,0 +1,8 @@ +# Shipstation + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `SHIPSTATION` | shipstation | \ No newline at end of file diff --git a/docs/models/shared/SourceAirtableOAuth20.md b/docs/models/shared/SourceAirtableOAuth20.md index 02d3e074c..4b298599f 100644 --- a/docs/models/shared/SourceAirtableOAuth20.md +++ b/docs/models/shared/SourceAirtableOAuth20.md @@ -8,6 +8,6 @@ | `accessToken` | *Optional\<String>* | :heavy_minus_sign: | Access Token for making authenticated requests. | | `authMethod` | [Optional\<SourceAirtableSchemasAuthMethod>](../../models/shared/SourceAirtableSchemasAuthMethod.md) | :heavy_minus_sign: | N/A | | `clientId` | *String* | :heavy_check_mark: | The client ID of the Airtable developer application. | -| `clientSecret` | *String* | :heavy_check_mark: | The client secret the Airtable developer application. | +| `clientSecret` | *String* | :heavy_check_mark: | The client secret of the Airtable developer application. | | `refreshToken` | *String* | :heavy_check_mark: | The key to refresh the expired access token. | | `tokenExpiryDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date-time when the access token should be refreshed. | \ No newline at end of file diff --git a/docs/models/shared/SourceAlphaVantage.md b/docs/models/shared/SourceAlphaVantage.md new file mode 100644 index 000000000..4249b300a --- /dev/null +++ b/docs/models/shared/SourceAlphaVantage.md @@ -0,0 +1,13 @@ +# SourceAlphaVantage + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `adjusted` | *Optional\<Boolean>* | :heavy_minus_sign: | Whether to return adjusted data. Only applicable to intraday endpoints.<br/> | | +| `apiKey` | *String* | :heavy_check_mark: | API Key | | +| `interval` | [Optional\<Interval>](../../models/shared/Interval.md) | :heavy_minus_sign: | Time-series data point interval. Required for intraday endpoints.<br/> | | +| `outputsize` | [Optional\<OutputSize>](../../models/shared/OutputSize.md) | :heavy_minus_sign: | Whether to return full or compact data (the last 100 data points).<br/> | | +| `sourceType` | [AlphaVantage](../../models/shared/AlphaVantage.md) | :heavy_check_mark: | N/A | | +| `symbol` | *String* | :heavy_check_mark: | Stock symbol (with exchange code) | AAPL | \ No newline at end of file diff --git a/docs/models/shared/SourceAmazonAds.md b/docs/models/shared/SourceAmazonAds.md index 48c3ab7e3..dd17041d8 100644 --- a/docs/models/shared/SourceAmazonAds.md +++ b/docs/models/shared/SourceAmazonAds.md @@ -13,7 +13,5 @@ | `profiles` | List\<*long*> | :heavy_minus_sign: | Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with seller and vendor type, profiles with agency type will be ignored. See <a href="https://advertising.amazon.com/API/docs/en-us/concepts/authorization/profiles">docs</a> for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. | | | `refreshToken` | *String* | :heavy_check_mark: | Amazon Ads refresh token. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens">docs</a> for more information on how to obtain this token. | | | `region` | [Optional\<Region>](../../models/shared/Region.md) | :heavy_minus_sign: | Region to pull data from (EU/NA/FE). See <a href="https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints">docs</a> for more details. | | -| `reportRecordTypes` | List\<[ReportRecordTypeEnum](../../models/shared/ReportRecordTypeEnum.md)> | :heavy_minus_sign: | Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See <a href="https://advertising.amazon.com/API/docs/en-us/reporting/v2/report-types">docs</a> for more details | | | `sourceType` | [SourceAmazonAdsAmazonAds](../../models/shared/SourceAmazonAdsAmazonAds.md) | :heavy_check_mark: | N/A | | -| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format | 2022-10-10 | -| `stateFilter` | List\<[StateFilterEnum](../../models/shared/StateFilterEnum.md)> | :heavy_minus_sign: | Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely. | | \ No newline at end of file +| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format | 2022-10-10 | \ No newline at end of file diff --git a/docs/models/shared/SourceAmazonSellerPartner.md b/docs/models/shared/SourceAmazonSellerPartner.md index b5ee78bc4..905235065 100644 --- a/docs/models/shared/SourceAmazonSellerPartner.md +++ b/docs/models/shared/SourceAmazonSellerPartner.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `accountType` | [Optional\<AWSSellerPartnerAccountType>](../../models/shared/AWSSellerPartnerAccountType.md) | :heavy_minus_sign: | Type of the Account you're going to authorize the Airbyte application by | | +| `appId` | *Optional\<String>* | :heavy_minus_sign: | Your Amazon Application ID. | | | `authType` | [Optional\<SourceAmazonSellerPartnerAuthType>](../../models/shared/SourceAmazonSellerPartnerAuthType.md) | :heavy_minus_sign: | N/A | | | `awsEnvironment` | [Optional\<AWSEnvironment>](../../models/shared/AWSEnvironment.md) | :heavy_minus_sign: | Select the AWS Environment. | | | `lwaAppId` | *String* | :heavy_check_mark: | Your Login with Amazon Client ID. | | diff --git a/docs/models/shared/SourceAmazonSqs.md b/docs/models/shared/SourceAmazonSqs.md index 6dca02a0d..82e554844 100644 --- a/docs/models/shared/SourceAmazonSqs.md +++ b/docs/models/shared/SourceAmazonSqs.md @@ -3,15 +3,15 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `accessKey` | *Optional\<String>* | :heavy_minus_sign: | The Access Key ID of the AWS IAM Role to use for pulling messages | xxxxxHRNxxx3TBxxxxxx | -| `attributesToReturn` | *Optional\<String>* | :heavy_minus_sign: | Comma separated list of Mesage Attribute names to return | attr1,attr2 | -| `deleteMessages` | *Optional\<Boolean>* | :heavy_minus_sign: | If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail. | | -| `maxBatchSize` | *Optional\<Long>* | :heavy_minus_sign: | Max amount of messages to get in one batch (10 max) | 5 | -| `maxWaitTime` | *Optional\<Long>* | :heavy_minus_sign: | Max amount of time in seconds to wait for messages in a single poll (20 max) | 5 | -| `queueUrl` | *String* | :heavy_check_mark: | URL of the SQS Queue | https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue | -| `region` | [SourceAmazonSqsAWSRegion](../../models/shared/SourceAmazonSqsAWSRegion.md) | :heavy_check_mark: | AWS Region of the SQS Queue | | -| `secretKey` | *Optional\<String>* | :heavy_minus_sign: | The Secret Key of the AWS IAM Role to use for pulling messages | hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz | -| `sourceType` | [AmazonSqs](../../models/shared/AmazonSqs.md) | :heavy_check_mark: | N/A | | -| `visibilityTimeout` | *Optional\<Long>* | :heavy_minus_sign: | Modify the Visibility Timeout of the individual message from the Queue's default (seconds). | 15 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accessKey` | *String* | :heavy_check_mark: | The Access Key ID of the AWS IAM Role to use for pulling messages | xxxxxHRNxxx3TBxxxxxx | +| `attributesToReturn` | *Optional\<String>* | :heavy_minus_sign: | Comma separated list of Mesage Attribute names to return | attr1,attr2 | +| `maxBatchSize` | *Optional\<Long>* | :heavy_minus_sign: | Max amount of messages to get in one batch (10 max) | 5 | +| `maxWaitTime` | *Optional\<Long>* | :heavy_minus_sign: | Max amount of time in seconds to wait for messages in a single poll (20 max) | 5 | +| `queueUrl` | *String* | :heavy_check_mark: | URL of the SQS Queue | https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue | +| `region` | [Optional\<SourceAmazonSqsAWSRegion>](../../models/shared/SourceAmazonSqsAWSRegion.md) | :heavy_minus_sign: | AWS Region of the SQS Queue | | +| `secretKey` | *String* | :heavy_check_mark: | The Secret Key of the AWS IAM Role to use for pulling messages | hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz | +| `sourceType` | [AmazonSqs](../../models/shared/AmazonSqs.md) | :heavy_check_mark: | N/A | | +| `target` | [Optional\<TheTargetedActionResourceForTheFetch>](../../models/shared/TheTargetedActionResourceForTheFetch.md) | :heavy_minus_sign: | Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html | | +| `visibilityTimeout` | *Optional\<Long>* | :heavy_minus_sign: | Modify the Visibility Timeout of the individual message from the Queue's default (seconds). | 20 | \ No newline at end of file diff --git a/docs/models/shared/SourceAmplitude.md b/docs/models/shared/SourceAmplitude.md index c3d580068..c847333e3 100644 --- a/docs/models/shared/SourceAmplitude.md +++ b/docs/models/shared/SourceAmplitude.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `activeUsersGroupByCountry` | *Optional\<Boolean>* | :heavy_minus_sign: | According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Considerations</a> the grouping by `Country` is optional, if you're facing issues fetching the stream, or checking the connection please set this to `False` instead. | | -| `apiKey` | *String* | :heavy_check_mark: | Amplitude API Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. | | -| `dataRegion` | [Optional\<DataRegion>](../../models/shared/DataRegion.md) | :heavy_minus_sign: | Amplitude data region server | | -| `requestTimeRange` | *Optional\<Long>* | :heavy_minus_sign: | According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too big time range in request can cause a timeout error. In this case, set shorter time interval in hours. | | -| `secretKey` | *String* | :heavy_check_mark: | Amplitude Secret Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. | | -| `sourceType` | [Amplitude](../../models/shared/Amplitude.md) | :heavy_check_mark: | N/A | | -| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated. | 2021-01-25T00:00:00Z | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `activeUsersGroupByCountry` | *Optional\<Boolean>* | :heavy_minus_sign: | According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`.<br/> | | +| `apiKey` | *String* | :heavy_check_mark: | Amplitude API Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. | | +| `dataRegion` | [Optional\<DataRegion>](../../models/shared/DataRegion.md) | :heavy_minus_sign: | Amplitude data region server | | +| `requestTimeRange` | *Optional\<Long>* | :heavy_minus_sign: | According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours.<br/> | | +| `secretKey` | *String* | :heavy_check_mark: | Amplitude Secret Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. | | +| `sourceType` | [Amplitude](../../models/shared/Amplitude.md) | :heavy_check_mark: | N/A | | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated. | 2021-01-25T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceAppleSearchAds.md b/docs/models/shared/SourceAppleSearchAds.md index c05efdbf9..9cf05e446 100644 --- a/docs/models/shared/SourceAppleSearchAds.md +++ b/docs/models/shared/SourceAppleSearchAds.md @@ -5,9 +5,11 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `backoffFactor` | *Optional\<Long>* | :heavy_minus_sign: | This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. | 10 | | `clientId` | *String* | :heavy_check_mark: | A user identifier for the token request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> | | | `clientSecret` | *String* | :heavy_check_mark: | A string that authenticates the user’s setup request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> | | | `endDate` | *Optional\<String>* | :heavy_minus_sign: | Data is retrieved until that date (included) | 2021-01-01 | +| `lookbackWindow` | *Optional\<Long>* | :heavy_minus_sign: | Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. | 7 | | `orgId` | *long* | :heavy_check_mark: | The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. | | | `sourceType` | [AppleSearchAds](../../models/shared/AppleSearchAds.md) | :heavy_check_mark: | N/A | | | `startDate` | *String* | :heavy_check_mark: | Start getting data from that date. | 2020-01-01 | \ No newline at end of file diff --git a/docs/models/shared/SourceAsana.md b/docs/models/shared/SourceAsana.md index 69389b724..50c01704d 100644 --- a/docs/models/shared/SourceAsana.md +++ b/docs/models/shared/SourceAsana.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `credentials` | [Optional\<AuthenticationMechanism>](../../models/shared/AuthenticationMechanism.md) | :heavy_minus_sign: | Choose how to authenticate to Github | -| `organizationExportIds` | List\<*Object*> | :heavy_minus_sign: | Globally unique identifiers for the organization exports | -| `sourceType` | [Optional\<SourceAsanaAsana>](../../models/shared/SourceAsanaAsana.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `credentials` | [Optional\<AuthenticationMechanism>](../../models/shared/AuthenticationMechanism.md) | :heavy_minus_sign: | Choose how to authenticate to Github | | +| `numWorkers` | *Optional\<Long>* | :heavy_minus_sign: | The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. | 1 | +| `organizationExportIds` | List\<*Object*> | :heavy_minus_sign: | Globally unique identifiers for the organization exports | | +| `sourceType` | [Optional\<SourceAsanaAsana>](../../models/shared/SourceAsanaAsana.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceAuth0SchemasAuthenticationMethod.md b/docs/models/shared/SourceAuth0SchemasAuthenticationMethod.md index 0a05b6143..140b06385 100644 --- a/docs/models/shared/SourceAuth0SchemasAuthenticationMethod.md +++ b/docs/models/shared/SourceAuth0SchemasAuthenticationMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| --------------------------------- | --------------------------------- | -| `OAUTH2_CONFIDENTIAL_APPLICATION` | oauth2_confidential_application | \ No newline at end of file +| Name | Value | +| --------------------- | --------------------- | +| `OAUTH2_ACCESS_TOKEN` | oauth2_access_token | \ No newline at end of file diff --git a/docs/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.md b/docs/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.md index dc3939974..f962c1dcf 100644 --- a/docs/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.md +++ b/docs/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| --------------------- | --------------------- | -| `OAUTH2_ACCESS_TOKEN` | oauth2_access_token | \ No newline at end of file +| Name | Value | +| --------------------------------- | --------------------------------- | +| `OAUTH2_CONFIDENTIAL_APPLICATION` | oauth2_confidential_application | \ No newline at end of file diff --git a/docs/models/shared/SourceAzureBlobStorageSchemasAuthType.md b/docs/models/shared/SourceAzureBlobStorageSchemasAuthType.md index a6176c71b..c5a536f96 100644 --- a/docs/models/shared/SourceAzureBlobStorageSchemasAuthType.md +++ b/docs/models/shared/SourceAzureBlobStorageSchemasAuthType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| --------------------- | --------------------- | -| `STORAGE_ACCOUNT_KEY` | storage_account_key | \ No newline at end of file +| Name | Value | +| -------------------- | -------------------- | +| `CLIENT_CREDENTIALS` | client_credentials | \ No newline at end of file diff --git a/docs/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.md b/docs/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.md new file mode 100644 index 000000000..1b3370715 --- /dev/null +++ b/docs/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.md @@ -0,0 +1,8 @@ +# SourceAzureBlobStorageSchemasCredentialsAuthType + + +## Values + +| Name | Value | +| --------------------- | --------------------- | +| `STORAGE_ACCOUNT_KEY` | storage_account_key | \ No newline at end of file diff --git a/docs/models/shared/SourceBabelforce.md b/docs/models/shared/SourceBabelforce.md new file mode 100644 index 000000000..ddb1f3ace --- /dev/null +++ b/docs/models/shared/SourceBabelforce.md @@ -0,0 +1,13 @@ +# SourceBabelforce + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `accessKeyId` | *String* | :heavy_check_mark: | The Babelforce access key ID | | +| `accessToken` | *String* | :heavy_check_mark: | The Babelforce access token | | +| `dateCreatedFrom` | *Optional\<Long>* | :heavy_minus_sign: | Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. | 1651363200 | +| `dateCreatedTo` | *Optional\<Long>* | :heavy_minus_sign: | Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. | 1651363200 | +| `region` | [Optional\<SourceBabelforceRegion>](../../models/shared/SourceBabelforceRegion.md) | :heavy_minus_sign: | Babelforce region | | +| `sourceType` | [Babelforce](../../models/shared/Babelforce.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceBabelforceRegion.md b/docs/models/shared/SourceBabelforceRegion.md new file mode 100644 index 000000000..06ecd743c --- /dev/null +++ b/docs/models/shared/SourceBabelforceRegion.md @@ -0,0 +1,12 @@ +# SourceBabelforceRegion + +Babelforce region + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `SERVICES` | services | +| `US_EAST` | us-east | +| `AP_SOUTHEAST` | ap-southeast | \ No newline at end of file diff --git a/docs/models/shared/SourceBreezometer.md b/docs/models/shared/SourceBreezometer.md new file mode 100644 index 000000000..d7fbd9250 --- /dev/null +++ b/docs/models/shared/SourceBreezometer.md @@ -0,0 +1,15 @@ +# SourceBreezometer + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Your API Access Key. See <a href="https://docs.breezometer.com/api-documentation/introduction/#authentication/">here</a>. | | +| `daysToForecast` | *Optional\<Long>* | :heavy_minus_sign: | Number of days to forecast. Minimum 1, maximum 3. Valid for Polen and Weather Forecast streams. | 3 | +| `historicHours` | *Optional\<Long>* | :heavy_minus_sign: | Number of hours retireve from Air Quality History stream. Minimum 1, maximum 720. | 30 | +| `hoursToForecast` | *Optional\<Long>* | :heavy_minus_sign: | Number of hours to forecast. Minimum 1, maximum 96. Valid for Air Quality Forecast stream. | 30 | +| `latitude` | *String* | :heavy_check_mark: | Latitude of the monitored location. | 54.675003 | +| `longitude` | *String* | :heavy_check_mark: | Longitude of the monitored location. | -113.550282 | +| `radius` | *Optional\<Long>* | :heavy_minus_sign: | Desired radius from the location provided. Minimum 5, maximum 100. Valid for Wildfires streams. | 50 | +| `sourceType` | [Breezometer](../../models/shared/Breezometer.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceCaptainData.md b/docs/models/shared/SourceCaptainData.md new file mode 100644 index 000000000..4c30c693e --- /dev/null +++ b/docs/models/shared/SourceCaptainData.md @@ -0,0 +1,10 @@ +# SourceCaptainData + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Your Captain Data project API key. | +| `projectUid` | *String* | :heavy_check_mark: | Your Captain Data project uuid. | +| `sourceType` | [CaptainData](../../models/shared/CaptainData.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceCircleci.md b/docs/models/shared/SourceCircleci.md index 3672a0d0c..0ad13d240 100644 --- a/docs/models/shared/SourceCircleci.md +++ b/docs/models/shared/SourceCircleci.md @@ -3,14 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `apiKey` | *String* | :heavy_check_mark: | N/A | -| `jobId` | *Optional\<String>* | :heavy_minus_sign: | Job ID for fetching information | -| `jobNumber` | *Optional\<String>* | :heavy_minus_sign: | Job Number of the workflow | -| `orgId` | *String* | :heavy_check_mark: | The org ID found in `https://app.circleci.com/settings/organization/circleci/xxxxx/overview` | -| `projectId` | *String* | :heavy_check_mark: | Project ID found in the project settings | -| `sourceType` | [Circleci](../../models/shared/Circleci.md) | :heavy_check_mark: | N/A | -| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `workflowId` | *Optional\<String>* | :heavy_minus_sign: | workflow ID of a project pipeline | -| `workflowName` | *Optional\<String>* | :heavy_minus_sign: | Workflow name for fetching information | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `jobNumber` | *Optional\<String>* | :heavy_minus_sign: | Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured | +| `orgId` | *String* | :heavy_check_mark: | The org ID found in `https://app.circleci.com/settings/organization/circleci/xxxxx/overview` | +| `projectId` | *String* | :heavy_check_mark: | Project ID found in the project settings, Visit `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` | +| `sourceType` | [Circleci](../../models/shared/Circleci.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `workflowId` | List\<*Object*> | :heavy_minus_sign: | Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` | \ No newline at end of file diff --git a/docs/models/shared/SourceCoingeckoCoins.md b/docs/models/shared/SourceCoingeckoCoins.md new file mode 100644 index 000000000..31dc0f9af --- /dev/null +++ b/docs/models/shared/SourceCoingeckoCoins.md @@ -0,0 +1,14 @@ +# SourceCoingeckoCoins + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `apiKey` | *Optional\<String>* | :heavy_minus_sign: | API Key (for pro users) | +| `coinId` | *String* | :heavy_check_mark: | CoinGecko coin ID (e.g. bitcoin). Can be retrieved from the<br/>`/coins/list` endpoint.<br/> | +| `days` | [Optional\<Days>](../../models/shared/Days.md) | :heavy_minus_sign: | The number of days of data for market chart.<br/> | +| `endDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The end date for the historical data stream in dd-mm-yyyy format.<br/> | +| `sourceType` | [CoingeckoCoins](../../models/shared/CoingeckoCoins.md) | :heavy_check_mark: | N/A | +| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | The start date for the historical data stream in dd-mm-yyyy format.<br/> | +| `vsCurrency` | *String* | :heavy_check_mark: | The target currency of market data (e.g. usd, eur, jpy, etc.)<br/> | \ No newline at end of file diff --git a/docs/models/shared/SourceEverhour.md b/docs/models/shared/SourceEverhour.md new file mode 100644 index 000000000..c1c3358f2 --- /dev/null +++ b/docs/models/shared/SourceEverhour.md @@ -0,0 +1,9 @@ +# SourceEverhour + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `apiKey` | *String* | :heavy_check_mark: | Everhour API Key. See the <a href="https://everhour.docs.apiary.io/#introduction/authentication">docs</a> for information on how to generate this key. | +| `sourceType` | [Everhour](../../models/shared/Everhour.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceFacebookMarketingValidEnums.md b/docs/models/shared/SourceFacebookMarketingValidEnums.md index bfdd2cdbd..34adfb302 100644 --- a/docs/models/shared/SourceFacebookMarketingValidEnums.md +++ b/docs/models/shared/SourceFacebookMarketingValidEnums.md @@ -5,136 +5,146 @@ An enumeration. ## Values -| Name | Value | -| ---------------------------------------------- | ---------------------------------------------- | -| `ACCOUNT_CURRENCY` | account_currency | -| `ACCOUNT_ID` | account_id | -| `ACCOUNT_NAME` | account_name | -| `ACTION_VALUES` | action_values | -| `ACTIONS` | actions | -| `AD_CLICK_ACTIONS` | ad_click_actions | -| `AD_ID` | ad_id | -| `AD_IMPRESSION_ACTIONS` | ad_impression_actions | -| `AD_NAME` | ad_name | -| `ADSET_END` | adset_end | -| `ADSET_ID` | adset_id | -| `ADSET_NAME` | adset_name | -| `AGE_TARGETING` | age_targeting | -| `ATTRIBUTION_SETTING` | attribution_setting | -| `AUCTION_BID` | auction_bid | -| `AUCTION_COMPETITIVENESS` | auction_competitiveness | -| `AUCTION_MAX_COMPETITOR_BID` | auction_max_competitor_bid | -| `BUYING_TYPE` | buying_type | -| `CAMPAIGN_ID` | campaign_id | -| `CAMPAIGN_NAME` | campaign_name | -| `CANVAS_AVG_VIEW_PERCENT` | canvas_avg_view_percent | -| `CANVAS_AVG_VIEW_TIME` | canvas_avg_view_time | -| `CATALOG_SEGMENT_ACTIONS` | catalog_segment_actions | -| `CATALOG_SEGMENT_VALUE` | catalog_segment_value | -| `CATALOG_SEGMENT_VALUE_MOBILE_PURCHASE_ROAS` | catalog_segment_value_mobile_purchase_roas | -| `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_RATE_RANKING` | conversion_rate_ranking | -| `CONVERSION_VALUES` | conversion_values | -| `CONVERSIONS` | conversions | -| `CONVERTED_PRODUCT_QUANTITY` | converted_product_quantity | -| `CONVERTED_PRODUCT_VALUE` | converted_product_value | -| `COST_PER15_SEC_VIDEO_VIEW` | cost_per_15_sec_video_view | -| `COST_PER2_SEC_CONTINUOUS_VIDEO_VIEW` | cost_per_2_sec_continuous_video_view | -| `COST_PER_ACTION_TYPE` | cost_per_action_type | -| `COST_PER_AD_CLICK` | cost_per_ad_click | -| `COST_PER_CONVERSION` | cost_per_conversion | -| `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 | -| `COST_PER_INLINE_POST_ENGAGEMENT` | cost_per_inline_post_engagement | -| `COST_PER_ONE_THOUSAND_AD_IMPRESSION` | cost_per_one_thousand_ad_impression | -| `COST_PER_OUTBOUND_CLICK` | cost_per_outbound_click | -| `COST_PER_THRUPLAY` | cost_per_thruplay | -| `COST_PER_UNIQUE_ACTION_TYPE` | cost_per_unique_action_type | -| `COST_PER_UNIQUE_CLICK` | cost_per_unique_click | -| `COST_PER_UNIQUE_CONVERSION` | cost_per_unique_conversion | -| `COST_PER_UNIQUE_INLINE_LINK_CLICK` | cost_per_unique_inline_link_click | -| `COST_PER_UNIQUE_OUTBOUND_CLICK` | cost_per_unique_outbound_click | -| `CPC` | cpc | -| `CPM` | cpm | -| `CPP` | cpp | -| `CREATED_TIME` | created_time | -| `CREATIVE_MEDIA_TYPE` | creative_media_type | -| `CTR` | ctr | -| `DATE_START` | date_start | -| `DATE_STOP` | date_stop | -| `DDA_COUNTBY_CONVS` | dda_countby_convs | -| `DDA_RESULTS` | dda_results | -| `ENGAGEMENT_RATE_RANKING` | engagement_rate_ranking | -| `ESTIMATED_AD_RECALL_RATE` | estimated_ad_recall_rate | -| `ESTIMATED_AD_RECALL_RATE_LOWER_BOUND` | estimated_ad_recall_rate_lower_bound | -| `ESTIMATED_AD_RECALL_RATE_UPPER_BOUND` | estimated_ad_recall_rate_upper_bound | -| `ESTIMATED_AD_RECALLERS` | estimated_ad_recallers | -| `ESTIMATED_AD_RECALLERS_LOWER_BOUND` | estimated_ad_recallers_lower_bound | -| `ESTIMATED_AD_RECALLERS_UPPER_BOUND` | estimated_ad_recallers_upper_bound | -| `FREQUENCY` | frequency | -| `FULL_VIEW_IMPRESSIONS` | full_view_impressions | -| `FULL_VIEW_REACH` | full_view_reach | -| `GENDER_TARGETING` | gender_targeting | -| `IMPRESSIONS` | impressions | -| `INLINE_LINK_CLICK_CTR` | inline_link_click_ctr | -| `INLINE_LINK_CLICKS` | inline_link_clicks | -| `INLINE_POST_ENGAGEMENT` | inline_post_engagement | -| `INSTAGRAM_UPCOMING_EVENT_REMINDERS_SET` | instagram_upcoming_event_reminders_set | -| `INSTANT_EXPERIENCE_CLICKS_TO_OPEN` | instant_experience_clicks_to_open | -| `INSTANT_EXPERIENCE_CLICKS_TO_START` | instant_experience_clicks_to_start | -| `INSTANT_EXPERIENCE_OUTBOUND_CLICKS` | instant_experience_outbound_clicks | -| `INTERACTIVE_COMPONENT_TAP` | interactive_component_tap | -| `LABELS` | labels | -| `LOCATION` | location | -| `MARKETING_MESSAGES_COST_PER_DELIVERED` | marketing_messages_cost_per_delivered | -| `MARKETING_MESSAGES_COST_PER_LINK_BTN_CLICK` | marketing_messages_cost_per_link_btn_click | -| `MARKETING_MESSAGES_SPEND` | marketing_messages_spend | -| `MOBILE_APP_PURCHASE_ROAS` | mobile_app_purchase_roas | -| `OBJECTIVE` | objective | -| `OPTIMIZATION_GOAL` | optimization_goal | -| `OUTBOUND_CLICKS` | outbound_clicks | -| `OUTBOUND_CLICKS_CTR` | outbound_clicks_ctr | -| `PLACE_PAGE_NAME` | place_page_name | -| `PURCHASE_ROAS` | purchase_roas | -| `QUALIFYING_QUESTION_QUALIFY_ANSWER_RATE` | qualifying_question_qualify_answer_rate | -| `QUALITY_RANKING` | quality_ranking | -| `REACH` | reach | -| `SOCIAL_SPEND` | social_spend | -| `SPEND` | spend | -| `TOTAL_POSTBACKS` | total_postbacks | -| `TOTAL_POSTBACKS_DETAILED` | total_postbacks_detailed | -| `TOTAL_POSTBACKS_DETAILED_V4` | total_postbacks_detailed_v4 | -| `UNIQUE_ACTIONS` | unique_actions | -| `UNIQUE_CLICKS` | unique_clicks | -| `UNIQUE_CONVERSIONS` | unique_conversions | -| `UNIQUE_CTR` | unique_ctr | -| `UNIQUE_INLINE_LINK_CLICK_CTR` | unique_inline_link_click_ctr | -| `UNIQUE_INLINE_LINK_CLICKS` | unique_inline_link_clicks | -| `UNIQUE_LINK_CLICKS_CTR` | unique_link_clicks_ctr | -| `UNIQUE_OUTBOUND_CLICKS` | unique_outbound_clicks | -| `UNIQUE_OUTBOUND_CLICKS_CTR` | unique_outbound_clicks_ctr | -| `UNIQUE_VIDEO_CONTINUOUS2_SEC_WATCHED_ACTIONS` | unique_video_continuous_2_sec_watched_actions | -| `UNIQUE_VIDEO_VIEW15_SEC` | unique_video_view_15_sec | -| `UPDATED_TIME` | updated_time | -| `VIDEO15_SEC_WATCHED_ACTIONS` | video_15_sec_watched_actions | -| `VIDEO30_SEC_WATCHED_ACTIONS` | video_30_sec_watched_actions | -| `VIDEO_AVG_TIME_WATCHED_ACTIONS` | video_avg_time_watched_actions | -| `VIDEO_CONTINUOUS2_SEC_WATCHED_ACTIONS` | video_continuous_2_sec_watched_actions | -| `VIDEO_P100_WATCHED_ACTIONS` | video_p100_watched_actions | -| `VIDEO_P25_WATCHED_ACTIONS` | video_p25_watched_actions | -| `VIDEO_P50_WATCHED_ACTIONS` | video_p50_watched_actions | -| `VIDEO_P75_WATCHED_ACTIONS` | video_p75_watched_actions | -| `VIDEO_P95_WATCHED_ACTIONS` | video_p95_watched_actions | -| `VIDEO_PLAY_ACTIONS` | video_play_actions | -| `VIDEO_PLAY_CURVE_ACTIONS` | video_play_curve_actions | -| `VIDEO_PLAY_RETENTION0_TO15S_ACTIONS` | video_play_retention_0_to_15s_actions | -| `VIDEO_PLAY_RETENTION20_TO60S_ACTIONS` | video_play_retention_20_to_60s_actions | -| `VIDEO_PLAY_RETENTION_GRAPH_ACTIONS` | video_play_retention_graph_actions | -| `VIDEO_THRUPLAY_WATCHED_ACTIONS` | video_thruplay_watched_actions | -| `VIDEO_TIME_WATCHED_ACTIONS` | video_time_watched_actions | -| `WEBSITE_CTR` | website_ctr | -| `WEBSITE_PURCHASE_ROAS` | website_purchase_roas | -| `WISH_BID` | wish_bid | \ No newline at end of file +| Name | Value | +| ------------------------------------------------------- | ------------------------------------------------------- | +| `ACCOUNT_CURRENCY` | account_currency | +| `ACCOUNT_ID` | account_id | +| `ACCOUNT_NAME` | account_name | +| `ACTION_VALUES` | action_values | +| `ACTIONS` | actions | +| `AD_CLICK_ACTIONS` | ad_click_actions | +| `AD_ID` | ad_id | +| `AD_IMPRESSION_ACTIONS` | ad_impression_actions | +| `AD_NAME` | ad_name | +| `ADSET_END` | adset_end | +| `ADSET_ID` | adset_id | +| `ADSET_NAME` | adset_name | +| `AGE_TARGETING` | age_targeting | +| `ATTRIBUTION_SETTING` | attribution_setting | +| `AUCTION_BID` | auction_bid | +| `AUCTION_COMPETITIVENESS` | auction_competitiveness | +| `AUCTION_MAX_COMPETITOR_BID` | auction_max_competitor_bid | +| `AVERAGE_PURCHASES_CONVERSION_VALUE` | average_purchases_conversion_value | +| `BUYING_TYPE` | buying_type | +| `CAMPAIGN_ID` | campaign_id | +| `CAMPAIGN_NAME` | campaign_name | +| `CANVAS_AVG_VIEW_PERCENT` | canvas_avg_view_percent | +| `CANVAS_AVG_VIEW_TIME` | canvas_avg_view_time | +| `CATALOG_SEGMENT_ACTIONS` | catalog_segment_actions | +| `CATALOG_SEGMENT_VALUE` | catalog_segment_value | +| `CATALOG_SEGMENT_VALUE_MOBILE_PURCHASE_ROAS` | catalog_segment_value_mobile_purchase_roas | +| `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_RATE_RANKING` | conversion_rate_ranking | +| `CONVERSION_VALUES` | conversion_values | +| `CONVERSIONS` | conversions | +| `CONVERTED_PRODUCT_QUANTITY` | converted_product_quantity | +| `CONVERTED_PRODUCT_VALUE` | converted_product_value | +| `COST_PER15_SEC_VIDEO_VIEW` | cost_per_15_sec_video_view | +| `COST_PER2_SEC_CONTINUOUS_VIDEO_VIEW` | cost_per_2_sec_continuous_video_view | +| `COST_PER_ACTION_TYPE` | cost_per_action_type | +| `COST_PER_AD_CLICK` | cost_per_ad_click | +| `COST_PER_CONVERSION` | cost_per_conversion | +| `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 | +| `COST_PER_INLINE_POST_ENGAGEMENT` | cost_per_inline_post_engagement | +| `COST_PER_ONE_THOUSAND_AD_IMPRESSION` | cost_per_one_thousand_ad_impression | +| `COST_PER_OUTBOUND_CLICK` | cost_per_outbound_click | +| `COST_PER_THRUPLAY` | cost_per_thruplay | +| `COST_PER_UNIQUE_ACTION_TYPE` | cost_per_unique_action_type | +| `COST_PER_UNIQUE_CLICK` | cost_per_unique_click | +| `COST_PER_UNIQUE_CONVERSION` | cost_per_unique_conversion | +| `COST_PER_UNIQUE_INLINE_LINK_CLICK` | cost_per_unique_inline_link_click | +| `COST_PER_UNIQUE_OUTBOUND_CLICK` | cost_per_unique_outbound_click | +| `CPC` | cpc | +| `CPM` | cpm | +| `CPP` | cpp | +| `CREATED_TIME` | created_time | +| `CREATIVE_MEDIA_TYPE` | creative_media_type | +| `CTR` | ctr | +| `DATE_START` | date_start | +| `DATE_STOP` | date_stop | +| `DDA_COUNTBY_CONVS` | dda_countby_convs | +| `DDA_RESULTS` | dda_results | +| `ENGAGEMENT_RATE_RANKING` | engagement_rate_ranking | +| `ESTIMATED_AD_RECALL_RATE` | estimated_ad_recall_rate | +| `ESTIMATED_AD_RECALL_RATE_LOWER_BOUND` | estimated_ad_recall_rate_lower_bound | +| `ESTIMATED_AD_RECALL_RATE_UPPER_BOUND` | estimated_ad_recall_rate_upper_bound | +| `ESTIMATED_AD_RECALLERS` | estimated_ad_recallers | +| `ESTIMATED_AD_RECALLERS_LOWER_BOUND` | estimated_ad_recallers_lower_bound | +| `ESTIMATED_AD_RECALLERS_UPPER_BOUND` | estimated_ad_recallers_upper_bound | +| `FREQUENCY` | frequency | +| `FULL_VIEW_IMPRESSIONS` | full_view_impressions | +| `FULL_VIEW_REACH` | full_view_reach | +| `GENDER_TARGETING` | gender_targeting | +| `IMPRESSIONS` | impressions | +| `INLINE_LINK_CLICK_CTR` | inline_link_click_ctr | +| `INLINE_LINK_CLICKS` | inline_link_clicks | +| `INLINE_POST_ENGAGEMENT` | inline_post_engagement | +| `INSTAGRAM_UPCOMING_EVENT_REMINDERS_SET` | instagram_upcoming_event_reminders_set | +| `INSTANT_EXPERIENCE_CLICKS_TO_OPEN` | instant_experience_clicks_to_open | +| `INSTANT_EXPERIENCE_CLICKS_TO_START` | instant_experience_clicks_to_start | +| `INSTANT_EXPERIENCE_OUTBOUND_CLICKS` | instant_experience_outbound_clicks | +| `INTERACTIVE_COMPONENT_TAP` | interactive_component_tap | +| `LABELS` | labels | +| `LOCATION` | location | +| `MARKETING_MESSAGES_COST_PER_DELIVERED` | marketing_messages_cost_per_delivered | +| `MARKETING_MESSAGES_COST_PER_LINK_BTN_CLICK` | marketing_messages_cost_per_link_btn_click | +| `MARKETING_MESSAGES_DELIVERY_RATE` | marketing_messages_delivery_rate | +| `MARKETING_MESSAGES_LINK_BTN_CLICK_RATE` | marketing_messages_link_btn_click_rate | +| `MARKETING_MESSAGES_MEDIA_VIEW_RATE` | marketing_messages_media_view_rate | +| `MARKETING_MESSAGES_PHONE_CALL_BTN_CLICK_RATE` | marketing_messages_phone_call_btn_click_rate | +| `MARKETING_MESSAGES_QUICK_REPLY_BTN_CLICK_RATE` | marketing_messages_quick_reply_btn_click_rate | +| `MARKETING_MESSAGES_READ_RATE` | marketing_messages_read_rate | +| `MARKETING_MESSAGES_SPEND` | marketing_messages_spend | +| `MARKETING_MESSAGES_WEBSITE_PURCHASE_VALUES` | marketing_messages_website_purchase_values | +| `MOBILE_APP_PURCHASE_ROAS` | mobile_app_purchase_roas | +| `OBJECTIVE` | objective | +| `ONSITE_CONVERSION_MESSAGING_DETECTED_PURCHASE_DEDUPED` | onsite_conversion_messaging_detected_purchase_deduped | +| `OPTIMIZATION_GOAL` | optimization_goal | +| `OUTBOUND_CLICKS` | outbound_clicks | +| `OUTBOUND_CLICKS_CTR` | outbound_clicks_ctr | +| `PLACE_PAGE_NAME` | place_page_name | +| `PURCHASE_ROAS` | purchase_roas | +| `QUALIFYING_QUESTION_QUALIFY_ANSWER_RATE` | qualifying_question_qualify_answer_rate | +| `QUALITY_RANKING` | quality_ranking | +| `REACH` | reach | +| `SHOPS_ASSISTED_PURCHASES` | shops_assisted_purchases | +| `SOCIAL_SPEND` | social_spend | +| `SPEND` | spend | +| `TOTAL_POSTBACKS` | total_postbacks | +| `TOTAL_POSTBACKS_DETAILED` | total_postbacks_detailed | +| `TOTAL_POSTBACKS_DETAILED_V4` | total_postbacks_detailed_v4 | +| `UNIQUE_ACTIONS` | unique_actions | +| `UNIQUE_CLICKS` | unique_clicks | +| `UNIQUE_CONVERSIONS` | unique_conversions | +| `UNIQUE_CTR` | unique_ctr | +| `UNIQUE_INLINE_LINK_CLICK_CTR` | unique_inline_link_click_ctr | +| `UNIQUE_INLINE_LINK_CLICKS` | unique_inline_link_clicks | +| `UNIQUE_LINK_CLICKS_CTR` | unique_link_clicks_ctr | +| `UNIQUE_OUTBOUND_CLICKS` | unique_outbound_clicks | +| `UNIQUE_OUTBOUND_CLICKS_CTR` | unique_outbound_clicks_ctr | +| `UNIQUE_VIDEO_CONTINUOUS2_SEC_WATCHED_ACTIONS` | unique_video_continuous_2_sec_watched_actions | +| `UNIQUE_VIDEO_VIEW15_SEC` | unique_video_view_15_sec | +| `UPDATED_TIME` | updated_time | +| `VIDEO15_SEC_WATCHED_ACTIONS` | video_15_sec_watched_actions | +| `VIDEO30_SEC_WATCHED_ACTIONS` | video_30_sec_watched_actions | +| `VIDEO_AVG_TIME_WATCHED_ACTIONS` | video_avg_time_watched_actions | +| `VIDEO_CONTINUOUS2_SEC_WATCHED_ACTIONS` | video_continuous_2_sec_watched_actions | +| `VIDEO_P100_WATCHED_ACTIONS` | video_p100_watched_actions | +| `VIDEO_P25_WATCHED_ACTIONS` | video_p25_watched_actions | +| `VIDEO_P50_WATCHED_ACTIONS` | video_p50_watched_actions | +| `VIDEO_P75_WATCHED_ACTIONS` | video_p75_watched_actions | +| `VIDEO_P95_WATCHED_ACTIONS` | video_p95_watched_actions | +| `VIDEO_PLAY_ACTIONS` | video_play_actions | +| `VIDEO_PLAY_CURVE_ACTIONS` | video_play_curve_actions | +| `VIDEO_PLAY_RETENTION0_TO15S_ACTIONS` | video_play_retention_0_to_15s_actions | +| `VIDEO_PLAY_RETENTION20_TO60S_ACTIONS` | video_play_retention_20_to_60s_actions | +| `VIDEO_PLAY_RETENTION_GRAPH_ACTIONS` | video_play_retention_graph_actions | +| `VIDEO_THRUPLAY_WATCHED_ACTIONS` | video_thruplay_watched_actions | +| `VIDEO_TIME_WATCHED_ACTIONS` | video_time_watched_actions | +| `WEBSITE_CTR` | website_ctr | +| `WEBSITE_PURCHASE_ROAS` | website_purchase_roas | +| `WISH_BID` | wish_bid | \ No newline at end of file diff --git a/docs/models/shared/SourceFastbill.md b/docs/models/shared/SourceFastbill.md new file mode 100644 index 000000000..0ff6f305e --- /dev/null +++ b/docs/models/shared/SourceFastbill.md @@ -0,0 +1,10 @@ +# SourceFastbill + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Fastbill API key | +| `sourceType` | [Fastbill](../../models/shared/Fastbill.md) | :heavy_check_mark: | N/A | +| `username` | *String* | :heavy_check_mark: | Username for Fastbill account | \ No newline at end of file diff --git a/docs/models/shared/SourceFaunaDeletionMode.md b/docs/models/shared/SourceFaunaDeletionMode.md index 5bc4eca1d..5218ce79f 100644 --- a/docs/models/shared/SourceFaunaDeletionMode.md +++ b/docs/models/shared/SourceFaunaDeletionMode.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| -------- | -------- | -| `IGNORE` | ignore | \ No newline at end of file +| Name | Value | +| --------------- | --------------- | +| `DELETED_FIELD` | deleted_field | \ No newline at end of file diff --git a/docs/models/shared/SourceFaunaSchemasDeletionMode.md b/docs/models/shared/SourceFaunaSchemasDeletionMode.md index 31fa4e7b9..cd85233bc 100644 --- a/docs/models/shared/SourceFaunaSchemasDeletionMode.md +++ b/docs/models/shared/SourceFaunaSchemasDeletionMode.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| --------------- | --------------- | -| `DELETED_FIELD` | deleted_field | \ No newline at end of file +| Name | Value | +| -------- | -------- | +| `IGNORE` | ignore | \ No newline at end of file diff --git a/docs/models/shared/SourceFullstory.md b/docs/models/shared/SourceFullstory.md new file mode 100644 index 000000000..f61580ec7 --- /dev/null +++ b/docs/models/shared/SourceFullstory.md @@ -0,0 +1,10 @@ +# SourceFullstory + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | API Key for the fullstory.com API. | +| `sourceType` | [Fullstory](../../models/shared/Fullstory.md) | :heavy_check_mark: | N/A | +| `uid` | *String* | :heavy_check_mark: | User ID for the fullstory.com API. | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleDrive.md b/docs/models/shared/SourceGoogleDrive.md index 350060dc7..f6416456c 100644 --- a/docs/models/shared/SourceGoogleDrive.md +++ b/docs/models/shared/SourceGoogleDrive.md @@ -9,6 +9,7 @@ that are needed when users configure a file-based source. | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `credentials` | [SourceGoogleDriveAuthentication](../../models/shared/SourceGoogleDriveAuthentication.md) | :heavy_check_mark: | Credentials for connecting to the Google Drive API | | +| `deliveryMethod` | [Optional\<DeliveryMethod>](../../models/shared/DeliveryMethod.md) | :heavy_minus_sign: | N/A | | | `folderUrl` | *String* | :heavy_check_mark: | URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to only sync a subset of all files located in the folder. | https://drive.google.com/drive/folders/1Xaz0vXXXX2enKnNYU5qSt9NS70gvMyYn | | `sourceType` | [SourceGoogleDriveGoogleDrive](../../models/shared/SourceGoogleDriveGoogleDrive.md) | :heavy_check_mark: | N/A | | | `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. | 2021-01-01T00:00:00.000000Z | diff --git a/docs/models/shared/SourceGoogleDriveDeliveryType.md b/docs/models/shared/SourceGoogleDriveDeliveryType.md new file mode 100644 index 000000000..6a2e029f8 --- /dev/null +++ b/docs/models/shared/SourceGoogleDriveDeliveryType.md @@ -0,0 +1,8 @@ +# SourceGoogleDriveDeliveryType + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `USE_FILE_TRANSFER` | use_file_transfer | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleDriveExcelFormat.md b/docs/models/shared/SourceGoogleDriveExcelFormat.md new file mode 100644 index 000000000..4779ab742 --- /dev/null +++ b/docs/models/shared/SourceGoogleDriveExcelFormat.md @@ -0,0 +1,8 @@ +# SourceGoogleDriveExcelFormat + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| `filetype` | [Optional\<SourceGoogleDriveSchemasStreamsFormatFormat6Filetype>](../../models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleDriveFileBasedStreamConfig.md b/docs/models/shared/SourceGoogleDriveFileBasedStreamConfig.md index 354b5ed45..493b2cf24 100644 --- a/docs/models/shared/SourceGoogleDriveFileBasedStreamConfig.md +++ b/docs/models/shared/SourceGoogleDriveFileBasedStreamConfig.md @@ -10,5 +10,6 @@ | `globs` | List\<*String*> | :heavy_minus_sign: | The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. | | `inputSchema` | *Optional\<String>* | :heavy_minus_sign: | The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. | | `name` | *String* | :heavy_check_mark: | The name of the stream. | +| `recentNFilesToReadForSchemaDiscovery` | *Optional\<Long>* | :heavy_minus_sign: | The number of resent files which will be used to discover the schema for this stream. | | `schemaless` | *Optional\<Boolean>* | :heavy_minus_sign: | When enabled, syncs will not validate or structure records against the stream's schema. | | `validationPolicy` | [Optional\<SourceGoogleDriveValidationPolicy>](../../models/shared/SourceGoogleDriveValidationPolicy.md) | :heavy_minus_sign: | The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleDriveSchemasDeliveryType.md b/docs/models/shared/SourceGoogleDriveSchemasDeliveryType.md new file mode 100644 index 000000000..e82e1b5bb --- /dev/null +++ b/docs/models/shared/SourceGoogleDriveSchemasDeliveryType.md @@ -0,0 +1,8 @@ +# SourceGoogleDriveSchemasDeliveryType + + +## Values + +| Name | Value | +| -------------------------- | -------------------------- | +| `USE_PERMISSIONS_TRANSFER` | use_permissions_transfer | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.md b/docs/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.md new file mode 100644 index 000000000..bebf597a1 --- /dev/null +++ b/docs/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.md @@ -0,0 +1,8 @@ +# SourceGoogleDriveSchemasStreamsFormatFormat6Filetype + + +## Values + +| Name | Value | +| ------- | ------- | +| `EXCEL` | excel | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleDriveDocumentFileTypeFormatExperimental.md b/docs/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.md similarity index 99% rename from docs/models/shared/SourceGoogleDriveDocumentFileTypeFormatExperimental.md rename to docs/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.md index 896311092..42d6428c7 100644 --- a/docs/models/shared/SourceGoogleDriveDocumentFileTypeFormatExperimental.md +++ b/docs/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.md @@ -1,4 +1,4 @@ -# SourceGoogleDriveDocumentFileTypeFormatExperimental +# SourceGoogleDriveUnstructuredDocumentFormat Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. diff --git a/docs/models/shared/SourceGoogleSheets.md b/docs/models/shared/SourceGoogleSheets.md index 784351b81..61d1897f1 100644 --- a/docs/models/shared/SourceGoogleSheets.md +++ b/docs/models/shared/SourceGoogleSheets.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `batchSize` | *Optional\<Long>* | :heavy_minus_sign: | Default value is 200. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 200 would process rows 1-201, then 201-401 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. Default value should cover most of the cases, but if a google sheet has over 100,000 records or more, consider increasing batch_size value. | | -| `credentials` | [SourceGoogleSheetsAuthentication](../../models/shared/SourceGoogleSheetsAuthentication.md) | :heavy_check_mark: | Credentials for connecting to the Google Sheets API | | -| `namesConversion` | *Optional\<Boolean>* | :heavy_minus_sign: | Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. | | -| `sourceType` | [SourceGoogleSheetsGoogleSheets](../../models/shared/SourceGoogleSheetsGoogleSheets.md) | :heavy_check_mark: | N/A | | -| `spreadsheetId` | *String* | :heavy_check_mark: | Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'. | https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `batchSize` | *Optional\<Long>* | :heavy_minus_sign: | Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. | | +| `credentials` | [SourceGoogleSheetsAuthentication](../../models/shared/SourceGoogleSheetsAuthentication.md) | :heavy_check_mark: | Credentials for connecting to the Google Sheets API | | +| `namesConversion` | *Optional\<Boolean>* | :heavy_minus_sign: | Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. | | +| `sourceType` | [SourceGoogleSheetsGoogleSheets](../../models/shared/SourceGoogleSheetsGoogleSheets.md) | :heavy_check_mark: | N/A | | +| `spreadsheetId` | *String* | :heavy_check_mark: | Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'. | https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit | \ No newline at end of file diff --git a/docs/models/shared/SourceGreythr.md b/docs/models/shared/SourceGreythr.md new file mode 100644 index 000000000..8bedc3040 --- /dev/null +++ b/docs/models/shared/SourceGreythr.md @@ -0,0 +1,12 @@ +# SourceGreythr + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `baseUrl` | *String* | :heavy_check_mark: | https://api.greythr.com | +| `domain` | *String* | :heavy_check_mark: | Your GreytHR Host URL | +| `password` | *Optional\<String>* | :heavy_minus_sign: | N/A | +| `sourceType` | [Greythr](../../models/shared/Greythr.md) | :heavy_check_mark: | N/A | +| `username` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceHellobaton.md b/docs/models/shared/SourceHellobaton.md new file mode 100644 index 000000000..2639af5db --- /dev/null +++ b/docs/models/shared/SourceHellobaton.md @@ -0,0 +1,10 @@ +# SourceHellobaton + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | authentication key required to access the api endpoints | | +| `company` | *String* | :heavy_check_mark: | Company name that generates your base api url | google | +| `sourceType` | [Hellobaton](../../models/shared/Hellobaton.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceHelpScout.md b/docs/models/shared/SourceHelpScout.md new file mode 100644 index 000000000..46c2bd88f --- /dev/null +++ b/docs/models/shared/SourceHelpScout.md @@ -0,0 +1,11 @@ +# SourceHelpScout + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `clientId` | *String* | :heavy_check_mark: | N/A | +| `clientSecret` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [HelpScout](../../models/shared/HelpScout.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceHoorayhr.md b/docs/models/shared/SourceHoorayhr.md new file mode 100644 index 000000000..1fc5aaed8 --- /dev/null +++ b/docs/models/shared/SourceHoorayhr.md @@ -0,0 +1,10 @@ +# SourceHoorayhr + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `hoorayhrpassword` | *String* | :heavy_check_mark: | N/A | +| `hoorayhrusername` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [Hoorayhr](../../models/shared/Hoorayhr.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceHuggingFaceDatasets.md b/docs/models/shared/SourceHuggingFaceDatasets.md new file mode 100644 index 000000000..48ab0bb6e --- /dev/null +++ b/docs/models/shared/SourceHuggingFaceDatasets.md @@ -0,0 +1,11 @@ +# SourceHuggingFaceDatasets + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `datasetName` | *String* | :heavy_check_mark: | N/A | +| `datasetSplits` | List\<*Object*> | :heavy_minus_sign: | Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) | +| `datasetSubsets` | List\<*Object*> | :heavy_minus_sign: | Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) | +| `sourceType` | [HuggingFaceDatasets](../../models/shared/HuggingFaceDatasets.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceHuntr.md b/docs/models/shared/SourceHuntr.md new file mode 100644 index 000000000..b891db65b --- /dev/null +++ b/docs/models/shared/SourceHuntr.md @@ -0,0 +1,9 @@ +# SourceHuntr + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [Huntr](../../models/shared/Huntr.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceInstagram.md b/docs/models/shared/SourceInstagram.md index 0413260dc..20d413b9c 100644 --- a/docs/models/shared/SourceInstagram.md +++ b/docs/models/shared/SourceInstagram.md @@ -6,5 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `accessToken` | *String* | :heavy_check_mark: | The value of the access token generated with <b>instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access</b> permissions. See the <a href="https://docs.airbyte.com/integrations/sources/instagram/#step-1-set-up-instagram">docs</a> for more information | | +| `clientId` | *Optional\<String>* | :heavy_minus_sign: | The Client ID for your Oauth application | | +| `clientSecret` | *Optional\<String>* | :heavy_minus_sign: | The Client Secret for your Oauth application | | | `sourceType` | [SourceInstagramInstagram](../../models/shared/SourceInstagramInstagram.md) | :heavy_check_mark: | N/A | | | `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 User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. | 2017-01-25T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceIntercom.md b/docs/models/shared/SourceIntercom.md index 9f85f2c85..f9c4e3a37 100644 --- a/docs/models/shared/SourceIntercom.md +++ b/docs/models/shared/SourceIntercom.md @@ -10,5 +10,5 @@ | `clientId` | *Optional\<String>* | :heavy_minus_sign: | Client Id for your Intercom application. | | | `clientSecret` | *Optional\<String>* | :heavy_minus_sign: | Client Secret for your Intercom application. | | | `lookbackWindow` | *Optional\<Long>* | :heavy_minus_sign: | The number of days to shift the state value backward for record sync | 60 | -| `sourceType` | [SourceIntercomIntercom](../../models/shared/SourceIntercomIntercom.md) | :heavy_check_mark: | N/A | | +| `sourceType` | [Intercom](../../models/shared/Intercom.md) | :heavy_check_mark: | N/A | | | `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. | 2020-11-16T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceIntruder.md b/docs/models/shared/SourceIntruder.md new file mode 100644 index 000000000..9ac0feb58 --- /dev/null +++ b/docs/models/shared/SourceIntruder.md @@ -0,0 +1,9 @@ +# SourceIntruder + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `accessToken` | *String* | :heavy_check_mark: | Your API Access token. See <a href="https://developers.intruder.io/docs/authentication">here</a>. | +| `sourceType` | [Intruder](../../models/shared/Intruder.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceJotformApiEndpoint.md b/docs/models/shared/SourceJotformApiEndpoint.md index aadd16cf0..a5bc5b7b7 100644 --- a/docs/models/shared/SourceJotformApiEndpoint.md +++ b/docs/models/shared/SourceJotformApiEndpoint.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------- | ------- | -| `BASIC` | basic | \ No newline at end of file +| Name | Value | +| ------------ | ------------ | +| `ENTERPRISE` | enterprise | \ No newline at end of file diff --git a/docs/models/shared/SourceJotformSchemasApiEndpoint.md b/docs/models/shared/SourceJotformSchemasApiEndpoint.md index 4f2ecb142..bd8667fc9 100644 --- a/docs/models/shared/SourceJotformSchemasApiEndpoint.md +++ b/docs/models/shared/SourceJotformSchemasApiEndpoint.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------ | ------------ | -| `ENTERPRISE` | enterprise | \ No newline at end of file +| Name | Value | +| ------- | ------- | +| `BASIC` | basic | \ No newline at end of file diff --git a/docs/models/shared/SourceKeka.md b/docs/models/shared/SourceKeka.md new file mode 100644 index 000000000..75db400b1 --- /dev/null +++ b/docs/models/shared/SourceKeka.md @@ -0,0 +1,13 @@ +# SourceKeka + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `clientId` | *String* | :heavy_check_mark: | Your client identifier for authentication. | +| `clientSecret` | *String* | :heavy_check_mark: | Your client secret for secure authentication. | +| `grantType` | *String* | :heavy_check_mark: | N/A | +| `scope` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [Keka](../../models/shared/Keka.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceKlaviyo.md b/docs/models/shared/SourceKlaviyo.md index a61537e95..e32cc6fe0 100644 --- a/docs/models/shared/SourceKlaviyo.md +++ b/docs/models/shared/SourceKlaviyo.md @@ -7,6 +7,6 @@ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `apiKey` | *String* | :heavy_check_mark: | Klaviyo API Key. See our <a href="https://docs.airbyte.com/integrations/sources/klaviyo">docs</a> if you need help finding this key. | | | `disableFetchingPredictiveAnalytics` | *Optional\<Boolean>* | :heavy_minus_sign: | Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. | | -| `numWorkers` | *Optional\<Long>* | :heavy_minus_sign: | The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. | 1 | +| `numWorkers` | *Optional\<Long>* | :heavy_minus_sign: | The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. | 1 | | `sourceType` | [Klaviyo](../../models/shared/Klaviyo.md) | :heavy_check_mark: | N/A | | | `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This field is optional - if not provided, all data will be replicated. | 2017-01-25T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceOrbit.md b/docs/models/shared/SourceMailersend.md similarity index 51% rename from docs/models/shared/SourceOrbit.md rename to docs/models/shared/SourceMailersend.md index c16eae5d8..ebc2d6e43 100644 --- a/docs/models/shared/SourceOrbit.md +++ b/docs/models/shared/SourceMailersend.md @@ -1,11 +1,11 @@ -# SourceOrbit +# SourceMailersend ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `apiToken` | *String* | :heavy_check_mark: | Authorizes you to work with Orbit workspaces associated with the token. | -| `sourceType` | [Orbit](../../models/shared/Orbit.md) | :heavy_check_mark: | N/A | -| `startDate` | *Optional\<String>* | :heavy_minus_sign: | Date in the format 2022-06-26. Only load members whose last activities are after this date. | -| `workspace` | *String* | :heavy_check_mark: | The unique name of the workspace that your API token is associated with. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `apiToken` | *String* | :heavy_check_mark: | Your API Token. See <a href="https://www.mailersend.com/help/managing-api-tokens">here</a>. | | +| `domainId` | *String* | :heavy_check_mark: | The domain entity in mailersend | airbyte.com | +| `sourceType` | [Mailersend](../../models/shared/Mailersend.md) | :heavy_check_mark: | N/A | | +| `startDate` | *Optional\<Double>* | :heavy_minus_sign: | Timestamp is assumed to be UTC. | 123131321 | \ No newline at end of file diff --git a/docs/models/shared/SourceMerge.md b/docs/models/shared/SourceMerge.md new file mode 100644 index 000000000..18eeafa07 --- /dev/null +++ b/docs/models/shared/SourceMerge.md @@ -0,0 +1,11 @@ +# SourceMerge + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accountToken` | *String* | :heavy_check_mark: | Link your other integrations with account credentials on accounts section to get account token (ref - https://app.merge.dev/linked-accounts/accounts) | | +| `apiToken` | *String* | :heavy_check_mark: | API token can be seen at https://app.merge.dev/keys | | +| `sourceType` | [Merge](../../models/shared/Merge.md) | :heavy_check_mark: | N/A | | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | Date time filter for incremental filter, Specify which date to extract from. | 2022-03-01T00:00:00.000Z | \ No newline at end of file diff --git a/docs/models/shared/SourceMicrosoftSharepoint.md b/docs/models/shared/SourceMicrosoftSharepoint.md index 2121b0d88..6bd85039e 100644 --- a/docs/models/shared/SourceMicrosoftSharepoint.md +++ b/docs/models/shared/SourceMicrosoftSharepoint.md @@ -9,6 +9,7 @@ This class combines the authentication details with additional configuration for | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `credentials` | [SourceMicrosoftSharepointAuthentication](../../models/shared/SourceMicrosoftSharepointAuthentication.md) | :heavy_check_mark: | Credentials for connecting to the One Drive API | | +| `deliveryMethod` | [Optional\<SourceMicrosoftSharepointDeliveryMethod>](../../models/shared/SourceMicrosoftSharepointDeliveryMethod.md) | :heavy_minus_sign: | N/A | | | `folderPath` | *Optional\<String>* | :heavy_minus_sign: | Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. | | | `searchScope` | [Optional\<SourceMicrosoftSharepointSearchScope>](../../models/shared/SourceMicrosoftSharepointSearchScope.md) | :heavy_minus_sign: | Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. | | | `sourceType` | [SourceMicrosoftSharepointMicrosoftSharepoint](../../models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.md) | :heavy_check_mark: | N/A | | diff --git a/docs/models/shared/SourceMicrosoftSharepointCopyRawFiles.md b/docs/models/shared/SourceMicrosoftSharepointCopyRawFiles.md new file mode 100644 index 000000000..a6744cc54 --- /dev/null +++ b/docs/models/shared/SourceMicrosoftSharepointCopyRawFiles.md @@ -0,0 +1,11 @@ +# SourceMicrosoftSharepointCopyRawFiles + +Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `deliveryType` | [Optional\<SourceMicrosoftSharepointSchemasDeliveryType>](../../models/shared/SourceMicrosoftSharepointSchemasDeliveryType.md) | :heavy_minus_sign: | N/A | +| `preserveDirectoryStructure` | *Optional\<Boolean>* | :heavy_minus_sign: | If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. | \ No newline at end of file diff --git a/docs/models/shared/SourceMicrosoftSharepointDeliveryMethod.md b/docs/models/shared/SourceMicrosoftSharepointDeliveryMethod.md new file mode 100644 index 000000000..e9e6d9c29 --- /dev/null +++ b/docs/models/shared/SourceMicrosoftSharepointDeliveryMethod.md @@ -0,0 +1,2 @@ +# SourceMicrosoftSharepointDeliveryMethod + diff --git a/docs/models/shared/SourceMicrosoftSharepointDeliveryType.md b/docs/models/shared/SourceMicrosoftSharepointDeliveryType.md new file mode 100644 index 000000000..701dfdfa6 --- /dev/null +++ b/docs/models/shared/SourceMicrosoftSharepointDeliveryType.md @@ -0,0 +1,8 @@ +# SourceMicrosoftSharepointDeliveryType + + +## Values + +| Name | Value | +| ---------------------- | ---------------------- | +| `USE_RECORDS_TRANSFER` | use_records_transfer | \ No newline at end of file diff --git a/docs/models/shared/SourceMicrosoftSharepointReplicateRecords.md b/docs/models/shared/SourceMicrosoftSharepointReplicateRecords.md new file mode 100644 index 000000000..00e8e96e2 --- /dev/null +++ b/docs/models/shared/SourceMicrosoftSharepointReplicateRecords.md @@ -0,0 +1,10 @@ +# SourceMicrosoftSharepointReplicateRecords + +Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `deliveryType` | [Optional\<SourceMicrosoftSharepointDeliveryType>](../../models/shared/SourceMicrosoftSharepointDeliveryType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.md b/docs/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.md new file mode 100644 index 000000000..5a77f748f --- /dev/null +++ b/docs/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.md @@ -0,0 +1,8 @@ +# SourceMicrosoftSharepointSchemasDeliveryType + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `USE_FILE_TRANSFER` | use_file_transfer | \ No newline at end of file diff --git a/docs/models/shared/SourceMode.md b/docs/models/shared/SourceMode.md index 918718561..bcc0b9464 100644 --- a/docs/models/shared/SourceMode.md +++ b/docs/models/shared/SourceMode.md @@ -7,5 +7,5 @@ | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | | `apiSecret` | *String* | :heavy_check_mark: | API secret to use as the password for Basic Authentication. | | `apiToken` | *String* | :heavy_check_mark: | API token to use as the username for Basic Authentication. | -| `sourceType` | [Mode](../../models/shared/Mode.md) | :heavy_check_mark: | N/A | +| `sourceType` | [SourceModeMode](../../models/shared/SourceModeMode.md) | :heavy_check_mark: | N/A | | `workspace` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceModeMode.md b/docs/models/shared/SourceModeMode.md new file mode 100644 index 000000000..27c849653 --- /dev/null +++ b/docs/models/shared/SourceModeMode.md @@ -0,0 +1,8 @@ +# SourceModeMode + + +## Values + +| Name | Value | +| ------ | ------ | +| `MODE` | mode | \ No newline at end of file diff --git a/docs/models/shared/SourceMongodbV2ClusterType.md b/docs/models/shared/SourceMongodbV2ClusterType.md index 66253f7e9..528b24ef6 100644 --- a/docs/models/shared/SourceMongodbV2ClusterType.md +++ b/docs/models/shared/SourceMongodbV2ClusterType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------- | ------------------- | -| `ATLAS_REPLICA_SET` | ATLAS_REPLICA_SET | \ No newline at end of file +| Name | Value | +| -------------------------- | -------------------------- | +| `SELF_MANAGED_REPLICA_SET` | SELF_MANAGED_REPLICA_SET | \ No newline at end of file diff --git a/docs/models/shared/SourceMongodbV2SchemasClusterType.md b/docs/models/shared/SourceMongodbV2SchemasClusterType.md index 91180351f..0777b1430 100644 --- a/docs/models/shared/SourceMongodbV2SchemasClusterType.md +++ b/docs/models/shared/SourceMongodbV2SchemasClusterType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| -------------------------- | -------------------------- | -| `SELF_MANAGED_REPLICA_SET` | SELF_MANAGED_REPLICA_SET | \ No newline at end of file +| Name | Value | +| ------------------- | ------------------- | +| `ATLAS_REPLICA_SET` | ATLAS_REPLICA_SET | \ No newline at end of file diff --git a/docs/models/shared/SourceMssqlEncryptedTrustServerCertificate.md b/docs/models/shared/SourceMssqlEncryptedTrustServerCertificate.md index 64a35ff1f..9a32c68e3 100644 --- a/docs/models/shared/SourceMssqlEncryptedTrustServerCertificate.md +++ b/docs/models/shared/SourceMssqlEncryptedTrustServerCertificate.md @@ -5,6 +5,6 @@ Use the certificate provided by the server without verification. (For testing pu ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `sslMethod` | [SourceMssqlSchemasSslMethodSslMethod](../../models/shared/SourceMssqlSchemasSslMethodSslMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `sslMethod` | [SourceMssqlSchemasSslMethod](../../models/shared/SourceMssqlSchemasSslMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceMssqlEncryptedVerifyCertificate.md b/docs/models/shared/SourceMssqlEncryptedVerifyCertificate.md index 714412817..51e61dbbb 100644 --- a/docs/models/shared/SourceMssqlEncryptedVerifyCertificate.md +++ b/docs/models/shared/SourceMssqlEncryptedVerifyCertificate.md @@ -9,4 +9,4 @@ Verify and use the certificate provided by the server. | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | | `certificate` | *Optional\<String>* | :heavy_minus_sign: | certificate of the server, or of the CA that signed the server certificate | | `hostNameInCertificate` | *Optional\<String>* | :heavy_minus_sign: | Specifies the host name of the server. The value of this property must match the subject property of the certificate. | -| `sslMethod` | [SourceMssqlSchemasSSLMethodSSLMethodSSLMethod](../../models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `sslMethod` | [SourceMssqlSchemasSslMethodSslMethod](../../models/shared/SourceMssqlSchemasSslMethodSslMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.md b/docs/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.md index b97ea2874..a979631be 100644 --- a/docs/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.md +++ b/docs/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------------------ | ------------------------------ | -| `ENCRYPTED_VERIFY_CERTIFICATE` | encrypted_verify_certificate | \ No newline at end of file +| Name | Value | +| ------------- | ------------- | +| `UNENCRYPTED` | unencrypted | \ No newline at end of file diff --git a/docs/models/shared/SourceMssqlSchemasSslMethod.md b/docs/models/shared/SourceMssqlSchemasSslMethod.md index 7ee95623e..679c130ed 100644 --- a/docs/models/shared/SourceMssqlSchemasSslMethod.md +++ b/docs/models/shared/SourceMssqlSchemasSslMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------- | ------------- | -| `UNENCRYPTED` | unencrypted | \ No newline at end of file +| Name | Value | +| ------------------------------------ | ------------------------------------ | +| `ENCRYPTED_TRUST_SERVER_CERTIFICATE` | encrypted_trust_server_certificate | \ No newline at end of file diff --git a/docs/models/shared/SourceMssqlSchemasSslMethodSslMethod.md b/docs/models/shared/SourceMssqlSchemasSslMethodSslMethod.md index 10138e1f2..8f8988fad 100644 --- a/docs/models/shared/SourceMssqlSchemasSslMethodSslMethod.md +++ b/docs/models/shared/SourceMssqlSchemasSslMethodSslMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------------------------ | ------------------------------------ | -| `ENCRYPTED_TRUST_SERVER_CERTIFICATE` | encrypted_trust_server_certificate | \ No newline at end of file +| Name | Value | +| ------------------------------ | ------------------------------ | +| `ENCRYPTED_VERIFY_CERTIFICATE` | encrypted_verify_certificate | \ No newline at end of file diff --git a/docs/models/shared/SourceMssqlUnencrypted.md b/docs/models/shared/SourceMssqlUnencrypted.md index 7355d41e7..ab53ec39c 100644 --- a/docs/models/shared/SourceMssqlUnencrypted.md +++ b/docs/models/shared/SourceMssqlUnencrypted.md @@ -5,6 +5,6 @@ Data transfer will not be encrypted. ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `sslMethod` | [SourceMssqlSchemasSslMethod](../../models/shared/SourceMssqlSchemasSslMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `sslMethod` | [SourceMssqlSchemasSSLMethodSSLMethodSSLMethod](../../models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceMysql.md b/docs/models/shared/SourceMysql.md index f7c5f0b86..5338421e6 100644 --- a/docs/models/shared/SourceMysql.md +++ b/docs/models/shared/SourceMysql.md @@ -3,16 +3,18 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `database` | *String* | :heavy_check_mark: | The database name. | | -| `host` | *String* | :heavy_check_mark: | The host name of the database. | | -| `jdbcUrlParams` | *Optional\<String>* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). For more information read about <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html">JDBC URL parameters</a>. | | -| `password` | *Optional\<String>* | :heavy_minus_sign: | The password associated with the username. | | -| `port` | *Optional\<Long>* | :heavy_minus_sign: | The port to connect to. | 3306 | -| `replicationMethod` | [SourceMysqlUpdateMethod](../../models/shared/SourceMysqlUpdateMethod.md) | :heavy_check_mark: | Configures how data is extracted from the database. | | -| `sourceType` | [SourceMysqlMysql](../../models/shared/SourceMysqlMysql.md) | :heavy_check_mark: | N/A | | -| `ssl` | *Optional\<Boolean>* | :heavy_minus_sign: | Encrypt data using SSL. | | -| `sslMode` | [Optional\<SourceMysqlSSLModes>](../../models/shared/SourceMysqlSSLModes.md) | :heavy_minus_sign: | SSL connection modes. Read more <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html"> in the docs</a>. | | -| `tunnelMethod` | [Optional\<SourceMysqlSSHTunnelMethod>](../../models/shared/SourceMysqlSSHTunnelMethod.md) | :heavy_minus_sign: | Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. | | -| `username` | *String* | :heavy_check_mark: | The username which is used to access the database. | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `checkPrivileges` | *Optional\<Boolean>* | :heavy_minus_sign: | When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. | +| `checkpointTargetIntervalSeconds` | *Optional\<Long>* | :heavy_minus_sign: | How often (in seconds) a stream should checkpoint, when possible. | +| `concurrency` | *Optional\<Long>* | :heavy_minus_sign: | Maximum number of concurrent queries to the database. | +| `database` | *String* | :heavy_check_mark: | The database name. | +| `host` | *String* | :heavy_check_mark: | Hostname of the database. | +| `jdbcUrlParams` | *Optional\<String>* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). | +| `password` | *Optional\<String>* | :heavy_minus_sign: | The password associated with the username. | +| `port` | *Optional\<Long>* | :heavy_minus_sign: | Port of the database. | +| `replicationMethod` | [SourceMysqlUpdateMethod](../../models/shared/SourceMysqlUpdateMethod.md) | :heavy_check_mark: | Configures how data is extracted from the database. | +| `sourceType` | [SourceMysqlMysql](../../models/shared/SourceMysqlMysql.md) | :heavy_check_mark: | N/A | +| `sslMode` | [Optional\<SourceMysqlEncryption>](../../models/shared/SourceMysqlEncryption.md) | :heavy_minus_sign: | The encryption method with is used when communicating with the database. | +| `tunnelMethod` | [Optional\<SourceMysqlSSHTunnelMethod>](../../models/shared/SourceMysqlSSHTunnelMethod.md) | :heavy_minus_sign: | Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. | +| `username` | *String* | :heavy_check_mark: | The username which is used to access the database. | \ No newline at end of file diff --git a/docs/models/shared/SourceMysqlEncryption.md b/docs/models/shared/SourceMysqlEncryption.md new file mode 100644 index 000000000..bb340e8a9 --- /dev/null +++ b/docs/models/shared/SourceMysqlEncryption.md @@ -0,0 +1,4 @@ +# SourceMysqlEncryption + +The encryption method with is used when communicating with the database. + diff --git a/docs/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.md b/docs/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.md index 5baf754b5..5f5f3a9d3 100644 --- a/docs/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.md +++ b/docs/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.md @@ -1,6 +1,6 @@ # SourceMysqlInvalidCDCPositionBehaviorAdvanced -Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. +Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. ## Values diff --git a/docs/models/shared/SourceMysqlMethod.md b/docs/models/shared/SourceMysqlMethod.md index 73f95f02c..8d9a4b564 100644 --- a/docs/models/shared/SourceMysqlMethod.md +++ b/docs/models/shared/SourceMysqlMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ----- | ----- | -| `CDC` | CDC | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `STANDARD` | STANDARD | \ No newline at end of file diff --git a/docs/models/shared/SourceMysqlNoTunnel.md b/docs/models/shared/SourceMysqlNoTunnel.md index 550e1c001..383d566b9 100644 --- a/docs/models/shared/SourceMysqlNoTunnel.md +++ b/docs/models/shared/SourceMysqlNoTunnel.md @@ -1,8 +1,11 @@ # SourceMysqlNoTunnel +No ssh tunnel needed to connect to database + ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `tunnelMethod` | [SourceMysqlTunnelMethod](../../models/shared/SourceMysqlTunnelMethod.md) | :heavy_check_mark: | No ssh tunnel needed to connect to database | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `tunnelMethod` | [Optional\<SourceMysqlTunnelMethod>](../../models/shared/SourceMysqlTunnelMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceMysqlPasswordAuthentication.md b/docs/models/shared/SourceMysqlPasswordAuthentication.md index b86915a86..82fe360a4 100644 --- a/docs/models/shared/SourceMysqlPasswordAuthentication.md +++ b/docs/models/shared/SourceMysqlPasswordAuthentication.md @@ -1,12 +1,15 @@ # SourceMysqlPasswordAuthentication +Connect through a jump server tunnel host using username and password authentication + ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | | -| `tunnelMethod` | [SourceMysqlSchemasTunnelMethodTunnelMethod](../../models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.md) | :heavy_check_mark: | Connect through a jump server tunnel host using username and password authentication | | -| `tunnelPort` | *Optional\<Long>* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | 22 | -| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host | | -| `tunnelUserPassword` | *String* | :heavy_check_mark: | OS-level password for logging into the jump server host | | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | +| `tunnelMethod` | [Optional\<SourceMysqlSchemasTunnelMethodTunnelMethod>](../../models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.md) | :heavy_minus_sign: | N/A | +| `tunnelPort` | *Optional\<Long>* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | +| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host | +| `tunnelUserPassword` | *String* | :heavy_check_mark: | OS-level password for logging into the jump server host | \ No newline at end of file diff --git a/docs/models/shared/ReadChangesUsingBinaryLogCDC.md b/docs/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.md similarity index 69% rename from docs/models/shared/ReadChangesUsingBinaryLogCDC.md rename to docs/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.md index a758011b4..a5d4a7b9d 100644 --- a/docs/models/shared/ReadChangesUsingBinaryLogCDC.md +++ b/docs/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.md @@ -1,14 +1,14 @@ -# ReadChangesUsingBinaryLogCDC +# SourceMysqlReadChangesUsingChangeDataCaptureCDC -<i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using the MySQL <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">binary log</a>. This must be enabled on your database. +<i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using MySQL's <a href="https://docs.airbyte.com/integrations/sources/mssql/#change-data-capture-cdc"> change data capture feature</a>. This must be enabled on your database. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `initialLoadTimeoutHours` | *Optional\<Long>* | :heavy_minus_sign: | The amount of time an initial load is allowed to continue for before catching up on CDC logs. | -| `initialWaitingSeconds` | *Optional\<Long>* | :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 <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. | -| `invalidCdcCursorPositionBehavior` | [Optional\<SourceMysqlInvalidCDCPositionBehaviorAdvanced>](../../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` | [SourceMysqlMethod](../../models/shared/SourceMysqlMethod.md) | :heavy_check_mark: | N/A | -| `serverTimeZone` | *Optional\<String>* | :heavy_minus_sign: | Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `initialLoadTimeoutHours` | *Optional\<Long>* | :heavy_minus_sign: | The amount of time an initial load is allowed to continue for before catching up on CDC logs. | +| `invalidCdcCursorPositionBehavior` | [Optional\<SourceMysqlInvalidCDCPositionBehaviorAdvanced>](../../models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.md) | :heavy_minus_sign: | Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. | +| `method` | [Optional\<SourceMysqlSchemasMethod>](../../models/shared/SourceMysqlSchemasMethod.md) | :heavy_minus_sign: | N/A | +| `serverTimezone` | *Optional\<String>* | :heavy_minus_sign: | Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. | \ No newline at end of file diff --git a/docs/models/shared/SourceMysqlSSHKeyAuthentication.md b/docs/models/shared/SourceMysqlSSHKeyAuthentication.md index 2427f8fec..85fc0e6db 100644 --- a/docs/models/shared/SourceMysqlSSHKeyAuthentication.md +++ b/docs/models/shared/SourceMysqlSSHKeyAuthentication.md @@ -1,12 +1,15 @@ # SourceMysqlSSHKeyAuthentication +Connect through a jump server tunnel host using username and ssh key + ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `sshKey` | *String* | :heavy_check_mark: | OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) | | -| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | | -| `tunnelMethod` | [SourceMysqlSchemasTunnelMethod](../../models/shared/SourceMysqlSchemasTunnelMethod.md) | :heavy_check_mark: | Connect through a jump server tunnel host using username and ssh key | | -| `tunnelPort` | *Optional\<Long>* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | 22 | -| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host. | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `sshKey` | *String* | :heavy_check_mark: | OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) | +| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | +| `tunnelMethod` | [Optional\<SourceMysqlSchemasTunnelMethod>](../../models/shared/SourceMysqlSchemasTunnelMethod.md) | :heavy_minus_sign: | N/A | +| `tunnelPort` | *Optional\<Long>* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | +| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host | \ No newline at end of file diff --git a/docs/models/shared/SourceMysqlSSLModes.md b/docs/models/shared/SourceMysqlSSLModes.md deleted file mode 100644 index 5bdb08916..000000000 --- a/docs/models/shared/SourceMysqlSSLModes.md +++ /dev/null @@ -1,4 +0,0 @@ -# SourceMysqlSSLModes - -SSL connection modes. Read more <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html"> in the docs</a>. - diff --git a/docs/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.md b/docs/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.md index 158fc89b4..7efa0fcaf 100644 --- a/docs/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.md +++ b/docs/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.md @@ -5,6 +5,7 @@ Incrementally detects new inserts and updates using the <a href="https://docs.ai ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `method` | [SourceMysqlSchemasMethod](../../models/shared/SourceMysqlSchemasMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `method` | [Optional\<SourceMysqlMethod>](../../models/shared/SourceMysqlMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceMysqlSchemasMethod.md b/docs/models/shared/SourceMysqlSchemasMethod.md index 53b3f888b..24d5764c1 100644 --- a/docs/models/shared/SourceMysqlSchemasMethod.md +++ b/docs/models/shared/SourceMysqlSchemasMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ---------- | ---------- | -| `STANDARD` | STANDARD | \ No newline at end of file +| Name | Value | +| ----- | ----- | +| `CDC` | CDC | \ No newline at end of file diff --git a/docs/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.md b/docs/models/shared/SourceMysqlSchemasSslModeEncryptionMode.md similarity index 76% rename from docs/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.md rename to docs/models/shared/SourceMysqlSchemasSslModeEncryptionMode.md index 58f4ed8b6..f67a57d8c 100644 --- a/docs/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.md +++ b/docs/models/shared/SourceMysqlSchemasSslModeEncryptionMode.md @@ -1,4 +1,4 @@ -# SourceMysqlSchemasSSLModeSSLModesMode +# SourceMysqlSchemasSslModeEncryptionMode ## Values diff --git a/docs/models/shared/SourceMysqlSchemasTunnelMethod.md b/docs/models/shared/SourceMysqlSchemasTunnelMethod.md index 01853faf8..4665167a3 100644 --- a/docs/models/shared/SourceMysqlSchemasTunnelMethod.md +++ b/docs/models/shared/SourceMysqlSchemasTunnelMethod.md @@ -1,7 +1,5 @@ # SourceMysqlSchemasTunnelMethod -Connect through a jump server tunnel host using username and ssh key - ## Values diff --git a/docs/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.md b/docs/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.md index 8bf77cf6b..59788b621 100644 --- a/docs/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.md +++ b/docs/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.md @@ -1,7 +1,5 @@ # SourceMysqlSchemasTunnelMethodTunnelMethod -Connect through a jump server tunnel host using username and password authentication - ## Values diff --git a/docs/models/shared/SourceMysqlTunnelMethod.md b/docs/models/shared/SourceMysqlTunnelMethod.md index f6e3060e6..6bc59081d 100644 --- a/docs/models/shared/SourceMysqlTunnelMethod.md +++ b/docs/models/shared/SourceMysqlTunnelMethod.md @@ -1,7 +1,5 @@ # SourceMysqlTunnelMethod -No ssh tunnel needed to connect to database - ## Values diff --git a/docs/models/shared/SourceMysqlVerifyCa.md b/docs/models/shared/SourceMysqlVerifyCa.md new file mode 100644 index 000000000..3703a69f3 --- /dev/null +++ b/docs/models/shared/SourceMysqlVerifyCa.md @@ -0,0 +1,15 @@ +# SourceMysqlVerifyCa + +To always require encryption and verify that the source has a valid SSL certificate. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `caCertificate` | *String* | :heavy_check_mark: | CA certificate | +| `clientCertificate` | *Optional\<String>* | :heavy_minus_sign: | Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) | +| `clientKey` | *Optional\<String>* | :heavy_minus_sign: | Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) | +| `clientKeyPassword` | *Optional\<String>* | :heavy_minus_sign: | Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. | +| `mode` | [Optional\<SourceMysqlSchemasSslModeMode>](../../models/shared/SourceMysqlSchemasSslModeMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceNavan.md b/docs/models/shared/SourceNavan.md new file mode 100644 index 000000000..089c0bd73 --- /dev/null +++ b/docs/models/shared/SourceNavan.md @@ -0,0 +1,11 @@ +# SourceNavan + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `clientId` | *String* | :heavy_check_mark: | N/A | +| `clientSecret` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [Navan](../../models/shared/Navan.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceNewsdata.md b/docs/models/shared/SourceNewsdata.md new file mode 100644 index 000000000..808b2f6a9 --- /dev/null +++ b/docs/models/shared/SourceNewsdata.md @@ -0,0 +1,14 @@ +# SourceNewsdata + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `oneOf` | *Optional\<Object>* | :heavy_minus_sign: | N/A | +| `apiKey` | *String* | :heavy_check_mark: | API Key | +| `category` | List\<[SourceNewsdataCategory](../../models/shared/SourceNewsdataCategory.md)> | :heavy_minus_sign: | Categories (maximum 5) to restrict the search to. | +| `country` | List\<[SourceNewsdataCountry](../../models/shared/SourceNewsdataCountry.md)> | :heavy_minus_sign: | 2-letter ISO 3166-1 countries (maximum 5) to restrict the search to. | +| `domain` | List\<*String*> | :heavy_minus_sign: | Domains (maximum 5) to restrict the search to. Use the sources stream to find top sources id. | +| `language` | List\<[SourceNewsdataLanguage](../../models/shared/SourceNewsdataLanguage.md)> | :heavy_minus_sign: | Languages (maximum 5) to restrict the search to. | +| `sourceType` | [Newsdata](../../models/shared/Newsdata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceNewsdataCategory.md b/docs/models/shared/SourceNewsdataCategory.md new file mode 100644 index 000000000..d914dc845 --- /dev/null +++ b/docs/models/shared/SourceNewsdataCategory.md @@ -0,0 +1,18 @@ +# SourceNewsdataCategory + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `BUSINESS` | business | +| `ENTERTAINMENT` | entertainment | +| `ENVIRONMENT` | environment | +| `FOOD` | food | +| `HEALTH` | health | +| `POLITICS` | politics | +| `SCIENCE` | science | +| `SPORTS` | sports | +| `TECHNOLOGY` | technology | +| `TOP` | top | +| `WORLD` | world | \ No newline at end of file diff --git a/docs/models/shared/SourceNewsdataCountry.md b/docs/models/shared/SourceNewsdataCountry.md new file mode 100644 index 000000000..9822d56dd --- /dev/null +++ b/docs/models/shared/SourceNewsdataCountry.md @@ -0,0 +1,83 @@ +# SourceNewsdataCountry + + +## Values + +| Name | Value | +| ----- | ----- | +| `AR` | ar | +| `AU` | au | +| `AT` | at | +| `BD` | bd | +| `BY` | by | +| `BE` | be | +| `BR` | br | +| `BG` | bg | +| `CA` | ca | +| `CL` | cl | +| `CN` | cn | +| `CO` | co | +| `CR` | cr | +| `CU` | cu | +| `CZ` | cz | +| `DK` | dk | +| `DO` | do | +| `EC` | ec | +| `EG` | eg | +| `EE` | ee | +| `ET` | et | +| `FI` | fi | +| `FR` | fr | +| `DE` | de | +| `GR` | gr | +| `HK` | hk | +| `HU` | hu | +| `IN` | in | +| `ID` | id | +| `IQ` | iq | +| `IE` | ie | +| `IL` | il | +| `IT` | it | +| `JP` | jp | +| `KZ` | kz | +| `KW` | kw | +| `LV` | lv | +| `LB` | lb | +| `LT` | lt | +| `MY` | my | +| `MX` | mx | +| `MA` | ma | +| `MM` | mm | +| `NL` | nl | +| `NZ` | nz | +| `NG` | ng | +| `KP` | kp | +| `NO` | no | +| `PK` | pk | +| `PE` | pe | +| `PH` | ph | +| `PL` | pl | +| `PT` | pt | +| `PR` | pr | +| `RO` | ro | +| `RU` | ru | +| `SA` | sa | +| `RS` | rs | +| `SG` | sg | +| `SK` | sk | +| `SI` | si | +| `ZA` | za | +| `KR` | kr | +| `ES` | es | +| `SE` | se | +| `CH` | ch | +| `TW` | tw | +| `TZ` | tz | +| `TH` | th | +| `TR` | tr | +| `UA` | ua | +| `AE` | ae | +| `GB` | gb | +| `US` | us | +| `VE` | ve | +| `VI` | vi | \ No newline at end of file diff --git a/docs/models/shared/SourceNewsdataLanguage.md b/docs/models/shared/SourceNewsdataLanguage.md new file mode 100644 index 000000000..2ac9dfbe9 --- /dev/null +++ b/docs/models/shared/SourceNewsdataLanguage.md @@ -0,0 +1,52 @@ +# SourceNewsdataLanguage + + +## Values + +| Name | Value | +| ----- | ----- | +| `BE` | be | +| `AM` | am | +| `AR` | ar | +| `BN` | bn | +| `BS` | bs | +| `BG` | bg | +| `MY` | my | +| `CKB` | ckb | +| `ZH` | zh | +| `HR` | hr | +| `CS` | cs | +| `DA` | da | +| `NL` | nl | +| `EN` | en | +| `ET` | et | +| `FI` | fi | +| `FR` | fr | +| `DE` | de | +| `EL` | el | +| `HE` | he | +| `HI` | hi | +| `HU` | hu | +| `IN` | in | +| `IT` | it | +| `JP` | jp | +| `KO` | ko | +| `LV` | lv | +| `LT` | lt | +| `MS` | ms | +| `NO` | no | +| `PL` | pl | +| `PT` | pt | +| `RO` | ro | +| `RU` | ru | +| `SR` | sr | +| `SK` | sk | +| `SL` | sl | +| `ES` | es | +| `SW` | sw | +| `SV` | sv | +| `TH` | th | +| `TR` | tr | +| `UK` | uk | +| `UR` | ur | +| `VI` | vi | \ No newline at end of file diff --git a/docs/models/shared/SourcePardot.md b/docs/models/shared/SourcePardot.md index 1bc4b28bc..81e1c46a5 100644 --- a/docs/models/shared/SourcePardot.md +++ b/docs/models/shared/SourcePardot.md @@ -8,7 +8,8 @@ | `clientId` | *String* | :heavy_check_mark: | The Consumer Key that can be found when viewing your app in Salesforce | | | `clientSecret` | *String* | :heavy_check_mark: | The Consumer Secret that can be found when viewing your app in Salesforce | | | `isSandbox` | *Optional\<Boolean>* | :heavy_minus_sign: | Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is false. | | +| `pageSize` | *Optional\<String>* | :heavy_minus_sign: | The maximum number of records to return per request | | | `pardotBusinessUnitId` | *String* | :heavy_check_mark: | Pardot Business ID, can be found at Setup > Pardot > Pardot Account Setup | | | `refreshToken` | *String* | :heavy_check_mark: | Salesforce Refresh Token used for Airbyte to access your Salesforce account. If you don't know what this is, follow this <a href="https://medium.com/@bpmmendis94/obtain-access-refresh-tokens-from-salesforce-rest-api-a324fe4ccd9b">guide</a> to retrieve it. | | | `sourceType` | [Pardot](../../models/shared/Pardot.md) | :heavy_check_mark: | N/A | | -| `startDate` | *Optional\<String>* | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Leave blank to skip this filter | 2021-07-25T00: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 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. | 2021-07-25T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourcePayfit.md b/docs/models/shared/SourcePayfit.md new file mode 100644 index 000000000..79350c27a --- /dev/null +++ b/docs/models/shared/SourcePayfit.md @@ -0,0 +1,10 @@ +# SourcePayfit + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `companyId` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [Payfit](../../models/shared/Payfit.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourcePingdom.md b/docs/models/shared/SourcePingdom.md new file mode 100644 index 000000000..0653276eb --- /dev/null +++ b/docs/models/shared/SourcePingdom.md @@ -0,0 +1,12 @@ +# SourcePingdom + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | | +| `probes` | *Optional\<String>* | :heavy_minus_sign: | N/A | probe1 | +| `resolution` | [Optional\<Resolution>](../../models/shared/Resolution.md) | :heavy_minus_sign: | N/A | | +| `sourceType` | [Pingdom](../../models/shared/Pingdom.md) | :heavy_check_mark: | N/A | | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceQuickbooks.md b/docs/models/shared/SourceQuickbooks.md index d974838f1..822627549 100644 --- a/docs/models/shared/SourceQuickbooks.md +++ b/docs/models/shared/SourceQuickbooks.md @@ -3,9 +3,15 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `credentials` | [SourceQuickbooksAuthorizationMethod](../../models/shared/SourceQuickbooksAuthorizationMethod.md) | :heavy_check_mark: | N/A | | -| `sandbox` | *Optional\<Boolean>* | :heavy_minus_sign: | Determines whether to use the sandbox or production environment. | | -| `sourceType` | [Quickbooks](../../models/shared/Quickbooks.md) | :heavy_check_mark: | N/A | | -| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated. | 2021-03-20T00:00:00Z | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accessToken` | *String* | :heavy_check_mark: | Access token for making authenticated requests. | | +| `authType` | [Optional\<AuthType>](../../models/shared/AuthType.md) | :heavy_minus_sign: | N/A | | +| `clientId` | *String* | :heavy_check_mark: | Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. | | +| `clientSecret` | *String* | :heavy_check_mark: | Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. | | +| `realmId` | *String* | :heavy_check_mark: | Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. | | +| `refreshToken` | *String* | :heavy_check_mark: | A token used when refreshing the access token. | | +| `sandbox` | *Optional\<Boolean>* | :heavy_minus_sign: | Determines whether to use the sandbox or production environment. | | +| `sourceType` | [Quickbooks](../../models/shared/Quickbooks.md) | :heavy_check_mark: | N/A | | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated. | 2021-03-20T00:00:00Z | +| `tokenExpiryDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date-time when the access token should be refreshed. | | \ No newline at end of file diff --git a/docs/models/shared/SourceQuickbooksAuthorizationMethod.md b/docs/models/shared/SourceQuickbooksAuthorizationMethod.md deleted file mode 100644 index bffa005f1..000000000 --- a/docs/models/shared/SourceQuickbooksAuthorizationMethod.md +++ /dev/null @@ -1,2 +0,0 @@ -# SourceQuickbooksAuthorizationMethod - diff --git a/docs/models/shared/SourceRetailexpressByMaropost.md b/docs/models/shared/SourceRetailexpressByMaropost.md new file mode 100644 index 000000000..481f70f9b --- /dev/null +++ b/docs/models/shared/SourceRetailexpressByMaropost.md @@ -0,0 +1,10 @@ +# SourceRetailexpressByMaropost + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [RetailexpressByMaropost](../../models/shared/RetailexpressByMaropost.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceRingcentral.md b/docs/models/shared/SourceRingcentral.md new file mode 100644 index 000000000..4c9cc8e66 --- /dev/null +++ b/docs/models/shared/SourceRingcentral.md @@ -0,0 +1,11 @@ +# SourceRingcentral + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accountId` | *String* | :heavy_check_mark: | Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours)<br/> | +| `authToken` | *String* | :heavy_check_mark: | Token could be recieved by following instructions at https://developers.ringcentral.com/api-reference/authentication | +| `extensionId` | *String* | :heavy_check_mark: | Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours)<br/> | +| `sourceType` | [Ringcentral](../../models/shared/Ringcentral.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceRocketChat.md b/docs/models/shared/SourceRocketChat.md new file mode 100644 index 000000000..aecd52410 --- /dev/null +++ b/docs/models/shared/SourceRocketChat.md @@ -0,0 +1,11 @@ +# SourceRocketChat + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `endpoint` | *String* | :heavy_check_mark: | Your rocket.chat instance URL. | https://airbyte-connector-poc.rocket.chat | +| `sourceType` | [RocketChat](../../models/shared/RocketChat.md) | :heavy_check_mark: | N/A | | +| `token` | *String* | :heavy_check_mark: | Your API Token. See <a href="https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/access-tokens-endpoints">here</a>. The token is case sensitive. | | +| `userId` | *String* | :heavy_check_mark: | Your User Id. | | \ No newline at end of file diff --git a/docs/models/shared/SourceS3.md b/docs/models/shared/SourceS3.md index 6ffecf055..6d76cae8d 100644 --- a/docs/models/shared/SourceS3.md +++ b/docs/models/shared/SourceS3.md @@ -11,7 +11,7 @@ because it is responsible for converting legacy S3 v3 configs into v4 configs us | `awsAccessKeyId` | *Optional\<String>* | :heavy_minus_sign: | In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. | | | `awsSecretAccessKey` | *Optional\<String>* | :heavy_minus_sign: | In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. | | | `bucket` | *String* | :heavy_check_mark: | Name of the S3 bucket where the file(s) exist. | | -| `deliveryMethod` | [Optional\<DeliveryMethod>](../../models/shared/DeliveryMethod.md) | :heavy_minus_sign: | N/A | | +| `deliveryMethod` | [Optional\<SourceS3DeliveryMethod>](../../models/shared/SourceS3DeliveryMethod.md) | :heavy_minus_sign: | N/A | | | `endpoint` | *Optional\<String>* | :heavy_minus_sign: | Endpoint to an S3 compatible service. Leave empty to use AWS. | my-s3-endpoint.com | | `regionName` | *Optional\<String>* | :heavy_minus_sign: | AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. | | | `roleArn` | *Optional\<String>* | :heavy_minus_sign: | Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. | | diff --git a/docs/models/shared/SourceS3CopyRawFiles.md b/docs/models/shared/SourceS3CopyRawFiles.md new file mode 100644 index 000000000..53cf2e1a2 --- /dev/null +++ b/docs/models/shared/SourceS3CopyRawFiles.md @@ -0,0 +1,11 @@ +# SourceS3CopyRawFiles + +Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `deliveryType` | [Optional\<SourceS3SchemasDeliveryType>](../../models/shared/SourceS3SchemasDeliveryType.md) | :heavy_minus_sign: | N/A | +| `preserveDirectoryStructure` | *Optional\<Boolean>* | :heavy_minus_sign: | If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. | \ No newline at end of file diff --git a/docs/models/shared/SourceS3DeliveryMethod.md b/docs/models/shared/SourceS3DeliveryMethod.md new file mode 100644 index 000000000..1d02b2adb --- /dev/null +++ b/docs/models/shared/SourceS3DeliveryMethod.md @@ -0,0 +1,2 @@ +# SourceS3DeliveryMethod + diff --git a/docs/models/shared/SourceS3DeliveryType.md b/docs/models/shared/SourceS3DeliveryType.md index 741fd2c5c..e17c1d2bc 100644 --- a/docs/models/shared/SourceS3DeliveryType.md +++ b/docs/models/shared/SourceS3DeliveryType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------- | ------------------- | -| `USE_FILE_TRANSFER` | use_file_transfer | \ No newline at end of file +| Name | Value | +| ---------------------- | ---------------------- | +| `USE_RECORDS_TRANSFER` | use_records_transfer | \ No newline at end of file diff --git a/docs/models/shared/SourceS3ReplicateRecords.md b/docs/models/shared/SourceS3ReplicateRecords.md new file mode 100644 index 000000000..5eaf14b9b --- /dev/null +++ b/docs/models/shared/SourceS3ReplicateRecords.md @@ -0,0 +1,10 @@ +# SourceS3ReplicateRecords + +Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `deliveryType` | [Optional\<SourceS3DeliveryType>](../../models/shared/SourceS3DeliveryType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceS3SchemasDeliveryType.md b/docs/models/shared/SourceS3SchemasDeliveryType.md new file mode 100644 index 000000000..c943d8621 --- /dev/null +++ b/docs/models/shared/SourceS3SchemasDeliveryType.md @@ -0,0 +1,8 @@ +# SourceS3SchemasDeliveryType + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `USE_FILE_TRANSFER` | use_file_transfer | \ No newline at end of file diff --git a/docs/models/shared/SourceSalesforce.md b/docs/models/shared/SourceSalesforce.md index 9185ff12b..ee31fe176 100644 --- a/docs/models/shared/SourceSalesforce.md +++ b/docs/models/shared/SourceSalesforce.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authType` | [Optional\<AuthType>](../../models/shared/AuthType.md) | :heavy_minus_sign: | N/A | | +| `authType` | [Optional\<SourceSalesforceAuthType>](../../models/shared/SourceSalesforceAuthType.md) | :heavy_minus_sign: | N/A | | | `clientId` | *String* | :heavy_check_mark: | Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> | | | `clientSecret` | *String* | :heavy_check_mark: | Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> | | | `forceUseBulkApi` | *Optional\<Boolean>* | :heavy_minus_sign: | Toggle to use Bulk API (this might cause empty fields for some streams) | | diff --git a/docs/models/shared/SourceSalesforceAuthType.md b/docs/models/shared/SourceSalesforceAuthType.md new file mode 100644 index 000000000..2b894b47a --- /dev/null +++ b/docs/models/shared/SourceSalesforceAuthType.md @@ -0,0 +1,8 @@ +# SourceSalesforceAuthType + + +## Values + +| Name | Value | +| -------- | -------- | +| `CLIENT` | Client | \ No newline at end of file diff --git a/docs/models/shared/SourceSerpstat.md b/docs/models/shared/SourceSerpstat.md new file mode 100644 index 000000000..a3429f5a4 --- /dev/null +++ b/docs/models/shared/SourceSerpstat.md @@ -0,0 +1,18 @@ +# SourceSerpstat + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `apiKey` | *String* | :heavy_check_mark: | Serpstat API key can be found here: https://serpstat.com/users/profile/ | +| `domain` | *Optional\<String>* | :heavy_minus_sign: | The domain name to get data for (ex. serpstat.com) | +| `domains` | List\<*Object*> | :heavy_minus_sign: | The list of domains that will be used in streams that support batch operations | +| `filterBy` | *Optional\<String>* | :heavy_minus_sign: | The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. | +| `filterValue` | *Optional\<String>* | :heavy_minus_sign: | The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. | +| `pageSize` | *Optional\<Long>* | :heavy_minus_sign: | The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. | +| `pagesToFetch` | *Optional\<Long>* | :heavy_minus_sign: | The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. | +| `regionId` | *Optional\<String>* | :heavy_minus_sign: | The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. | +| `sortBy` | *Optional\<String>* | :heavy_minus_sign: | The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. | +| `sortValue` | *Optional\<String>* | :heavy_minus_sign: | The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. | +| `sourceType` | [Serpstat](../../models/shared/Serpstat.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceServiceNow.md b/docs/models/shared/SourceServiceNow.md new file mode 100644 index 000000000..b2d9b149b --- /dev/null +++ b/docs/models/shared/SourceServiceNow.md @@ -0,0 +1,11 @@ +# SourceServiceNow + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `baseUrl` | *String* | :heavy_check_mark: | N/A | +| `password` | *Optional\<String>* | :heavy_minus_sign: | N/A | +| `sourceType` | [ServiceNow](../../models/shared/ServiceNow.md) | :heavy_check_mark: | N/A | +| `username` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSftpBulkCopyRawFiles.md b/docs/models/shared/SourceSftpBulkCopyRawFiles.md index 3787c2982..514b6e8b1 100644 --- a/docs/models/shared/SourceSftpBulkCopyRawFiles.md +++ b/docs/models/shared/SourceSftpBulkCopyRawFiles.md @@ -5,6 +5,7 @@ Copy raw files without parsing their contents. Bits are copied into the destinat ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `deliveryType` | [Optional\<SourceSftpBulkSchemasDeliveryType>](../../models/shared/SourceSftpBulkSchemasDeliveryType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `deliveryType` | [Optional\<SourceSftpBulkSchemasDeliveryType>](../../models/shared/SourceSftpBulkSchemasDeliveryType.md) | :heavy_minus_sign: | N/A | +| `preserveDirectoryStructure` | *Optional\<Boolean>* | :heavy_minus_sign: | If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. | \ No newline at end of file diff --git a/docs/models/shared/SourceShipstation.md b/docs/models/shared/SourceShipstation.md new file mode 100644 index 000000000..ceb1322cf --- /dev/null +++ b/docs/models/shared/SourceShipstation.md @@ -0,0 +1,10 @@ +# SourceShipstation + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `password` | *Optional\<String>* | :heavy_minus_sign: | N/A | +| `sourceType` | [Shipstation](../../models/shared/Shipstation.md) | :heavy_check_mark: | N/A | +| `username` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceShopify.md b/docs/models/shared/SourceShopify.md index ffbf08117..2565b72c8 100644 --- a/docs/models/shared/SourceShopify.md +++ b/docs/models/shared/SourceShopify.md @@ -8,7 +8,7 @@ | `bulkWindowInDays` | *Optional\<Long>* | :heavy_minus_sign: | Defines what would be a date range per single BULK Job | | | `credentials` | [Optional\<ShopifyAuthorizationMethod>](../../models/shared/ShopifyAuthorizationMethod.md) | :heavy_minus_sign: | The authorization method to use to retrieve data from Shopify | | | `fetchTransactionsUserId` | *Optional\<Boolean>* | :heavy_minus_sign: | Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` user, leave the default value to speed up the fetch. | | -| `jobCheckpointInterval` | *Optional\<Long>* | :heavy_minus_sign: | The threshold, after which the single BULK Job should be checkpointed. | | +| `jobCheckpointInterval` | *Optional\<Long>* | :heavy_minus_sign: | The threshold, after which the single BULK Job should be checkpointed (min: 15k, max: 1M) | | | `jobProductVariantsIncludePresPrices` | *Optional\<Boolean>* | :heavy_minus_sign: | If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). | | | `jobTerminationThreshold` | *Optional\<Long>* | :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 | diff --git a/docs/models/shared/SourceSmartsheets.md b/docs/models/shared/SourceSmartsheets.md index ea35f8ca5..9338df82a 100644 --- a/docs/models/shared/SourceSmartsheets.md +++ b/docs/models/shared/SourceSmartsheets.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `credentials` | [SourceSmartsheetsAuthorizationMethod](../../models/shared/SourceSmartsheetsAuthorizationMethod.md) | :heavy_check_mark: | N/A | -| `metadataFields` | List\<[Validenums](../../models/shared/Validenums.md)> | :heavy_minus_sign: | A List of available columns which metadata can be pulled from. | -| `sourceType` | [SourceSmartsheetsSmartsheets](../../models/shared/SourceSmartsheetsSmartsheets.md) | :heavy_check_mark: | N/A | -| `spreadsheetId` | *String* | :heavy_check_mark: | The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `credentials` | [SourceSmartsheetsAuthorizationMethod](../../models/shared/SourceSmartsheetsAuthorizationMethod.md) | :heavy_check_mark: | N/A | +| `isReport` | *Optional\<Boolean>* | :heavy_minus_sign: | If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. | +| `metadataFields` | List\<[Validenums](../../models/shared/Validenums.md)> | :heavy_minus_sign: | A List of available columns which metadata can be pulled from. | +| `sourceType` | [SourceSmartsheetsSmartsheets](../../models/shared/SourceSmartsheetsSmartsheets.md) | :heavy_check_mark: | N/A | +| `spreadsheetId` | *String* | :heavy_check_mark: | The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties | \ No newline at end of file diff --git a/docs/models/shared/SourceSnapchatMarketing.md b/docs/models/shared/SourceSnapchatMarketing.md index 514f6f2e9..077255866 100644 --- a/docs/models/shared/SourceSnapchatMarketing.md +++ b/docs/models/shared/SourceSnapchatMarketing.md @@ -6,9 +6,11 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | `actionReportTime` | [Optional\<ActionReportTime>](../../models/shared/ActionReportTime.md) | :heavy_minus_sign: | Specifies the principle for conversion reporting. | | +| `adAccountIds` | List\<*Object*> | :heavy_minus_sign: | Ad Account IDs of the ad accounts to retrieve | | | `clientId` | *String* | :heavy_check_mark: | The Client ID of your Snapchat developer application. | | | `clientSecret` | *String* | :heavy_check_mark: | The Client Secret of your Snapchat developer application. | | | `endDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | Date in the format 2017-01-25. Any data after this date will not be replicated. | 2022-01-30 | +| `organizationIds` | List\<*Object*> | :heavy_minus_sign: | The IDs of the organizations to retrieve | | | `refreshToken` | *String* | :heavy_check_mark: | Refresh Token to renew the expired Access Token. | | | `sourceType` | [SourceSnapchatMarketingSnapchatMarketing](../../models/shared/SourceSnapchatMarketingSnapchatMarketing.md) | :heavy_check_mark: | N/A | | | `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | Date in the format 2022-01-01. Any data before this date will not be replicated. | 2022-01-01 | diff --git a/docs/models/shared/SourceTimely.md b/docs/models/shared/SourceTimely.md index 813913084..46105ac05 100644 --- a/docs/models/shared/SourceTimely.md +++ b/docs/models/shared/SourceTimely.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `accountId` | *String* | :heavy_check_mark: | Timely account id | | -| `bearerToken` | *String* | :heavy_check_mark: | Timely bearer token | | -| `sourceType` | [Timely](../../models/shared/Timely.md) | :heavy_check_mark: | N/A | | -| `startDate` | *String* | :heavy_check_mark: | start date | 2022-05-06 | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `accountId` | *String* | :heavy_check_mark: | The Account ID for your Timely account | +| `bearerToken` | *String* | :heavy_check_mark: | The Bearer Token for your Timely account | +| `sourceType` | [Timely](../../models/shared/Timely.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | Earliest date from which you want to pull data from. | \ No newline at end of file diff --git a/docs/models/shared/SourceTmdb.md b/docs/models/shared/SourceTmdb.md new file mode 100644 index 000000000..23d800065 --- /dev/null +++ b/docs/models/shared/SourceTmdb.md @@ -0,0 +1,12 @@ +# SourceTmdb + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `apiKey` | *String* | :heavy_check_mark: | API Key from tmdb account | | +| `language` | *String* | :heavy_check_mark: | Language expressed in ISO 639-1 scheme, Mandate for required streams (Example en-US) | en-US | +| `movieId` | *String* | :heavy_check_mark: | Target movie ID, Mandate for movie streams (Example is 550) | 550 | +| `query` | *String* | :heavy_check_mark: | Target movie ID, Mandate for search streams | Marvel | +| `sourceType` | [Tmdb](../../models/shared/Tmdb.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceToggl.md b/docs/models/shared/SourceToggl.md new file mode 100644 index 000000000..83d00ccae --- /dev/null +++ b/docs/models/shared/SourceToggl.md @@ -0,0 +1,13 @@ +# SourceToggl + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `apiToken` | *String* | :heavy_check_mark: | Your API Token. See <a href="https://developers.track.toggl.com/docs/authentication">here</a>. The token is case sensitive. | | +| `endDate` | *String* | :heavy_check_mark: | To retrieve time entries created before the given date (inclusive). | YYYY-MM-DD | +| `organizationId` | *long* | :heavy_check_mark: | Your organization id. See <a href="https://developers.track.toggl.com/docs/organization">here</a>. | | +| `sourceType` | [Toggl](../../models/shared/Toggl.md) | :heavy_check_mark: | N/A | | +| `startDate` | *String* | :heavy_check_mark: | To retrieve time entries created after the given date (inclusive). | YYYY-MM-DD | +| `workspaceId` | *long* | :heavy_check_mark: | Your workspace id. See <a href="https://developers.track.toggl.com/docs/workspaces">here</a>. | | \ No newline at end of file diff --git a/docs/models/shared/SourceTwelveData.md b/docs/models/shared/SourceTwelveData.md index 7ef7fc241..794a9d1fc 100644 --- a/docs/models/shared/SourceTwelveData.md +++ b/docs/models/shared/SourceTwelveData.md @@ -8,6 +8,6 @@ | `apiKey` | *String* | :heavy_check_mark: | N/A | | `country` | *Optional\<String>* | :heavy_minus_sign: | Where instrument is traded | | `exchange` | *Optional\<String>* | :heavy_minus_sign: | Where instrument is traded | -| `interval` | [Optional\<Interval>](../../models/shared/Interval.md) | :heavy_minus_sign: | Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month | +| `interval` | [Optional\<SourceTwelveDataInterval>](../../models/shared/SourceTwelveDataInterval.md) | :heavy_minus_sign: | Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month | | `sourceType` | [TwelveData](../../models/shared/TwelveData.md) | :heavy_check_mark: | N/A | | `symbol` | *Optional\<String>* | :heavy_minus_sign: | Ticker of the instrument | \ No newline at end of file diff --git a/docs/models/shared/SourceTwelveDataInterval.md b/docs/models/shared/SourceTwelveDataInterval.md new file mode 100644 index 000000000..61952ba37 --- /dev/null +++ b/docs/models/shared/SourceTwelveDataInterval.md @@ -0,0 +1,20 @@ +# SourceTwelveDataInterval + +Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `ONEMIN` | 1min | +| `FIVEMIN` | 5min | +| `FIFTEENMIN` | 15min | +| `THIRTYMIN` | 30min | +| `FORTY_FIVEMIN` | 45min | +| `ONEH` | 1h | +| `TWOH` | 2h | +| `FOURH` | 4h | +| `ONEDAY` | 1day | +| `ONEWEEK` | 1week | +| `ONEMONTH` | 1month | \ No newline at end of file diff --git a/docs/models/shared/SourceTyntecSms.md b/docs/models/shared/SourceTyntecSms.md new file mode 100644 index 000000000..023e24c89 --- /dev/null +++ b/docs/models/shared/SourceTyntecSms.md @@ -0,0 +1,12 @@ +# SourceTyntecSms + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Your Tyntec API Key. See <a href="https://www.tyntec.com/docs/docs-center-sms-api-quick-start">here</a> | +| `from` | *String* | :heavy_check_mark: | The phone number of the SMS message sender (international). | +| `message` | *Optional\<String>* | :heavy_minus_sign: | The content of the SMS message to be sent. | +| `sourceType` | [TyntecSms](../../models/shared/TyntecSms.md) | :heavy_check_mark: | N/A | +| `to` | *String* | :heavy_check_mark: | The phone number of the SMS message recipient (international). | \ No newline at end of file diff --git a/docs/models/shared/SourceVitally.md b/docs/models/shared/SourceVitally.md index 221bdeb22..85edf4ef3 100644 --- a/docs/models/shared/SourceVitally.md +++ b/docs/models/shared/SourceVitally.md @@ -3,8 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `apiKey` | *String* | :heavy_check_mark: | The API Token for a Vitally account. | -| `sourceType` | [Vitally](../../models/shared/Vitally.md) | :heavy_check_mark: | N/A | -| `status` | [SourceVitallyStatus](../../models/shared/SourceVitallyStatus.md) | :heavy_check_mark: | Status of the Vitally accounts. One of the following values; active, churned, activeOrChurned. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `basicAuthHeader` | *Optional\<String>* | :heavy_minus_sign: | Basic Auth Header | +| `domain` | *String* | :heavy_check_mark: | Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. | +| `secretToken` | *String* | :heavy_check_mark: | sk_live_secret_token | +| `sourceType` | [Vitally](../../models/shared/Vitally.md) | :heavy_check_mark: | N/A | +| `status` | [SourceVitallyStatus](../../models/shared/SourceVitallyStatus.md) | :heavy_check_mark: | Status of the Vitally accounts. One of the following values; active, churned, activeOrChurned. | \ No newline at end of file diff --git a/docs/models/shared/SourceMysqlVerifyCA.md b/docs/models/shared/SourceWorkday.md similarity index 50% rename from docs/models/shared/SourceMysqlVerifyCA.md rename to docs/models/shared/SourceWorkday.md index 3d67fe59b..fd423a56d 100644 --- a/docs/models/shared/SourceMysqlVerifyCA.md +++ b/docs/models/shared/SourceWorkday.md @@ -1,14 +1,11 @@ -# SourceMysqlVerifyCA - -Always connect with SSL. Verifies CA, but allows connection even if Hostname does not match. +# SourceWorkday ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `caCertificate` | *String* | :heavy_check_mark: | CA certificate | -| `clientCertificate` | *Optional\<String>* | :heavy_minus_sign: | Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) | -| `clientKey` | *Optional\<String>* | :heavy_minus_sign: | Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) | -| `clientKeyPassword` | *Optional\<String>* | :heavy_minus_sign: | Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. | -| `mode` | [SourceMysqlSchemasSslModeMode](../../models/shared/SourceMysqlSchemasSslModeMode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `credentials` | [SourceWorkdayAuthentication](../../models/shared/SourceWorkdayAuthentication.md) | :heavy_check_mark: | Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. | +| `host` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [Workday](../../models/shared/Workday.md) | :heavy_check_mark: | N/A | +| `tenantId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceWorkdayAuthentication.md b/docs/models/shared/SourceWorkdayAuthentication.md new file mode 100644 index 000000000..c146fd693 --- /dev/null +++ b/docs/models/shared/SourceWorkdayAuthentication.md @@ -0,0 +1,4 @@ +# SourceWorkdayAuthentication + +Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + diff --git a/docs/models/shared/SourceYounium.md b/docs/models/shared/SourceYounium.md new file mode 100644 index 000000000..905003bcf --- /dev/null +++ b/docs/models/shared/SourceYounium.md @@ -0,0 +1,12 @@ +# SourceYounium + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `legalEntity` | *String* | :heavy_check_mark: | Legal Entity that data should be pulled from | +| `password` | *String* | :heavy_check_mark: | Account password for younium account API key | +| `playground` | *Optional\<Boolean>* | :heavy_minus_sign: | Property defining if connector is used against playground or production environment | +| `sourceType` | [Younium](../../models/shared/Younium.md) | :heavy_check_mark: | N/A | +| `username` | *String* | :heavy_check_mark: | Username for Younium account | \ No newline at end of file diff --git a/docs/models/shared/StateFilterEnum.md b/docs/models/shared/StateFilterEnum.md deleted file mode 100644 index c2e157531..000000000 --- a/docs/models/shared/StateFilterEnum.md +++ /dev/null @@ -1,12 +0,0 @@ -# StateFilterEnum - -An enumeration. - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `ENABLED` | enabled | -| `PAUSED` | paused | -| `ARCHIVED` | archived | \ No newline at end of file diff --git a/docs/models/shared/StreamConfigurationsInput.md b/docs/models/shared/StreamConfigurationsInput.md new file mode 100644 index 000000000..8a8cc57a8 --- /dev/null +++ b/docs/models/shared/StreamConfigurationsInput.md @@ -0,0 +1,10 @@ +# StreamConfigurationsInput + +A list of configured stream options for a connection. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `streams` | List\<[StreamConfiguration](../../models/shared/StreamConfiguration.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Tag.md b/docs/models/shared/Tag.md new file mode 100644 index 000000000..596d8426e --- /dev/null +++ b/docs/models/shared/Tag.md @@ -0,0 +1,13 @@ +# Tag + +A tag that can be associated with a connection. Useful for grouping and organizing connections in a workspace. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `color` | *String* | :heavy_check_mark: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| `tagId` | *String* | :heavy_check_mark: | N/A | +| `workspaceId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TagCreateRequest.md b/docs/models/shared/TagCreateRequest.md new file mode 100644 index 000000000..15245a2d3 --- /dev/null +++ b/docs/models/shared/TagCreateRequest.md @@ -0,0 +1,10 @@ +# TagCreateRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `color` | *String* | :heavy_check_mark: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| `workspaceId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TagPatchRequest.md b/docs/models/shared/TagPatchRequest.md new file mode 100644 index 000000000..2553812aa --- /dev/null +++ b/docs/models/shared/TagPatchRequest.md @@ -0,0 +1,9 @@ +# TagPatchRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `color` | *String* | :heavy_check_mark: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TagResponse.md b/docs/models/shared/TagResponse.md new file mode 100644 index 000000000..d8f94b923 --- /dev/null +++ b/docs/models/shared/TagResponse.md @@ -0,0 +1,13 @@ +# TagResponse + +Provides details of a single tag. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `color` | *String* | :heavy_check_mark: | A hexadecimal color value | +| `name` | *String* | :heavy_check_mark: | N/A | +| `tagId` | *String* | :heavy_check_mark: | N/A | +| `workspaceId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TagsResponse.md b/docs/models/shared/TagsResponse.md new file mode 100644 index 000000000..f4b818e55 --- /dev/null +++ b/docs/models/shared/TagsResponse.md @@ -0,0 +1,8 @@ +# TagsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `data` | List\<[TagResponse](../../models/shared/TagResponse.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TheTargetedActionResourceForTheFetch.md b/docs/models/shared/TheTargetedActionResourceForTheFetch.md new file mode 100644 index 000000000..407a3b801 --- /dev/null +++ b/docs/models/shared/TheTargetedActionResourceForTheFetch.md @@ -0,0 +1,11 @@ +# TheTargetedActionResourceForTheFetch + +Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + + +## Values + +| Name | Value | +| ---------------------- | ---------------------- | +| `GET_QUEUE_ATTRIBUTES` | GetQueueAttributes | +| `RECEIVE_MESSAGE` | ReceiveMessage | \ No newline at end of file diff --git a/docs/models/shared/Tmdb.md b/docs/models/shared/Tmdb.md new file mode 100644 index 000000000..92df3d79b --- /dev/null +++ b/docs/models/shared/Tmdb.md @@ -0,0 +1,8 @@ +# Tmdb + + +## Values + +| Name | Value | +| ------ | ------ | +| `TMDB` | tmdb | \ No newline at end of file diff --git a/docs/models/shared/Toggl.md b/docs/models/shared/Toggl.md new file mode 100644 index 000000000..08c1a3415 --- /dev/null +++ b/docs/models/shared/Toggl.md @@ -0,0 +1,8 @@ +# Toggl + + +## Values + +| Name | Value | +| ------- | ------- | +| `TOGGL` | toggl | \ No newline at end of file diff --git a/docs/models/shared/TyntecSms.md b/docs/models/shared/TyntecSms.md new file mode 100644 index 000000000..27dfcc173 --- /dev/null +++ b/docs/models/shared/TyntecSms.md @@ -0,0 +1,8 @@ +# TyntecSms + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `TYNTEC_SMS` | tyntec-sms | \ No newline at end of file diff --git a/docs/models/shared/Unencrypted.md b/docs/models/shared/Unencrypted.md index 146f1d881..7319a2cf7 100644 --- a/docs/models/shared/Unencrypted.md +++ b/docs/models/shared/Unencrypted.md @@ -5,6 +5,6 @@ The data transfer will not be encrypted. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `sslMethod` | [Optional\<DestinationMssqlSslMethod>](../../models/shared/DestinationMssqlSslMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `sslMethod` | [Optional\<DestinationMssqlSchemasSslMethodSslMethod>](../../models/shared/DestinationMssqlSchemasSslMethodSslMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ValidActionBreakdowns.md b/docs/models/shared/ValidActionBreakdowns.md index f51cd9432..9a93fda7b 100644 --- a/docs/models/shared/ValidActionBreakdowns.md +++ b/docs/models/shared/ValidActionBreakdowns.md @@ -17,4 +17,8 @@ An enumeration. | `ACTION_TYPE` | action_type | | `ACTION_VIDEO_SOUND` | action_video_sound | | `ACTION_VIDEO_TYPE` | action_video_type | +| `CONVERSION_DESTINATION` | conversion_destination | +| `MATCHED_PERSONA_ID` | matched_persona_id | +| `MATCHED_PERSONA_NAME` | matched_persona_name | +| `SIGNAL_SOURCE_BUCKET` | signal_source_bucket | | `STANDARD_EVENT_CONTENT_TYPE` | standard_event_content_type | \ No newline at end of file diff --git a/docs/models/shared/ValidBreakdowns.md b/docs/models/shared/ValidBreakdowns.md index afc8fd596..654d6ac7c 100644 --- a/docs/models/shared/ValidBreakdowns.md +++ b/docs/models/shared/ValidBreakdowns.md @@ -11,8 +11,10 @@ An enumeration. | `AGE` | age | | `APP_ID` | app_id | | `BODY_ASSET` | body_asset | +| `BREAKDOWN_REPORTING_AD_ID` | breakdown_reporting_ad_id | | `CALL_TO_ACTION_ASSET` | call_to_action_asset | | `COARSE_CONVERSION_VALUE` | coarse_conversion_value | +| `CONVERSION_DESTINATION` | conversion_destination | | `COUNTRY` | country | | `DESCRIPTION_ASSET` | description_asset | | `DEVICE_PLATFORM` | device_platform | @@ -26,6 +28,7 @@ An enumeration. | `IMAGE_ASSET` | image_asset | | `IMPRESSION_DEVICE` | impression_device | | `IS_CONVERSION_ID_MODELED` | is_conversion_id_modeled | +| `IS_RENDERED_AS_DELAYED_SKIP_AD` | is_rendered_as_delayed_skip_ad | | `LANDING_DESTINATION` | landing_destination | | `LINK_URL_ASSET` | link_url_asset | | `MARKETING_MESSAGES_BTN_NAME` | marketing_messages_btn_name | @@ -36,6 +39,7 @@ An enumeration. | `MEDIA_FORMAT` | media_format | | `MEDIA_ORIGIN_URL` | media_origin_url | | `MEDIA_TEXT_CONTENT` | media_text_content | +| `MEDIA_TYPE` | media_type | | `MMM` | mmm | | `PLACE_PAGE_ID` | place_page_id | | `PLATFORM_POSITION` | platform_position | @@ -44,9 +48,17 @@ An enumeration. | `PUBLISHER_PLATFORM` | publisher_platform | | `REDOWNLOAD` | redownload | | `REGION` | region | +| `SIGNAL_SOURCE_BUCKET` | signal_source_bucket | | `SKAN_CAMPAIGN_ID` | skan_campaign_id | | `SKAN_CONVERSION_ID` | skan_conversion_id | | `SKAN_VERSION` | skan_version | +| `SOT_ATTRIBUTION_MODEL_TYPE` | sot_attribution_model_type | +| `SOT_ATTRIBUTION_WINDOW` | sot_attribution_window | +| `SOT_CHANNEL` | sot_channel | +| `SOT_EVENT_TYPE` | sot_event_type | +| `SOT_SOURCE` | sot_source | | `STANDARD_EVENT_CONTENT_TYPE` | standard_event_content_type | | `TITLE_ASSET` | title_asset | +| `USER_PERSONA_ID` | user_persona_id | +| `USER_PERSONA_NAME` | user_persona_name | | `VIDEO_ASSET` | video_asset | \ No newline at end of file diff --git a/docs/models/shared/VerifyCa.md b/docs/models/shared/VerifyCa.md index d1b6743a3..631b74ad3 100644 --- a/docs/models/shared/VerifyCa.md +++ b/docs/models/shared/VerifyCa.md @@ -5,8 +5,8 @@ Verify-ca SSL mode. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `caCertificate` | *String* | :heavy_check_mark: | CA certificate | -| `clientKeyPassword` | *Optional\<String>* | :heavy_minus_sign: | Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. | -| `mode` | [Optional\<DestinationPostgresSchemasSSLModeSSLModesMode>](../../models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `caCertificate` | *String* | :heavy_check_mark: | CA certificate | +| `clientKeyPassword` | *Optional\<String>* | :heavy_minus_sign: | Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. | +| `mode` | [Optional\<DestinationPostgresSchemasSSLModeSSLModes5Mode>](../../models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/VerifyIdentity.md b/docs/models/shared/VerifyIdentity.md index a3ae9b077..acbfdab41 100644 --- a/docs/models/shared/VerifyIdentity.md +++ b/docs/models/shared/VerifyIdentity.md @@ -1,14 +1,15 @@ # VerifyIdentity -Always connect with SSL. Verify both CA and Hostname. +To always require encryption and verify that the source has a valid SSL certificate. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `caCertificate` | *String* | :heavy_check_mark: | CA certificate | -| `clientCertificate` | *Optional\<String>* | :heavy_minus_sign: | Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) | -| `clientKey` | *Optional\<String>* | :heavy_minus_sign: | Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) | -| `clientKeyPassword` | *Optional\<String>* | :heavy_minus_sign: | Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. | -| `mode` | [SourceMysqlSchemasSSLModeSSLModesMode](../../models/shared/SourceMysqlSchemasSSLModeSSLModesMode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\<String, *Object*> | :heavy_minus_sign: | N/A | +| `caCertificate` | *String* | :heavy_check_mark: | CA certificate | +| `clientCertificate` | *Optional\<String>* | :heavy_minus_sign: | Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) | +| `clientKey` | *Optional\<String>* | :heavy_minus_sign: | Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) | +| `clientKeyPassword` | *Optional\<String>* | :heavy_minus_sign: | Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. | +| `mode` | [Optional\<SourceMysqlSchemasSslModeEncryptionMode>](../../models/shared/SourceMysqlSchemasSslModeEncryptionMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WebhookNotificationConfig.md b/docs/models/shared/WebhookNotificationConfig.md new file mode 100644 index 000000000..7cda33e69 --- /dev/null +++ b/docs/models/shared/WebhookNotificationConfig.md @@ -0,0 +1,11 @@ +# WebhookNotificationConfig + +Configures a webhook notification. + + +## Fields + +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `enabled` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | +| `url` | *Optional\<String>* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Workday.md b/docs/models/shared/Workday.md new file mode 100644 index 000000000..c30608217 --- /dev/null +++ b/docs/models/shared/Workday.md @@ -0,0 +1,8 @@ +# Workday + + +## Values + +| Name | Value | +| --------- | --------- | +| `WORKDAY` | workday | \ No newline at end of file diff --git a/docs/models/shared/WorkspaceCreateRequest.md b/docs/models/shared/WorkspaceCreateRequest.md index 9e9224991..3bee34c91 100644 --- a/docs/models/shared/WorkspaceCreateRequest.md +++ b/docs/models/shared/WorkspaceCreateRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `name` | *String* | :heavy_check_mark: | Name of the workspace | -| `organizationId` | *Optional\<String>* | :heavy_minus_sign: | ID of organization to add workspace to. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `name` | *String* | :heavy_check_mark: | Name of the workspace | +| `notifications` | [Optional\<NotificationsConfig>](../../models/shared/NotificationsConfig.md) | :heavy_minus_sign: | Configures workspace notifications. | +| `organizationId` | *Optional\<String>* | :heavy_minus_sign: | ID of organization to add workspace to. | \ No newline at end of file diff --git a/docs/models/shared/WorkspaceResponse.md b/docs/models/shared/WorkspaceResponse.md index 2efd1a4e5..1716e56b6 100644 --- a/docs/models/shared/WorkspaceResponse.md +++ b/docs/models/shared/WorkspaceResponse.md @@ -5,8 +5,9 @@ Provides details of a single workspace. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `dataResidency` | [Optional\<GeographyEnum>](../../models/shared/GeographyEnum.md) | :heavy_minus_sign: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| `workspaceId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `dataResidency` | [Optional\<GeographyEnum>](../../models/shared/GeographyEnum.md) | :heavy_minus_sign: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| `notifications` | [NotificationsConfig](../../models/shared/NotificationsConfig.md) | :heavy_check_mark: | Configures workspace notifications. | +| `workspaceId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WorkspaceUpdateRequest.md b/docs/models/shared/WorkspaceUpdateRequest.md index e1ef5d1e8..766f8b491 100644 --- a/docs/models/shared/WorkspaceUpdateRequest.md +++ b/docs/models/shared/WorkspaceUpdateRequest.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `name` | *String* | :heavy_check_mark: | Name of the workspace | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `name` | *Optional\<String>* | :heavy_minus_sign: | Name of the workspace | +| `notifications` | [Optional\<NotificationsConfig>](../../models/shared/NotificationsConfig.md) | :heavy_minus_sign: | Configures workspace notifications. | \ No newline at end of file diff --git a/docs/models/shared/Younium.md b/docs/models/shared/Younium.md new file mode 100644 index 000000000..7080434a8 --- /dev/null +++ b/docs/models/shared/Younium.md @@ -0,0 +1,8 @@ +# Younium + + +## Values + +| Name | Value | +| --------- | --------- | +| `YOUNIUM` | younium | \ No newline at end of file diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index d8702cbc8..08038d7a2 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -60,8 +60,6 @@ public class Application { .database("AIRBYTE_DATABASE") .host("AIRBYTE_ACCOUNT") .username("AIRBYTE_USER") - .defaultSchema("AIRBYTE_SCHEMA") - .port(5432L) .build()) .processing(DestinationPgvectorProcessingConfigModel.builder() .chunkSize(540943L) diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index 7eea9357e..8f4697236 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -341,9 +341,10 @@ import com.airbyte.api.models.operations.PatchSourceResponse; import com.airbyte.api.models.shared.SchemeBasicAuth; import com.airbyte.api.models.shared.Security; import com.airbyte.api.models.shared.SourceConfiguration; -import com.airbyte.api.models.shared.SourceEventzilla; +import com.airbyte.api.models.shared.SourceExchangeRates; import com.airbyte.api.models.shared.SourcePatchRequest; import java.lang.Exception; +import java.time.LocalDate; public class Application { @@ -361,8 +362,9 @@ public class Application { PatchSourceRequest req = PatchSourceRequest.builder() .sourceId("<value>") .sourcePatchRequest(SourcePatchRequest.builder() - .configuration(SourceConfiguration.of(SourceEventzilla.builder() - .xApiKey("<value>") + .configuration(SourceConfiguration.of(SourceExchangeRates.builder() + .accessKey("<value>") + .startDate(LocalDate.parse("YYYY-MM-DD")) .build())) .name("My Source") .workspaceId("744cc0ed-7f05-4949-9e60-2a814f90c035") @@ -410,8 +412,8 @@ import com.airbyte.api.models.operations.PutSourceRequest; import com.airbyte.api.models.operations.PutSourceResponse; import com.airbyte.api.models.shared.SchemeBasicAuth; import com.airbyte.api.models.shared.Security; +import com.airbyte.api.models.shared.SourceAirtable; import com.airbyte.api.models.shared.SourceConfiguration; -import com.airbyte.api.models.shared.SourceGridly; import com.airbyte.api.models.shared.SourcePutRequest; import java.lang.Exception; @@ -431,9 +433,7 @@ public class Application { PutSourceRequest req = PutSourceRequest.builder() .sourceId("<value>") .sourcePutRequest(SourcePutRequest.builder() - .configuration(SourceConfiguration.of(SourceGridly.builder() - .apiKey("<value>") - .gridId("<id>") + .configuration(SourceConfiguration.of(SourceAirtable.builder() .build())) .name("My Source") .build()) diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md new file mode 100644 index 000000000..776ef0493 --- /dev/null +++ b/docs/sdks/tags/README.md @@ -0,0 +1,316 @@ +# Tags +(*tags()*) + +## Overview + +### Available Operations + +* [createTag](#createtag) - Create a tag +* [deleteTag](#deletetag) - Delete a tag +* [getTag](#gettag) - Get a tag +* [listTags](#listtags) - List all tags +* [updateTag](#updatetag) - Update a tag + +## createTag + +Create a tag + +### Example Usage + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.CreateTagResponse; +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.Security; +import com.airbyte.api.models.shared.TagCreateRequest; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + TagCreateRequest req = TagCreateRequest.builder() + .color("blue") + .name("<value>") + .workspaceId("5f85d5ab-c889-4273-91d7-c22bac981db2") + .build(); + + CreateTagResponse res = sdk.tags().createTag() + .request(req) + .call(); + + if (res.tagResponse().isPresent()) { + // handle response + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `request` | [TagCreateRequest](../../models/shared/TagCreateRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateTagResponse](../../models/operations/CreateTagResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## deleteTag + +Delete a tag + +### Example Usage + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.DeleteTagRequest; +import com.airbyte.api.models.operations.DeleteTagResponse; +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + DeleteTagRequest req = DeleteTagRequest.builder() + .tagId("da1c4fd4-2786-4b27-8b72-2335c85a5af8") + .build(); + + DeleteTagResponse res = sdk.tags().deleteTag() + .request(req) + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `request` | [DeleteTagRequest](../../models/operations/DeleteTagRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[DeleteTagResponse](../../models/operations/DeleteTagResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## getTag + +Get a tag + +### Example Usage + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.GetTagRequest; +import com.airbyte.api.models.operations.GetTagResponse; +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + GetTagRequest req = GetTagRequest.builder() + .tagId("808ab48f-5790-47fe-aa1e-3073281a0300") + .build(); + + GetTagResponse res = sdk.tags().getTag() + .request(req) + .call(); + + if (res.tagResponse().isPresent()) { + // handle response + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `request` | [GetTagRequest](../../models/operations/GetTagRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetTagResponse](../../models/operations/GetTagResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## listTags + +Lists all tags + +### Example Usage + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.ListTagsRequest; +import com.airbyte.api.models.operations.ListTagsResponse; +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + ListTagsRequest req = ListTagsRequest.builder() + .build(); + + ListTagsResponse res = sdk.tags().listTags() + .request(req) + .call(); + + if (res.tagsResponse().isPresent()) { + // handle response + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `request` | [ListTagsRequest](../../models/operations/ListTagsRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[ListTagsResponse](../../models/operations/ListTagsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## updateTag + +Update a tag + +### Example Usage + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.UpdateTagRequest; +import com.airbyte.api.models.operations.UpdateTagResponse; +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.Security; +import com.airbyte.api.models.shared.TagPatchRequest; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + UpdateTagRequest req = UpdateTagRequest.builder() + .tagPatchRequest(TagPatchRequest.builder() + .color("turquoise") + .name("<value>") + .build()) + .tagId("3043493e-7596-4d2b-8ee9-859838c615f6") + .build(); + + UpdateTagResponse res = sdk.tags().updateTag() + .request(req) + .call(); + + if (res.tagResponse().isPresent()) { + // handle response + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `request` | [UpdateTagRequest](../../models/operations/UpdateTagRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[UpdateTagResponse](../../models/operations/UpdateTagResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 0609ffdad..cf8d4d217 100644 --- a/gen.yaml +++ b/gen.yaml @@ -5,14 +5,15 @@ generation: optionalPropertyRendering: withExample useClassNamesForArrayFields: true fixes: - nameResolutionDec2023: false + nameResolutionFeb2025: false parameterOrderingFeb2024: false requestResponseComponentNamesFeb2024: false + securityFeb2025: false auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false java: - version: 1.6.0 + version: 1.7.0 additionalDependencies: [] additionalPlugins: [] artifactID: api diff --git a/src/main/java/com/airbyte/api/Airbyte.java b/src/main/java/com/airbyte/api/Airbyte.java index 5114936ed..4dcd9121b 100644 --- a/src/main/java/com/airbyte/api/Airbyte.java +++ b/src/main/java/com/airbyte/api/Airbyte.java @@ -4,7 +4,6 @@ package com.airbyte.api; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.utils.HTTPClient; import com.airbyte.api.utils.RetryConfig; import com.airbyte.api.utils.SpeakeasyHTTPClient; @@ -46,6 +45,8 @@ public class Airbyte { private final Streams streams; + private final Tags tags; + private final Users users; private final Workspaces workspaces; @@ -82,6 +83,10 @@ public Streams streams() { return streams; } + public Tags tags() { + return tags; + } + public Users users() { return users; } @@ -231,6 +236,7 @@ private Airbyte(SDKConfiguration sdkConfiguration) { this.permissions = new Permissions(sdkConfiguration); this.sources = new Sources(sdkConfiguration); this.streams = new Streams(sdkConfiguration); + this.tags = new Tags(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 dfda65643..91c8b9f38 100644 --- a/src/main/java/com/airbyte/api/Connections.java +++ b/src/main/java/com/airbyte/api/Connections.java @@ -165,7 +165,15 @@ public CreateConnectionResponse createConnection( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -270,7 +278,15 @@ public DeleteConnectionResponse deleteConnection( // no content return _res; } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -386,7 +402,15 @@ public GetConnectionResponse getConnection( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -505,7 +529,15 @@ public ListConnectionsResponse listConnections( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -634,7 +666,15 @@ public PatchConnectionResponse patchConnection( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/Destinations.java b/src/main/java/com/airbyte/api/Destinations.java index adab4b209..98615f04d 100644 --- a/src/main/java/com/airbyte/api/Destinations.java +++ b/src/main/java/com/airbyte/api/Destinations.java @@ -178,7 +178,15 @@ public CreateDestinationResponse createDestination( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -283,7 +291,15 @@ public DeleteDestinationResponse deleteDestination( // no content return _res; } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -399,7 +415,15 @@ public GetDestinationResponse getDestination( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -518,7 +542,15 @@ public ListDestinationsResponse listDestinations( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -644,7 +676,15 @@ public PatchDestinationResponse patchDestination( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -770,7 +810,15 @@ public PutDestinationResponse putDestination( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/Health.java b/src/main/java/com/airbyte/api/Health.java index add0c6094..645d3a858 100644 --- a/src/main/java/com/airbyte/api/Health.java +++ b/src/main/java/com/airbyte/api/Health.java @@ -113,7 +113,15 @@ public GetHealthCheckResponse getHealthCheckDirect() throws Exception { // no content return _res; } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/Jobs.java b/src/main/java/com/airbyte/api/Jobs.java index 74d5c9f0e..6fc07c0fe 100644 --- a/src/main/java/com/airbyte/api/Jobs.java +++ b/src/main/java/com/airbyte/api/Jobs.java @@ -150,7 +150,15 @@ public CancelJobResponse cancelJob( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -277,7 +285,15 @@ public CreateJobResponse createJob( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -393,7 +409,15 @@ public GetJobResponse getJob( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -512,7 +536,15 @@ public ListJobsResponse listJobs( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/Organizations.java b/src/main/java/com/airbyte/api/Organizations.java index 9d8874782..d93f5ff20 100644 --- a/src/main/java/com/airbyte/api/Organizations.java +++ b/src/main/java/com/airbyte/api/Organizations.java @@ -131,7 +131,15 @@ public ListOrganizationsForUserResponse listOrganizationsForUserDirect() throws Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/Permissions.java b/src/main/java/com/airbyte/api/Permissions.java index dd3169971..5a493239e 100644 --- a/src/main/java/com/airbyte/api/Permissions.java +++ b/src/main/java/com/airbyte/api/Permissions.java @@ -165,7 +165,15 @@ public CreatePermissionResponse createPermission( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -270,7 +278,15 @@ public DeletePermissionResponse deletePermission( // no content return _res; } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -386,7 +402,15 @@ public GetPermissionResponse getPermission( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -505,7 +529,15 @@ public ListPermissionsResponse listPermissions( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -634,7 +666,15 @@ public UpdatePermissionResponse updatePermission( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "422", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "422", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/SDKConfiguration.java b/src/main/java/com/airbyte/api/SDKConfiguration.java index 762a44f85..e10dd1a13 100644 --- a/src/main/java/com/airbyte/api/SDKConfiguration.java +++ b/src/main/java/com/airbyte/api/SDKConfiguration.java @@ -30,11 +30,11 @@ public String resolvedServerUrl() { public int serverIdx = 0; private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "1.0.0"; - public static final String SDK_VERSION = "1.6.0"; - public static final String GEN_VERSION = "2.474.15"; + public static final String SDK_VERSION = "1.7.0"; + public static final String GEN_VERSION = "2.545.2"; private static final String BASE_PACKAGE = "com.airbyte.api"; public static final String USER_AGENT = - String.format("speakeasy-sdk/%s %s %s %s %s", + String.format("speakeasy-sdk/%s %s %s %s %s", LANGUAGE, SDK_VERSION, GEN_VERSION, OPENAPI_DOC_VERSION, BASE_PACKAGE); private Hooks _hooks = createHooks(); diff --git a/src/main/java/com/airbyte/api/Sources.java b/src/main/java/com/airbyte/api/Sources.java index df570b300..e06531617 100644 --- a/src/main/java/com/airbyte/api/Sources.java +++ b/src/main/java/com/airbyte/api/Sources.java @@ -182,7 +182,15 @@ public CreateSourceResponse createSource( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -287,7 +295,15 @@ public DeleteSourceResponse deleteSource( // no content return _res; } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -403,7 +419,15 @@ public GetSourceResponse getSource( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -529,7 +553,15 @@ public InitiateOAuthResponse initiateOAuth( // no content return _res; } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -648,7 +680,15 @@ public ListSourcesResponse listSources( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -774,7 +814,15 @@ public PatchSourceResponse patchSource( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -900,7 +948,15 @@ public PutSourceResponse putSource( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/Streams.java b/src/main/java/com/airbyte/api/Streams.java index a5afd38b4..157c42cf1 100644 --- a/src/main/java/com/airbyte/api/Streams.java +++ b/src/main/java/com/airbyte/api/Streams.java @@ -137,7 +137,15 @@ public GetStreamPropertiesResponse getStreamProperties( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/Tags.java b/src/main/java/com/airbyte/api/Tags.java new file mode 100644 index 000000000..39d2a1f88 --- /dev/null +++ b/src/main/java/com/airbyte/api/Tags.java @@ -0,0 +1,702 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api; + +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateTagRequestBuilder; +import com.airbyte.api.models.operations.CreateTagResponse; +import com.airbyte.api.models.operations.DeleteTagRequest; +import com.airbyte.api.models.operations.DeleteTagRequestBuilder; +import com.airbyte.api.models.operations.DeleteTagResponse; +import com.airbyte.api.models.operations.GetTagRequest; +import com.airbyte.api.models.operations.GetTagRequestBuilder; +import com.airbyte.api.models.operations.GetTagResponse; +import com.airbyte.api.models.operations.ListTagsRequest; +import com.airbyte.api.models.operations.ListTagsRequestBuilder; +import com.airbyte.api.models.operations.ListTagsResponse; +import com.airbyte.api.models.operations.SDKMethodInterfaces.*; +import com.airbyte.api.models.operations.UpdateTagRequest; +import com.airbyte.api.models.operations.UpdateTagRequestBuilder; +import com.airbyte.api.models.operations.UpdateTagResponse; +import com.airbyte.api.models.shared.TagCreateRequest; +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.models.shared.TagsResponse; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; + +public class Tags implements + MethodCallCreateTag, + MethodCallDeleteTag, + MethodCallGetTag, + MethodCallListTags, + MethodCallUpdateTag { + + private final SDKConfiguration sdkConfiguration; + + Tags(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + + /** + * Create a tag + * Create a tag + * @return The call builder + */ + public CreateTagRequestBuilder createTag() { + return new CreateTagRequestBuilder(this); + } + + /** + * Create a tag + * Create a tag + * @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 CreateTagResponse createTag( + TagCreateRequest request) throws Exception { + String _baseUrl = this.sdkConfiguration.serverUrl; + String _url = Utils.generateURL( + _baseUrl, + "/tags"); + + HTTPRequest _req = new HTTPRequest(_url, "POST"); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference<TagCreateRequest>() {}); + SerializedBody _serializedRequestBody = Utils.serializeRequestBody( + _convertedRequest, + "request", + "json", + false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + _req.setBody(Optional.ofNullable(_serializedRequestBody)); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + SDKConfiguration.USER_AGENT); + + Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource(); + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "createTag", + Optional.of(List.of()), + _hookSecuritySource), + _req.build()); + HttpResponse<InputStream> _httpRes; + try { + _httpRes = _client.send(_r); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "409", "4XX", "5XX")) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "createTag", + Optional.of(List.of()), + _hookSecuritySource), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "createTag", + Optional.of(List.of()), + _hookSecuritySource), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "createTag", + Optional.of(List.of()), + _hookSecuritySource), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateTagResponse.Builder _resBuilder = + CreateTagResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + CreateTagResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + TagResponse _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference<TagResponse>() {}); + _res.withTagResponse(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "409", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Delete a tag + * Delete a tag + * @return The call builder + */ + public DeleteTagRequestBuilder deleteTag() { + return new DeleteTagRequestBuilder(this); + } + + /** + * Delete a tag + * Delete a tag + * @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 DeleteTagResponse deleteTag( + DeleteTagRequest request) throws Exception { + String _baseUrl = this.sdkConfiguration.serverUrl; + String _url = Utils.generateURL( + DeleteTagRequest.class, + _baseUrl, + "/tags/{tagId}", + request, null); + + HTTPRequest _req = new HTTPRequest(_url, "DELETE"); + _req.addHeader("Accept", "*/*") + .addHeader("user-agent", + SDKConfiguration.USER_AGENT); + + Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource(); + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "deleteTag", + Optional.of(List.of()), + _hookSecuritySource), + _req.build()); + HttpResponse<InputStream> _httpRes; + try { + _httpRes = _client.send(_r); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "deleteTag", + Optional.of(List.of()), + _hookSecuritySource), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "deleteTag", + Optional.of(List.of()), + _hookSecuritySource), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "deleteTag", + Optional.of(List.of()), + _hookSecuritySource), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteTagResponse.Builder _resBuilder = + DeleteTagResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + DeleteTagResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { + // no content + return _res; + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get a tag + * Get a tag + * @return The call builder + */ + public GetTagRequestBuilder getTag() { + return new GetTagRequestBuilder(this); + } + + /** + * Get a tag + * Get a tag + * @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 GetTagResponse getTag( + GetTagRequest request) throws Exception { + String _baseUrl = this.sdkConfiguration.serverUrl; + String _url = Utils.generateURL( + GetTagRequest.class, + _baseUrl, + "/tags/{tagId}", + request, null); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + SDKConfiguration.USER_AGENT); + + Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource(); + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "getTag", + Optional.of(List.of()), + _hookSecuritySource), + _req.build()); + HttpResponse<InputStream> _httpRes; + try { + _httpRes = _client.send(_r); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getTag", + Optional.of(List.of()), + _hookSecuritySource), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getTag", + Optional.of(List.of()), + _hookSecuritySource), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getTag", + Optional.of(List.of()), + _hookSecuritySource), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetTagResponse.Builder _resBuilder = + GetTagResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetTagResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + TagResponse _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference<TagResponse>() {}); + _res.withTagResponse(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * List all tags + * Lists all tags + * @return The call builder + */ + public ListTagsRequestBuilder listTags() { + return new ListTagsRequestBuilder(this); + } + + /** + * List all tags + * Lists all tags + * @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 ListTagsResponse listTags( + ListTagsRequest request) throws Exception { + String _baseUrl = this.sdkConfiguration.serverUrl; + String _url = Utils.generateURL( + _baseUrl, + "/tags"); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + SDKConfiguration.USER_AGENT); + + _req.addQueryParams(Utils.getQueryParams( + ListTagsRequest.class, + request, + null)); + + Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource(); + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "listTags", + Optional.of(List.of()), + _hookSecuritySource), + _req.build()); + HttpResponse<InputStream> _httpRes; + try { + _httpRes = _client.send(_r); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "listTags", + Optional.of(List.of()), + _hookSecuritySource), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "listTags", + Optional.of(List.of()), + _hookSecuritySource), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "listTags", + Optional.of(List.of()), + _hookSecuritySource), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListTagsResponse.Builder _resBuilder = + ListTagsResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + ListTagsResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + TagsResponse _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference<TagsResponse>() {}); + _res.withTagsResponse(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Update a tag + * Update a tag + * @return The call builder + */ + public UpdateTagRequestBuilder updateTag() { + return new UpdateTagRequestBuilder(this); + } + + /** + * Update a tag + * Update a tag + * @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 UpdateTagResponse updateTag( + UpdateTagRequest request) throws Exception { + String _baseUrl = this.sdkConfiguration.serverUrl; + String _url = Utils.generateURL( + UpdateTagRequest.class, + _baseUrl, + "/tags/{tagId}", + request, null); + + HTTPRequest _req = new HTTPRequest(_url, "PATCH"); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference<UpdateTagRequest>() {}); + SerializedBody _serializedRequestBody = Utils.serializeRequestBody( + _convertedRequest, + "tagPatchRequest", + "json", + false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + _req.setBody(Optional.ofNullable(_serializedRequestBody)); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + SDKConfiguration.USER_AGENT); + + Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource(); + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "updateTag", + Optional.of(List.of()), + _hookSecuritySource), + _req.build()); + HttpResponse<InputStream> _httpRes; + try { + _httpRes = _client.send(_r); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "updateTag", + Optional.of(List.of()), + _hookSecuritySource), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "updateTag", + Optional.of(List.of()), + _hookSecuritySource), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "updateTag", + Optional.of(List.of()), + _hookSecuritySource), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdateTagResponse.Builder _resBuilder = + UpdateTagResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + UpdateTagResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + TagResponse _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference<TagResponse>() {}); + _res.withTagResponse(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + +} diff --git a/src/main/java/com/airbyte/api/Users.java b/src/main/java/com/airbyte/api/Users.java index a0f6127d4..f6b52a27e 100644 --- a/src/main/java/com/airbyte/api/Users.java +++ b/src/main/java/com/airbyte/api/Users.java @@ -139,7 +139,15 @@ public ListUsersWithinAnOrganizationResponse listUsersWithinAnOrganization( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/Workspaces.java b/src/main/java/com/airbyte/api/Workspaces.java index 74bdb7735..82165ffd6 100644 --- a/src/main/java/com/airbyte/api/Workspaces.java +++ b/src/main/java/com/airbyte/api/Workspaces.java @@ -164,7 +164,15 @@ public CreateOrUpdateWorkspaceOAuthCredentialsResponse createOrUpdateWorkspaceOA // no content return _res; } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -291,7 +299,15 @@ public CreateWorkspaceResponse createWorkspace( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -396,7 +412,15 @@ public DeleteWorkspaceResponse deleteWorkspace( // no content return _res; } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -512,7 +536,15 @@ public GetWorkspaceResponse getWorkspace( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -631,7 +663,15 @@ public ListWorkspacesResponse listWorkspaces( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, @@ -760,7 +800,15 @@ public UpdateWorkspaceResponse updateWorkspace( Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { // no content throw new SDKError( _httpRes, diff --git a/src/main/java/com/airbyte/api/models/operations/CancelJobRequest.java b/src/main/java/com/airbyte/api/models/operations/CancelJobRequest.java index 434088af2..2d622a550 100644 --- a/src/main/java/com/airbyte/api/models/operations/CancelJobRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/CancelJobRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.String; import java.util.Objects; - public class CancelJobRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=jobId") diff --git a/src/main/java/com/airbyte/api/models/operations/CancelJobResponse.java b/src/main/java/com/airbyte/api/models/operations/CancelJobResponse.java index d3aa40845..e90a3db40 100644 --- a/src/main/java/com/airbyte/api/models/operations/CancelJobResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CancelJobResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.JobResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class CancelJobResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/CreateConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateConnectionResponse.java index 552afd4a5..4ec9ce278 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateConnectionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.ConnectionResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class CreateConnectionResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/CreateDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateDestinationResponse.java index fb2ce082e..cc2529341 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateDestinationResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.DestinationResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class CreateDestinationResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/CreateJobResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateJobResponse.java index 6009e89cd..f5f97da7b 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateJobResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateJobResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.JobResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class CreateJobResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java index a1389245b..528aa5048 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.WorkspaceOAuthCredentialsRequest; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -14,7 +13,6 @@ import java.lang.String; import java.util.Objects; - public class CreateOrUpdateWorkspaceOAuthCredentialsRequest { @SpeakeasyMetadata("request:mediaType=application/json") diff --git a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java index d2f5d0ade..b556fec5f 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.net.http.HttpResponse; import java.util.Objects; - public class CreateOrUpdateWorkspaceOAuthCredentialsResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java index 1ecd0f7db..fa7a4822c 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.PermissionResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class CreatePermissionResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/CreateSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateSourceResponse.java index 3613569d7..fef408f3a 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateSourceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.SourceResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class CreateSourceResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/CreateTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateTagRequestBuilder.java new file mode 100644 index 000000000..9ac1e2745 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/CreateTagRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +import com.airbyte.api.models.shared.TagCreateRequest; +import com.airbyte.api.utils.Utils; + +public class CreateTagRequestBuilder { + + private TagCreateRequest request; + private final SDKMethodInterfaces.MethodCallCreateTag sdk; + + public CreateTagRequestBuilder(SDKMethodInterfaces.MethodCallCreateTag sdk) { + this.sdk = sdk; + } + + public CreateTagRequestBuilder request(TagCreateRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CreateTagResponse call() throws Exception { + + return sdk.createTag( + request); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/CreateTagResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateTagResponse.java new file mode 100644 index 000000000..5e3491d19 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/CreateTagResponse.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.operations; +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.utils.Response; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Objects; +import java.util.Optional; + +public class CreateTagResponse implements Response { + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse<InputStream> rawResponse; + + /** + * Successful operation + */ + private Optional<? extends TagResponse> tagResponse; + + @JsonCreator + public CreateTagResponse( + String contentType, + int statusCode, + HttpResponse<InputStream> rawResponse, + Optional<? extends TagResponse> tagResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(tagResponse, "tagResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.tagResponse = tagResponse; + } + + public CreateTagResponse( + String contentType, + int statusCode, + HttpResponse<InputStream> 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<InputStream> rawResponse() { + return rawResponse; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<TagResponse> tagResponse() { + return (Optional<TagResponse>) tagResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public CreateTagResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateTagResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateTagResponse withRawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public CreateTagResponse withTagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + /** + * Successful operation + */ + public CreateTagResponse withTagResponse(Optional<? extends TagResponse> tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateTagResponse other = (CreateTagResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.tagResponse, other.tagResponse); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + tagResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateTagResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "tagResponse", tagResponse); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse<InputStream> rawResponse; + + private Optional<? extends TagResponse> tagResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public Builder tagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + /** + * Successful operation + */ + public Builder tagResponse(Optional<? extends TagResponse> tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + public CreateTagResponse build() { + return new CreateTagResponse( + contentType, + statusCode, + rawResponse, + tagResponse); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java index 4b975378d..c94418e10 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.WorkspaceResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class CreateWorkspaceResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java index 96170e66b..83ecf8ec6 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DeleteConnectionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=connectionId") diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionResponse.java index c513b2d2f..e35207078 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.net.http.HttpResponse; import java.util.Objects; - public class DeleteConnectionResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequest.java index 52b9459fe..c077afe61 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DeleteDestinationRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=destinationId") diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationResponse.java index 0b19715dd..27f46f766 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.net.http.HttpResponse; import java.util.Objects; - public class DeleteDestinationResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequest.java b/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequest.java index 907a29300..e8b17d899 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DeletePermissionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=permissionId") diff --git a/src/main/java/com/airbyte/api/models/operations/DeletePermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/DeletePermissionResponse.java index b617630a6..c530a4ec8 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeletePermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeletePermissionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.net.http.HttpResponse; import java.util.Objects; - public class DeletePermissionResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequest.java index 9655f3917..5a56616c7 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DeleteSourceRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sourceId") diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteSourceResponse.java index 91fb8b7e1..fd75ad8f4 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteSourceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.net.http.HttpResponse; import java.util.Objects; - public class DeleteSourceResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteTagRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteTagRequest.java new file mode 100644 index 000000000..2c14b6c7b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/DeleteTagRequest.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). 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.JsonIgnore; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class DeleteTagRequest { + + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=tagId") + private String tagId; + + @JsonCreator + public DeleteTagRequest( + String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + } + + @JsonIgnore + public String tagId() { + return tagId; + } + + public final static Builder builder() { + return new Builder(); + } + + public DeleteTagRequest withTagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteTagRequest other = (DeleteTagRequest) o; + return + Objects.deepEquals(this.tagId, other.tagId); + } + + @Override + public int hashCode() { + return Objects.hash( + tagId); + } + + @Override + public String toString() { + return Utils.toString(DeleteTagRequest.class, + "tagId", tagId); + } + + public final static class Builder { + + private String tagId; + + private Builder() { + // force use of static builder() method + } + + public Builder tagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + public DeleteTagRequest build() { + return new DeleteTagRequest( + tagId); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeleteTagRequestBuilder.java new file mode 100644 index 000000000..cdf3a3b55 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/DeleteTagRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +import com.airbyte.api.utils.Utils; + +public class DeleteTagRequestBuilder { + + private DeleteTagRequest request; + private final SDKMethodInterfaces.MethodCallDeleteTag sdk; + + public DeleteTagRequestBuilder(SDKMethodInterfaces.MethodCallDeleteTag sdk) { + this.sdk = sdk; + } + + public DeleteTagRequestBuilder request(DeleteTagRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public DeleteTagResponse call() throws Exception { + + return sdk.deleteTag( + request); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteTagResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteTagResponse.java new file mode 100644 index 000000000..0aec63563 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/DeleteTagResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.operations; +import com.airbyte.api.utils.Response; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; +import java.util.Objects; + +public class DeleteTagResponse implements Response { + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse<InputStream> rawResponse; + + @JsonCreator + public DeleteTagResponse( + String contentType, + int statusCode, + HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse<InputStream> rawResponse() { + return rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public DeleteTagResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteTagResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteTagResponse withRawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteTagResponse other = (DeleteTagResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeleteTagResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse<InputStream> rawResponse; + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeleteTagResponse build() { + return new DeleteTagResponse( + contentType, + statusCode, + rawResponse); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequest.java index 5ee6a1fe7..44ba0420e 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DeleteWorkspaceRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceResponse.java index bdba0949d..3fdde6786 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.net.http.HttpResponse; import java.util.Objects; - public class DeleteWorkspaceResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/GetConnectionRequest.java b/src/main/java/com/airbyte/api/models/operations/GetConnectionRequest.java index 43410b3b3..56a09aa90 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetConnectionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetConnectionRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class GetConnectionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=connectionId") diff --git a/src/main/java/com/airbyte/api/models/operations/GetConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/GetConnectionResponse.java index 6a1cf244d..3f8e4cf1c 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetConnectionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.ConnectionResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class GetConnectionResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/GetDestinationRequest.java b/src/main/java/com/airbyte/api/models/operations/GetDestinationRequest.java index 4cbec77b4..48ff5e2cd 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDestinationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDestinationRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class GetDestinationRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=destinationId") diff --git a/src/main/java/com/airbyte/api/models/operations/GetDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/GetDestinationResponse.java index 13fb58f30..8ce5bcdf3 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDestinationResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.DestinationResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class GetDestinationResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/GetHealthCheckResponse.java b/src/main/java/com/airbyte/api/models/operations/GetHealthCheckResponse.java index 3b5c3398f..2e68df5e9 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetHealthCheckResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetHealthCheckResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.net.http.HttpResponse; import java.util.Objects; - public class GetHealthCheckResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/GetJobRequest.java b/src/main/java/com/airbyte/api/models/operations/GetJobRequest.java index 2c8eda2d6..66005a8a0 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetJobRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetJobRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.String; import java.util.Objects; - public class GetJobRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=jobId") diff --git a/src/main/java/com/airbyte/api/models/operations/GetJobResponse.java b/src/main/java/com/airbyte/api/models/operations/GetJobResponse.java index 564dc9296..dcfebcf2d 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetJobResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetJobResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.JobResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class GetJobResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/GetPermissionRequest.java b/src/main/java/com/airbyte/api/models/operations/GetPermissionRequest.java index 80129da49..9d1dda474 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetPermissionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetPermissionRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class GetPermissionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=permissionId") diff --git a/src/main/java/com/airbyte/api/models/operations/GetPermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/GetPermissionResponse.java index 8e54d6db0..f786bd4f0 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetPermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetPermissionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.PermissionResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class GetPermissionResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/GetSourceRequest.java b/src/main/java/com/airbyte/api/models/operations/GetSourceRequest.java index 3e901b859..a13fa7823 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetSourceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetSourceRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class GetSourceRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sourceId") diff --git a/src/main/java/com/airbyte/api/models/operations/GetSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/GetSourceResponse.java index c0c41e3c4..44c99c644 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetSourceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.SourceResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class GetSourceResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java index f45ee5fe5..7ff10763b 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class GetStreamPropertiesRequest { /** diff --git a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java index f3538aa1b..8385871e3 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.StreamProperties; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class GetStreamPropertiesResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/GetTagRequest.java b/src/main/java/com/airbyte/api/models/operations/GetTagRequest.java new file mode 100644 index 000000000..73251d8b2 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/GetTagRequest.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). 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.JsonIgnore; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class GetTagRequest { + + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=tagId") + private String tagId; + + @JsonCreator + public GetTagRequest( + String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + } + + @JsonIgnore + public String tagId() { + return tagId; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetTagRequest withTagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTagRequest other = (GetTagRequest) o; + return + Objects.deepEquals(this.tagId, other.tagId); + } + + @Override + public int hashCode() { + return Objects.hash( + tagId); + } + + @Override + public String toString() { + return Utils.toString(GetTagRequest.class, + "tagId", tagId); + } + + public final static class Builder { + + private String tagId; + + private Builder() { + // force use of static builder() method + } + + public Builder tagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + public GetTagRequest build() { + return new GetTagRequest( + tagId); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/GetTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetTagRequestBuilder.java new file mode 100644 index 000000000..c6c788eb0 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/GetTagRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +import com.airbyte.api.utils.Utils; + +public class GetTagRequestBuilder { + + private GetTagRequest request; + private final SDKMethodInterfaces.MethodCallGetTag sdk; + + public GetTagRequestBuilder(SDKMethodInterfaces.MethodCallGetTag sdk) { + this.sdk = sdk; + } + + public GetTagRequestBuilder request(GetTagRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public GetTagResponse call() throws Exception { + + return sdk.getTag( + request); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/GetTagResponse.java b/src/main/java/com/airbyte/api/models/operations/GetTagResponse.java new file mode 100644 index 000000000..f8bb329ee --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/GetTagResponse.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.operations; +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.utils.Response; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Objects; +import java.util.Optional; + +public class GetTagResponse implements Response { + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse<InputStream> rawResponse; + + /** + * Successful operation + */ + private Optional<? extends TagResponse> tagResponse; + + @JsonCreator + public GetTagResponse( + String contentType, + int statusCode, + HttpResponse<InputStream> rawResponse, + Optional<? extends TagResponse> tagResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(tagResponse, "tagResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.tagResponse = tagResponse; + } + + public GetTagResponse( + String contentType, + int statusCode, + HttpResponse<InputStream> 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<InputStream> rawResponse() { + return rawResponse; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<TagResponse> tagResponse() { + return (Optional<TagResponse>) tagResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetTagResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetTagResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetTagResponse withRawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public GetTagResponse withTagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + /** + * Successful operation + */ + public GetTagResponse withTagResponse(Optional<? extends TagResponse> tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTagResponse other = (GetTagResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.tagResponse, other.tagResponse); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + tagResponse); + } + + @Override + public String toString() { + return Utils.toString(GetTagResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "tagResponse", tagResponse); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse<InputStream> rawResponse; + + private Optional<? extends TagResponse> tagResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public Builder tagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + /** + * Successful operation + */ + public Builder tagResponse(Optional<? extends TagResponse> tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + public GetTagResponse build() { + return new GetTagResponse( + contentType, + statusCode, + rawResponse, + tagResponse); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequest.java b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequest.java index 159f3c816..94fd98f41 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class GetWorkspaceRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") diff --git a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceResponse.java index ebdae09b3..fc78c474f 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.WorkspaceResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class GetWorkspaceResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/InitiateOAuthResponse.java b/src/main/java/com/airbyte/api/models/operations/InitiateOAuthResponse.java index 4151feaac..95fc09624 100644 --- a/src/main/java/com/airbyte/api/models/operations/InitiateOAuthResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/InitiateOAuthResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.net.http.HttpResponse; import java.util.Objects; - public class InitiateOAuthResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequest.java index db7ce8e96..cff18dc0b 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class ListConnectionsRequest { /** @@ -41,6 +39,12 @@ public class ListConnectionsRequest { @SpeakeasyMetadata("queryParam:style=form,explode=true,name=offset") private Optional<Integer> offset; + /** + * The UUIDs of the tags you wish to list connections for. Empty list will retrieve all connections. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=tagIds") + private Optional<? extends List<String>> tagIds; + /** * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. */ @@ -52,19 +56,22 @@ public ListConnectionsRequest( Optional<Boolean> includeDeleted, Optional<Integer> limit, Optional<Integer> offset, + Optional<? extends List<String>> tagIds, Optional<? extends List<String>> workspaceIds) { Utils.checkNotNull(includeDeleted, "includeDeleted"); Utils.checkNotNull(limit, "limit"); Utils.checkNotNull(offset, "offset"); + Utils.checkNotNull(tagIds, "tagIds"); Utils.checkNotNull(workspaceIds, "workspaceIds"); this.includeDeleted = includeDeleted; this.limit = limit; this.offset = offset; + this.tagIds = tagIds; this.workspaceIds = workspaceIds; } public ListConnectionsRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -91,6 +98,15 @@ public Optional<Integer> offset() { return offset; } + /** + * The UUIDs of the tags you wish to list connections for. Empty list will retrieve all connections. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<String>> tagIds() { + return (Optional<List<String>>) tagIds; + } + /** * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. */ @@ -158,6 +174,24 @@ public ListConnectionsRequest withOffset(Optional<Integer> offset) { return this; } + /** + * The UUIDs of the tags you wish to list connections for. Empty list will retrieve all connections. + */ + public ListConnectionsRequest withTagIds(List<String> tagIds) { + Utils.checkNotNull(tagIds, "tagIds"); + this.tagIds = Optional.ofNullable(tagIds); + return this; + } + + /** + * The UUIDs of the tags you wish to list connections for. Empty list will retrieve all connections. + */ + public ListConnectionsRequest withTagIds(Optional<? extends List<String>> tagIds) { + Utils.checkNotNull(tagIds, "tagIds"); + this.tagIds = tagIds; + return this; + } + /** * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. */ @@ -189,6 +223,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.includeDeleted, other.includeDeleted) && Objects.deepEquals(this.limit, other.limit) && Objects.deepEquals(this.offset, other.offset) && + Objects.deepEquals(this.tagIds, other.tagIds) && Objects.deepEquals(this.workspaceIds, other.workspaceIds); } @@ -198,6 +233,7 @@ public int hashCode() { includeDeleted, limit, offset, + tagIds, workspaceIds); } @@ -207,6 +243,7 @@ public String toString() { "includeDeleted", includeDeleted, "limit", limit, "offset", offset, + "tagIds", tagIds, "workspaceIds", workspaceIds); } @@ -218,6 +255,8 @@ public final static class Builder { private Optional<Integer> offset; + private Optional<? extends List<String>> tagIds = Optional.empty(); + private Optional<? extends List<String>> workspaceIds = Optional.empty(); private Builder() { @@ -278,6 +317,24 @@ public Builder offset(Optional<Integer> offset) { return this; } + /** + * The UUIDs of the tags you wish to list connections for. Empty list will retrieve all connections. + */ + public Builder tagIds(List<String> tagIds) { + Utils.checkNotNull(tagIds, "tagIds"); + this.tagIds = Optional.ofNullable(tagIds); + return this; + } + + /** + * The UUIDs of the tags you wish to list connections for. Empty list will retrieve all connections. + */ + public Builder tagIds(Optional<? extends List<String>> tagIds) { + Utils.checkNotNull(tagIds, "tagIds"); + this.tagIds = tagIds; + return this; + } + /** * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. */ @@ -309,6 +366,7 @@ public ListConnectionsRequest build() { includeDeleted, limit, offset, + tagIds, workspaceIds); } diff --git a/src/main/java/com/airbyte/api/models/operations/ListConnectionsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListConnectionsResponse.java index dba552536..f28ce4fff 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListConnectionsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListConnectionsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.ConnectionsResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ListConnectionsResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequest.java index 6f1446c4f..1203c37b6 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class ListDestinationsRequest { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListDestinationsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListDestinationsResponse.java index 9e5fffe14..91d3c7ea3 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDestinationsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDestinationsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.DestinationsResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ListDestinationsResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListJobsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListJobsRequest.java index cf706b6e2..353fe1c85 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListJobsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListJobsRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.JobStatusEnum; import com.airbyte.api.models.shared.JobTypeEnum; import com.airbyte.api.utils.LazySingletonValue; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class ListJobsRequest { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListJobsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListJobsResponse.java index a5cbb719d..44128f68f 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListJobsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListJobsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.JobsResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ListJobsResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java index 1cbec401b..eab54f2db 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.OrganizationsResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ListOrganizationsForUserResponse implements Response { /** 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 d3fe8a7bf..c3ce3d1ac 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.util.Objects; import java.util.Optional; - public class ListPermissionsRequest { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListPermissionsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListPermissionsResponse.java index e4c2ebd57..c5efabcd1 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListPermissionsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListPermissionsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.PermissionsResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ListPermissionsResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListSourcesRequest.java b/src/main/java/com/airbyte/api/models/operations/ListSourcesRequest.java index 42a2686b5..7d5eeae0f 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListSourcesRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListSourcesRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class ListSourcesRequest { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListSourcesResponse.java b/src/main/java/com/airbyte/api/models/operations/ListSourcesResponse.java index fa1d031df..5d6ae1544 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListSourcesResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListSourcesResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.SourcesResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ListSourcesResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListTagsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListTagsRequest.java new file mode 100644 index 000000000..27a0865c4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/ListTagsRequest.java @@ -0,0 +1,107 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). 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.JsonIgnore; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +public class ListTagsRequest { + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=workspaceIds") + private Optional<? extends List<String>> workspaceIds; + + @JsonCreator + public ListTagsRequest( + Optional<? extends List<String>> workspaceIds) { + Utils.checkNotNull(workspaceIds, "workspaceIds"); + this.workspaceIds = workspaceIds; + } + + public ListTagsRequest() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<String>> workspaceIds() { + return (Optional<List<String>>) workspaceIds; + } + + public final static Builder builder() { + return new Builder(); + } + + public ListTagsRequest withWorkspaceIds(List<String> workspaceIds) { + Utils.checkNotNull(workspaceIds, "workspaceIds"); + this.workspaceIds = Optional.ofNullable(workspaceIds); + return this; + } + + public ListTagsRequest withWorkspaceIds(Optional<? extends List<String>> workspaceIds) { + Utils.checkNotNull(workspaceIds, "workspaceIds"); + this.workspaceIds = workspaceIds; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListTagsRequest other = (ListTagsRequest) o; + return + Objects.deepEquals(this.workspaceIds, other.workspaceIds); + } + + @Override + public int hashCode() { + return Objects.hash( + workspaceIds); + } + + @Override + public String toString() { + return Utils.toString(ListTagsRequest.class, + "workspaceIds", workspaceIds); + } + + public final static class Builder { + + private Optional<? extends List<String>> workspaceIds = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder workspaceIds(List<String> workspaceIds) { + Utils.checkNotNull(workspaceIds, "workspaceIds"); + this.workspaceIds = Optional.ofNullable(workspaceIds); + return this; + } + + public Builder workspaceIds(Optional<? extends List<String>> workspaceIds) { + Utils.checkNotNull(workspaceIds, "workspaceIds"); + this.workspaceIds = workspaceIds; + return this; + } + + public ListTagsRequest build() { + return new ListTagsRequest( + workspaceIds); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/ListTagsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListTagsRequestBuilder.java new file mode 100644 index 000000000..fb885a4d7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/ListTagsRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +import com.airbyte.api.utils.Utils; + +public class ListTagsRequestBuilder { + + private ListTagsRequest request; + private final SDKMethodInterfaces.MethodCallListTags sdk; + + public ListTagsRequestBuilder(SDKMethodInterfaces.MethodCallListTags sdk) { + this.sdk = sdk; + } + + public ListTagsRequestBuilder request(ListTagsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public ListTagsResponse call() throws Exception { + + return sdk.listTags( + request); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/ListTagsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListTagsResponse.java new file mode 100644 index 000000000..17c46537b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/ListTagsResponse.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.operations; +import com.airbyte.api.models.shared.TagsResponse; +import com.airbyte.api.utils.Response; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Objects; +import java.util.Optional; + +public class ListTagsResponse implements Response { + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse<InputStream> rawResponse; + + /** + * List Tags. + */ + private Optional<? extends TagsResponse> tagsResponse; + + @JsonCreator + public ListTagsResponse( + String contentType, + int statusCode, + HttpResponse<InputStream> rawResponse, + Optional<? extends TagsResponse> tagsResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.tagsResponse = tagsResponse; + } + + public ListTagsResponse( + String contentType, + int statusCode, + HttpResponse<InputStream> 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<InputStream> rawResponse() { + return rawResponse; + } + + /** + * List Tags. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<TagsResponse> tagsResponse() { + return (Optional<TagsResponse>) tagsResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public ListTagsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListTagsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListTagsResponse withRawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * List Tags. + */ + public ListTagsResponse withTagsResponse(TagsResponse tagsResponse) { + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.tagsResponse = Optional.ofNullable(tagsResponse); + return this; + } + + /** + * List Tags. + */ + public ListTagsResponse withTagsResponse(Optional<? extends TagsResponse> tagsResponse) { + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.tagsResponse = tagsResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListTagsResponse other = (ListTagsResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.tagsResponse, other.tagsResponse); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + tagsResponse); + } + + @Override + public String toString() { + return Utils.toString(ListTagsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "tagsResponse", tagsResponse); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse<InputStream> rawResponse; + + private Optional<? extends TagsResponse> tagsResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * List Tags. + */ + public Builder tagsResponse(TagsResponse tagsResponse) { + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.tagsResponse = Optional.ofNullable(tagsResponse); + return this; + } + + /** + * List Tags. + */ + public Builder tagsResponse(Optional<? extends TagsResponse> tagsResponse) { + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.tagsResponse = tagsResponse; + return this; + } + + public ListTagsResponse build() { + return new ListTagsResponse( + contentType, + statusCode, + rawResponse, + tagsResponse); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java index b3549beec..8cb32489b 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class ListUsersWithinAnOrganizationRequest { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java index b1fb16731..974abc12c 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.UsersResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ListUsersWithinAnOrganizationResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequest.java b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequest.java index a34b5f660..22dceda2f 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class ListWorkspacesRequest { /** diff --git a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesResponse.java b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesResponse.java index cc066f959..14c88a8ce 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.WorkspacesResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ListWorkspacesResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequest.java b/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequest.java index 841984299..3a7fab76a 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.ConnectionPatchRequest; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -14,7 +13,6 @@ import java.lang.String; import java.util.Objects; - public class PatchConnectionRequest { @SpeakeasyMetadata("request:mediaType=application/json") diff --git a/src/main/java/com/airbyte/api/models/operations/PatchConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/PatchConnectionResponse.java index 4e1a4f270..5c4c6fb64 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchConnectionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.ConnectionResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class PatchConnectionResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/PatchDestinationRequest.java b/src/main/java/com/airbyte/api/models/operations/PatchDestinationRequest.java index d93212c51..90d3ddb28 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchDestinationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchDestinationRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.DestinationPatchRequest; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class PatchDestinationRequest { @SpeakeasyMetadata("request:mediaType=application/json") diff --git a/src/main/java/com/airbyte/api/models/operations/PatchDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/PatchDestinationResponse.java index d21cd4a85..be7a43209 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchDestinationResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.DestinationResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class PatchDestinationResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/PatchSourceRequest.java b/src/main/java/com/airbyte/api/models/operations/PatchSourceRequest.java index e10c0ef73..b092c89f6 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchSourceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchSourceRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.SourcePatchRequest; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class PatchSourceRequest { @SpeakeasyMetadata("request:mediaType=application/json") diff --git a/src/main/java/com/airbyte/api/models/operations/PatchSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/PatchSourceResponse.java index ff87bcbbf..abdd8b024 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchSourceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.SourceResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class PatchSourceResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/PutDestinationRequest.java b/src/main/java/com/airbyte/api/models/operations/PutDestinationRequest.java index 9663cc8a5..bd288640e 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutDestinationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PutDestinationRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.DestinationPutRequest; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class PutDestinationRequest { @SpeakeasyMetadata("request:mediaType=application/json") diff --git a/src/main/java/com/airbyte/api/models/operations/PutDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/PutDestinationResponse.java index 6afd2638b..e17997a87 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PutDestinationResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.DestinationResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class PutDestinationResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/PutSourceRequest.java b/src/main/java/com/airbyte/api/models/operations/PutSourceRequest.java index d5db3b228..a5b89cb8b 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutSourceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PutSourceRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.SourcePutRequest; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class PutSourceRequest { @SpeakeasyMetadata("request:mediaType=application/json") diff --git a/src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java index 197b0afaf..a8d3a9e50 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.SourceResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class PutSourceResponse implements Response { /** 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 ba4b7c3bb..5e8ef8a2a 100644 --- a/src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java +++ b/src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java @@ -10,6 +10,7 @@ import com.airbyte.api.models.shared.JobCreateRequest; import com.airbyte.api.models.shared.PermissionCreateRequest; import com.airbyte.api.models.shared.SourceCreateRequest; +import com.airbyte.api.models.shared.TagCreateRequest; import com.airbyte.api.models.shared.WorkspaceCreateRequest; import java.lang.Exception; import java.util.Optional; @@ -195,6 +196,36 @@ GetStreamPropertiesResponse getStreamProperties( } + public interface MethodCallCreateTag { + CreateTagResponse createTag( + TagCreateRequest request) throws Exception; + } + + + public interface MethodCallDeleteTag { + DeleteTagResponse deleteTag( + DeleteTagRequest request) throws Exception; + } + + + public interface MethodCallGetTag { + GetTagResponse getTag( + GetTagRequest request) throws Exception; + } + + + public interface MethodCallListTags { + ListTagsResponse listTags( + ListTagsRequest request) throws Exception; + } + + + public interface MethodCallUpdateTag { + UpdateTagResponse updateTag( + UpdateTagRequest request) throws Exception; + } + + public interface MethodCallListUsersWithinAnOrganization { ListUsersWithinAnOrganizationResponse listUsersWithinAnOrganization( ListUsersWithinAnOrganizationRequest request) throws Exception; diff --git a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequest.java b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequest.java index 1dd181cd2..00864cf5d 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.PermissionUpdateRequest; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -14,7 +13,6 @@ import java.lang.String; import java.util.Objects; - public class UpdatePermissionRequest { @SpeakeasyMetadata("request:mediaType=application/json") diff --git a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionResponse.java index 644c28ea9..13d3f575e 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.PermissionResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class UpdatePermissionResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateTagRequest.java b/src/main/java/com/airbyte/api/models/operations/UpdateTagRequest.java new file mode 100644 index 000000000..fdcf27a78 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/UpdateTagRequest.java @@ -0,0 +1,117 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.operations; +import com.airbyte.api.models.shared.TagPatchRequest; +import com.airbyte.api.utils.SpeakeasyMetadata; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class UpdateTagRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private TagPatchRequest tagPatchRequest; + + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=tagId") + private String tagId; + + @JsonCreator + public UpdateTagRequest( + TagPatchRequest tagPatchRequest, + String tagId) { + Utils.checkNotNull(tagPatchRequest, "tagPatchRequest"); + Utils.checkNotNull(tagId, "tagId"); + this.tagPatchRequest = tagPatchRequest; + this.tagId = tagId; + } + + @JsonIgnore + public TagPatchRequest tagPatchRequest() { + return tagPatchRequest; + } + + @JsonIgnore + public String tagId() { + return tagId; + } + + public final static Builder builder() { + return new Builder(); + } + + public UpdateTagRequest withTagPatchRequest(TagPatchRequest tagPatchRequest) { + Utils.checkNotNull(tagPatchRequest, "tagPatchRequest"); + this.tagPatchRequest = tagPatchRequest; + return this; + } + + public UpdateTagRequest withTagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateTagRequest other = (UpdateTagRequest) o; + return + Objects.deepEquals(this.tagPatchRequest, other.tagPatchRequest) && + Objects.deepEquals(this.tagId, other.tagId); + } + + @Override + public int hashCode() { + return Objects.hash( + tagPatchRequest, + tagId); + } + + @Override + public String toString() { + return Utils.toString(UpdateTagRequest.class, + "tagPatchRequest", tagPatchRequest, + "tagId", tagId); + } + + public final static class Builder { + + private TagPatchRequest tagPatchRequest; + + private String tagId; + + private Builder() { + // force use of static builder() method + } + + public Builder tagPatchRequest(TagPatchRequest tagPatchRequest) { + Utils.checkNotNull(tagPatchRequest, "tagPatchRequest"); + this.tagPatchRequest = tagPatchRequest; + return this; + } + + public Builder tagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + public UpdateTagRequest build() { + return new UpdateTagRequest( + tagPatchRequest, + tagId); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/UpdateTagRequestBuilder.java new file mode 100644 index 000000000..0f737fd64 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/UpdateTagRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.models.operations; + +import com.airbyte.api.utils.Utils; + +public class UpdateTagRequestBuilder { + + private UpdateTagRequest request; + private final SDKMethodInterfaces.MethodCallUpdateTag sdk; + + public UpdateTagRequestBuilder(SDKMethodInterfaces.MethodCallUpdateTag sdk) { + this.sdk = sdk; + } + + public UpdateTagRequestBuilder request(UpdateTagRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public UpdateTagResponse call() throws Exception { + + return sdk.updateTag( + request); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateTagResponse.java b/src/main/java/com/airbyte/api/models/operations/UpdateTagResponse.java new file mode 100644 index 000000000..b6ee21048 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/UpdateTagResponse.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.operations; +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.utils.Response; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Objects; +import java.util.Optional; + +public class UpdateTagResponse implements Response { + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse<InputStream> rawResponse; + + /** + * Successful operation + */ + private Optional<? extends TagResponse> tagResponse; + + @JsonCreator + public UpdateTagResponse( + String contentType, + int statusCode, + HttpResponse<InputStream> rawResponse, + Optional<? extends TagResponse> tagResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(tagResponse, "tagResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.tagResponse = tagResponse; + } + + public UpdateTagResponse( + String contentType, + int statusCode, + HttpResponse<InputStream> 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<InputStream> rawResponse() { + return rawResponse; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<TagResponse> tagResponse() { + return (Optional<TagResponse>) tagResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public UpdateTagResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public UpdateTagResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public UpdateTagResponse withRawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public UpdateTagResponse withTagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + /** + * Successful operation + */ + public UpdateTagResponse withTagResponse(Optional<? extends TagResponse> tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateTagResponse other = (UpdateTagResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.tagResponse, other.tagResponse); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + tagResponse); + } + + @Override + public String toString() { + return Utils.toString(UpdateTagResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "tagResponse", tagResponse); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse<InputStream> rawResponse; + + private Optional<? extends TagResponse> tagResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse<InputStream> rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public Builder tagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + /** + * Successful operation + */ + public Builder tagResponse(Optional<? extends TagResponse> tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + public UpdateTagResponse build() { + return new UpdateTagResponse( + contentType, + statusCode, + rawResponse, + tagResponse); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java index dbbcc37bb..6f1fe2b3a 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.WorkspaceUpdateRequest; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -14,7 +13,6 @@ import java.lang.String; import java.util.Objects; - public class UpdateWorkspaceRequest { @SpeakeasyMetadata("request:mediaType=application/json") diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java index 8541395e4..6d509d384 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.operations; - +package com.airbyte.api.models.operations; import com.airbyte.api.models.shared.WorkspaceResponse; import com.airbyte.api.utils.Response; import com.airbyte.api.utils.Utils; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class UpdateWorkspaceResponse implements Response { /** diff --git a/src/main/java/com/airbyte/api/models/shared/APIAccessToken.java b/src/main/java/com/airbyte/api/models/shared/APIAccessToken.java index c42141a0c..3b2ee4d4e 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/APIAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class APIAccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/APIEndpoint.java b/src/main/java/com/airbyte/api/models/shared/APIEndpoint.java index 8da9c7d34..ea49dd5ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIEndpoint.java +++ b/src/main/java/com/airbyte/api/models/shared/APIEndpoint.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = APIEndpoint._Deserializer.class) public class APIEndpoint { diff --git a/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java b/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java index 00e51fec0..c356e61c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java +++ b/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum APIEndpointPrefix { API("api"), API_EU("api.eu"); @@ -21,4 +22,13 @@ private APIEndpointPrefix(String value) { public String value() { return value; } + + public static Optional<APIEndpointPrefix> fromValue(String value) { + for (APIEndpointPrefix o: APIEndpointPrefix.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/APIKey.java b/src/main/java/com/airbyte/api/models/shared/APIKey.java index 2813ccd50..66bfbabf0 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIKey.java +++ b/src/main/java/com/airbyte/api/models/shared/APIKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class APIKey { /** diff --git a/src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java b/src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java index 7cbeae223..b2d10940b 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class APIParameterConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/APIPassword.java b/src/main/java/com/airbyte/api/models/shared/APIPassword.java index e73f1b692..764a24d05 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/APIPassword.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * APIPassword - API Password Auth */ diff --git a/src/main/java/com/airbyte/api/models/shared/APIServer.java b/src/main/java/com/airbyte/api/models/shared/APIServer.java index de11cb15e..88ae46d79 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIServer.java +++ b/src/main/java/com/airbyte/api/models/shared/APIServer.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum APIServer { US("us"), EU("eu"); @@ -21,4 +22,13 @@ private APIServer(String value) { public String value() { return value; } + + public static Optional<APIServer> fromValue(String value) { + for (APIServer o: APIServer.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/APIToken.java b/src/main/java/com/airbyte/api/models/shared/APIToken.java index e645547dd..f27dc2dc1 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/APIToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class APIToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java b/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java index b6c352c3f..b90346b1f 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * AWSEnvironment - Select the AWS Environment. */ @@ -24,4 +25,13 @@ private AWSEnvironment(String value) { public String value() { return value; } + + public static Optional<AWSEnvironment> fromValue(String value) { + for (AWSEnvironment o: AWSEnvironment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AWSRegion.java b/src/main/java/com/airbyte/api/models/shared/AWSRegion.java index 6a708b581..76fde7760 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * AWSRegion - Select the AWS Region. */ @@ -44,4 +45,13 @@ private AWSRegion(String value) { public String value() { return value; } + + public static Optional<AWSRegion> fromValue(String value) { + for (AWSRegion o: AWSRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java b/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java index d97e6b713..d8ae2bd1a 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * AWSS3Staging - <i>(recommended)</i> Uploads data to S3 and then uses a COPY to insert the data into Redshift. COPY is recommended for production workloads for better speed and scalability. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html">AWS docs</a> for more details. */ diff --git a/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java b/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java index 0114b6712..b5d56e10f 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * AWSSellerPartnerAccountType - Type of the Account you're going to authorize the Airbyte application by */ @@ -24,4 +25,13 @@ private AWSSellerPartnerAccountType(String value) { public String value() { return value; } + + public static Optional<AWSSellerPartnerAccountType> fromValue(String value) { + for (AWSSellerPartnerAccountType o: AWSSellerPartnerAccountType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AccessToken.java b/src/main/java/com/airbyte/api/models/shared/AccessToken.java index aa8d4ce41..ab566b1f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/AccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/AccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java b/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java index 0f6871172..b7b42525d 100644 --- a/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java +++ b/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum AccessTokenIsRequiredForAuthenticationRequests { ACCESS_TOKEN("access_token"); @@ -20,4 +21,13 @@ private AccessTokenIsRequiredForAuthenticationRequests(String value) { public String value() { return value; } + + public static Optional<AccessTokenIsRequiredForAuthenticationRequests> fromValue(String value) { + for (AccessTokenIsRequiredForAuthenticationRequests o: AccessTokenIsRequiredForAuthenticationRequests.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AccountNames.java b/src/main/java/com/airbyte/api/models/shared/AccountNames.java index a41cc2eeb..38f7eca1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/AccountNames.java +++ b/src/main/java/com/airbyte/api/models/shared/AccountNames.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * AccountNames - Account Names Predicates Config. */ diff --git a/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java b/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java index c6ae9278d..4e1e85865 100644 --- a/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java +++ b/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ActionReportTime - Specifies the principle for conversion reporting. */ @@ -24,4 +25,13 @@ private ActionReportTime(String value) { public String value() { return value; } + + public static Optional<ActionReportTime> fromValue(String value) { + for (ActionReportTime o: ActionReportTime.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Activecampaign.java b/src/main/java/com/airbyte/api/models/shared/Activecampaign.java index eee806a81..491566651 100644 --- a/src/main/java/com/airbyte/api/models/shared/Activecampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/Activecampaign.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Activecampaign { ACTIVECAMPAIGN("activecampaign"); @@ -20,4 +21,13 @@ private Activecampaign(String value) { public String value() { return value; } + + public static Optional<Activecampaign> fromValue(String value) { + for (Activecampaign o: Activecampaign.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java index e4ea852ef..96c102e28 100644 --- a/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ActorTypeEnum - Whether you're setting this override for a source or destination */ @@ -24,4 +25,13 @@ private ActorTypeEnum(String value) { public String value() { return value; } + + public static Optional<ActorTypeEnum> fromValue(String value) { + for (ActorTypeEnum o: ActorTypeEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AdAnalyticsReportConfiguration.java b/src/main/java/com/airbyte/api/models/shared/AdAnalyticsReportConfiguration.java index 02c1e22f9..c39d2779c 100644 --- a/src/main/java/com/airbyte/api/models/shared/AdAnalyticsReportConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/AdAnalyticsReportConfiguration.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * AdAnalyticsReportConfiguration - Config for custom ad Analytics Report */ diff --git a/src/main/java/com/airbyte/api/models/shared/Agilecrm.java b/src/main/java/com/airbyte/api/models/shared/Agilecrm.java index 47d7cf718..88fbf7e92 100644 --- a/src/main/java/com/airbyte/api/models/shared/Agilecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Agilecrm.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Agilecrm { AGILECRM("agilecrm"); @@ -20,4 +21,13 @@ private Agilecrm(String value) { public String value() { return value; } + + public static Optional<Agilecrm> fromValue(String value) { + for (Agilecrm o: Agilecrm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Aha.java b/src/main/java/com/airbyte/api/models/shared/Aha.java index 294cff66e..9c2fabd3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Aha.java +++ b/src/main/java/com/airbyte/api/models/shared/Aha.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Aha { AHA("aha"); @@ -20,4 +21,13 @@ private Aha(String value) { public String value() { return value; } + + public static Optional<Aha> fromValue(String value) { + for (Aha o: Aha.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Airbyte.java b/src/main/java/com/airbyte/api/models/shared/Airbyte.java index 65c1b342f..dfec5748c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Airbyte.java +++ b/src/main/java/com/airbyte/api/models/shared/Airbyte.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Airbyte { AIRBYTE("airbyte"); @@ -20,4 +21,13 @@ private Airbyte(String value) { public String value() { return value; } + + public static Optional<Airbyte> fromValue(String value) { + for (Airbyte o: Airbyte.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AirbyteApiConnectionSchedule.java b/src/main/java/com/airbyte/api/models/shared/AirbyteApiConnectionSchedule.java index 7d98faf1a..5a694743a 100644 --- a/src/main/java/com/airbyte/api/models/shared/AirbyteApiConnectionSchedule.java +++ b/src/main/java/com/airbyte/api/models/shared/AirbyteApiConnectionSchedule.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * AirbyteApiConnectionSchedule - schedule for when the the connection should run, per the schedule type */ diff --git a/src/main/java/com/airbyte/api/models/shared/Aircall.java b/src/main/java/com/airbyte/api/models/shared/Aircall.java index 3b2814e83..ba6f5201a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Aircall.java +++ b/src/main/java/com/airbyte/api/models/shared/Aircall.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Aircall { AIRCALL("aircall"); @@ -20,4 +21,13 @@ private Aircall(String value) { public String value() { return value; } + + public static Optional<Aircall> fromValue(String value) { + for (Aircall o: Aircall.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Airtable.java b/src/main/java/com/airbyte/api/models/shared/Airtable.java index 63a272ad3..c5232325b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Airtable.java +++ b/src/main/java/com/airbyte/api/models/shared/Airtable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Airtable { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/Akeneo.java b/src/main/java/com/airbyte/api/models/shared/Akeneo.java index cc1db11a4..a83ef3779 100644 --- a/src/main/java/com/airbyte/api/models/shared/Akeneo.java +++ b/src/main/java/com/airbyte/api/models/shared/Akeneo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Akeneo { AKENEO("akeneo"); @@ -20,4 +21,13 @@ private Akeneo(String value) { public String value() { return value; } + + public static Optional<Akeneo> fromValue(String value) { + for (Akeneo o: Akeneo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Algolia.java b/src/main/java/com/airbyte/api/models/shared/Algolia.java index 25565f60f..600f4cb18 100644 --- a/src/main/java/com/airbyte/api/models/shared/Algolia.java +++ b/src/main/java/com/airbyte/api/models/shared/Algolia.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Algolia { ALGOLIA("algolia"); @@ -20,4 +21,13 @@ private Algolia(String value) { public String value() { return value; } + + public static Optional<Algolia> fromValue(String value) { + for (Algolia o: Algolia.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Allow.java b/src/main/java/com/airbyte/api/models/shared/Allow.java index e7253524e..586a0243a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Allow.java +++ b/src/main/java/com/airbyte/api/models/shared/Allow.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * Allow - Allow SSL mode. */ @@ -27,7 +25,7 @@ public class Allow { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationPostgresMode> mode; + private Optional<? extends DestinationPostgresSchemasMode> mode; @JsonCreator public Allow() { @@ -37,8 +35,8 @@ public Allow() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationPostgresMode> mode() { - return (Optional<DestinationPostgresMode>) mode; + public Optional<DestinationPostgresSchemasMode> mode() { + return (Optional<DestinationPostgresSchemasMode>) mode; } public final static Builder builder() { @@ -81,11 +79,11 @@ public Allow build() { ); } - private static final LazySingletonValue<Optional<? extends DestinationPostgresMode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationPostgresSchemasMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"allow\"", - new TypeReference<Optional<? extends DestinationPostgresMode>>() {}); + new TypeReference<Optional<? extends DestinationPostgresSchemasMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/AlphaVantage.java b/src/main/java/com/airbyte/api/models/shared/AlphaVantage.java new file mode 100644 index 000000000..226db62bf --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/AlphaVantage.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum AlphaVantage { + ALPHA_VANTAGE("alpha-vantage"); + + @JsonValue + private final String value; + + private AlphaVantage(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<AlphaVantage> fromValue(String value) { + for (AlphaVantage o: AlphaVantage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/AmazonAds.java b/src/main/java/com/airbyte/api/models/shared/AmazonAds.java index e7da9445c..d95c26d95 100644 --- a/src/main/java/com/airbyte/api/models/shared/AmazonAds.java +++ b/src/main/java/com/airbyte/api/models/shared/AmazonAds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class AmazonAds { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AmazonSellerPartner.java b/src/main/java/com/airbyte/api/models/shared/AmazonSellerPartner.java index 680158de2..56a8d6c3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/AmazonSellerPartner.java +++ b/src/main/java/com/airbyte/api/models/shared/AmazonSellerPartner.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,9 +15,15 @@ import java.util.Objects; import java.util.Optional; - public class AmazonSellerPartner { + /** + * Your Amazon Application ID. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("app_id") + private Optional<String> appId; + /** * Your Login with Amazon Client ID. */ @@ -35,16 +40,27 @@ public class AmazonSellerPartner { @JsonCreator public AmazonSellerPartner( + @JsonProperty("app_id") Optional<String> appId, @JsonProperty("lwa_app_id") Optional<String> lwaAppId, @JsonProperty("lwa_client_secret") Optional<String> lwaClientSecret) { + Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(lwaAppId, "lwaAppId"); Utils.checkNotNull(lwaClientSecret, "lwaClientSecret"); + this.appId = appId; this.lwaAppId = lwaAppId; this.lwaClientSecret = lwaClientSecret; } public AmazonSellerPartner() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Your Amazon Application ID. + */ + @JsonIgnore + public Optional<String> appId() { + return appId; } /** @@ -67,6 +83,24 @@ public final static Builder builder() { return new Builder(); } + /** + * Your Amazon Application ID. + */ + public AmazonSellerPartner withAppId(String appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + * Your Amazon Application ID. + */ + public AmazonSellerPartner withAppId(Optional<String> appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = appId; + return this; + } + /** * Your Login with Amazon Client ID. */ @@ -113,6 +147,7 @@ public boolean equals(java.lang.Object o) { } AmazonSellerPartner other = (AmazonSellerPartner) o; return + Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.lwaAppId, other.lwaAppId) && Objects.deepEquals(this.lwaClientSecret, other.lwaClientSecret); } @@ -120,6 +155,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + appId, lwaAppId, lwaClientSecret); } @@ -127,12 +163,15 @@ public int hashCode() { @Override public String toString() { return Utils.toString(AmazonSellerPartner.class, + "appId", appId, "lwaAppId", lwaAppId, "lwaClientSecret", lwaClientSecret); } public final static class Builder { + private Optional<String> appId = Optional.empty(); + private Optional<String> lwaAppId = Optional.empty(); private Optional<String> lwaClientSecret = Optional.empty(); @@ -141,6 +180,24 @@ private Builder() { // force use of static builder() method } + /** + * Your Amazon Application ID. + */ + public Builder appId(String appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + * Your Amazon Application ID. + */ + public Builder appId(Optional<String> appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = appId; + return this; + } + /** * Your Login with Amazon Client ID. */ @@ -179,6 +236,7 @@ public Builder lwaClientSecret(Optional<String> lwaClientSecret) { public AmazonSellerPartner build() { return new AmazonSellerPartner( + appId, lwaAppId, lwaClientSecret); } diff --git a/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java b/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java index 1543e26b7..818821b03 100644 --- a/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java +++ b/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum AmazonSqs { AMAZON_SQS("amazon-sqs"); @@ -20,4 +21,13 @@ private AmazonSqs(String value) { public String value() { return value; } + + public static Optional<AmazonSqs> fromValue(String value) { + for (AmazonSqs o: AmazonSqs.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Amplitude.java b/src/main/java/com/airbyte/api/models/shared/Amplitude.java index fe2315a98..009911dcf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Amplitude.java +++ b/src/main/java/com/airbyte/api/models/shared/Amplitude.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Amplitude { AMPLITUDE("amplitude"); @@ -20,4 +21,13 @@ private Amplitude(String value) { public String value() { return value; } + + public static Optional<Amplitude> fromValue(String value) { + for (Amplitude o: Amplitude.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AndGroup.java b/src/main/java/com/airbyte/api/models/shared/AndGroup.java index 64a997c7c..33ae76237 100644 --- a/src/main/java/com/airbyte/api/models/shared/AndGroup.java +++ b/src/main/java/com/airbyte/api/models/shared/AndGroup.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.List; import java.util.Objects; - /** * AndGroup - The FilterExpressions in andGroup have an AND relationship. */ diff --git a/src/main/java/com/airbyte/api/models/shared/ApiKeyAuth.java b/src/main/java/com/airbyte/api/models/shared/ApiKeyAuth.java index 1976fde1a..3afa4d0a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/ApiKeyAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/ApiKeyAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ApiKeyAuth { /** diff --git a/src/main/java/com/airbyte/api/models/shared/ApiKeySecret.java b/src/main/java/com/airbyte/api/models/shared/ApiKeySecret.java index 64cd18794..b450db450 100644 --- a/src/main/java/com/airbyte/api/models/shared/ApiKeySecret.java +++ b/src/main/java/com/airbyte/api/models/shared/ApiKeySecret.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * ApiKeySecret - Use a api key and secret combination to authenticate */ diff --git a/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java b/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java index 1475382da..d31362eff 100644 --- a/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java +++ b/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ApifyDataset { APIFY_DATASET("apify-dataset"); @@ -20,4 +21,13 @@ private ApifyDataset(String value) { public String value() { return value; } + + public static Optional<ApifyDataset> fromValue(String value) { + for (ApifyDataset o: ApifyDataset.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Appcues.java b/src/main/java/com/airbyte/api/models/shared/Appcues.java index 1e9dce3f5..6a445fbd8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Appcues.java +++ b/src/main/java/com/airbyte/api/models/shared/Appcues.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Appcues { APPCUES("appcues"); @@ -20,4 +21,13 @@ private Appcues(String value) { public String value() { return value; } + + public static Optional<Appcues> fromValue(String value) { + for (Appcues o: Appcues.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Appfigures.java b/src/main/java/com/airbyte/api/models/shared/Appfigures.java index e2723d998..b3e2cd01e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Appfigures.java +++ b/src/main/java/com/airbyte/api/models/shared/Appfigures.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Appfigures { APPFIGURES("appfigures"); @@ -20,4 +21,13 @@ private Appfigures(String value) { public String value() { return value; } + + public static Optional<Appfigures> fromValue(String value) { + for (Appfigures o: Appfigures.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Appfollow.java b/src/main/java/com/airbyte/api/models/shared/Appfollow.java index b9cb318b9..5df3e0e4e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Appfollow.java +++ b/src/main/java/com/airbyte/api/models/shared/Appfollow.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Appfollow { APPFOLLOW("appfollow"); @@ -20,4 +21,13 @@ private Appfollow(String value) { public String value() { return value; } + + public static Optional<Appfollow> fromValue(String value) { + for (Appfollow o: Appfollow.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java b/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java index 61ef7d135..fe6c5899b 100644 --- a/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java +++ b/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum AppleSearchAds { APPLE_SEARCH_ADS("apple-search-ads"); @@ -20,4 +21,13 @@ private AppleSearchAds(String value) { public String value() { return value; } + + public static Optional<AppleSearchAds> fromValue(String value) { + for (AppleSearchAds o: AppleSearchAds.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Applications.java b/src/main/java/com/airbyte/api/models/shared/Applications.java index 85be5a028..a68c3a6c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Applications.java +++ b/src/main/java/com/airbyte/api/models/shared/Applications.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class Applications { @JsonProperty("app_api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/Apptivo.java b/src/main/java/com/airbyte/api/models/shared/Apptivo.java index 1215db5b4..5033cd70d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Apptivo.java +++ b/src/main/java/com/airbyte/api/models/shared/Apptivo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Apptivo { APPTIVO("apptivo"); @@ -20,4 +21,13 @@ private Apptivo(String value) { public String value() { return value; } + + public static Optional<Apptivo> fromValue(String value) { + for (Apptivo o: Apptivo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Asana.java b/src/main/java/com/airbyte/api/models/shared/Asana.java index 7829c90eb..51d3b8f1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Asana.java +++ b/src/main/java/com/airbyte/api/models/shared/Asana.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Asana { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/AsanaCredentials.java b/src/main/java/com/airbyte/api/models/shared/AsanaCredentials.java index b21be7e67..e920fc389 100644 --- a/src/main/java/com/airbyte/api/models/shared/AsanaCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/AsanaCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class AsanaCredentials { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/Ashby.java b/src/main/java/com/airbyte/api/models/shared/Ashby.java index 195b543f4..188618b2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ashby.java +++ b/src/main/java/com/airbyte/api/models/shared/Ashby.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Ashby { ASHBY("ashby"); @@ -20,4 +21,13 @@ private Ashby(String value) { public String value() { return value; } + + public static Optional<Ashby> fromValue(String value) { + for (Ashby o: Ashby.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Astra.java b/src/main/java/com/airbyte/api/models/shared/Astra.java index 8fed1f663..9dcbd9123 100644 --- a/src/main/java/com/airbyte/api/models/shared/Astra.java +++ b/src/main/java/com/airbyte/api/models/shared/Astra.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Astra { ASTRA("astra"); @@ -20,4 +21,13 @@ private Astra(String value) { public String value() { return value; } + + public static Optional<Astra> fromValue(String value) { + for (Astra o: Astra.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Auth0.java b/src/main/java/com/airbyte/api/models/shared/Auth0.java index b5e986fdd..2f97132dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Auth0.java +++ b/src/main/java/com/airbyte/api/models/shared/Auth0.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Auth0 { AUTH0("auth0"); @@ -20,4 +21,13 @@ private Auth0(String value) { public String value() { return value; } + + public static Optional<Auth0> fromValue(String value) { + for (Auth0 o: Auth0.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthMethod.java b/src/main/java/com/airbyte/api/models/shared/AuthMethod.java index 600d87aa7..0c0c8977c 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum AuthMethod { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private AuthMethod(String value) { public String value() { return value; } + + public static Optional<AuthMethod> fromValue(String value) { + for (AuthMethod o: AuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthType.java b/src/main/java/com/airbyte/api/models/shared/AuthType.java index 9ab23122c..5e0c13597 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthType.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum AuthType { - CLIENT("Client"); + OAUTH20("oauth2.0"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private AuthType(String value) { public String value() { return value; } + + public static Optional<AuthType> fromValue(String value) { + for (AuthType o: AuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAPIKey.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAPIKey.java index 4b602f062..949a6d621 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAPIKey.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAPIKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class AuthenticateViaAPIKey { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAccessKeys.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAccessKeys.java index 0019fafca..1ba94a93f 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAccessKeys.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAccessKeys.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaAccessKeys { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAsanaOauth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAsanaOauth.java index a2bb6189a..c669ffabd 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAsanaOauth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAsanaOauth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaAsanaOauth { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaClientCredentials.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaClientCredentials.java new file mode 100644 index 000000000..a6d45fed1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaClientCredentials.java @@ -0,0 +1,207 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +public class AuthenticateViaClientCredentials { + + /** + * Client ID of your Microsoft developer application + */ + @JsonProperty("app_client_id") + private String appClientId; + + /** + * Client Secret of your Microsoft developer application + */ + @JsonProperty("app_client_secret") + private String appClientSecret; + + /** + * Tenant ID of the Microsoft Azure Application + */ + @JsonProperty("app_tenant_id") + private String appTenantId; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("auth_type") + private Optional<? extends SourceAzureBlobStorageSchemasAuthType> authType; + + @JsonCreator + public AuthenticateViaClientCredentials( + @JsonProperty("app_client_id") String appClientId, + @JsonProperty("app_client_secret") String appClientSecret, + @JsonProperty("app_tenant_id") String appTenantId) { + Utils.checkNotNull(appClientId, "appClientId"); + Utils.checkNotNull(appClientSecret, "appClientSecret"); + Utils.checkNotNull(appTenantId, "appTenantId"); + this.appClientId = appClientId; + this.appClientSecret = appClientSecret; + this.appTenantId = appTenantId; + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + } + + /** + * Client ID of your Microsoft developer application + */ + @JsonIgnore + public String appClientId() { + return appClientId; + } + + /** + * Client Secret of your Microsoft developer application + */ + @JsonIgnore + public String appClientSecret() { + return appClientSecret; + } + + /** + * Tenant ID of the Microsoft Azure Application + */ + @JsonIgnore + public String appTenantId() { + return appTenantId; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<SourceAzureBlobStorageSchemasAuthType> authType() { + return (Optional<SourceAzureBlobStorageSchemasAuthType>) authType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Client ID of your Microsoft developer application + */ + public AuthenticateViaClientCredentials withAppClientId(String appClientId) { + Utils.checkNotNull(appClientId, "appClientId"); + this.appClientId = appClientId; + return this; + } + + /** + * Client Secret of your Microsoft developer application + */ + public AuthenticateViaClientCredentials withAppClientSecret(String appClientSecret) { + Utils.checkNotNull(appClientSecret, "appClientSecret"); + this.appClientSecret = appClientSecret; + return this; + } + + /** + * Tenant ID of the Microsoft Azure Application + */ + public AuthenticateViaClientCredentials withAppTenantId(String appTenantId) { + Utils.checkNotNull(appTenantId, "appTenantId"); + this.appTenantId = appTenantId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthenticateViaClientCredentials other = (AuthenticateViaClientCredentials) o; + return + Objects.deepEquals(this.appClientId, other.appClientId) && + Objects.deepEquals(this.appClientSecret, other.appClientSecret) && + Objects.deepEquals(this.appTenantId, other.appTenantId) && + Objects.deepEquals(this.authType, other.authType); + } + + @Override + public int hashCode() { + return Objects.hash( + appClientId, + appClientSecret, + appTenantId, + authType); + } + + @Override + public String toString() { + return Utils.toString(AuthenticateViaClientCredentials.class, + "appClientId", appClientId, + "appClientSecret", appClientSecret, + "appTenantId", appTenantId, + "authType", authType); + } + + public final static class Builder { + + private String appClientId; + + private String appClientSecret; + + private String appTenantId; + + private Builder() { + // force use of static builder() method + } + + /** + * Client ID of your Microsoft developer application + */ + public Builder appClientId(String appClientId) { + Utils.checkNotNull(appClientId, "appClientId"); + this.appClientId = appClientId; + return this; + } + + /** + * Client Secret of your Microsoft developer application + */ + public Builder appClientSecret(String appClientSecret) { + Utils.checkNotNull(appClientSecret, "appClientSecret"); + this.appClientSecret = appClientSecret; + return this; + } + + /** + * Tenant ID of the Microsoft Azure Application + */ + public Builder appTenantId(String appTenantId) { + Utils.checkNotNull(appTenantId, "appTenantId"); + this.appTenantId = appTenantId; + return this; + } + + public AuthenticateViaClientCredentials build() { + return new AuthenticateViaClientCredentials( + appClientId, + appClientSecret, + appTenantId); + } + + private static final LazySingletonValue<Optional<? extends SourceAzureBlobStorageSchemasAuthType>> _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"client_credentials\"", + new TypeReference<Optional<? extends SourceAzureBlobStorageSchemasAuthType>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java index 1e3d452e6..4f2e14371 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaFacebookMarketingOauth { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOAuth.java index 35efd96df..9487df93c 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaGoogleOAuth { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaHarvestOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaHarvestOAuth.java index c70212b97..0c6339f9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaHarvestOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaHarvestOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaHarvestOAuth { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverApiKey.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverApiKey.java index 41d26fec4..fadb0bdc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverApiKey.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverApiKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaLeverApiKey { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverOAuth.java index ee8122885..073c124d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaLeverOAuth { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoft.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoft.java index 58b1f69e8..6658e1d33 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoft.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoft.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaMicrosoft { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth.java index c83212309..e558f1ae0 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * AuthenticateViaMicrosoftOAuth - OAuthCredentials class to hold authentication details for Microsoft OAuth authentication. * This class uses pydantic for data validation and settings management. diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth20.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth20.java index 29ad2ec8e..47711ead2 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaMicrosoftOAuth20 { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth.java index 1562a925b..d4f58f053 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class AuthenticateViaOAuth { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth20.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth20.java index aae195dd0..e943f6084 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; @@ -18,7 +17,6 @@ import java.util.Map; import java.util.Objects; - public class AuthenticateViaOAuth20 { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOauth2.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOauth2.java index 0bff045c8..3165c5809 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOauth2.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOauth2.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaOauth2 { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPassword.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPassword.java index 1fa7d352b..0b6ca0d26 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPassword.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaPassword { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPrivateKey.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPrivateKey.java index 3ff7dc469..36e54097a 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPrivateKey.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPrivateKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaPrivateKey { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaRetentlyOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaRetentlyOAuth.java index dc7c8c1ac..9889ec178 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaRetentlyOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaRetentlyOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaRetentlyOAuth { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaStorageAccountKey.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaStorageAccountKey.java index 5f690b360..45cdc43c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaStorageAccountKey.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaStorageAccountKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,12 +18,11 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateViaStorageAccountKey { @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") - private Optional<? extends SourceAzureBlobStorageSchemasAuthType> authType; + private Optional<? extends SourceAzureBlobStorageSchemasCredentialsAuthType> authType; /** * The Azure blob storage account key. @@ -42,8 +40,8 @@ public AuthenticateViaStorageAccountKey( @SuppressWarnings("unchecked") @JsonIgnore - public Optional<SourceAzureBlobStorageSchemasAuthType> authType() { - return (Optional<SourceAzureBlobStorageSchemasAuthType>) authType; + public Optional<SourceAzureBlobStorageSchemasCredentialsAuthType> authType() { + return (Optional<SourceAzureBlobStorageSchemasCredentialsAuthType>) authType; } /** @@ -117,11 +115,11 @@ public AuthenticateViaStorageAccountKey build() { azureBlobStorageAccountKey); } - private static final LazySingletonValue<Optional<? extends SourceAzureBlobStorageSchemasAuthType>> _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue<Optional<? extends SourceAzureBlobStorageSchemasCredentialsAuthType>> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"storage_account_key\"", - new TypeReference<Optional<? extends SourceAzureBlobStorageSchemasAuthType>>() {}); + new TypeReference<Optional<? extends SourceAzureBlobStorageSchemasCredentialsAuthType>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateWithAPIToken.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateWithAPIToken.java index 61aef33ad..7faf9c771 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateWithAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateWithAPIToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateWithAPIToken { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateWithPersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateWithPersonalAccessToken.java index fc58b8a5c..77b30cbc9 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateWithPersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateWithPersonalAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AuthenticateWithPersonalAccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Authentication.java b/src/main/java/com/airbyte/api/models/shared/Authentication.java index 14db57ed9..4b1b5c6ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/Authentication.java +++ b/src/main/java/com/airbyte/api/models/shared/Authentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * Authentication - Authentication mechanism for Staging files and running queries */ diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationMechanism.java index 405364eb0..0b826f98e 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationMechanism.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * AuthenticationMechanism - Choose how to authenticate to Github */ diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationMethod.java index e1f441c84..cf2bbc8f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * AuthenticationMethod - The type of authentication to be used */ diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationMode.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationMode.java index 34751fdad..cdc424e06 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationMode.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationMode.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * AuthenticationMode - Choose How to Authenticate to AWS. */ diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationType.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationType.java index 291519f33..1fd811a81 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationType.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationType.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = AuthenticationType._Deserializer.class) public class AuthenticationType { diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationViaGoogleOAuth.java index b45624ca2..0c3a4635b 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationViaGoogleOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * AuthenticationViaGoogleOAuth - Google API Credentials for connecting to Google Sheets and Google Drive APIs */ diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationWildcard.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationWildcard.java index 128a97901..c5fbb44a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationWildcard.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * AuthenticationWildcard - Choose how to authenticate to Mixpanel */ diff --git a/src/main/java/com/airbyte/api/models/shared/Authorization.java b/src/main/java/com/airbyte/api/models/shared/Authorization.java index 07052fdb2..3745e937e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Authorization.java +++ b/src/main/java/com/airbyte/api/models/shared/Authorization.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class Authorization { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/AuthorizationMethod.java index 924dec926..5cdb7a00f 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = AuthorizationMethod._Deserializer.class) public class AuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/AuthorizationType.java b/src/main/java/com/airbyte/api/models/shared/AuthorizationType.java index 547d31bca..44e40752c 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthorizationType.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthorizationType.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * AuthorizationType - Authorization type. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Autogenerated.java b/src/main/java/com/airbyte/api/models/shared/Autogenerated.java index ff8b16970..ad7fb5f0e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Autogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/Autogenerated.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class Autogenerated { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/AvroApacheAvro.java b/src/main/java/com/airbyte/api/models/shared/AvroApacheAvro.java index f996ac696..41dacde22 100644 --- a/src/main/java/com/airbyte/api/models/shared/AvroApacheAvro.java +++ b/src/main/java/com/airbyte/api/models/shared/AvroApacheAvro.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class AvroApacheAvro { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AvroFormat.java b/src/main/java/com/airbyte/api/models/shared/AvroFormat.java index ae4fc4c5a..d6ff3a2a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/AvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/AvroFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class AvroFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java b/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java index 946304935..61514c613 100644 --- a/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java +++ b/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum AwsCloudtrail { AWS_CLOUDTRAIL("aws-cloudtrail"); @@ -20,4 +21,13 @@ private AwsCloudtrail(String value) { public String value() { return value; } + + public static Optional<AwsCloudtrail> fromValue(String value) { + for (AwsCloudtrail o: AwsCloudtrail.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java b/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java index 23af151b3..2dcbe4cea 100644 --- a/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java +++ b/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum AwsDatalake { AWS_DATALAKE("aws-datalake"); @@ -20,4 +21,13 @@ private AwsDatalake(String value) { public String value() { return value; } + + public static Optional<AwsDatalake> fromValue(String value) { + for (AwsDatalake o: AwsDatalake.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AzBlobAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/AzBlobAzureBlobStorage.java index 833b9cb5f..b1ce24efe 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzBlobAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/AzBlobAzureBlobStorage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class AzBlobAzureBlobStorage { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/AzureBlobStorage.java index 8d0a442d0..899435a69 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureBlobStorage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class AzureBlobStorage { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java b/src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java index 4da90d312..10256a22a 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class AzureBlobStorageCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java index 762422598..12e07dbc7 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * AzureOpenAI - Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ @@ -39,7 +37,7 @@ public class AzureOpenAI { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationAstraSchemasEmbeddingMode> mode; + private Optional<? extends DestinationAstraSchemasEmbeddingEmbeddingMode> mode; /** * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource @@ -79,8 +77,8 @@ public String deployment() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationAstraSchemasEmbeddingMode> mode() { - return (Optional<DestinationAstraSchemasEmbeddingMode>) mode; + public Optional<DestinationAstraSchemasEmbeddingEmbeddingMode> mode() { + return (Optional<DestinationAstraSchemasEmbeddingEmbeddingMode>) mode; } /** @@ -202,11 +200,11 @@ public AzureOpenAI build() { openaiKey); } - private static final LazySingletonValue<Optional<? extends DestinationAstraSchemasEmbeddingMode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationAstraSchemasEmbeddingEmbeddingMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"azure_openai\"", - new TypeReference<Optional<? extends DestinationAstraSchemasEmbeddingMode>>() {}); + new TypeReference<Optional<? extends DestinationAstraSchemasEmbeddingEmbeddingMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/AzureTable.java b/src/main/java/com/airbyte/api/models/shared/AzureTable.java index 4a31a7632..9f6258441 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureTable.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureTable.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum AzureTable { AZURE_TABLE("azure-table"); @@ -20,4 +21,13 @@ private AzureTable(String value) { public String value() { return value; } + + public static Optional<AzureTable> fromValue(String value) { + for (AzureTable o: AzureTable.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Babelforce.java b/src/main/java/com/airbyte/api/models/shared/Babelforce.java new file mode 100644 index 000000000..bdb7f054c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Babelforce.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Babelforce { + BABELFORCE("babelforce"); + + @JsonValue + private final String value; + + private Babelforce(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Babelforce> fromValue(String value) { + for (Babelforce o: Babelforce.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/BambooHr.java b/src/main/java/com/airbyte/api/models/shared/BambooHr.java index 9f32673ce..922038273 100644 --- a/src/main/java/com/airbyte/api/models/shared/BambooHr.java +++ b/src/main/java/com/airbyte/api/models/shared/BambooHr.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum BambooHr { BAMBOO_HR("bamboo-hr"); @@ -20,4 +21,13 @@ private BambooHr(String value) { public String value() { return value; } + + public static Optional<BambooHr> fromValue(String value) { + for (BambooHr o: BambooHr.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/BaseURL.java b/src/main/java/com/airbyte/api/models/shared/BaseURL.java index 9ec3a3e5e..0716d0dc3 100644 --- a/src/main/java/com/airbyte/api/models/shared/BaseURL.java +++ b/src/main/java/com/airbyte/api/models/shared/BaseURL.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * BaseURL - Is your account location is EU based? If yes, the base url to retrieve data will be different. */ diff --git a/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java b/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java index 15e5679d5..1de13acb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java +++ b/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * BaseURLPrefix - You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) */ @@ -25,4 +26,13 @@ private BaseURLPrefix(String value) { public String value() { return value; } + + public static Optional<BaseURLPrefix> fromValue(String value) { + for (BaseURLPrefix o: BaseURLPrefix.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Basecamp.java b/src/main/java/com/airbyte/api/models/shared/Basecamp.java index 7fb8f6451..8e3bd64a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Basecamp.java +++ b/src/main/java/com/airbyte/api/models/shared/Basecamp.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Basecamp { BASECAMP("basecamp"); @@ -20,4 +21,13 @@ private Basecamp(String value) { public String value() { return value; } + + public static Optional<Basecamp> fromValue(String value) { + for (Basecamp o: Basecamp.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Basic.java b/src/main/java/com/airbyte/api/models/shared/Basic.java index 83c933d8f..e9731b206 100644 --- a/src/main/java/com/airbyte/api/models/shared/Basic.java +++ b/src/main/java/com/airbyte/api/models/shared/Basic.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,12 +18,11 @@ import java.util.Objects; import java.util.Optional; - public class Basic { @JsonInclude(Include.NON_ABSENT) @JsonProperty("api_endpoint") - private Optional<? extends SourceJotformApiEndpoint> apiEndpoint; + private Optional<? extends SourceJotformSchemasApiEndpoint> apiEndpoint; /** * You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) @@ -47,8 +45,8 @@ public Basic() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<SourceJotformApiEndpoint> apiEndpoint() { - return (Optional<SourceJotformApiEndpoint>) apiEndpoint; + public Optional<SourceJotformSchemasApiEndpoint> apiEndpoint() { + return (Optional<SourceJotformSchemasApiEndpoint>) apiEndpoint; } /** @@ -143,11 +141,11 @@ public Basic build() { urlPrefix); } - private static final LazySingletonValue<Optional<? extends SourceJotformApiEndpoint>> _SINGLETON_VALUE_ApiEndpoint = + private static final LazySingletonValue<Optional<? extends SourceJotformSchemasApiEndpoint>> _SINGLETON_VALUE_ApiEndpoint = new LazySingletonValue<>( "api_endpoint", "\"basic\"", - new TypeReference<Optional<? extends SourceJotformApiEndpoint>>() {}); + new TypeReference<Optional<? extends SourceJotformSchemasApiEndpoint>>() {}); private static final LazySingletonValue<Optional<? extends BaseURLPrefix>> _SINGLETON_VALUE_UrlPrefix = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java b/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java index 8af51ee6c..bf95c670d 100644 --- a/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java +++ b/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * BatchedStandardInserts - Direct loading using batched SQL INSERT statements. This method uses the BigQuery driver to convert large INSERT statements into file uploads automatically. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Beamer.java b/src/main/java/com/airbyte/api/models/shared/Beamer.java index 4202bc9d7..17962751a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Beamer.java +++ b/src/main/java/com/airbyte/api/models/shared/Beamer.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Beamer { BEAMER("beamer"); @@ -20,4 +21,13 @@ private Beamer(String value) { public String value() { return value; } + + public static Optional<Beamer> fromValue(String value) { + for (Beamer o: Beamer.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/BetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/BetweenFilter.java index e2fbdec60..ee6bec753 100644 --- a/src/main/java/com/airbyte/api/models/shared/BetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/BetweenFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class BetweenFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/Bigmailer.java b/src/main/java/com/airbyte/api/models/shared/Bigmailer.java index 118805f38..f490bc8fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bigmailer.java +++ b/src/main/java/com/airbyte/api/models/shared/Bigmailer.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Bigmailer { BIGMAILER("bigmailer"); @@ -20,4 +21,13 @@ private Bigmailer(String value) { public String value() { return value; } + + public static Optional<Bigmailer> fromValue(String value) { + for (Bigmailer o: Bigmailer.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Bigquery.java b/src/main/java/com/airbyte/api/models/shared/Bigquery.java index 149f7d5ba..75787cf32 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/Bigquery.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Bigquery { BIGQUERY("bigquery"); @@ -20,4 +21,13 @@ private Bigquery(String value) { public String value() { return value; } + + public static Optional<Bigquery> fromValue(String value) { + for (Bigquery o: Bigquery.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/BingAds.java b/src/main/java/com/airbyte/api/models/shared/BingAds.java index 3a1bf93fc..379f7faa2 100644 --- a/src/main/java/com/airbyte/api/models/shared/BingAds.java +++ b/src/main/java/com/airbyte/api/models/shared/BingAds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class BingAds { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Bitly.java b/src/main/java/com/airbyte/api/models/shared/Bitly.java index 99b59511e..44bcf8de0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bitly.java +++ b/src/main/java/com/airbyte/api/models/shared/Bitly.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Bitly { BITLY("bitly"); @@ -20,4 +21,13 @@ private Bitly(String value) { public String value() { return value; } + + public static Optional<Bitly> fromValue(String value) { + for (Bitly o: Bitly.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Blogger.java b/src/main/java/com/airbyte/api/models/shared/Blogger.java index 93677d7ea..a84fd10eb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Blogger.java +++ b/src/main/java/com/airbyte/api/models/shared/Blogger.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Blogger { BLOGGER("blogger"); @@ -20,4 +21,13 @@ private Blogger(String value) { public String value() { return value; } + + public static Optional<Blogger> fromValue(String value) { + for (Blogger o: Blogger.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java b/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java index db7a3caf7..6942a6f6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum BothUsernameAndPasswordIsRequiredForAuthenticationRequest { USERNAME_PASSWORD("username_password"); @@ -20,4 +21,13 @@ private BothUsernameAndPasswordIsRequiredForAuthenticationRequest(String value) public String value() { return value; } + + public static Optional<BothUsernameAndPasswordIsRequiredForAuthenticationRequest> fromValue(String value) { + for (BothUsernameAndPasswordIsRequiredForAuthenticationRequest o: BothUsernameAndPasswordIsRequiredForAuthenticationRequest.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Box.java b/src/main/java/com/airbyte/api/models/shared/Box.java index f822a5864..cf9db8f99 100644 --- a/src/main/java/com/airbyte/api/models/shared/Box.java +++ b/src/main/java/com/airbyte/api/models/shared/Box.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Box { BOX("box"); @@ -20,4 +21,13 @@ private Box(String value) { public String value() { return value; } + + public static Optional<Box> fromValue(String value) { + for (Box o: Box.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Braintree.java b/src/main/java/com/airbyte/api/models/shared/Braintree.java index 66ce92df3..154895505 100644 --- a/src/main/java/com/airbyte/api/models/shared/Braintree.java +++ b/src/main/java/com/airbyte/api/models/shared/Braintree.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Braintree { BRAINTREE("braintree"); @@ -20,4 +21,13 @@ private Braintree(String value) { public String value() { return value; } + + public static Optional<Braintree> fromValue(String value) { + for (Braintree o: Braintree.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Braze.java b/src/main/java/com/airbyte/api/models/shared/Braze.java index c91cf373d..c4ef47d6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Braze.java +++ b/src/main/java/com/airbyte/api/models/shared/Braze.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Braze { BRAZE("braze"); @@ -20,4 +21,13 @@ private Braze(String value) { public String value() { return value; } + + public static Optional<Braze> fromValue(String value) { + for (Braze o: Braze.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Breezometer.java b/src/main/java/com/airbyte/api/models/shared/Breezometer.java new file mode 100644 index 000000000..8f12f6a0f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Breezometer.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Breezometer { + BREEZOMETER("breezometer"); + + @JsonValue + private final String value; + + private Breezometer(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Breezometer> fromValue(String value) { + for (Breezometer o: Breezometer.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/BreezyHr.java b/src/main/java/com/airbyte/api/models/shared/BreezyHr.java index f0a3da06e..7ce8c250a 100644 --- a/src/main/java/com/airbyte/api/models/shared/BreezyHr.java +++ b/src/main/java/com/airbyte/api/models/shared/BreezyHr.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum BreezyHr { BREEZY_HR("breezy-hr"); @@ -20,4 +21,13 @@ private BreezyHr(String value) { public String value() { return value; } + + public static Optional<BreezyHr> fromValue(String value) { + for (BreezyHr o: BreezyHr.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Brevo.java b/src/main/java/com/airbyte/api/models/shared/Brevo.java index 2c4f303f0..3e210b108 100644 --- a/src/main/java/com/airbyte/api/models/shared/Brevo.java +++ b/src/main/java/com/airbyte/api/models/shared/Brevo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Brevo { BREVO("brevo"); @@ -20,4 +21,13 @@ private Brevo(String value) { public String value() { return value; } + + public static Optional<Brevo> fromValue(String value) { + for (Brevo o: Brevo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Brex.java b/src/main/java/com/airbyte/api/models/shared/Brex.java index e218dc792..9ed0ea8f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Brex.java +++ b/src/main/java/com/airbyte/api/models/shared/Brex.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Brex { BREX("brex"); @@ -20,4 +21,13 @@ private Brex(String value) { public String value() { return value; } + + public static Optional<Brex> fromValue(String value) { + for (Brex o: Brex.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Bugsnag.java b/src/main/java/com/airbyte/api/models/shared/Bugsnag.java index 4551d4176..f947453f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bugsnag.java +++ b/src/main/java/com/airbyte/api/models/shared/Bugsnag.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Bugsnag { BUGSNAG("bugsnag"); @@ -20,4 +21,13 @@ private Bugsnag(String value) { public String value() { return value; } + + public static Optional<Bugsnag> fromValue(String value) { + for (Bugsnag o: Bugsnag.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Buildkite.java b/src/main/java/com/airbyte/api/models/shared/Buildkite.java index 314653bbc..ed47f991a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Buildkite.java +++ b/src/main/java/com/airbyte/api/models/shared/Buildkite.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Buildkite { BUILDKITE("buildkite"); @@ -20,4 +21,13 @@ private Buildkite(String value) { public String value() { return value; } + + public static Optional<Buildkite> fromValue(String value) { + for (Buildkite o: Buildkite.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/BunnyInc.java b/src/main/java/com/airbyte/api/models/shared/BunnyInc.java index 8e8a4b0c8..490a078cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/BunnyInc.java +++ b/src/main/java/com/airbyte/api/models/shared/BunnyInc.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum BunnyInc { BUNNY_INC("bunny-inc"); @@ -20,4 +21,13 @@ private BunnyInc(String value) { public String value() { return value; } + + public static Optional<BunnyInc> fromValue(String value) { + for (BunnyInc o: BunnyInc.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java b/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java index cea9ccda1..05d931781 100644 --- a/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java +++ b/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Buzzsprout { BUZZSPROUT("buzzsprout"); @@ -20,4 +21,13 @@ private Buzzsprout(String value) { public String value() { return value; } + + public static Optional<Buzzsprout> fromValue(String value) { + for (Buzzsprout o: Buzzsprout.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/ByMarkdownHeader.java index 627d451a6..062eff977 100644 --- a/src/main/java/com/airbyte/api/models/shared/ByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/ByMarkdownHeader.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * ByMarkdownHeader - Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. */ diff --git a/src/main/java/com/airbyte/api/models/shared/ByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/ByProgrammingLanguage.java index b541c4cd9..9ec6b299c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/ByProgrammingLanguage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * ByProgrammingLanguage - Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. */ diff --git a/src/main/java/com/airbyte/api/models/shared/BySeparator.java b/src/main/java/com/airbyte/api/models/shared/BySeparator.java index 023550122..e2c765ad4 100644 --- a/src/main/java/com/airbyte/api/models/shared/BySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/BySeparator.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * BySeparator - Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Bzip2.java b/src/main/java/com/airbyte/api/models/shared/Bzip2.java index 5237d3dc0..cfc80882c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bzip2.java +++ b/src/main/java/com/airbyte/api/models/shared/Bzip2.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class Bzip2 { @JsonInclude(Include.NON_ABSENT) 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 98cad07a2..9b27ace09 100644 --- a/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java +++ b/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class CSVCommaSeparatedValues { /** diff --git a/src/main/java/com/airbyte/api/models/shared/CSVFormat.java b/src/main/java/com/airbyte/api/models/shared/CSVFormat.java index 88312b7ec..1b875135b 100644 --- a/src/main/java/com/airbyte/api/models/shared/CSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/CSVFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class CSVFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/CSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/CSVHeaderDefinition.java index 1373858a1..5c6e4cc3c 100644 --- a/src/main/java/com/airbyte/api/models/shared/CSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/CSVHeaderDefinition.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * CSVHeaderDefinition - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. */ diff --git a/src/main/java/com/airbyte/api/models/shared/CacheType.java b/src/main/java/com/airbyte/api/models/shared/CacheType.java index c23fd5315..1d021234e 100644 --- a/src/main/java/com/airbyte/api/models/shared/CacheType.java +++ b/src/main/java/com/airbyte/api/models/shared/CacheType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * CacheType - Redis cache type to store data in. */ @@ -23,4 +24,13 @@ private CacheType(String value) { public String value() { return value; } + + public static Optional<CacheType> fromValue(String value) { + for (CacheType o: CacheType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CalCom.java b/src/main/java/com/airbyte/api/models/shared/CalCom.java index 4616bbd26..7dd3a6dc4 100644 --- a/src/main/java/com/airbyte/api/models/shared/CalCom.java +++ b/src/main/java/com/airbyte/api/models/shared/CalCom.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CalCom { CAL_COM("cal-com"); @@ -20,4 +21,13 @@ private CalCom(String value) { public String value() { return value; } + + public static Optional<CalCom> fromValue(String value) { + for (CalCom o: CalCom.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Calendly.java b/src/main/java/com/airbyte/api/models/shared/Calendly.java index afc8a688c..fca146411 100644 --- a/src/main/java/com/airbyte/api/models/shared/Calendly.java +++ b/src/main/java/com/airbyte/api/models/shared/Calendly.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Calendly { CALENDLY("calendly"); @@ -20,4 +21,13 @@ private Calendly(String value) { public String value() { return value; } + + public static Optional<Calendly> fromValue(String value) { + for (Calendly o: Calendly.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Callrail.java b/src/main/java/com/airbyte/api/models/shared/Callrail.java index a89a842c3..2c59de358 100644 --- a/src/main/java/com/airbyte/api/models/shared/Callrail.java +++ b/src/main/java/com/airbyte/api/models/shared/Callrail.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Callrail { CALLRAIL("callrail"); @@ -20,4 +21,13 @@ private Callrail(String value) { public String value() { return value; } + + public static Optional<Callrail> fromValue(String value) { + for (Callrail o: Callrail.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java b/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java index ceeed5a66..1852b07e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java +++ b/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CampaignMonitor { CAMPAIGN_MONITOR("campaign-monitor"); @@ -20,4 +21,13 @@ private CampaignMonitor(String value) { public String value() { return value; } + + public static Optional<CampaignMonitor> fromValue(String value) { + for (CampaignMonitor o: CampaignMonitor.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Campayn.java b/src/main/java/com/airbyte/api/models/shared/Campayn.java index ab127ef8d..5e8443000 100644 --- a/src/main/java/com/airbyte/api/models/shared/Campayn.java +++ b/src/main/java/com/airbyte/api/models/shared/Campayn.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Campayn { CAMPAYN("campayn"); @@ -20,4 +21,13 @@ private Campayn(String value) { public String value() { return value; } + + public static Optional<Campayn> fromValue(String value) { + for (Campayn o: Campayn.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Canny.java b/src/main/java/com/airbyte/api/models/shared/Canny.java index b5715b3fb..8ee80eb20 100644 --- a/src/main/java/com/airbyte/api/models/shared/Canny.java +++ b/src/main/java/com/airbyte/api/models/shared/Canny.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Canny { CANNY("canny"); @@ -20,4 +21,13 @@ private Canny(String value) { public String value() { return value; } + + public static Optional<Canny> fromValue(String value) { + for (Canny o: Canny.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java b/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java index 4f56ac9cb..7be9dedc7 100644 --- a/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CapsuleCrm { CAPSULE_CRM("capsule-crm"); @@ -20,4 +21,13 @@ private CapsuleCrm(String value) { public String value() { return value; } + + public static Optional<CapsuleCrm> fromValue(String value) { + for (CapsuleCrm o: CapsuleCrm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CaptainData.java b/src/main/java/com/airbyte/api/models/shared/CaptainData.java new file mode 100644 index 000000000..5c714ec17 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/CaptainData.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum CaptainData { + CAPTAIN_DATA("captain-data"); + + @JsonValue + private final String value; + + private CaptainData(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<CaptainData> fromValue(String value) { + for (CaptainData o: CaptainData.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java b/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java index a1ca58054..243229f51 100644 --- a/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * CaptureModeAdvanced - Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current value of the document will be read. If 'Post Image' is chosen, then the version of the document immediately after an update will be read. WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not set on your Mongo instance : https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. */ @@ -24,4 +25,13 @@ private CaptureModeAdvanced(String value) { public String value() { return value; } + + public static Optional<CaptureModeAdvanced> fromValue(String value) { + for (CaptureModeAdvanced o: CaptureModeAdvanced.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java b/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java index ac0c21e34..fe7ea9fcb 100644 --- a/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java +++ b/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CareQualityCommission { CARE_QUALITY_COMMISSION("care-quality-commission"); @@ -20,4 +21,13 @@ private CareQualityCommission(String value) { public String value() { return value; } + + public static Optional<CareQualityCommission> fromValue(String value) { + for (CareQualityCommission o: CareQualityCommission.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Cart.java b/src/main/java/com/airbyte/api/models/shared/Cart.java index a47d4034d..57af0d2e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cart.java +++ b/src/main/java/com/airbyte/api/models/shared/Cart.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Cart { CART("cart"); @@ -20,4 +21,13 @@ private Cart(String value) { public String value() { return value; } + + public static Optional<Cart> fromValue(String value) { + for (Cart o: Cart.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CastorEdc.java b/src/main/java/com/airbyte/api/models/shared/CastorEdc.java index 99df58e98..5482c96a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/CastorEdc.java +++ b/src/main/java/com/airbyte/api/models/shared/CastorEdc.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CastorEdc { CASTOR_EDC("castor-edc"); @@ -20,4 +21,13 @@ private CastorEdc(String value) { public String value() { return value; } + + public static Optional<CastorEdc> fromValue(String value) { + for (CastorEdc o: CastorEdc.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CatalogType.java b/src/main/java/com/airbyte/api/models/shared/CatalogType.java index bcd74de22..bf7a719a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/CatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/CatalogType.java @@ -2,22 +2,104 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +/** + * CatalogType - Specifies the type of Iceberg catalog (e.g., NESSIE, GLUE, REST) and its associated configuration. + */ -public enum CatalogType { - HIVE("Hive"); +@JsonDeserialize(using = CatalogType._Deserializer.class) +public class CatalogType { @JsonValue - private final String value; - - private CatalogType(String value) { + private TypedObject value; + + private CatalogType(TypedObject value) { this.value = value; } + + public static CatalogType of(NessieCatalog value) { + Utils.checkNotNull(value, "value"); + return new CatalogType(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<NessieCatalog>(){})); + } + + public static CatalogType of(DestinationS3DataLakeGlueCatalog value) { + Utils.checkNotNull(value, "value"); + return new CatalogType(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationS3DataLakeGlueCatalog>(){})); + } + + public static CatalogType of(DestinationS3DataLakeRestCatalog value) { + Utils.checkNotNull(value, "value"); + return new CatalogType(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationS3DataLakeRestCatalog>(){})); + } + + /** + * Returns an instance of one of these types: + * <ul> + * <li>{@code com.airbyte.api.models.shared.NessieCatalog}</li> + * <li>{@code com.airbyte.api.models.shared.DestinationS3DataLakeGlueCatalog}</li> + * <li>{@code com.airbyte.api.models.shared.DestinationS3DataLakeRestCatalog}</li> + * </ul> + * + * <p>Use {@code instanceof} to determine what type is returned. For example: + * + * <pre> + * if (obj.value() instanceof String) { + * String answer = (String) obj.value(); + * System.out.println("answer=" + answer); + * } + * </pre> + * + * @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; + } + CatalogType other = (CatalogType) o; + return Objects.deepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Objects.hash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer<CatalogType> { + + public _Deserializer() { + super(CatalogType.class, false, + TypeReferenceWithShape.of(new TypeReference<DestinationS3DataLakeGlueCatalog>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<NessieCatalog>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationS3DataLakeRestCatalog>() {}, JsonShape.DEFAULT)); + } + } - public String value() { - return value; + @Override + public String toString() { + return Utils.toString(CatalogType.class, + "value", value); } + } diff --git a/src/main/java/com/airbyte/api/models/shared/Categories.java b/src/main/java/com/airbyte/api/models/shared/Categories.java index 3d233abf6..0a13cd6b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Categories.java +++ b/src/main/java/com/airbyte/api/models/shared/Categories.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Categories { ACCESSIBILITY("accessibility"), BEST_PRACTICES("best-practices"), @@ -24,4 +25,13 @@ private Categories(String value) { public String value() { return value; } + + public static Optional<Categories> fromValue(String value) { + for (Categories o: Categories.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Category.java b/src/main/java/com/airbyte/api/models/shared/Category.java index bc70464b9..daf2fb561 100644 --- a/src/main/java/com/airbyte/api/models/shared/Category.java +++ b/src/main/java/com/airbyte/api/models/shared/Category.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Category - The category you want to get top headlines for. */ @@ -29,4 +30,13 @@ private Category(String value) { public String value() { return value; } + + public static Optional<Category> fromValue(String value) { + for (Category o: Category.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CentralAPIRouter.java b/src/main/java/com/airbyte/api/models/shared/CentralAPIRouter.java index f8fe56d7f..58556333c 100644 --- a/src/main/java/com/airbyte/api/models/shared/CentralAPIRouter.java +++ b/src/main/java/com/airbyte/api/models/shared/CentralAPIRouter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class CentralAPIRouter { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/Chameleon.java b/src/main/java/com/airbyte/api/models/shared/Chameleon.java index 599e3ccd8..1f440150a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chameleon.java +++ b/src/main/java/com/airbyte/api/models/shared/Chameleon.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Chameleon { CHAMELEON("chameleon"); @@ -20,4 +21,13 @@ private Chameleon(String value) { public String value() { return value; } + + public static Optional<Chameleon> fromValue(String value) { + for (Chameleon o: Chameleon.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Chargebee.java b/src/main/java/com/airbyte/api/models/shared/Chargebee.java index 1457b13db..ee70f0492 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chargebee.java +++ b/src/main/java/com/airbyte/api/models/shared/Chargebee.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Chargebee { CHARGEBEE("chargebee"); @@ -20,4 +21,13 @@ private Chargebee(String value) { public String value() { return value; } + + public static Optional<Chargebee> fromValue(String value) { + for (Chargebee o: Chargebee.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Chargedesk.java b/src/main/java/com/airbyte/api/models/shared/Chargedesk.java index dc88ba15b..2ec7a59bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chargedesk.java +++ b/src/main/java/com/airbyte/api/models/shared/Chargedesk.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Chargedesk { CHARGEDESK("chargedesk"); @@ -20,4 +21,13 @@ private Chargedesk(String value) { public String value() { return value; } + + public static Optional<Chargedesk> fromValue(String value) { + for (Chargedesk o: Chargedesk.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Chargify.java b/src/main/java/com/airbyte/api/models/shared/Chargify.java index 8172a315c..7348c5604 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chargify.java +++ b/src/main/java/com/airbyte/api/models/shared/Chargify.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Chargify { CHARGIFY("chargify"); @@ -20,4 +21,13 @@ private Chargify(String value) { public String value() { return value; } + + public static Optional<Chargify> fromValue(String value) { + for (Chargify o: Chargify.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Chartmogul.java b/src/main/java/com/airbyte/api/models/shared/Chartmogul.java index 207b2e57c..a1a9220e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chartmogul.java +++ b/src/main/java/com/airbyte/api/models/shared/Chartmogul.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Chartmogul { CHARTMOGUL("chartmogul"); @@ -20,4 +21,13 @@ private Chartmogul(String value) { public String value() { return value; } + + public static Optional<Chartmogul> fromValue(String value) { + for (Chartmogul o: Chartmogul.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java b/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java index 4980db4bb..8ed2ce36e 100644 --- a/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java +++ b/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ChooseHowToPartitionData - Partition data by cursor fields when a cursor field is a date */ @@ -29,4 +30,13 @@ private ChooseHowToPartitionData(String value) { public String value() { return value; } + + public static Optional<ChooseHowToPartitionData> fromValue(String value) { + for (ChooseHowToPartitionData o: ChooseHowToPartitionData.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Cimis.java b/src/main/java/com/airbyte/api/models/shared/Cimis.java index 94cc7285f..dfe68ee3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cimis.java +++ b/src/main/java/com/airbyte/api/models/shared/Cimis.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Cimis { CIMIS("cimis"); @@ -20,4 +21,13 @@ private Cimis(String value) { public String value() { return value; } + + public static Optional<Cimis> fromValue(String value) { + for (Cimis o: Cimis.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Cin7.java b/src/main/java/com/airbyte/api/models/shared/Cin7.java index 58d2f3712..ad7552eb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cin7.java +++ b/src/main/java/com/airbyte/api/models/shared/Cin7.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Cin7 { CIN7("cin7"); @@ -20,4 +21,13 @@ private Cin7(String value) { public String value() { return value; } + + public static Optional<Cin7> fromValue(String value) { + for (Cin7 o: Cin7.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Circa.java b/src/main/java/com/airbyte/api/models/shared/Circa.java index e21fa7435..071f50f76 100644 --- a/src/main/java/com/airbyte/api/models/shared/Circa.java +++ b/src/main/java/com/airbyte/api/models/shared/Circa.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Circa { CIRCA("circa"); @@ -20,4 +21,13 @@ private Circa(String value) { public String value() { return value; } + + public static Optional<Circa> fromValue(String value) { + for (Circa o: Circa.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Circleci.java b/src/main/java/com/airbyte/api/models/shared/Circleci.java index 2dde88881..d1f0b5908 100644 --- a/src/main/java/com/airbyte/api/models/shared/Circleci.java +++ b/src/main/java/com/airbyte/api/models/shared/Circleci.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Circleci { CIRCLECI("circleci"); @@ -20,4 +21,13 @@ private Circleci(String value) { public String value() { return value; } + + public static Optional<Circleci> fromValue(String value) { + for (Circleci o: Circleci.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ClarifAi.java b/src/main/java/com/airbyte/api/models/shared/ClarifAi.java index 55eb1d8cf..933c72456 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClarifAi.java +++ b/src/main/java/com/airbyte/api/models/shared/ClarifAi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ClarifAi { CLARIF_AI("clarif-ai"); @@ -20,4 +21,13 @@ private ClarifAi(String value) { public String value() { return value; } + + public static Optional<ClarifAi> fromValue(String value) { + for (ClarifAi o: ClarifAi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Clazar.java b/src/main/java/com/airbyte/api/models/shared/Clazar.java index 43889f5e0..8853e9b08 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clazar.java +++ b/src/main/java/com/airbyte/api/models/shared/Clazar.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Clazar { CLAZAR("clazar"); @@ -20,4 +21,13 @@ private Clazar(String value) { public String value() { return value; } + + public static Optional<Clazar> fromValue(String value) { + for (Clazar o: Clazar.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java b/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java index 6c9a81177..5e743eb84 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java +++ b/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; - +import java.util.Objects; +import java.util.Optional; /** * ClickWindowDays - Number of days to use as the conversion attribution window for a pin click action. */ @@ -27,4 +28,13 @@ private ClickWindowDays(long value) { public long value() { return value; } + + public static Optional<ClickWindowDays> fromValue(long value) { + for (ClickWindowDays o: ClickWindowDays.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Clickhouse.java b/src/main/java/com/airbyte/api/models/shared/Clickhouse.java index 3f9bf6160..3b0325e4b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/Clickhouse.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Clickhouse { CLICKHOUSE("clickhouse"); @@ -20,4 +21,13 @@ private Clickhouse(String value) { public String value() { return value; } + + public static Optional<Clickhouse> fromValue(String value) { + for (Clickhouse o: Clickhouse.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ClickupApi.java b/src/main/java/com/airbyte/api/models/shared/ClickupApi.java index cded2cbeb..b7819ed20 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClickupApi.java +++ b/src/main/java/com/airbyte/api/models/shared/ClickupApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ClickupApi { CLICKUP_API("clickup-api"); @@ -20,4 +21,13 @@ private ClickupApi(String value) { public String value() { return value; } + + public static Optional<ClickupApi> fromValue(String value) { + for (ClickupApi o: ClickupApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Clockify.java b/src/main/java/com/airbyte/api/models/shared/Clockify.java index 4ad7819dc..4f42c1350 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clockify.java +++ b/src/main/java/com/airbyte/api/models/shared/Clockify.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Clockify { CLOCKIFY("clockify"); @@ -20,4 +21,13 @@ private Clockify(String value) { public String value() { return value; } + + public static Optional<Clockify> fromValue(String value) { + for (Clockify o: Clockify.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Clockodo.java b/src/main/java/com/airbyte/api/models/shared/Clockodo.java index 732d6c947..deb657089 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clockodo.java +++ b/src/main/java/com/airbyte/api/models/shared/Clockodo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Clockodo { CLOCKODO("clockodo"); @@ -20,4 +21,13 @@ private Clockodo(String value) { public String value() { return value; } + + public static Optional<Clockodo> fromValue(String value) { + for (Clockodo o: Clockodo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CloseCom.java b/src/main/java/com/airbyte/api/models/shared/CloseCom.java index 94a298d79..63c90c2a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/CloseCom.java +++ b/src/main/java/com/airbyte/api/models/shared/CloseCom.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CloseCom { CLOSE_COM("close-com"); @@ -20,4 +21,13 @@ private CloseCom(String value) { public String value() { return value; } + + public static Optional<CloseCom> fromValue(String value) { + for (CloseCom o: CloseCom.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java b/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java index 7ed9eabb3..5ffe89cbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java +++ b/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Cloudbeds { CLOUDBEDS("cloudbeds"); @@ -20,4 +21,13 @@ private Cloudbeds(String value) { public String value() { return value; } + + public static Optional<Cloudbeds> fromValue(String value) { + for (Cloudbeds o: Cloudbeds.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ClusterType.java b/src/main/java/com/airbyte/api/models/shared/ClusterType.java index 843e5462c..5c49b2671 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClusterType.java +++ b/src/main/java/com/airbyte/api/models/shared/ClusterType.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * ClusterType - Configures the MongoDB cluster type. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Coassemble.java b/src/main/java/com/airbyte/api/models/shared/Coassemble.java index 26c33ca20..53e873696 100644 --- a/src/main/java/com/airbyte/api/models/shared/Coassemble.java +++ b/src/main/java/com/airbyte/api/models/shared/Coassemble.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Coassemble { COASSEMBLE("coassemble"); @@ -20,4 +21,13 @@ private Coassemble(String value) { public String value() { return value; } + + public static Optional<Coassemble> fromValue(String value) { + for (Coassemble o: Coassemble.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Coda.java b/src/main/java/com/airbyte/api/models/shared/Coda.java index e6cdd6dcf..2f663d79e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Coda.java +++ b/src/main/java/com/airbyte/api/models/shared/Coda.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Coda { CODA("coda"); @@ -20,4 +21,13 @@ private Coda(String value) { public String value() { return value; } + + public static Optional<Coda> fromValue(String value) { + for (Coda o: Coda.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Codec.java b/src/main/java/com/airbyte/api/models/shared/Codec.java index b55433936..6ceed42f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/Codec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Codec { NO_COMPRESSION("no compression"); @@ -20,4 +21,13 @@ private Codec(String value) { public String value() { return value; } + + public static Optional<Codec> fromValue(String value) { + for (Codec o: Codec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Codefresh.java b/src/main/java/com/airbyte/api/models/shared/Codefresh.java index ce7151a81..5a55bb953 100644 --- a/src/main/java/com/airbyte/api/models/shared/Codefresh.java +++ b/src/main/java/com/airbyte/api/models/shared/Codefresh.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Codefresh { CODEFRESH("codefresh"); @@ -20,4 +21,13 @@ private Codefresh(String value) { public String value() { return value; } + + public static Optional<Codefresh> fromValue(String value) { + for (Codefresh o: Codefresh.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Cohere.java b/src/main/java/com/airbyte/api/models/shared/Cohere.java index 0a8f6dae5..76baba0d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cohere.java +++ b/src/main/java/com/airbyte/api/models/shared/Cohere.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * Cohere - Use the Cohere API to embed text. */ @@ -30,7 +28,7 @@ public class Cohere { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationAstraMode> mode; + private Optional<? extends DestinationAstraSchemasMode> mode; @JsonCreator public Cohere( @@ -47,8 +45,8 @@ public String cohereKey() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationAstraMode> mode() { - return (Optional<DestinationAstraMode>) mode; + public Optional<DestinationAstraSchemasMode> mode() { + return (Optional<DestinationAstraSchemasMode>) mode; } public final static Builder builder() { @@ -108,11 +106,11 @@ public Cohere build() { cohereKey); } - private static final LazySingletonValue<Optional<? extends DestinationAstraMode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationAstraSchemasMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"cohere\"", - new TypeReference<Optional<? extends DestinationAstraMode>>() {}); + new TypeReference<Optional<? extends DestinationAstraSchemasMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/CohortReportSettings.java b/src/main/java/com/airbyte/api/models/shared/CohortReportSettings.java index be782ccd3..e7ce9f303 100644 --- a/src/main/java/com/airbyte/api/models/shared/CohortReportSettings.java +++ b/src/main/java/com/airbyte/api/models/shared/CohortReportSettings.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * CohortReportSettings - Optional settings for a cohort report. */ diff --git a/src/main/java/com/airbyte/api/models/shared/CohortReports.java b/src/main/java/com/airbyte/api/models/shared/CohortReports.java index 6b8cc4b73..be5f08f4b 100644 --- a/src/main/java/com/airbyte/api/models/shared/CohortReports.java +++ b/src/main/java/com/airbyte/api/models/shared/CohortReports.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * CohortReports - Cohort reports creates a time series of user retention for the cohort. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Cohorts.java b/src/main/java/com/airbyte/api/models/shared/Cohorts.java index 5cb76999c..da5b1e3d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cohorts.java +++ b/src/main/java/com/airbyte/api/models/shared/Cohorts.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class Cohorts { @JsonProperty("dateRange") diff --git a/src/main/java/com/airbyte/api/models/shared/CohortsRange.java b/src/main/java/com/airbyte/api/models/shared/CohortsRange.java index 262e273dd..34d18f6a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/CohortsRange.java +++ b/src/main/java/com/airbyte/api/models/shared/CohortsRange.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class CohortsRange { /** diff --git a/src/main/java/com/airbyte/api/models/shared/CoinApi.java b/src/main/java/com/airbyte/api/models/shared/CoinApi.java index 0497cd2f2..020cdc667 100644 --- a/src/main/java/com/airbyte/api/models/shared/CoinApi.java +++ b/src/main/java/com/airbyte/api/models/shared/CoinApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CoinApi { COIN_API("coin-api"); @@ -20,4 +21,13 @@ private CoinApi(String value) { public String value() { return value; } + + public static Optional<CoinApi> fromValue(String value) { + for (CoinApi o: CoinApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CoingeckoCoins.java b/src/main/java/com/airbyte/api/models/shared/CoingeckoCoins.java new file mode 100644 index 000000000..71fa2b697 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/CoingeckoCoins.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum CoingeckoCoins { + COINGECKO_COINS("coingecko-coins"); + + @JsonValue + private final String value; + + private CoingeckoCoins(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<CoingeckoCoins> fromValue(String value) { + for (CoingeckoCoins o: CoingeckoCoins.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java b/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java index 0cc98f332..bc46a7169 100644 --- a/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java +++ b/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Coinmarketcap { COINMARKETCAP("coinmarketcap"); @@ -20,4 +21,13 @@ private Coinmarketcap(String value) { public String value() { return value; } + + public static Optional<Coinmarketcap> fromValue(String value) { + for (Coinmarketcap o: Coinmarketcap.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Collection.java b/src/main/java/com/airbyte/api/models/shared/Collection.java index ca0363fb2..37ee79755 100644 --- a/src/main/java/com/airbyte/api/models/shared/Collection.java +++ b/src/main/java/com/airbyte/api/models/shared/Collection.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * Collection - Settings for the Fauna Collection. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Compression.java b/src/main/java/com/airbyte/api/models/shared/Compression.java index 7c0dc00d8..fe03b66cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Compression.java +++ b/src/main/java/com/airbyte/api/models/shared/Compression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * Compression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). */ diff --git a/src/main/java/com/airbyte/api/models/shared/CompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/CompressionCodec.java index 67838c124..343ed2f05 100644 --- a/src/main/java/com/airbyte/api/models/shared/CompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/CompressionCodec.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * CompressionCodec - The compression algorithm used to compress data. Default to no compression. */ diff --git a/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java b/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java index 58202a415..ce450f322 100644 --- a/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java +++ b/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * CompressionCodecOptional - The compression algorithm used to compress data. */ @@ -24,4 +25,13 @@ private CompressionCodecOptional(String value) { public String value() { return value; } + + public static Optional<CompressionCodecOptional> fromValue(String value) { + for (CompressionCodecOptional o: CompressionCodecOptional.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CompressionType.java b/src/main/java/com/airbyte/api/models/shared/CompressionType.java index c756249d8..225710bb0 100644 --- a/src/main/java/com/airbyte/api/models/shared/CompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/CompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CompressionType { NO_COMPRESSION("No Compression"); @@ -20,4 +21,13 @@ private CompressionType(String value) { public String value() { return value; } + + public static Optional<CompressionType> fromValue(String value) { + for (CompressionType o: CompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Concord.java b/src/main/java/com/airbyte/api/models/shared/Concord.java index c450c6491..45eea61fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Concord.java +++ b/src/main/java/com/airbyte/api/models/shared/Concord.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Concord { CONCORD("concord"); @@ -20,4 +21,13 @@ private Concord(String value) { public String value() { return value; } + + public static Optional<Concord> fromValue(String value) { + for (Concord o: Concord.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Configcat.java b/src/main/java/com/airbyte/api/models/shared/Configcat.java index 639bcedf4..1c4a57968 100644 --- a/src/main/java/com/airbyte/api/models/shared/Configcat.java +++ b/src/main/java/com/airbyte/api/models/shared/Configcat.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Configcat { CONFIGCAT("configcat"); @@ -20,4 +21,13 @@ private Configcat(String value) { public String value() { return value; } + + public static Optional<Configcat> fromValue(String value) { + for (Configcat o: Configcat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java b/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java index b4ae2eb43..c4ce6420e 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java +++ b/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java @@ -2,20 +2,25 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; import java.util.Objects; - +import java.util.Optional; public class ConfiguredStreamMapper { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + private Optional<String> id; + /** * The values required to configure the mapper. */ @@ -27,13 +32,27 @@ public class ConfiguredStreamMapper { @JsonCreator public ConfiguredStreamMapper( + @JsonProperty("id") Optional<String> id, @JsonProperty("mapperConfiguration") MapperConfiguration mapperConfiguration, @JsonProperty("type") StreamMapperType type) { + Utils.checkNotNull(id, "id"); Utils.checkNotNull(mapperConfiguration, "mapperConfiguration"); Utils.checkNotNull(type, "type"); + this.id = id; this.mapperConfiguration = mapperConfiguration; this.type = type; } + + public ConfiguredStreamMapper( + MapperConfiguration mapperConfiguration, + StreamMapperType type) { + this(Optional.empty(), mapperConfiguration, type); + } + + @JsonIgnore + public Optional<String> id() { + return id; + } /** * The values required to configure the mapper. @@ -52,6 +71,18 @@ public final static Builder builder() { return new Builder(); } + public ConfiguredStreamMapper withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + public ConfiguredStreamMapper withId(Optional<String> id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + /** * The values required to configure the mapper. */ @@ -77,6 +108,7 @@ public boolean equals(java.lang.Object o) { } ConfiguredStreamMapper other = (ConfiguredStreamMapper) o; return + Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.mapperConfiguration, other.mapperConfiguration) && Objects.deepEquals(this.type, other.type); } @@ -84,6 +116,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + id, mapperConfiguration, type); } @@ -91,12 +124,15 @@ public int hashCode() { @Override public String toString() { return Utils.toString(ConfiguredStreamMapper.class, + "id", id, "mapperConfiguration", mapperConfiguration, "type", type); } public final static class Builder { + private Optional<String> id = Optional.empty(); + private MapperConfiguration mapperConfiguration; private StreamMapperType type; @@ -105,6 +141,18 @@ private Builder() { // force use of static builder() method } + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + public Builder id(Optional<String> id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + /** * The values required to configure the mapper. */ @@ -122,6 +170,7 @@ public Builder type(StreamMapperType type) { public ConfiguredStreamMapper build() { return new ConfiguredStreamMapper( + id, mapperConfiguration, type); } diff --git a/src/main/java/com/airbyte/api/models/shared/Confluence.java b/src/main/java/com/airbyte/api/models/shared/Confluence.java index 5a88c55e8..4e811dd7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Confluence.java +++ b/src/main/java/com/airbyte/api/models/shared/Confluence.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Confluence { CONFLUENCE("confluence"); @@ -20,4 +21,13 @@ private Confluence(String value) { public String value() { return value; } + + public static Optional<Confluence> fromValue(String value) { + for (Confluence o: Confluence.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectBy.java b/src/main/java/com/airbyte/api/models/shared/ConnectBy.java index 0d3aae39d..53d9ed5a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectBy.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectBy.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * ConnectBy - Connect data that will be used for DB connection */ diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java index 6147cdcc0..383a89e6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,10 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.List; import java.util.Objects; import java.util.Optional; - public class ConnectionCreateRequest { /** @@ -27,7 +26,7 @@ public class ConnectionCreateRequest { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("configurations") - private Optional<? extends StreamConfigurations> configurations; + private Optional<? extends StreamConfigurationsInput> configurations; @JsonInclude(Include.NON_ABSENT) @JsonProperty("dataResidency") @@ -85,9 +84,13 @@ public class ConnectionCreateRequest { @JsonProperty("status") private Optional<? extends ConnectionStatusEnum> status; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tags") + private Optional<? extends List<Tag>> tags; + @JsonCreator public ConnectionCreateRequest( - @JsonProperty("configurations") Optional<? extends StreamConfigurations> configurations, + @JsonProperty("configurations") Optional<? extends StreamConfigurationsInput> configurations, @JsonProperty("dataResidency") Optional<? extends GeographyEnum> dataResidency, @JsonProperty("destinationId") String destinationId, @JsonProperty("name") Optional<String> name, @@ -97,7 +100,8 @@ public ConnectionCreateRequest( @JsonProperty("prefix") Optional<String> prefix, @JsonProperty("schedule") Optional<? extends AirbyteApiConnectionSchedule> schedule, @JsonProperty("sourceId") String sourceId, - @JsonProperty("status") Optional<? extends ConnectionStatusEnum> status) { + @JsonProperty("status") Optional<? extends ConnectionStatusEnum> status, + @JsonProperty("tags") Optional<? extends List<Tag>> tags) { Utils.checkNotNull(configurations, "configurations"); Utils.checkNotNull(dataResidency, "dataResidency"); Utils.checkNotNull(destinationId, "destinationId"); @@ -109,6 +113,7 @@ public ConnectionCreateRequest( Utils.checkNotNull(schedule, "schedule"); Utils.checkNotNull(sourceId, "sourceId"); Utils.checkNotNull(status, "status"); + Utils.checkNotNull(tags, "tags"); this.configurations = configurations; this.dataResidency = dataResidency; this.destinationId = destinationId; @@ -120,12 +125,13 @@ public ConnectionCreateRequest( this.schedule = schedule; this.sourceId = sourceId; this.status = status; + this.tags = tags; } public ConnectionCreateRequest( String destinationId, String sourceId) { - this(Optional.empty(), Optional.empty(), destinationId, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), sourceId, Optional.empty()); + this(Optional.empty(), Optional.empty(), destinationId, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), sourceId, Optional.empty(), Optional.empty()); } /** @@ -133,8 +139,8 @@ public ConnectionCreateRequest( */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional<StreamConfigurations> configurations() { - return (Optional<StreamConfigurations>) configurations; + public Optional<StreamConfigurationsInput> configurations() { + return (Optional<StreamConfigurationsInput>) configurations; } @SuppressWarnings("unchecked") @@ -210,6 +216,12 @@ public Optional<ConnectionStatusEnum> status() { return (Optional<ConnectionStatusEnum>) status; } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<Tag>> tags() { + return (Optional<List<Tag>>) tags; + } + public final static Builder builder() { return new Builder(); } @@ -217,7 +229,7 @@ public final static Builder builder() { /** * A list of configured stream options for a connection. */ - public ConnectionCreateRequest withConfigurations(StreamConfigurations configurations) { + public ConnectionCreateRequest withConfigurations(StreamConfigurationsInput configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = Optional.ofNullable(configurations); return this; @@ -226,7 +238,7 @@ public ConnectionCreateRequest withConfigurations(StreamConfigurations configura /** * A list of configured stream options for a connection. */ - public ConnectionCreateRequest withConfigurations(Optional<? extends StreamConfigurations> configurations) { + public ConnectionCreateRequest withConfigurations(Optional<? extends StreamConfigurationsInput> configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = configurations; return this; @@ -375,6 +387,18 @@ public ConnectionCreateRequest withStatus(Optional<? extends ConnectionStatusEnu this.status = status; return this; } + + public ConnectionCreateRequest withTags(List<Tag> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = Optional.ofNullable(tags); + return this; + } + + public ConnectionCreateRequest withTags(Optional<? extends List<Tag>> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = tags; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -396,7 +420,8 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.prefix, other.prefix) && Objects.deepEquals(this.schedule, other.schedule) && Objects.deepEquals(this.sourceId, other.sourceId) && - Objects.deepEquals(this.status, other.status); + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.tags, other.tags); } @Override @@ -412,7 +437,8 @@ public int hashCode() { prefix, schedule, sourceId, - status); + status, + tags); } @Override @@ -428,12 +454,13 @@ public String toString() { "prefix", prefix, "schedule", schedule, "sourceId", sourceId, - "status", status); + "status", status, + "tags", tags); } public final static class Builder { - private Optional<? extends StreamConfigurations> configurations = Optional.empty(); + private Optional<? extends StreamConfigurationsInput> configurations = Optional.empty(); private Optional<? extends GeographyEnum> dataResidency; @@ -447,13 +474,15 @@ public final static class Builder { private Optional<? extends NonBreakingSchemaUpdatesBehaviorEnum> nonBreakingSchemaUpdatesBehavior; - private Optional<String> prefix = Optional.empty(); + private Optional<String> prefix; private Optional<? extends AirbyteApiConnectionSchedule> schedule = Optional.empty(); private String sourceId; - private Optional<? extends ConnectionStatusEnum> status = Optional.empty(); + private Optional<? extends ConnectionStatusEnum> status = Optional.empty(); + + private Optional<? extends List<Tag>> tags = Optional.empty(); private Builder() { // force use of static builder() method @@ -462,7 +491,7 @@ private Builder() { /** * A list of configured stream options for a connection. */ - public Builder configurations(StreamConfigurations configurations) { + public Builder configurations(StreamConfigurationsInput configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = Optional.ofNullable(configurations); return this; @@ -471,7 +500,7 @@ public Builder configurations(StreamConfigurations configurations) { /** * A list of configured stream options for a connection. */ - public Builder configurations(Optional<? extends StreamConfigurations> configurations) { + public Builder configurations(Optional<? extends StreamConfigurationsInput> configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = configurations; return this; @@ -620,6 +649,18 @@ public Builder status(Optional<? extends ConnectionStatusEnum> status) { this.status = status; return this; } + + public Builder tags(List<Tag> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = Optional.ofNullable(tags); + return this; + } + + public Builder tags(Optional<? extends List<Tag>> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = tags; + return this; + } public ConnectionCreateRequest build() { if (dataResidency == null) { @@ -633,6 +674,9 @@ public ConnectionCreateRequest build() { } if (nonBreakingSchemaUpdatesBehavior == null) { nonBreakingSchemaUpdatesBehavior = _SINGLETON_VALUE_NonBreakingSchemaUpdatesBehavior.value(); + } + if (prefix == null) { + prefix = _SINGLETON_VALUE_Prefix.value(); } return new ConnectionCreateRequest( configurations, dataResidency, @@ -644,7 +688,8 @@ public ConnectionCreateRequest build() { prefix, schedule, sourceId, - status); + status, + tags); } private static final LazySingletonValue<Optional<? extends GeographyEnum>> _SINGLETON_VALUE_DataResidency = @@ -670,6 +715,12 @@ public ConnectionCreateRequest build() { "nonBreakingSchemaUpdatesBehavior", "\"ignore\"", new TypeReference<Optional<? extends NonBreakingSchemaUpdatesBehaviorEnum>>() {}); + + private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_Prefix = + new LazySingletonValue<>( + "prefix", + "\"\"", + new TypeReference<Optional<String>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java b/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java index 1540d475a..62750b0b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,10 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.List; import java.util.Objects; import java.util.Optional; - public class ConnectionPatchRequest { /** @@ -27,7 +26,7 @@ public class ConnectionPatchRequest { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("configurations") - private Optional<? extends StreamConfigurations> configurations; + private Optional<? extends StreamConfigurationsInput> configurations; @JsonInclude(Include.NON_ABSENT) @JsonProperty("dataResidency") @@ -79,9 +78,13 @@ public class ConnectionPatchRequest { @JsonProperty("status") private Optional<? extends ConnectionStatusEnum> status; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tags") + private Optional<? extends List<Tag>> tags; + @JsonCreator public ConnectionPatchRequest( - @JsonProperty("configurations") Optional<? extends StreamConfigurations> configurations, + @JsonProperty("configurations") Optional<? extends StreamConfigurationsInput> configurations, @JsonProperty("dataResidency") Optional<? extends GeographyEnumNoDefault> dataResidency, @JsonProperty("name") Optional<String> name, @JsonProperty("namespaceDefinition") Optional<? extends NamespaceDefinitionEnumNoDefault> namespaceDefinition, @@ -89,7 +92,8 @@ public ConnectionPatchRequest( @JsonProperty("nonBreakingSchemaUpdatesBehavior") Optional<? extends NonBreakingSchemaUpdatesBehaviorEnumNoDefault> nonBreakingSchemaUpdatesBehavior, @JsonProperty("prefix") Optional<String> prefix, @JsonProperty("schedule") Optional<? extends AirbyteApiConnectionSchedule> schedule, - @JsonProperty("status") Optional<? extends ConnectionStatusEnum> status) { + @JsonProperty("status") Optional<? extends ConnectionStatusEnum> status, + @JsonProperty("tags") Optional<? extends List<Tag>> tags) { Utils.checkNotNull(configurations, "configurations"); Utils.checkNotNull(dataResidency, "dataResidency"); Utils.checkNotNull(name, "name"); @@ -99,6 +103,7 @@ public ConnectionPatchRequest( Utils.checkNotNull(prefix, "prefix"); Utils.checkNotNull(schedule, "schedule"); Utils.checkNotNull(status, "status"); + Utils.checkNotNull(tags, "tags"); this.configurations = configurations; this.dataResidency = dataResidency; this.name = name; @@ -108,10 +113,11 @@ public ConnectionPatchRequest( this.prefix = prefix; this.schedule = schedule; this.status = status; + this.tags = tags; } public ConnectionPatchRequest() { - this(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()); } /** @@ -119,8 +125,8 @@ public ConnectionPatchRequest() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional<StreamConfigurations> configurations() { - return (Optional<StreamConfigurations>) configurations; + public Optional<StreamConfigurationsInput> configurations() { + return (Optional<StreamConfigurationsInput>) configurations; } @SuppressWarnings("unchecked") @@ -186,6 +192,12 @@ public Optional<ConnectionStatusEnum> status() { return (Optional<ConnectionStatusEnum>) status; } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<Tag>> tags() { + return (Optional<List<Tag>>) tags; + } + public final static Builder builder() { return new Builder(); } @@ -193,7 +205,7 @@ public final static Builder builder() { /** * A list of configured stream options for a connection. */ - public ConnectionPatchRequest withConfigurations(StreamConfigurations configurations) { + public ConnectionPatchRequest withConfigurations(StreamConfigurationsInput configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = Optional.ofNullable(configurations); return this; @@ -202,7 +214,7 @@ public ConnectionPatchRequest withConfigurations(StreamConfigurations configurat /** * A list of configured stream options for a connection. */ - public ConnectionPatchRequest withConfigurations(Optional<? extends StreamConfigurations> configurations) { + public ConnectionPatchRequest withConfigurations(Optional<? extends StreamConfigurationsInput> configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = configurations; return this; @@ -339,6 +351,18 @@ public ConnectionPatchRequest withStatus(Optional<? extends ConnectionStatusEnum this.status = status; return this; } + + public ConnectionPatchRequest withTags(List<Tag> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = Optional.ofNullable(tags); + return this; + } + + public ConnectionPatchRequest withTags(Optional<? extends List<Tag>> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = tags; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -358,7 +382,8 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.nonBreakingSchemaUpdatesBehavior, other.nonBreakingSchemaUpdatesBehavior) && Objects.deepEquals(this.prefix, other.prefix) && Objects.deepEquals(this.schedule, other.schedule) && - Objects.deepEquals(this.status, other.status); + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.tags, other.tags); } @Override @@ -372,7 +397,8 @@ public int hashCode() { nonBreakingSchemaUpdatesBehavior, prefix, schedule, - status); + status, + tags); } @Override @@ -386,12 +412,13 @@ public String toString() { "nonBreakingSchemaUpdatesBehavior", nonBreakingSchemaUpdatesBehavior, "prefix", prefix, "schedule", schedule, - "status", status); + "status", status, + "tags", tags); } public final static class Builder { - private Optional<? extends StreamConfigurations> configurations = Optional.empty(); + private Optional<? extends StreamConfigurationsInput> configurations = Optional.empty(); private Optional<? extends GeographyEnumNoDefault> dataResidency = Optional.empty(); @@ -407,7 +434,9 @@ public final static class Builder { private Optional<? extends AirbyteApiConnectionSchedule> schedule = Optional.empty(); - private Optional<? extends ConnectionStatusEnum> status = Optional.empty(); + private Optional<? extends ConnectionStatusEnum> status = Optional.empty(); + + private Optional<? extends List<Tag>> tags = Optional.empty(); private Builder() { // force use of static builder() method @@ -416,7 +445,7 @@ private Builder() { /** * A list of configured stream options for a connection. */ - public Builder configurations(StreamConfigurations configurations) { + public Builder configurations(StreamConfigurationsInput configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = Optional.ofNullable(configurations); return this; @@ -425,7 +454,7 @@ public Builder configurations(StreamConfigurations configurations) { /** * A list of configured stream options for a connection. */ - public Builder configurations(Optional<? extends StreamConfigurations> configurations) { + public Builder configurations(Optional<? extends StreamConfigurationsInput> configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = configurations; return this; @@ -562,6 +591,18 @@ public Builder status(Optional<? extends ConnectionStatusEnum> status) { this.status = status; return this; } + + public Builder tags(List<Tag> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = Optional.ofNullable(tags); + return this; + } + + public Builder tags(Optional<? extends List<Tag>> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = tags; + return this; + } public ConnectionPatchRequest build() { if (namespaceFormat == null) { @@ -575,7 +616,8 @@ public ConnectionPatchRequest build() { nonBreakingSchemaUpdatesBehavior, prefix, schedule, - status); + status, + tags); } private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_NamespaceFormat = diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionResponse.java b/src/main/java/com/airbyte/api/models/shared/ConnectionResponse.java index 87ade5620..054b34022 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,9 +16,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.List; import java.util.Objects; import java.util.Optional; - /** * ConnectionResponse - Provides details of a single connection. */ @@ -82,6 +81,9 @@ public class ConnectionResponse { @JsonProperty("status") private ConnectionStatusEnum status; + @JsonProperty("tags") + private List<Tag> tags; + @JsonProperty("workspaceId") private String workspaceId; @@ -100,6 +102,7 @@ public ConnectionResponse( @JsonProperty("schedule") ConnectionScheduleResponse schedule, @JsonProperty("sourceId") String sourceId, @JsonProperty("status") ConnectionStatusEnum status, + @JsonProperty("tags") List<Tag> tags, @JsonProperty("workspaceId") String workspaceId) { Utils.checkNotNull(configurations, "configurations"); Utils.checkNotNull(connectionId, "connectionId"); @@ -114,6 +117,7 @@ public ConnectionResponse( Utils.checkNotNull(schedule, "schedule"); Utils.checkNotNull(sourceId, "sourceId"); Utils.checkNotNull(status, "status"); + Utils.checkNotNull(tags, "tags"); Utils.checkNotNull(workspaceId, "workspaceId"); this.configurations = configurations; this.connectionId = connectionId; @@ -128,6 +132,7 @@ public ConnectionResponse( this.schedule = schedule; this.sourceId = sourceId; this.status = status; + this.tags = tags; this.workspaceId = workspaceId; } @@ -140,8 +145,9 @@ public ConnectionResponse( ConnectionScheduleResponse schedule, String sourceId, ConnectionStatusEnum status, + List<Tag> tags, String workspaceId) { - this(configurations, connectionId, createdAt, Optional.empty(), destinationId, name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), schedule, sourceId, status, workspaceId); + this(configurations, connectionId, createdAt, Optional.empty(), destinationId, name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), schedule, sourceId, status, tags, workspaceId); } /** @@ -224,6 +230,11 @@ public ConnectionStatusEnum status() { return status; } + @JsonIgnore + public List<Tag> tags() { + return tags; + } + @JsonIgnore public String workspaceId() { return workspaceId; @@ -359,6 +370,12 @@ public ConnectionResponse withStatus(ConnectionStatusEnum status) { return this; } + public ConnectionResponse withTags(List<Tag> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = tags; + return this; + } + public ConnectionResponse withWorkspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; @@ -388,6 +405,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.schedule, other.schedule) && Objects.deepEquals(this.sourceId, other.sourceId) && Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.tags, other.tags) && Objects.deepEquals(this.workspaceId, other.workspaceId); } @@ -407,6 +425,7 @@ public int hashCode() { schedule, sourceId, status, + tags, workspaceId); } @@ -426,6 +445,7 @@ public String toString() { "schedule", schedule, "sourceId", sourceId, "status", status, + "tags", tags, "workspaceId", workspaceId); } @@ -457,6 +477,8 @@ public final static class Builder { private ConnectionStatusEnum status; + private List<Tag> tags; + private String workspaceId; private Builder() { @@ -589,6 +611,12 @@ public Builder status(ConnectionStatusEnum status) { return this; } + public Builder tags(List<Tag> tags) { + Utils.checkNotNull(tags, "tags"); + this.tags = tags; + return this; + } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; @@ -618,6 +646,7 @@ public ConnectionResponse build() { schedule, sourceId, status, + tags, workspaceId); } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionScheduleResponse.java b/src/main/java/com/airbyte/api/models/shared/ConnectionScheduleResponse.java index 9c3e30bfc..190099aa5 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionScheduleResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionScheduleResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * ConnectionScheduleResponse - schedule for when the the connection should run, per the schedule type */ diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java b/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java index b0564b606..a9d7c373a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ConnectionStatusEnum { ACTIVE("active"), INACTIVE("inactive"), @@ -22,4 +23,13 @@ private ConnectionStatusEnum(String value) { public String value() { return value; } + + public static Optional<ConnectionStatusEnum> fromValue(String value) { + for (ConnectionStatusEnum o: ConnectionStatusEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java b/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java index a01efd2ab..d2628d907 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java @@ -2,13 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ConnectionSyncModeEnum { FULL_REFRESH_OVERWRITE("full_refresh_overwrite"), + FULL_REFRESH_OVERWRITE_DEDUPED("full_refresh_overwrite_deduped"), FULL_REFRESH_APPEND("full_refresh_append"), INCREMENTAL_APPEND("incremental_append"), INCREMENTAL_DEDUPED_HISTORY("incremental_deduped_history"); @@ -23,4 +25,13 @@ private ConnectionSyncModeEnum(String value) { public String value() { return value; } + + public static Optional<ConnectionSyncModeEnum> fromValue(String value) { + for (ConnectionSyncModeEnum o: ConnectionSyncModeEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionType.java b/src/main/java/com/airbyte/api/models/shared/ConnectionType.java index a83e7ba35..b505fdd22 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionType.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ConnectionType { SERVICE_NAME("service_name"); @@ -20,4 +21,13 @@ private ConnectionType(String value) { public String value() { return value; } + + public static Optional<ConnectionType> fromValue(String value) { + for (ConnectionType o: ConnectionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionsResponse.java b/src/main/java/com/airbyte/api/models/shared/ConnectionsResponse.java index a806a7d68..40fa4bffc 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class ConnectionsResponse { @JsonProperty("data") diff --git a/src/main/java/com/airbyte/api/models/shared/ContentType.java b/src/main/java/com/airbyte/api/models/shared/ContentType.java index 3cdd68e6d..5e3e7dde3 100644 --- a/src/main/java/com/airbyte/api/models/shared/ContentType.java +++ b/src/main/java/com/airbyte/api/models/shared/ContentType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ContentType - Select the content type of the items to retrieve. */ @@ -25,4 +26,13 @@ private ContentType(String value) { public String value() { return value; } + + public static Optional<ContentType> fromValue(String value) { + for (ContentType o: ContentType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java b/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java index c48dad5ec..8b71cd056 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java +++ b/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ConversionReportTime - The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.. */ @@ -24,4 +25,13 @@ private ConversionReportTime(String value) { public String value() { return value; } + + public static Optional<ConversionReportTime> fromValue(String value) { + for (ConversionReportTime o: ConversionReportTime.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Convertkit.java b/src/main/java/com/airbyte/api/models/shared/Convertkit.java index 76f9b75e9..d354cc4e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Convertkit.java +++ b/src/main/java/com/airbyte/api/models/shared/Convertkit.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Convertkit { CONVERTKIT("convertkit"); @@ -20,4 +21,13 @@ private Convertkit(String value) { public String value() { return value; } + + public static Optional<Convertkit> fromValue(String value) { + for (Convertkit o: Convertkit.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Convex.java b/src/main/java/com/airbyte/api/models/shared/Convex.java index e855b2286..2c147e8f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Convex.java +++ b/src/main/java/com/airbyte/api/models/shared/Convex.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Convex { CONVEX("convex"); @@ -20,4 +21,13 @@ private Convex(String value) { public String value() { return value; } + + public static Optional<Convex> fromValue(String value) { + for (Convex o: Convex.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Copper.java b/src/main/java/com/airbyte/api/models/shared/Copper.java index f5b4e1d5d..1fb8fc7a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Copper.java +++ b/src/main/java/com/airbyte/api/models/shared/Copper.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Copper { COPPER("copper"); @@ -20,4 +21,13 @@ private Copper(String value) { public String value() { return value; } + + public static Optional<Copper> fromValue(String value) { + for (Copper o: Copper.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CopyRawFiles.java b/src/main/java/com/airbyte/api/models/shared/CopyRawFiles.java index a9275c109..9b40692eb 100644 --- a/src/main/java/com/airbyte/api/models/shared/CopyRawFiles.java +++ b/src/main/java/com/airbyte/api/models/shared/CopyRawFiles.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +12,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * CopyRawFiles - Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. */ @@ -27,23 +26,62 @@ public class CopyRawFiles { @JsonInclude(Include.NON_ABSENT) @JsonProperty("delivery_type") - private Optional<? extends SourceS3DeliveryType> deliveryType; + private Optional<? extends SourceGoogleDriveDeliveryType> deliveryType; + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preserve_directory_structure") + private Optional<Boolean> preserveDirectoryStructure; @JsonCreator - public CopyRawFiles() { - + public CopyRawFiles( + @JsonProperty("preserve_directory_structure") Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + this.preserveDirectoryStructure = preserveDirectoryStructure; + } + + public CopyRawFiles() { + this(Optional.empty()); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional<SourceS3DeliveryType> deliveryType() { - return (Optional<SourceS3DeliveryType>) deliveryType; + public Optional<SourceGoogleDriveDeliveryType> deliveryType() { + return (Optional<SourceGoogleDriveDeliveryType>) deliveryType; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + @JsonIgnore + public Optional<Boolean> preserveDirectoryStructure() { + return preserveDirectoryStructure; } public final static Builder builder() { return new Builder(); } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public CopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public CopyRawFiles withPreserveDirectoryStructure(Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -55,37 +93,68 @@ public boolean equals(java.lang.Object o) { } CopyRawFiles other = (CopyRawFiles) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType); + Objects.deepEquals(this.deliveryType, other.deliveryType) && + Objects.deepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); } @Override public int hashCode() { return Objects.hash( - deliveryType); + deliveryType, + preserveDirectoryStructure); } @Override public String toString() { return Utils.toString(CopyRawFiles.class, - "deliveryType", deliveryType); + "deliveryType", deliveryType, + "preserveDirectoryStructure", preserveDirectoryStructure); } - public final static class Builder { + public final static class Builder { + + private Optional<Boolean> preserveDirectoryStructure; private Builder() { // force use of static builder() method } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public Builder preserveDirectoryStructure(Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } public CopyRawFiles build() { - return new CopyRawFiles( - ); + if (preserveDirectoryStructure == null) { + preserveDirectoryStructure = _SINGLETON_VALUE_PreserveDirectoryStructure.value(); + } return new CopyRawFiles( + preserveDirectoryStructure); } - private static final LazySingletonValue<Optional<? extends SourceS3DeliveryType>> _SINGLETON_VALUE_DeliveryType = + private static final LazySingletonValue<Optional<? extends SourceGoogleDriveDeliveryType>> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", "\"use_file_transfer\"", - new TypeReference<Optional<? extends SourceS3DeliveryType>>() {}); + new TypeReference<Optional<? extends SourceGoogleDriveDeliveryType>>() {}); + + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_PreserveDirectoryStructure = + new LazySingletonValue<>( + "preserve_directory_structure", + "true", + new TypeReference<Optional<Boolean>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Countercyclical.java b/src/main/java/com/airbyte/api/models/shared/Countercyclical.java index d55a7bc7c..9651e699c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Countercyclical.java +++ b/src/main/java/com/airbyte/api/models/shared/Countercyclical.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Countercyclical { COUNTERCYCLICAL("countercyclical"); @@ -20,4 +21,13 @@ private Countercyclical(String value) { public String value() { return value; } + + public static Optional<Countercyclical> fromValue(String value) { + for (Countercyclical o: Countercyclical.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Country.java b/src/main/java/com/airbyte/api/models/shared/Country.java index 6c596ccbc..a4b18ca4c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Country.java +++ b/src/main/java/com/airbyte/api/models/shared/Country.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Country - The 2-letter ISO 3166-1 code of the country you want to get headlines * for. You can't mix this with the sources parameter. @@ -78,4 +79,13 @@ private Country(String value) { public String value() { return value; } + + public static Optional<Country> fromValue(String value) { + for (Country o: Country.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Credential.java b/src/main/java/com/airbyte/api/models/shared/Credential.java index d9cd03043..b034bc6a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Credential.java +++ b/src/main/java/com/airbyte/api/models/shared/Credential.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * Credential - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. */ diff --git a/src/main/java/com/airbyte/api/models/shared/CredentialType.java b/src/main/java/com/airbyte/api/models/shared/CredentialType.java index fec7ef095..1d8761bb9 100644 --- a/src/main/java/com/airbyte/api/models/shared/CredentialType.java +++ b/src/main/java/com/airbyte/api/models/shared/CredentialType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CredentialType { HMAC_KEY("HMAC_KEY"); @@ -20,4 +21,13 @@ private CredentialType(String value) { public String value() { return value; } + + public static Optional<CredentialType> fromValue(String value) { + for (CredentialType o: CredentialType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Credentials.java b/src/main/java/com/airbyte/api/models/shared/Credentials.java index 0e22b4541..c127f38c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Credentials.java +++ b/src/main/java/com/airbyte/api/models/shared/Credentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class Credentials { /** @@ -27,7 +25,7 @@ public class Credentials { private Optional<String> clientId; /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -56,7 +54,7 @@ public Optional<String> clientId() { } /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ @JsonIgnore public Optional<String> clientSecret() { @@ -86,7 +84,7 @@ public Credentials withClientId(Optional<String> clientId) { } /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ public Credentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -95,7 +93,7 @@ public Credentials withClientSecret(String clientSecret) { } /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ public Credentials withClientSecret(Optional<String> clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -160,7 +158,7 @@ public Builder clientId(Optional<String> clientId) { } /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -169,7 +167,7 @@ public Builder clientSecret(String clientSecret) { } /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ public Builder clientSecret(Optional<String> clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); diff --git a/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java index a2cffac89..91a4bcd08 100644 --- a/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * CredentialsTitle - Name of the credentials */ @@ -23,4 +24,13 @@ private CredentialsTitle(String value) { public String value() { return value; } + + public static Optional<CredentialsTitle> fromValue(String value) { + for (CredentialsTitle o: CredentialsTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CustomQueriesArray.java b/src/main/java/com/airbyte/api/models/shared/CustomQueriesArray.java index ad1670bae..d577b8447 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomQueriesArray.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomQueriesArray.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class CustomQueriesArray { /** diff --git a/src/main/java/com/airbyte/api/models/shared/CustomReportConfig.java b/src/main/java/com/airbyte/api/models/shared/CustomReportConfig.java index 32c49a097..d7f201bae 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomReportConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomReportConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class CustomReportConfig { /** diff --git a/src/main/java/com/airbyte/api/models/shared/CustomerIo.java b/src/main/java/com/airbyte/api/models/shared/CustomerIo.java index 77d18bafa..06e4686ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomerIo.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomerIo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum CustomerIo { CUSTOMER_IO("customer-io"); @@ -20,4 +21,13 @@ private CustomerIo(String value) { public String value() { return value; } + + public static Optional<CustomerIo> fromValue(String value) { + for (CustomerIo o: CustomerIo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java b/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java index cae882c54..b8c90a467 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * CustomerStatus - An enumeration. */ @@ -27,4 +28,13 @@ private CustomerStatus(String value) { public String value() { return value; } + + public static Optional<CustomerStatus> fromValue(String value) { + for (CustomerStatus o: CustomerStatus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DataCenter.java b/src/main/java/com/airbyte/api/models/shared/DataCenter.java index 29f027894..668e2ef96 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/DataCenter.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DataCenter { EU_CENTRAL("eu-central"), US_EAST("us-east"), @@ -23,4 +24,13 @@ private DataCenter(String value) { public String value() { return value; } + + public static Optional<DataCenter> fromValue(String value) { + for (DataCenter o: DataCenter.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DataCenterID.java b/src/main/java/com/airbyte/api/models/shared/DataCenterID.java index e0032f7ac..75c7d1b9f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataCenterID.java +++ b/src/main/java/com/airbyte/api/models/shared/DataCenterID.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DataCenterID - The identifier for the data center, such as 'us1' or 'e' for EU. */ @@ -24,4 +25,13 @@ private DataCenterID(String value) { public String value() { return value; } + + public static Optional<DataCenterID> fromValue(String value) { + for (DataCenterID o: DataCenterID.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java b/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java index 339c571bc..40a58c451 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java +++ b/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DataCenterLocation - Please choose the region of your Data Center location. More info by this <a href="https://www.zoho.com/crm/developer/docs/api/v2/multi-dc.html">Link</a> */ @@ -28,4 +29,13 @@ private DataCenterLocation(String value) { public String value() { return value; } + + public static Optional<DataCenterLocation> fromValue(String value) { + for (DataCenterLocation o: DataCenterLocation.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DataFreshness.java b/src/main/java/com/airbyte/api/models/shared/DataFreshness.java index b002e4d49..42d6254ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataFreshness.java +++ b/src/main/java/com/airbyte/api/models/shared/DataFreshness.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DataFreshness - If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our <a href='https://docs.airbyte.com/integrations/source/google-search-console'>full documentation</a>. */ @@ -24,4 +25,13 @@ private DataFreshness(String value) { public String value() { return value; } + + public static Optional<DataFreshness> fromValue(String value) { + for (DataFreshness o: DataFreshness.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DataRegion.java b/src/main/java/com/airbyte/api/models/shared/DataRegion.java index 3c2ea47db..c72a01fdd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DataRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DataRegion - Amplitude data region server */ @@ -24,4 +25,13 @@ private DataRegion(String value) { public String value() { return value; } + + public static Optional<DataRegion> fromValue(String value) { + for (DataRegion o: DataRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DataSource.java b/src/main/java/com/airbyte/api/models/shared/DataSource.java index 9921c22e6..19ea93106 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataSource.java +++ b/src/main/java/com/airbyte/api/models/shared/DataSource.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DataSource - A data source that is powered by the platform. */ @@ -26,4 +27,13 @@ private DataSource(String value) { public String value() { return value; } + + public static Optional<DataSource> fromValue(String value) { + for (DataSource o: DataSource.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DataType.java b/src/main/java/com/airbyte/api/models/shared/DataType.java index 3f21e24f2..72f9f2bab 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataType.java +++ b/src/main/java/com/airbyte/api/models/shared/DataType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DataType - /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Endpoint-Overview">here</a>. */ @@ -24,4 +25,13 @@ private DataType(String value) { public String value() { return value; } + + public static Optional<DataType> fromValue(String value) { + for (DataType o: DataType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Databricks.java b/src/main/java/com/airbyte/api/models/shared/Databricks.java index 097613ee5..568c5a978 100644 --- a/src/main/java/com/airbyte/api/models/shared/Databricks.java +++ b/src/main/java/com/airbyte/api/models/shared/Databricks.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Databricks { DATABRICKS("databricks"); @@ -20,4 +21,13 @@ private Databricks(String value) { public String value() { return value; } + + public static Optional<Databricks> fromValue(String value) { + for (Databricks o: Databricks.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Datadog.java b/src/main/java/com/airbyte/api/models/shared/Datadog.java index 72555eb41..2e19bc9d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Datadog.java +++ b/src/main/java/com/airbyte/api/models/shared/Datadog.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Datadog { DATADOG("datadog"); @@ -20,4 +21,13 @@ private Datadog(String value) { public String value() { return value; } + + public static Optional<Datadog> fromValue(String value) { + for (Datadog o: Datadog.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Datascope.java b/src/main/java/com/airbyte/api/models/shared/Datascope.java index d1fb7b3db..2b50a89ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/Datascope.java +++ b/src/main/java/com/airbyte/api/models/shared/Datascope.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Datascope { DATASCOPE("datascope"); @@ -20,4 +21,13 @@ private Datascope(String value) { public String value() { return value; } + + public static Optional<Datascope> fromValue(String value) { + for (Datascope o: Datascope.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java b/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java index 1bed98f78..506bd79a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java +++ b/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DatasetLocation - The location of the dataset. Warning: Changes made after creation will not be applied. Read more <a href="https://cloud.google.com/bigquery/docs/locations">here</a>. */ @@ -66,4 +67,13 @@ private DatasetLocation(String value) { public String value() { return value; } + + public static Optional<DatasetLocation> fromValue(String value) { + for (DatasetLocation o: DatasetLocation.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DateRange.java b/src/main/java/com/airbyte/api/models/shared/DateRange.java index c9929a49a..d9c0fbcd7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DateRange.java +++ b/src/main/java/com/airbyte/api/models/shared/DateRange.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -14,7 +13,6 @@ import java.time.LocalDate; import java.util.Objects; - public class DateRange { @JsonProperty("endDate") diff --git a/src/main/java/com/airbyte/api/models/shared/Days.java b/src/main/java/com/airbyte/api/models/shared/Days.java new file mode 100644 index 000000000..6fc80a2d9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Days.java @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * Days - The number of days of data for market chart. + * + */ +public enum Days { + ONE("1"), + SEVEN("7"), + FOURTEEN("14"), + THIRTY("30"), + NINETY("90"), + ONE_HUNDRED_AND_EIGHTY("180"), + THREE_HUNDRED_AND_SIXTY_FIVE("365"), + MAX("max"); + + @JsonValue + private final String value; + + private Days(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Days> fromValue(String value) { + for (Days o: Days.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Dbt.java b/src/main/java/com/airbyte/api/models/shared/Dbt.java index 0751d1e5b..f7d8576b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dbt.java +++ b/src/main/java/com/airbyte/api/models/shared/Dbt.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Dbt { DBT("dbt"); @@ -20,4 +21,13 @@ private Dbt(String value) { public String value() { return value; } + + public static Optional<Dbt> fromValue(String value) { + for (Dbt o: Dbt.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java b/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java index 85ed3b05a..8f132ee95 100644 --- a/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java +++ b/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DefaultVectorizer - The vectorizer to use if new classes need to be created */ @@ -30,4 +31,13 @@ private DefaultVectorizer(String value) { public String value() { return value; } + + public static Optional<DefaultVectorizer> fromValue(String value) { + for (DefaultVectorizer o: DefaultVectorizer.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Deflate.java b/src/main/java/com/airbyte/api/models/shared/Deflate.java index e94556869..a11dbc49e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Deflate.java +++ b/src/main/java/com/airbyte/api/models/shared/Deflate.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class Deflate { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/DeletionMode.java b/src/main/java/com/airbyte/api/models/shared/DeletionMode.java index 88c571903..e7c0acf38 100644 --- a/src/main/java/com/airbyte/api/models/shared/DeletionMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DeletionMode.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DeletionMode - <b>This only applies to incremental syncs.</b> <br> * Enabling deletion mode informs your destination of deleted documents.<br> diff --git a/src/main/java/com/airbyte/api/models/shared/Delighted.java b/src/main/java/com/airbyte/api/models/shared/Delighted.java index 5592ca821..dbcac5638 100644 --- a/src/main/java/com/airbyte/api/models/shared/Delighted.java +++ b/src/main/java/com/airbyte/api/models/shared/Delighted.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Delighted { DELIGHTED("delighted"); @@ -20,4 +21,13 @@ private Delighted(String value) { public String value() { return value; } + + public static Optional<Delighted> fromValue(String value) { + for (Delighted o: Delighted.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DeliveryMethod.java b/src/main/java/com/airbyte/api/models/shared/DeliveryMethod.java index f169c74ad..526ad0904 100644 --- a/src/main/java/com/airbyte/api/models/shared/DeliveryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DeliveryMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = DeliveryMethod._Deserializer.class) public class DeliveryMethod { @@ -38,12 +36,18 @@ public static DeliveryMethod of(CopyRawFiles value) { Utils.checkNotNull(value, "value"); return new DeliveryMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<CopyRawFiles>(){})); } + + public static DeliveryMethod of(ReplicatePermissionsACL value) { + Utils.checkNotNull(value, "value"); + return new DeliveryMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<ReplicatePermissionsACL>(){})); + } /** * Returns an instance of one of these types: * <ul> * <li>{@code com.airbyte.api.models.shared.ReplicateRecords}</li> * <li>{@code com.airbyte.api.models.shared.CopyRawFiles}</li> + * <li>{@code com.airbyte.api.models.shared.ReplicatePermissionsACL}</li> * </ul> * * <p>Use {@code instanceof} to determine what type is returned. For example: @@ -83,6 +87,7 @@ public static final class _Deserializer extends OneOfDeserializer<DeliveryMethod public _Deserializer() { super(DeliveryMethod.class, false, + TypeReferenceWithShape.of(new TypeReference<ReplicatePermissionsACL>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<CopyRawFiles>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<ReplicateRecords>() {}, JsonShape.DEFAULT)); } diff --git a/src/main/java/com/airbyte/api/models/shared/DeliveryType.java b/src/main/java/com/airbyte/api/models/shared/DeliveryType.java index b39b0c08b..aeaab5553 100644 --- a/src/main/java/com/airbyte/api/models/shared/DeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/DeliveryType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DeliveryType { USE_RECORDS_TRANSFER("use_records_transfer"); @@ -20,4 +21,13 @@ private DeliveryType(String value) { public String value() { return value; } + + public static Optional<DeliveryType> fromValue(String value) { + for (DeliveryType o: DeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Deputy.java b/src/main/java/com/airbyte/api/models/shared/Deputy.java index eefa72798..fa2d895df 100644 --- a/src/main/java/com/airbyte/api/models/shared/Deputy.java +++ b/src/main/java/com/airbyte/api/models/shared/Deputy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Deputy { DEPUTY("deputy"); @@ -20,4 +21,13 @@ private Deputy(String value) { public String value() { return value; } + + public static Optional<Deputy> fromValue(String value) { + for (Deputy o: Deputy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstra.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstra.java index 9677cb7d9..3e16205a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstra.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstra.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * DestinationAstra - The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java index ae6564c50..3ab0bfdfd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationAstraLanguage - Split code in suitable places based on the programming language */ @@ -38,4 +39,13 @@ private DestinationAstraLanguage(String value) { public String value() { return value; } + + public static Optional<DestinationAstraLanguage> fromValue(String value) { + for (DestinationAstraLanguage o: DestinationAstraLanguage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java index 060921dc2..f5941bf3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAstraMode { - COHERE("cohere"); + OPENAI("openai"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationAstraMode(String value) { public String value() { return value; } + + public static Optional<DestinationAstraMode> fromValue(String value) { + for (DestinationAstraMode o: DestinationAstraMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.java deleted file mode 100644 index 72dd888f8..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum DestinationAstraSchemasEmbeddingEmbedding1Mode { - OPENAI("openai"); - - @JsonValue - private final String value; - - private DestinationAstraSchemasEmbeddingEmbedding1Mode(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.java new file mode 100644 index 000000000..1e39a129f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum DestinationAstraSchemasEmbeddingEmbedding5Mode { + OPENAI_COMPATIBLE("openai_compatible"); + + @JsonValue + private final String value; + + private DestinationAstraSchemasEmbeddingEmbedding5Mode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationAstraSchemasEmbeddingEmbedding5Mode> fromValue(String value) { + for (DestinationAstraSchemasEmbeddingEmbedding5Mode o: DestinationAstraSchemasEmbeddingEmbedding5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java index 18a240968..e283b407a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAstraSchemasEmbeddingEmbeddingMode { - OPENAI_COMPATIBLE("openai_compatible"); + AZURE_OPENAI("azure_openai"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationAstraSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationAstraSchemasEmbeddingEmbeddingMode> fromValue(String value) { + for (DestinationAstraSchemasEmbeddingEmbeddingMode o: DestinationAstraSchemasEmbeddingEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java index 6a5df8763..45d91a3f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAstraSchemasEmbeddingMode { - AZURE_OPENAI("azure_openai"); + FAKE("fake"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationAstraSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationAstraSchemasEmbeddingMode> fromValue(String value) { + for (DestinationAstraSchemasEmbeddingMode o: DestinationAstraSchemasEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java index 697b321ea..09b814758 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAstraSchemasMode { - FAKE("fake"); + COHERE("cohere"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationAstraSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationAstraSchemasMode> fromValue(String value) { + for (DestinationAstraSchemasMode o: DestinationAstraSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java index 37f42900b..c85ea6006 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAstraSchemasProcessingMode { SEPARATOR("separator"); @@ -20,4 +21,13 @@ private DestinationAstraSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional<DestinationAstraSchemasProcessingMode> fromValue(String value) { + for (DestinationAstraSchemasProcessingMode o: DestinationAstraSchemasProcessingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java index cfb00ca1c..3ffa82419 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAstraSchemasProcessingTextSplitterMode { MARKDOWN("markdown"); @@ -20,4 +21,13 @@ private DestinationAstraSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional<DestinationAstraSchemasProcessingTextSplitterMode> fromValue(String value) { + for (DestinationAstraSchemasProcessingTextSplitterMode o: DestinationAstraSchemasProcessingTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java index 62b9d06c0..c37c151ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAstraSchemasProcessingTextSplitterTextSplitterMode { CODE("code"); @@ -20,4 +21,13 @@ private DestinationAstraSchemasProcessingTextSplitterTextSplitterMode(String val public String value() { return value; } + + public static Optional<DestinationAstraSchemasProcessingTextSplitterTextSplitterMode> fromValue(String value) { + for (DestinationAstraSchemasProcessingTextSplitterTextSplitterMode o: DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalake.java b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalake.java index 0707fc046..60ce479b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationAwsDatalake { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java index 761051608..f5b503ceb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationAwsDatalakeCompressionCodecOptional - The compression algorithm used to compress data. */ @@ -26,4 +27,13 @@ private DestinationAwsDatalakeCompressionCodecOptional(String value) { public String value() { return value; } + + public static Optional<DestinationAwsDatalakeCompressionCodecOptional> fromValue(String value) { + for (DestinationAwsDatalakeCompressionCodecOptional o: DestinationAwsDatalakeCompressionCodecOptional.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java index ab8d01fbe..965cba252 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationAwsDatalakeCredentialsTitle - Name of the credentials */ @@ -23,4 +24,13 @@ private DestinationAwsDatalakeCredentialsTitle(String value) { public String value() { return value; } + + public static Optional<DestinationAwsDatalakeCredentialsTitle> fromValue(String value) { + for (DestinationAwsDatalakeCredentialsTitle o: DestinationAwsDatalakeCredentialsTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java index 0e08c1ca1..c7e4c2c19 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAwsDatalakeFormatTypeWildcard { PARQUET("Parquet"); @@ -20,4 +21,13 @@ private DestinationAwsDatalakeFormatTypeWildcard(String value) { public String value() { return value; } + + public static Optional<DestinationAwsDatalakeFormatTypeWildcard> fromValue(String value) { + for (DestinationAwsDatalakeFormatTypeWildcard o: DestinationAwsDatalakeFormatTypeWildcard.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorage.java index b605b4890..53c67a23e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationAzureBlobStorage { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java index b410ede8a..004ff9354 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAzureBlobStorageAzureBlobStorage { AZURE_BLOB_STORAGE("azure-blob-storage"); @@ -20,4 +21,13 @@ private DestinationAzureBlobStorageAzureBlobStorage(String value) { public String value() { return value; } + + public static Optional<DestinationAzureBlobStorageAzureBlobStorage> fromValue(String value) { + for (DestinationAzureBlobStorageAzureBlobStorage o: DestinationAzureBlobStorageAzureBlobStorage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java index 86876a8f5..94878c3d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationAzureBlobStorageFormatType { JSONL("JSONL"); @@ -20,4 +21,13 @@ private DestinationAzureBlobStorageFormatType(String value) { public String value() { return value; } + + public static Optional<DestinationAzureBlobStorageFormatType> fromValue(String value) { + for (DestinationAzureBlobStorageFormatType o: DestinationAzureBlobStorageFormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java index ea06e166a..8288f5611 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationBigquery.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigquery.java index 76b4c0044..8c669ef37 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigquery.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationBigquery { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java index 215128e45..8e935c675 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationBigqueryCredentialType { HMAC_KEY("HMAC_KEY"); @@ -20,4 +21,13 @@ private DestinationBigqueryCredentialType(String value) { public String value() { return value; } + + public static Optional<DestinationBigqueryCredentialType> fromValue(String value) { + for (DestinationBigqueryCredentialType o: DestinationBigqueryCredentialType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryHMACKey.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryHMACKey.java index 6b5d6dac5..6e48f7c46 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryHMACKey.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryHMACKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationBigqueryHMACKey { @JsonProperty("credential_type") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java index 977646467..d99a7daf8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationBigqueryMethod { GCS_STAGING("GCS Staging"); @@ -20,4 +21,13 @@ private DestinationBigqueryMethod(String value) { public String value() { return value; } + + public static Optional<DestinationBigqueryMethod> fromValue(String value) { + for (DestinationBigqueryMethod o: DestinationBigqueryMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java index cc254def7..07877a818 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationClickhouse { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java index 80dd868e9..049391dc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationClickhouseSchemasTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationClickhouseSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationClickhouseSchemasTunnelMethod> fromValue(String value) { + for (DestinationClickhouseSchemasTunnelMethod o: DestinationClickhouseSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java index 1faeb858f..dad5e08b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationClickhouseTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationClickhouseTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationClickhouseTunnelMethod> fromValue(String value) { + for (DestinationClickhouseTunnelMethod o: DestinationClickhouseTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java b/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java index eb701da05..8e093b091 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationConfiguration - The values required to configure the destination. */ @@ -132,6 +130,11 @@ public static DestinationConfiguration of(DestinationMssql value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationMssql>(){})); } + public static DestinationConfiguration of(DestinationMssqlV2 value) { + Utils.checkNotNull(value, "value"); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationMssqlV2>(){})); + } + public static DestinationConfiguration of(DestinationMysql value) { Utils.checkNotNull(value, "value"); return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationMysql>(){})); @@ -182,6 +185,11 @@ public static DestinationConfiguration of(DestinationS3 value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationS3>(){})); } + public static DestinationConfiguration of(DestinationS3DataLake value) { + Utils.checkNotNull(value, "value"); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationS3DataLake>(){})); + } + public static DestinationConfiguration of(DestinationS3Glue value) { Utils.checkNotNull(value, "value"); return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationS3Glue>(){})); @@ -255,6 +263,7 @@ public static DestinationConfiguration of(DestinationYellowbrick value) { * <li>{@code com.airbyte.api.models.shared.DestinationMongodb}</li> * <li>{@code com.airbyte.api.models.shared.DestinationMotherduck}</li> * <li>{@code com.airbyte.api.models.shared.DestinationMssql}</li> + * <li>{@code com.airbyte.api.models.shared.DestinationMssqlV2}</li> * <li>{@code com.airbyte.api.models.shared.DestinationMysql}</li> * <li>{@code com.airbyte.api.models.shared.DestinationOracle}</li> * <li>{@code com.airbyte.api.models.shared.DestinationPgvector}</li> @@ -265,6 +274,7 @@ public static DestinationConfiguration of(DestinationYellowbrick value) { * <li>{@code com.airbyte.api.models.shared.DestinationRedis}</li> * <li>{@code com.airbyte.api.models.shared.DestinationRedshift}</li> * <li>{@code com.airbyte.api.models.shared.DestinationS3}</li> + * <li>{@code com.airbyte.api.models.shared.DestinationS3DataLake}</li> * <li>{@code com.airbyte.api.models.shared.DestinationS3Glue}</li> * <li>{@code com.airbyte.api.models.shared.DestinationSftpJson}</li> * <li>{@code com.airbyte.api.models.shared.DestinationSnowflake}</li> @@ -321,38 +331,40 @@ public _Deserializer() { TypeReferenceWithShape.of(new TypeReference<DestinationS3Glue>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationYellowbrick>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationMssql>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationMysql>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationOracle>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationS3>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationMysql>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationBigquery>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationClickhouse>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationBigquery>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationDatabricks>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationRedis>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationS3DataLake>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationPubsub>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationRedis>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationMssqlV2>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationVectara>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationAzureBlobStorage>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationTeradata>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationFirebolt>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationVectara>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationTypesense>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationSftpJson>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationGcs>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationElasticsearch>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationGcs>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationDynamodb>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationPinecone>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationMongodb>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationMilvus>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationAstra>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationWeaviate>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationQdrant>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationAstra>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationSnowflakeCortex>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationPgvector>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationMotherduck>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationDuckdb>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationPinecone>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationMilvus>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationIceberg>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationConvex>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationDuckdb>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationMotherduck>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationTimeplus>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationFirestore>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationGoogleSheets>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationTimeplus>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationConvex>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<DestinationDevNull>() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationConvex.java b/src/main/java/com/airbyte/api/models/shared/DestinationConvex.java index 3b61d5a23..576324850 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationConvex.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationConvex.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationConvex { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/DestinationCreateRequest.java index ddb3361ac..392bd349d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationCreateRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationCreateRequest { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java index 3b59d2248..fbe32834b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationDatabricks { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java index acccbc5b7..08cd708e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationDatabricksAuthType { BASIC("BASIC"); @@ -20,4 +21,13 @@ private DestinationDatabricksAuthType(String value) { public String value() { return value; } + + public static Optional<DestinationDatabricksAuthType> fromValue(String value) { + for (DestinationDatabricksAuthType o: DestinationDatabricksAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java index 17bd6f61d..c73f1d86a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationDatabricksSchemasAuthType { OAUTH("OAUTH"); @@ -20,4 +21,13 @@ private DestinationDatabricksSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<DestinationDatabricksSchemasAuthType> fromValue(String value) { + for (DestinationDatabricksSchemasAuthType o: DestinationDatabricksSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java index 8b8507876..9f491379d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationDevNull { @JsonProperty("destinationType") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java index 63ab0b59c..ccec0f566 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationDevNullLoggingType { EVERY_NTH("EveryNth"); @@ -20,4 +21,13 @@ private DestinationDevNullLoggingType(String value) { public String value() { return value; } + + public static Optional<DestinationDevNullLoggingType> fromValue(String value) { + for (DestinationDevNullLoggingType o: DestinationDevNullLoggingType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java index ed8d03722..fca5e8a7c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationDevNullSchemasLoggingType { RANDOM_SAMPLING("RandomSampling"); @@ -20,4 +21,13 @@ private DestinationDevNullSchemasLoggingType(String value) { public String value() { return value; } + + public static Optional<DestinationDevNullSchemasLoggingType> fromValue(String value) { + for (DestinationDevNullSchemasLoggingType o: DestinationDevNullSchemasLoggingType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java index 86af8ad5c..5acc1d11d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationDevNullSchemasTestDestinationTestDestinationType { FAILING("FAILING"); @@ -20,4 +21,13 @@ private DestinationDevNullSchemasTestDestinationTestDestinationType(String value public String value() { return value; } + + public static Optional<DestinationDevNullSchemasTestDestinationTestDestinationType> fromValue(String value) { + for (DestinationDevNullSchemasTestDestinationTestDestinationType o: DestinationDevNullSchemasTestDestinationTestDestinationType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java index c0bb1d025..11df4d492 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationDevNullSchemasTestDestinationType { THROTTLED("THROTTLED"); @@ -20,4 +21,13 @@ private DestinationDevNullSchemasTestDestinationType(String value) { public String value() { return value; } + + public static Optional<DestinationDevNullSchemasTestDestinationType> fromValue(String value) { + for (DestinationDevNullSchemasTestDestinationType o: DestinationDevNullSchemasTestDestinationType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java index 7037461b2..c4bbf6a62 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationDevNullTestDestinationType { SILENT("SILENT"); @@ -20,4 +21,13 @@ private DestinationDevNullTestDestinationType(String value) { public String value() { return value; } + + public static Optional<DestinationDevNullTestDestinationType> fromValue(String value) { + for (DestinationDevNullTestDestinationType o: DestinationDevNullTestDestinationType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDuckdb.java b/src/main/java/com/airbyte/api/models/shared/DestinationDuckdb.java index 1c5de65b4..a54d7a06c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDuckdb.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDuckdb.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationDuckdb { @JsonProperty("destinationType") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDynamodb.java b/src/main/java/com/airbyte/api/models/shared/DestinationDynamodb.java index caa44bdc3..95fc853dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDynamodb.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationDynamodb { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java index 24827a62a..8553ddb5b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationElasticsearch { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java index e6588bd91..f236c909e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationElasticsearchMethod { NONE("none"); @@ -20,4 +21,13 @@ private DestinationElasticsearchMethod(String value) { public String value() { return value; } + + public static Optional<DestinationElasticsearchMethod> fromValue(String value) { + for (DestinationElasticsearchMethod o: DestinationElasticsearchMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNoTunnel.java index 061746793..2bd70a7de 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationElasticsearchNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchPasswordAuthentication.java index 50a135ad8..d9827ff79 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationElasticsearchPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHKeyAuthentication.java index f08573f51..91bfc5f91 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationElasticsearchSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHTunnelMethod.java index f6098b59c..46331f04a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationElasticsearchSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java index 8ebb14d78..236850298 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationElasticsearchSchemasAuthenticationMethodMethod { BASIC("basic"); @@ -20,4 +21,13 @@ private DestinationElasticsearchSchemasAuthenticationMethodMethod(String value) public String value() { return value; } + + public static Optional<DestinationElasticsearchSchemasAuthenticationMethodMethod> fromValue(String value) { + for (DestinationElasticsearchSchemasAuthenticationMethodMethod o: DestinationElasticsearchSchemasAuthenticationMethodMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java index 71bad3082..490c77611 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationElasticsearchSchemasMethod { SECRET("secret"); @@ -20,4 +21,13 @@ private DestinationElasticsearchSchemasMethod(String value) { public String value() { return value; } + + public static Optional<DestinationElasticsearchSchemasMethod> fromValue(String value) { + for (DestinationElasticsearchSchemasMethod o: DestinationElasticsearchSchemasMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java index 495c74faf..a6311c32a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationElasticsearchSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationElasticsearchSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationElasticsearchSchemasTunnelMethod> fromValue(String value) { + for (DestinationElasticsearchSchemasTunnelMethod o: DestinationElasticsearchSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java index 415703b48..459e02eaf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationElasticsearchSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationElasticsearchSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationElasticsearchSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (DestinationElasticsearchSchemasTunnelMethodTunnelMethod o: DestinationElasticsearchSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java index e4b0f76e3..e343bbee9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationElasticsearchTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private DestinationElasticsearchTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationElasticsearchTunnelMethod> fromValue(String value) { + for (DestinationElasticsearchTunnelMethod o: DestinationElasticsearchTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java b/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java index 2e4322767..993fc9bb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationFirebolt { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java index a80ffb1f8..1183d1f53 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationFireboltLoadingMethod - Loading method used to select the way data will be uploaded to Firebolt */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java index 5ea7c95f9..c53c34e88 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationFireboltMethod { SQL("SQL"); @@ -20,4 +21,13 @@ private DestinationFireboltMethod(String value) { public String value() { return value; } + + public static Optional<DestinationFireboltMethod> fromValue(String value) { + for (DestinationFireboltMethod o: DestinationFireboltMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java index bbaeac276..7f3a41510 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationFireboltSchemasMethod { S3("S3"); @@ -20,4 +21,13 @@ private DestinationFireboltSchemasMethod(String value) { public String value() { return value; } + + public static Optional<DestinationFireboltSchemasMethod> fromValue(String value) { + for (DestinationFireboltSchemasMethod o: DestinationFireboltSchemasMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java b/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java index af9a449b2..fe4db88f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationFirestore { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java index cd094730c..48de6c3a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationGcs { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java index 3f6ee73e3..625663651 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationGcsAuthentication - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCSVCommaSeparatedValues.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCSVCommaSeparatedValues.java index 0276024ca..95b5e750e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCSVCommaSeparatedValues.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCSVCommaSeparatedValues.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationGcsCSVCommaSeparatedValues { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java index e29b200ed..b81b6ff81 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsCodec { DEFLATE("Deflate"); @@ -20,4 +21,13 @@ private DestinationGcsCodec(String value) { public String value() { return value; } + + public static Optional<DestinationGcsCodec> fromValue(String value) { + for (DestinationGcsCodec o: DestinationGcsCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompression.java index e02e66c32..73117fc32 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationGcsCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java index ce2e9949b..0785be6c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationGcsCompressionCodec - The compression algorithm used to compress data pages. */ @@ -29,4 +30,13 @@ private DestinationGcsCompressionCodec(String value) { public String value() { return value; } + + public static Optional<DestinationGcsCompressionCodec> fromValue(String value) { + for (DestinationGcsCompressionCodec o: DestinationGcsCompressionCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java index 4268e61c3..b9174402b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsCompressionType { GZIP("GZIP"); @@ -20,4 +21,13 @@ private DestinationGcsCompressionType(String value) { public String value() { return value; } + + public static Optional<DestinationGcsCompressionType> fromValue(String value) { + for (DestinationGcsCompressionType o: DestinationGcsCompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java index 81e55f0ec..81f0b341d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsFormatType { AVRO("Avro"); @@ -20,4 +21,13 @@ private DestinationGcsFormatType(String value) { public String value() { return value; } + + public static Optional<DestinationGcsFormatType> fromValue(String value) { + for (DestinationGcsFormatType o: DestinationGcsFormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsGZIP.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGZIP.java index 3e03dcce8..97636a591 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsGZIP.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGZIP.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationGcsGZIP { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java index 11a786985..5fe29f955 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsGcs { GCS("gcs"); @@ -20,4 +21,13 @@ private DestinationGcsGcs(String value) { public String value() { return value; } + + public static Optional<DestinationGcsGcs> fromValue(String value) { + for (DestinationGcsGcs o: DestinationGcsGcs.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsJSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsJSONLinesNewlineDelimitedJSON.java index 256f19816..536c37b7c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsJSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsJSONLinesNewlineDelimitedJSON.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationGcsJSONLinesNewlineDelimitedJSON { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsNoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsNoCompression.java index 356fe425f..f4d96d351 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsNoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsNoCompression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationGcsNoCompression { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsOutputFormat.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsOutputFormat.java index eefd1028f..ec715ad3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsOutputFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsOutputFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationGcsOutputFormat - Output data format. One of the following formats must be selected - <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#advantages_of_avro">AVRO</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-parquet#parquet_schemas">PARQUET</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-csv#loading_csv_data_into_a_table">CSV</a> format, or <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-json#loading_json_data_into_a_new_table">JSONL</a> format. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsParquetColumnarStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsParquetColumnarStorage.java index b78f442be..de0ee4bc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsParquetColumnarStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsParquetColumnarStorage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationGcsParquetColumnarStorage { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java index d70a48640..b9e93db31 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsSchemasCodec { BZIP2("bzip2"); @@ -20,4 +21,13 @@ private DestinationGcsSchemasCodec(String value) { public String value() { return value; } + + public static Optional<DestinationGcsSchemasCodec> fromValue(String value) { + for (DestinationGcsSchemasCodec o: DestinationGcsSchemasCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java index 6b74f19b0..260fc6df1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsSchemasCompressionType { NO_COMPRESSION("No Compression"); @@ -20,4 +21,13 @@ private DestinationGcsSchemasCompressionType(String value) { public String value() { return value; } + + public static Optional<DestinationGcsSchemasCompressionType> fromValue(String value) { + for (DestinationGcsSchemasCompressionType o: DestinationGcsSchemasCompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java index 7732ccc15..18c83f011 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsSchemasFormatCodec { XZ("xz"); @@ -20,4 +21,13 @@ private DestinationGcsSchemasFormatCodec(String value) { public String value() { return value; } + + public static Optional<DestinationGcsSchemasFormatCodec> fromValue(String value) { + for (DestinationGcsSchemasFormatCodec o: DestinationGcsSchemasFormatCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java index 1c0df7a08..ce7d7c6b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsSchemasFormatCompressionType { GZIP("GZIP"); @@ -20,4 +21,13 @@ private DestinationGcsSchemasFormatCompressionType(String value) { public String value() { return value; } + + public static Optional<DestinationGcsSchemasFormatCompressionType> fromValue(String value) { + for (DestinationGcsSchemasFormatCompressionType o: DestinationGcsSchemasFormatCompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java index 1e2a46a10..13ee7b3b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsSchemasFormatFormatType { JSONL("JSONL"); @@ -20,4 +21,13 @@ private DestinationGcsSchemasFormatFormatType(String value) { public String value() { return value; } + + public static Optional<DestinationGcsSchemasFormatFormatType> fromValue(String value) { + for (DestinationGcsSchemasFormatFormatType o: DestinationGcsSchemasFormatFormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java index 3b68fbc34..e535b0d29 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsSchemasFormatOutputFormat1Codec { SNAPPY("snappy"); @@ -20,4 +21,13 @@ private DestinationGcsSchemasFormatOutputFormat1Codec(String value) { public String value() { return value; } + + public static Optional<DestinationGcsSchemasFormatOutputFormat1Codec> fromValue(String value) { + for (DestinationGcsSchemasFormatOutputFormat1Codec o: DestinationGcsSchemasFormatOutputFormat1Codec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java index 507818895..8b68277b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsSchemasFormatOutputFormatCodec { ZSTANDARD("zstandard"); @@ -20,4 +21,13 @@ private DestinationGcsSchemasFormatOutputFormatCodec(String value) { public String value() { return value; } + + public static Optional<DestinationGcsSchemasFormatOutputFormatCodec> fromValue(String value) { + for (DestinationGcsSchemasFormatOutputFormatCodec o: DestinationGcsSchemasFormatOutputFormatCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java index 1db1c9694..2f939a2b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsSchemasFormatOutputFormatFormatType { PARQUET("Parquet"); @@ -20,4 +21,13 @@ private DestinationGcsSchemasFormatOutputFormatFormatType(String value) { public String value() { return value; } + + public static Optional<DestinationGcsSchemasFormatOutputFormatFormatType> fromValue(String value) { + for (DestinationGcsSchemasFormatOutputFormatFormatType o: DestinationGcsSchemasFormatOutputFormatFormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java index 6c56f56c1..123df0dd4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGcsSchemasFormatType { CSV("CSV"); @@ -20,4 +21,13 @@ private DestinationGcsSchemasFormatType(String value) { public String value() { return value; } + + public static Optional<DestinationGcsSchemasFormatType> fromValue(String value) { + for (DestinationGcsSchemasFormatType o: DestinationGcsSchemasFormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasNoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasNoCompression.java index aa074d3f1..e582867a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasNoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasNoCompression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationGcsSchemasNoCompression { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheets.java index 20576eb82..1cc554769 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheets.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationGoogleSheets { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java index 0aa7587d2..f15bc2507 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationGoogleSheetsGoogleSheets { GOOGLE_SHEETS("google-sheets"); @@ -20,4 +21,13 @@ private DestinationGoogleSheetsGoogleSheets(String value) { public String value() { return value; } + + public static Optional<DestinationGoogleSheetsGoogleSheets> fromValue(String value) { + for (DestinationGoogleSheetsGoogleSheets o: DestinationGoogleSheetsGoogleSheets.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIceberg.java b/src/main/java/com/airbyte/api/models/shared/DestinationIceberg.java index 7c02e9d15..a2312073a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIceberg.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIceberg.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationIceberg { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java index eec934563..718cc6a46 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationIcebergCatalogType { HADOOP("Hadoop"); @@ -20,4 +21,13 @@ private DestinationIcebergCatalogType(String value) { public String value() { return value; } + + public static Optional<DestinationIcebergCatalogType> fromValue(String value) { + for (DestinationIcebergCatalogType o: DestinationIcebergCatalogType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java index dd86de0af..46ec32dd7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationIcebergS3 - S3 object storage */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java index 56ff31858..d432bd6ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationIcebergS3BucketRegion - The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. */ @@ -56,4 +57,13 @@ private DestinationIcebergS3BucketRegion(String value) { public String value() { return value; } + + public static Optional<DestinationIcebergS3BucketRegion> fromValue(String value) { + for (DestinationIcebergS3BucketRegion o: DestinationIcebergS3BucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java index e041b4d30..894a88fa6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationIcebergSchemasCatalogConfigCatalogType { REST("Rest"); @@ -20,4 +21,13 @@ private DestinationIcebergSchemasCatalogConfigCatalogType(String value) { public String value() { return value; } + + public static Optional<DestinationIcebergSchemasCatalogConfigCatalogType> fromValue(String value) { + for (DestinationIcebergSchemasCatalogConfigCatalogType o: DestinationIcebergSchemasCatalogConfigCatalogType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.java new file mode 100644 index 000000000..b0f7af995 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType { + HIVE("Hive"); + + @JsonValue + private final String value; + + private DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType> fromValue(String value) { + for (DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType o: DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java index 398bb4ebc..d53b3d856 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType { GLUE("Glue"); @@ -20,4 +21,13 @@ private DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType(St public String value() { return value; } + + public static Optional<DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType> fromValue(String value) { + for (DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType o: DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java index d22362aca..fdba40be0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationIcebergSchemasCatalogType { JDBC("Jdbc"); @@ -20,4 +21,13 @@ private DestinationIcebergSchemasCatalogType(String value) { public String value() { return value; } + + public static Optional<DestinationIcebergSchemasCatalogType> fromValue(String value) { + for (DestinationIcebergSchemasCatalogType o: DestinationIcebergSchemasCatalogType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java index 3be1d9c0e..4e4520aaa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationIcebergStorageType { MANAGED("MANAGED"); @@ -20,4 +21,13 @@ private DestinationIcebergStorageType(String value) { public String value() { return value; } + + public static Optional<DestinationIcebergStorageType> fromValue(String value) { + for (DestinationIcebergStorageType o: DestinationIcebergStorageType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvus.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvus.java index 3abefed5a..8c5475382 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvus.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvus.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvus - The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAPIToken.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAPIToken.java index dc45200be..9cf4d3139 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAPIToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusAPIToken - Authenticate using an API token (suitable for Zilliz Cloud) */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAuthentication.java index fb2f38243..37a92f8b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationMilvusAuthentication - Authentication method */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAzureOpenAI.java index 9910aeddf..abba51857 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAzureOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusAzureOpenAI - Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByMarkdownHeader.java index edd25fdd9..8eca96ce5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByMarkdownHeader.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusByMarkdownHeader - Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByProgrammingLanguage.java index f52d003cd..65106f15d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByProgrammingLanguage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusByProgrammingLanguage - Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusBySeparator.java index 0349441b4..aee7f7bab 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusBySeparator.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusBySeparator - Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusCohere.java index 598aebabf..a1752d257 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusCohere.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusCohere - Use the Cohere API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusEmbedding.java index ad906ecec..d33b6951f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusEmbedding.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationMilvusEmbedding - Embedding configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFake.java index 9a40827e5..f63c425cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFieldNameMappingConfigModel.java index 7d618f1ad..8a8906b6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFieldNameMappingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationMilvusFieldNameMappingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusIndexing.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusIndexing.java index 9d2fbf702..31c0f343b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusIndexing.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusIndexing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,7 +16,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusIndexing - Indexing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java index 87fde4b9e..1f12e432e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMilvusLanguage - Split code in suitable places based on the programming language */ @@ -38,4 +39,13 @@ private DestinationMilvusLanguage(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusLanguage> fromValue(String value) { + for (DestinationMilvusLanguage o: DestinationMilvusLanguage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java index c0ad73ecb..454f9127e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusMode { OPENAI("openai"); @@ -20,4 +21,13 @@ private DestinationMilvusMode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusMode> fromValue(String value) { + for (DestinationMilvusMode o: DestinationMilvusMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAI.java index 9573d059b..6b4fa31d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAICompatible.java index ca033386f..8ccea2a89 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAICompatible.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusOpenAICompatible - Use a service that's compatible with the OpenAI API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusProcessingConfigModel.java index aecc3aa6c..83c81c069 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusProcessingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMilvusProcessingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java index 6bbc8f31d..e51aa8a25 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasEmbeddingEmbedding5Mode { OPENAI_COMPATIBLE("openai_compatible"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusSchemasEmbeddingEmbedding5Mode> fromValue(String value) { + for (DestinationMilvusSchemasEmbeddingEmbedding5Mode o: DestinationMilvusSchemasEmbeddingEmbedding5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java index fc181884a..be79b35ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasEmbeddingEmbeddingMode { AZURE_OPENAI("azure_openai"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusSchemasEmbeddingEmbeddingMode> fromValue(String value) { + for (DestinationMilvusSchemasEmbeddingEmbeddingMode o: DestinationMilvusSchemasEmbeddingEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java index 6ae4df792..2e221bbac 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasEmbeddingMode { FAKE("fake"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusSchemasEmbeddingMode> fromValue(String value) { + for (DestinationMilvusSchemasEmbeddingMode o: DestinationMilvusSchemasEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java index 61e1a497d..35ab95327 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasIndexingAuthAuthenticationMode { NO_AUTH("no_auth"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasIndexingAuthAuthenticationMode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusSchemasIndexingAuthAuthenticationMode> fromValue(String value) { + for (DestinationMilvusSchemasIndexingAuthAuthenticationMode o: DestinationMilvusSchemasIndexingAuthAuthenticationMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java index 21d91d715..0057dc45a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasIndexingAuthMode { USERNAME_PASSWORD("username_password"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasIndexingAuthMode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusSchemasIndexingAuthMode> fromValue(String value) { + for (DestinationMilvusSchemasIndexingAuthMode o: DestinationMilvusSchemasIndexingAuthMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java index 3202b6c3f..bf838f8b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasIndexingMode { TOKEN("token"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasIndexingMode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusSchemasIndexingMode> fromValue(String value) { + for (DestinationMilvusSchemasIndexingMode o: DestinationMilvusSchemasIndexingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java index 26a25ace3..adf2887ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasMode { COHERE("cohere"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusSchemasMode> fromValue(String value) { + for (DestinationMilvusSchemasMode o: DestinationMilvusSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java index 2b60f6d5c..6ea28e208 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasProcessingMode { SEPARATOR("separator"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusSchemasProcessingMode> fromValue(String value) { + for (DestinationMilvusSchemasProcessingMode o: DestinationMilvusSchemasProcessingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java index 032544c2d..cded4b32a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasProcessingTextSplitterMode { MARKDOWN("markdown"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional<DestinationMilvusSchemasProcessingTextSplitterMode> fromValue(String value) { + for (DestinationMilvusSchemasProcessingTextSplitterMode o: DestinationMilvusSchemasProcessingTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java index 924a3c795..7eb83a731 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode { CODE("code"); @@ -20,4 +21,13 @@ private DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode(String va public String value() { return value; } + + public static Optional<DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode> fromValue(String value) { + for (DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode o: DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusTextSplitter.java index 4d5dcc9bd..9878512ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusTextSplitter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationMilvusTextSplitter - Split text fields into chunks based on the specified method. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusUsernamePassword.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusUsernamePassword.java index e9201846f..e14211a01 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusUsernamePassword.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusUsernamePassword.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationMilvusUsernamePassword - Authenticate using username and password (suitable for self-managed Milvus clusters) */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodb.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodb.java index 580d4c9d9..f913fd4f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodb.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodb.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMongodb { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java index 4ae0c2629..dba6cba51 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMongodbAuthorization { LOGIN_PASSWORD("login/password"); @@ -20,4 +21,13 @@ private DestinationMongodbAuthorization(String value) { public String value() { return value; } + + public static Optional<DestinationMongodbAuthorization> fromValue(String value) { + for (DestinationMongodbAuthorization o: DestinationMongodbAuthorization.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java index f7cc388c1..b9d1611cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMongodbInstance { REPLICA("replica"); @@ -20,4 +21,13 @@ private DestinationMongodbInstance(String value) { public String value() { return value; } + + public static Optional<DestinationMongodbInstance> fromValue(String value) { + for (DestinationMongodbInstance o: DestinationMongodbInstance.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNoTunnel.java index bcb398138..ce28c00eb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationMongodbNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNone.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNone.java index 6f143f2f7..ade206472 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNone.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNone.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * DestinationMongodbNone - None. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbPasswordAuthentication.java index 494a27c48..2b645542f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMongodbPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHKeyAuthentication.java index 5899b7170..19fa893b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMongodbSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHTunnelMethod.java index fae7696e9..56bab16be 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationMongodbSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java index 771986d2b..cd27b4127 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMongodbSchemasAuthorization { NONE("none"); @@ -20,4 +21,13 @@ private DestinationMongodbSchemasAuthorization(String value) { public String value() { return value; } + + public static Optional<DestinationMongodbSchemasAuthorization> fromValue(String value) { + for (DestinationMongodbSchemasAuthorization o: DestinationMongodbSchemasAuthorization.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java index 07174f619..4a3594187 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMongodbSchemasInstance { ATLAS("atlas"); @@ -20,4 +21,13 @@ private DestinationMongodbSchemasInstance(String value) { public String value() { return value; } + + public static Optional<DestinationMongodbSchemasInstance> fromValue(String value) { + for (DestinationMongodbSchemasInstance o: DestinationMongodbSchemasInstance.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java index 3d698ebb0..5c57ef5bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMongodbSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationMongodbSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMongodbSchemasTunnelMethod> fromValue(String value) { + for (DestinationMongodbSchemasTunnelMethod o: DestinationMongodbSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java index 26d40326f..726c97986 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMongodbSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationMongodbSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMongodbSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (DestinationMongodbSchemasTunnelMethodTunnelMethod o: DestinationMongodbSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java index c4ba0728a..a44c74516 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMongodbTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private DestinationMongodbTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMongodbTunnelMethod> fromValue(String value) { + for (DestinationMongodbTunnelMethod o: DestinationMongodbTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMotherduck.java b/src/main/java/com/airbyte/api/models/shared/DestinationMotherduck.java index 27a4fbba5..c535a709f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMotherduck.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMotherduck.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMotherduck { @JsonProperty("destinationType") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssql.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssql.java index b2d548225..90baa2ff1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssql.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssql.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMssql { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlNoTunnel.java index e3ad1cb7f..45c296bc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationMssqlNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlPasswordAuthentication.java index ecea89b46..f0ad2a980 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMssqlPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHKeyAuthentication.java index bdbe58845..975424486 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMssqlSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHTunnelMethod.java index b922940eb..03f4d07ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationMssqlSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethod.java index 73124406c..efe7aa059 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMssqlSchemasSslMethod { - ENCRYPTED_TRUST_SERVER_CERTIFICATE("encrypted_trust_server_certificate"); + ENCRYPTED_VERIFY_CERTIFICATE("encrypted_verify_certificate"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationMssqlSchemasSslMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMssqlSchemasSslMethod> fromValue(String value) { + for (DestinationMssqlSchemasSslMethod o: DestinationMssqlSchemasSslMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethodSslMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethodSslMethod.java index 938bddb12..2c36f93d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethodSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethodSslMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMssqlSchemasSslMethodSslMethod { - ENCRYPTED_VERIFY_CERTIFICATE("encrypted_verify_certificate"); + UNENCRYPTED("unencrypted"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationMssqlSchemasSslMethodSslMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMssqlSchemasSslMethodSslMethod> fromValue(String value) { + for (DestinationMssqlSchemasSslMethodSslMethod o: DestinationMssqlSchemasSslMethodSslMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java index cc528e415..b8afe43fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMssqlSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationMssqlSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMssqlSchemasTunnelMethod> fromValue(String value) { + for (DestinationMssqlSchemasTunnelMethod o: DestinationMssqlSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java index 92d36ef06..72b02bb77 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMssqlSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationMssqlSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMssqlSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (DestinationMssqlSchemasTunnelMethodTunnelMethod o: DestinationMssqlSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSslMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSslMethod.java index 7ca0127c0..9f6ebb2f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSslMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationMssqlSslMethod { - UNENCRYPTED("unencrypted"); + ENCRYPTED_TRUST_SERVER_CERTIFICATE("encrypted_trust_server_certificate"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationMssqlSslMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMssqlSslMethod> fromValue(String value) { + for (DestinationMssqlSslMethod o: DestinationMssqlSslMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java index e387e3b08..e7ffbd3aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMssqlTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private DestinationMssqlTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMssqlTunnelMethod> fromValue(String value) { + for (DestinationMssqlTunnelMethod o: DestinationMssqlTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2.java new file mode 100644 index 000000000..88fcf5251 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2.java @@ -0,0 +1,484 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public class DestinationMssqlV2 { + + /** + * The name of the MSSQL database. + */ + @JsonProperty("database") + private String database; + + @JsonProperty("destinationType") + private MssqlV2 destinationType; + + /** + * The host name of the MSSQL database. + */ + @JsonProperty("host") + private String host; + + /** + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("jdbc_url_params") + private Optional<String> jdbcUrlParams; + + /** + * The password associated with this username. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("password") + private Optional<String> password; + + /** + * The port of the MSSQL database. + */ + @JsonProperty("port") + private long port; + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("schema") + private Optional<String> schema; + + /** + * The encryption method which is used to communicate with the database. + */ + @JsonProperty("ssl_method") + private DestinationMssqlV2SSLMethod sslMethod; + + /** + * The username which is used to access the database. + */ + @JsonProperty("user") + private String user; + + @JsonCreator + public DestinationMssqlV2( + @JsonProperty("database") String database, + @JsonProperty("host") String host, + @JsonProperty("jdbc_url_params") Optional<String> jdbcUrlParams, + @JsonProperty("password") Optional<String> password, + @JsonProperty("port") long port, + @JsonProperty("schema") Optional<String> schema, + @JsonProperty("ssl_method") DestinationMssqlV2SSLMethod sslMethod, + @JsonProperty("user") String user) { + Utils.checkNotNull(database, "database"); + Utils.checkNotNull(host, "host"); + Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(port, "port"); + Utils.checkNotNull(schema, "schema"); + Utils.checkNotNull(sslMethod, "sslMethod"); + Utils.checkNotNull(user, "user"); + this.database = database; + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.host = host; + this.jdbcUrlParams = jdbcUrlParams; + this.password = password; + this.port = port; + this.schema = schema; + this.sslMethod = sslMethod; + this.user = user; + } + + public DestinationMssqlV2( + String database, + String host, + long port, + DestinationMssqlV2SSLMethod sslMethod, + String user) { + this(database, host, Optional.empty(), Optional.empty(), port, Optional.empty(), sslMethod, user); + } + + /** + * The name of the MSSQL database. + */ + @JsonIgnore + public String database() { + return database; + } + + @JsonIgnore + public MssqlV2 destinationType() { + return destinationType; + } + + /** + * The host name of the MSSQL database. + */ + @JsonIgnore + public String host() { + return host; + } + + /** + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + */ + @JsonIgnore + public Optional<String> jdbcUrlParams() { + return jdbcUrlParams; + } + + /** + * The password associated with this username. + */ + @JsonIgnore + public Optional<String> password() { + return password; + } + + /** + * The port of the MSSQL database. + */ + @JsonIgnore + public long port() { + return port; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + @JsonIgnore + public Optional<String> schema() { + return schema; + } + + /** + * The encryption method which is used to communicate with the database. + */ + @JsonIgnore + public DestinationMssqlV2SSLMethod sslMethod() { + return sslMethod; + } + + /** + * The username which is used to access the database. + */ + @JsonIgnore + public String user() { + return user; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The name of the MSSQL database. + */ + public DestinationMssqlV2 withDatabase(String database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + /** + * The host name of the MSSQL database. + */ + public DestinationMssqlV2 withHost(String host) { + Utils.checkNotNull(host, "host"); + this.host = host; + return this; + } + + /** + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + */ + public DestinationMssqlV2 withJdbcUrlParams(String jdbcUrlParams) { + Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); + this.jdbcUrlParams = Optional.ofNullable(jdbcUrlParams); + return this; + } + + /** + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + */ + public DestinationMssqlV2 withJdbcUrlParams(Optional<String> jdbcUrlParams) { + Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); + this.jdbcUrlParams = jdbcUrlParams; + return this; + } + + /** + * The password associated with this username. + */ + public DestinationMssqlV2 withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + /** + * The password associated with this username. + */ + public DestinationMssqlV2 withPassword(Optional<String> password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + /** + * The port of the MSSQL database. + */ + public DestinationMssqlV2 withPort(long port) { + Utils.checkNotNull(port, "port"); + this.port = port; + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public DestinationMssqlV2 withSchema(String schema) { + Utils.checkNotNull(schema, "schema"); + this.schema = Optional.ofNullable(schema); + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public DestinationMssqlV2 withSchema(Optional<String> schema) { + Utils.checkNotNull(schema, "schema"); + this.schema = schema; + return this; + } + + /** + * The encryption method which is used to communicate with the database. + */ + public DestinationMssqlV2 withSslMethod(DestinationMssqlV2SSLMethod sslMethod) { + Utils.checkNotNull(sslMethod, "sslMethod"); + this.sslMethod = sslMethod; + return this; + } + + /** + * The username which is used to access the database. + */ + public DestinationMssqlV2 withUser(String user) { + Utils.checkNotNull(user, "user"); + this.user = user; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationMssqlV2 other = (DestinationMssqlV2) o; + return + Objects.deepEquals(this.database, other.database) && + Objects.deepEquals(this.destinationType, other.destinationType) && + Objects.deepEquals(this.host, other.host) && + Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Objects.deepEquals(this.password, other.password) && + Objects.deepEquals(this.port, other.port) && + Objects.deepEquals(this.schema, other.schema) && + Objects.deepEquals(this.sslMethod, other.sslMethod) && + Objects.deepEquals(this.user, other.user); + } + + @Override + public int hashCode() { + return Objects.hash( + database, + destinationType, + host, + jdbcUrlParams, + password, + port, + schema, + sslMethod, + user); + } + + @Override + public String toString() { + return Utils.toString(DestinationMssqlV2.class, + "database", database, + "destinationType", destinationType, + "host", host, + "jdbcUrlParams", jdbcUrlParams, + "password", password, + "port", port, + "schema", schema, + "sslMethod", sslMethod, + "user", user); + } + + public final static class Builder { + + private String database; + + private String host; + + private Optional<String> jdbcUrlParams = Optional.empty(); + + private Optional<String> password = Optional.empty(); + + private Long port; + + private Optional<String> schema; + + private DestinationMssqlV2SSLMethod sslMethod; + + private String user; + + private Builder() { + // force use of static builder() method + } + + /** + * The name of the MSSQL database. + */ + public Builder database(String database) { + Utils.checkNotNull(database, "database"); + this.database = database; + return this; + } + + /** + * The host name of the MSSQL database. + */ + public Builder host(String host) { + Utils.checkNotNull(host, "host"); + this.host = host; + return this; + } + + /** + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + */ + public Builder jdbcUrlParams(String jdbcUrlParams) { + Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); + this.jdbcUrlParams = Optional.ofNullable(jdbcUrlParams); + return this; + } + + /** + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + */ + public Builder jdbcUrlParams(Optional<String> jdbcUrlParams) { + Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); + this.jdbcUrlParams = jdbcUrlParams; + return this; + } + + /** + * The password associated with this username. + */ + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + /** + * The password associated with this username. + */ + public Builder password(Optional<String> password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + /** + * The port of the MSSQL database. + */ + public Builder port(long port) { + Utils.checkNotNull(port, "port"); + this.port = port; + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public Builder schema(String schema) { + Utils.checkNotNull(schema, "schema"); + this.schema = Optional.ofNullable(schema); + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + */ + public Builder schema(Optional<String> schema) { + Utils.checkNotNull(schema, "schema"); + this.schema = schema; + return this; + } + + /** + * The encryption method which is used to communicate with the database. + */ + public Builder sslMethod(DestinationMssqlV2SSLMethod sslMethod) { + Utils.checkNotNull(sslMethod, "sslMethod"); + this.sslMethod = sslMethod; + return this; + } + + /** + * The username which is used to access the database. + */ + public Builder user(String user) { + Utils.checkNotNull(user, "user"); + this.user = user; + return this; + } + + public DestinationMssqlV2 build() { + if (schema == null) { + schema = _SINGLETON_VALUE_Schema.value(); + } return new DestinationMssqlV2( + database, + host, + jdbcUrlParams, + password, + port, + schema, + sslMethod, + user); + } + + private static final LazySingletonValue<MssqlV2> _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"mssql-v2\"", + new TypeReference<MssqlV2>() {}); + + private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_Schema = + new LazySingletonValue<>( + "schema", + "\"public\"", + new TypeReference<Optional<String>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.java new file mode 100644 index 000000000..a42c839b8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +/** + * DestinationMssqlV2EncryptedTrustServerCertificate - Use the certificate provided by the server without verification. (For testing purposes only!) + */ + +public class DestinationMssqlV2EncryptedTrustServerCertificate { + + @JsonIgnore + private Map<String, Object> additionalProperties; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional<? extends DestinationMssqlV2Name> name; + + @JsonCreator + public DestinationMssqlV2EncryptedTrustServerCertificate( + @JsonProperty("name") Optional<? extends DestinationMssqlV2Name> name) { + Utils.checkNotNull(name, "name"); + this.additionalProperties = new HashMap<>(); + this.name = name; + } + + public DestinationMssqlV2EncryptedTrustServerCertificate() { + this(Optional.empty()); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<DestinationMssqlV2Name> name() { + return (Optional<DestinationMssqlV2Name>) name; + } + + public final static Builder builder() { + return new Builder(); + } + + @JsonAnySetter + public DestinationMssqlV2EncryptedTrustServerCertificate withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationMssqlV2EncryptedTrustServerCertificate withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public DestinationMssqlV2EncryptedTrustServerCertificate withName(DestinationMssqlV2Name name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public DestinationMssqlV2EncryptedTrustServerCertificate withName(Optional<? extends DestinationMssqlV2Name> 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; + } + DestinationMssqlV2EncryptedTrustServerCertificate other = (DestinationMssqlV2EncryptedTrustServerCertificate) o; + return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && + Objects.deepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Objects.hash( + additionalProperties, + name); + } + + @Override + public String toString() { + return Utils.toString(DestinationMssqlV2EncryptedTrustServerCertificate.class, + "additionalProperties", additionalProperties, + "name", name); + } + + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<? extends DestinationMssqlV2Name> name; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Builder name(DestinationMssqlV2Name name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional<? extends DestinationMssqlV2Name> name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public DestinationMssqlV2EncryptedTrustServerCertificate build() { + if (name == null) { + name = _SINGLETON_VALUE_Name.value(); + } return new DestinationMssqlV2EncryptedTrustServerCertificate( + name) + .withAdditionalProperties(additionalProperties); + } + + private static final LazySingletonValue<Optional<? extends DestinationMssqlV2Name>> _SINGLETON_VALUE_Name = + new LazySingletonValue<>( + "name", + "\"encrypted_trust_server_certificate\"", + new TypeReference<Optional<? extends DestinationMssqlV2Name>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.java new file mode 100644 index 000000000..9c6a03c48 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.java @@ -0,0 +1,352 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +/** + * DestinationMssqlV2EncryptedVerifyCertificate - Verify and use the certificate provided by the server. + */ + +public class DestinationMssqlV2EncryptedVerifyCertificate { + + @JsonIgnore + private Map<String, Object> additionalProperties; + + /** + * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hostNameInCertificate") + private Optional<String> hostNameInCertificate; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional<? extends DestinationMssqlV2SchemasName> name; + + /** + * Specifies the name of the trust store. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("trustStoreName") + private Optional<String> trustStoreName; + + /** + * Specifies the password of the trust store. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("trustStorePassword") + private Optional<String> trustStorePassword; + + @JsonCreator + public DestinationMssqlV2EncryptedVerifyCertificate( + @JsonProperty("hostNameInCertificate") Optional<String> hostNameInCertificate, + @JsonProperty("name") Optional<? extends DestinationMssqlV2SchemasName> name, + @JsonProperty("trustStoreName") Optional<String> trustStoreName, + @JsonProperty("trustStorePassword") Optional<String> trustStorePassword) { + Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(trustStoreName, "trustStoreName"); + Utils.checkNotNull(trustStorePassword, "trustStorePassword"); + this.additionalProperties = new HashMap<>(); + this.hostNameInCertificate = hostNameInCertificate; + this.name = name; + this.trustStoreName = trustStoreName; + this.trustStorePassword = trustStorePassword; + } + + public DestinationMssqlV2EncryptedVerifyCertificate() { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + + /** + * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + */ + @JsonIgnore + public Optional<String> hostNameInCertificate() { + return hostNameInCertificate; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<DestinationMssqlV2SchemasName> name() { + return (Optional<DestinationMssqlV2SchemasName>) name; + } + + /** + * Specifies the name of the trust store. + */ + @JsonIgnore + public Optional<String> trustStoreName() { + return trustStoreName; + } + + /** + * Specifies the password of the trust store. + */ + @JsonIgnore + public Optional<String> trustStorePassword() { + return trustStorePassword; + } + + public final static Builder builder() { + return new Builder(); + } + + @JsonAnySetter + public DestinationMssqlV2EncryptedVerifyCertificate withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationMssqlV2EncryptedVerifyCertificate withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + */ + public DestinationMssqlV2EncryptedVerifyCertificate withHostNameInCertificate(String hostNameInCertificate) { + Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); + this.hostNameInCertificate = Optional.ofNullable(hostNameInCertificate); + return this; + } + + /** + * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + */ + public DestinationMssqlV2EncryptedVerifyCertificate withHostNameInCertificate(Optional<String> hostNameInCertificate) { + Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); + this.hostNameInCertificate = hostNameInCertificate; + return this; + } + + public DestinationMssqlV2EncryptedVerifyCertificate withName(DestinationMssqlV2SchemasName name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public DestinationMssqlV2EncryptedVerifyCertificate withName(Optional<? extends DestinationMssqlV2SchemasName> name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * Specifies the name of the trust store. + */ + public DestinationMssqlV2EncryptedVerifyCertificate withTrustStoreName(String trustStoreName) { + Utils.checkNotNull(trustStoreName, "trustStoreName"); + this.trustStoreName = Optional.ofNullable(trustStoreName); + return this; + } + + /** + * Specifies the name of the trust store. + */ + public DestinationMssqlV2EncryptedVerifyCertificate withTrustStoreName(Optional<String> trustStoreName) { + Utils.checkNotNull(trustStoreName, "trustStoreName"); + this.trustStoreName = trustStoreName; + return this; + } + + /** + * Specifies the password of the trust store. + */ + public DestinationMssqlV2EncryptedVerifyCertificate withTrustStorePassword(String trustStorePassword) { + Utils.checkNotNull(trustStorePassword, "trustStorePassword"); + this.trustStorePassword = Optional.ofNullable(trustStorePassword); + return this; + } + + /** + * Specifies the password of the trust store. + */ + public DestinationMssqlV2EncryptedVerifyCertificate withTrustStorePassword(Optional<String> trustStorePassword) { + Utils.checkNotNull(trustStorePassword, "trustStorePassword"); + this.trustStorePassword = trustStorePassword; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationMssqlV2EncryptedVerifyCertificate other = (DestinationMssqlV2EncryptedVerifyCertificate) o; + return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && + Objects.deepEquals(this.hostNameInCertificate, other.hostNameInCertificate) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.trustStoreName, other.trustStoreName) && + Objects.deepEquals(this.trustStorePassword, other.trustStorePassword); + } + + @Override + public int hashCode() { + return Objects.hash( + additionalProperties, + hostNameInCertificate, + name, + trustStoreName, + trustStorePassword); + } + + @Override + public String toString() { + return Utils.toString(DestinationMssqlV2EncryptedVerifyCertificate.class, + "additionalProperties", additionalProperties, + "hostNameInCertificate", hostNameInCertificate, + "name", name, + "trustStoreName", trustStoreName, + "trustStorePassword", trustStorePassword); + } + + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<String> hostNameInCertificate = Optional.empty(); + + private Optional<? extends DestinationMssqlV2SchemasName> name; + + private Optional<String> trustStoreName = Optional.empty(); + + private Optional<String> trustStorePassword = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + */ + public Builder hostNameInCertificate(String hostNameInCertificate) { + Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); + this.hostNameInCertificate = Optional.ofNullable(hostNameInCertificate); + return this; + } + + /** + * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + */ + public Builder hostNameInCertificate(Optional<String> hostNameInCertificate) { + Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); + this.hostNameInCertificate = hostNameInCertificate; + return this; + } + + public Builder name(DestinationMssqlV2SchemasName name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional<? extends DestinationMssqlV2SchemasName> name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * Specifies the name of the trust store. + */ + public Builder trustStoreName(String trustStoreName) { + Utils.checkNotNull(trustStoreName, "trustStoreName"); + this.trustStoreName = Optional.ofNullable(trustStoreName); + return this; + } + + /** + * Specifies the name of the trust store. + */ + public Builder trustStoreName(Optional<String> trustStoreName) { + Utils.checkNotNull(trustStoreName, "trustStoreName"); + this.trustStoreName = trustStoreName; + return this; + } + + /** + * Specifies the password of the trust store. + */ + public Builder trustStorePassword(String trustStorePassword) { + Utils.checkNotNull(trustStorePassword, "trustStorePassword"); + this.trustStorePassword = Optional.ofNullable(trustStorePassword); + return this; + } + + /** + * Specifies the password of the trust store. + */ + public Builder trustStorePassword(Optional<String> trustStorePassword) { + Utils.checkNotNull(trustStorePassword, "trustStorePassword"); + this.trustStorePassword = trustStorePassword; + return this; + } + + public DestinationMssqlV2EncryptedVerifyCertificate build() { + if (name == null) { + name = _SINGLETON_VALUE_Name.value(); + } return new DestinationMssqlV2EncryptedVerifyCertificate( + hostNameInCertificate, + name, + trustStoreName, + trustStorePassword) + .withAdditionalProperties(additionalProperties); + } + + private static final LazySingletonValue<Optional<? extends DestinationMssqlV2SchemasName>> _SINGLETON_VALUE_Name = + new LazySingletonValue<>( + "name", + "\"encrypted_verify_certificate\"", + new TypeReference<Optional<? extends DestinationMssqlV2SchemasName>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Name.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Name.java new file mode 100644 index 000000000..a1d6bfa28 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Name.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum DestinationMssqlV2Name { + ENCRYPTED_TRUST_SERVER_CERTIFICATE("encrypted_trust_server_certificate"); + + @JsonValue + private final String value; + + private DestinationMssqlV2Name(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationMssqlV2Name> fromValue(String value) { + for (DestinationMssqlV2Name o: DestinationMssqlV2Name.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SSLMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SSLMethod.java new file mode 100644 index 000000000..0297621fb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SSLMethod.java @@ -0,0 +1,105 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +/** + * DestinationMssqlV2SSLMethod - The encryption method which is used to communicate with the database. + */ + +@JsonDeserialize(using = DestinationMssqlV2SSLMethod._Deserializer.class) +public class DestinationMssqlV2SSLMethod { + + @JsonValue + private TypedObject value; + + private DestinationMssqlV2SSLMethod(TypedObject value) { + this.value = value; + } + + public static DestinationMssqlV2SSLMethod of(DestinationMssqlV2Unencrypted value) { + Utils.checkNotNull(value, "value"); + return new DestinationMssqlV2SSLMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationMssqlV2Unencrypted>(){})); + } + + public static DestinationMssqlV2SSLMethod of(DestinationMssqlV2EncryptedTrustServerCertificate value) { + Utils.checkNotNull(value, "value"); + return new DestinationMssqlV2SSLMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationMssqlV2EncryptedTrustServerCertificate>(){})); + } + + public static DestinationMssqlV2SSLMethod of(DestinationMssqlV2EncryptedVerifyCertificate value) { + Utils.checkNotNull(value, "value"); + return new DestinationMssqlV2SSLMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationMssqlV2EncryptedVerifyCertificate>(){})); + } + + /** + * Returns an instance of one of these types: + * <ul> + * <li>{@code com.airbyte.api.models.shared.DestinationMssqlV2Unencrypted}</li> + * <li>{@code com.airbyte.api.models.shared.DestinationMssqlV2EncryptedTrustServerCertificate}</li> + * <li>{@code com.airbyte.api.models.shared.DestinationMssqlV2EncryptedVerifyCertificate}</li> + * </ul> + * + * <p>Use {@code instanceof} to determine what type is returned. For example: + * + * <pre> + * if (obj.value() instanceof String) { + * String answer = (String) obj.value(); + * System.out.println("answer=" + answer); + * } + * </pre> + * + * @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; + } + DestinationMssqlV2SSLMethod other = (DestinationMssqlV2SSLMethod) o; + return Objects.deepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Objects.hash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer<DestinationMssqlV2SSLMethod> { + + public _Deserializer() { + super(DestinationMssqlV2SSLMethod.class, false, + TypeReferenceWithShape.of(new TypeReference<DestinationMssqlV2EncryptedVerifyCertificate>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationMssqlV2EncryptedTrustServerCertificate>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationMssqlV2Unencrypted>() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(DestinationMssqlV2SSLMethod.class, + "value", value); + } + +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasName.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasName.java new file mode 100644 index 000000000..252a624a2 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasName.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum DestinationMssqlV2SchemasName { + ENCRYPTED_VERIFY_CERTIFICATE("encrypted_verify_certificate"); + + @JsonValue + private final String value; + + private DestinationMssqlV2SchemasName(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationMssqlV2SchemasName> fromValue(String value) { + for (DestinationMssqlV2SchemasName o: DestinationMssqlV2SchemasName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Unencrypted.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Unencrypted.java new file mode 100644 index 000000000..902b7e017 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Unencrypted.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +/** + * DestinationMssqlV2Unencrypted - The data transfer will not be encrypted. + */ + +public class DestinationMssqlV2Unencrypted { + + @JsonIgnore + private Map<String, Object> additionalProperties; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional<? extends Name> name; + + @JsonCreator + public DestinationMssqlV2Unencrypted( + @JsonProperty("name") Optional<? extends Name> name) { + Utils.checkNotNull(name, "name"); + this.additionalProperties = new HashMap<>(); + this.name = name; + } + + public DestinationMssqlV2Unencrypted() { + this(Optional.empty()); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<Name> name() { + return (Optional<Name>) name; + } + + public final static Builder builder() { + return new Builder(); + } + + @JsonAnySetter + public DestinationMssqlV2Unencrypted withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationMssqlV2Unencrypted withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public DestinationMssqlV2Unencrypted withName(Name name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public DestinationMssqlV2Unencrypted withName(Optional<? extends Name> 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; + } + DestinationMssqlV2Unencrypted other = (DestinationMssqlV2Unencrypted) o; + return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && + Objects.deepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Objects.hash( + additionalProperties, + name); + } + + @Override + public String toString() { + return Utils.toString(DestinationMssqlV2Unencrypted.class, + "additionalProperties", additionalProperties, + "name", name); + } + + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<? extends Name> name; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Builder name(Name name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional<? extends Name> name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public DestinationMssqlV2Unencrypted build() { + if (name == null) { + name = _SINGLETON_VALUE_Name.value(); + } return new DestinationMssqlV2Unencrypted( + name) + .withAdditionalProperties(additionalProperties); + } + + private static final LazySingletonValue<Optional<? extends Name>> _SINGLETON_VALUE_Name = + new LazySingletonValue<>( + "name", + "\"unencrypted\"", + new TypeReference<Optional<? extends Name>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysql.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysql.java index bbdf30bed..a0550233b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysql.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysql.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMysql { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlNoTunnel.java index cd7a6aa9f..822265b66 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationMysqlNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlPasswordAuthentication.java index e1b0f6e03..383f99553 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMysqlPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHKeyAuthentication.java index a66c423cd..2efde2b33 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationMysqlSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHTunnelMethod.java index fe3529805..dd071d5fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationMysqlSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java index 302f3ca72..22ba6724e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMysqlSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationMysqlSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMysqlSchemasTunnelMethod> fromValue(String value) { + for (DestinationMysqlSchemasTunnelMethod o: DestinationMysqlSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java index f20fc03ad..a44a006a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMysqlSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationMysqlSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMysqlSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (DestinationMysqlSchemasTunnelMethodTunnelMethod o: DestinationMysqlSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java index a9f4e9992..2d21c9365 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationMysqlTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private DestinationMysqlTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationMysqlTunnelMethod> fromValue(String value) { + for (DestinationMysqlTunnelMethod o: DestinationMysqlTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java index 5c14a26cd..67d5bf869 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationOracle { @JsonProperty("destinationType") @@ -31,7 +29,7 @@ public class DestinationOracle { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption") - private Optional<? extends Encryption> encryption; + private Optional<? extends DestinationOracleEncryption> encryption; /** * The hostname of the database. @@ -95,7 +93,7 @@ public class DestinationOracle { @JsonCreator public DestinationOracle( - @JsonProperty("encryption") Optional<? extends Encryption> encryption, + @JsonProperty("encryption") Optional<? extends DestinationOracleEncryption> encryption, @JsonProperty("host") String host, @JsonProperty("jdbc_url_params") Optional<String> jdbcUrlParams, @JsonProperty("password") Optional<String> password, @@ -145,8 +143,8 @@ public Oracle destinationType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional<Encryption> encryption() { - return (Optional<Encryption>) encryption; + public Optional<DestinationOracleEncryption> encryption() { + return (Optional<DestinationOracleEncryption>) encryption; } /** @@ -229,7 +227,7 @@ public final static Builder builder() { /** * The encryption method which is used when communicating with the database. */ - public DestinationOracle withEncryption(Encryption encryption) { + public DestinationOracle withEncryption(DestinationOracleEncryption encryption) { Utils.checkNotNull(encryption, "encryption"); this.encryption = Optional.ofNullable(encryption); return this; @@ -238,7 +236,7 @@ public DestinationOracle withEncryption(Encryption encryption) { /** * The encryption method which is used when communicating with the database. */ - public DestinationOracle withEncryption(Optional<? extends Encryption> encryption) { + public DestinationOracle withEncryption(Optional<? extends DestinationOracleEncryption> encryption) { Utils.checkNotNull(encryption, "encryption"); this.encryption = encryption; return this; @@ -436,7 +434,7 @@ public String toString() { public final static class Builder { - private Optional<? extends Encryption> encryption = Optional.empty(); + private Optional<? extends DestinationOracleEncryption> encryption = Optional.empty(); private String host; @@ -463,7 +461,7 @@ private Builder() { /** * The encryption method which is used when communicating with the database. */ - public Builder encryption(Encryption encryption) { + public Builder encryption(DestinationOracleEncryption encryption) { Utils.checkNotNull(encryption, "encryption"); this.encryption = Optional.ofNullable(encryption); return this; @@ -472,7 +470,7 @@ public Builder encryption(Encryption encryption) { /** * The encryption method which is used when communicating with the database. */ - public Builder encryption(Optional<? extends Encryption> encryption) { + public Builder encryption(Optional<? extends DestinationOracleEncryption> encryption) { Utils.checkNotNull(encryption, "encryption"); this.encryption = encryption; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java new file mode 100644 index 000000000..14f0edb20 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java @@ -0,0 +1,105 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +/** + * DestinationOracleEncryption - The encryption method which is used when communicating with the database. + */ + +@JsonDeserialize(using = DestinationOracleEncryption._Deserializer.class) +public class DestinationOracleEncryption { + + @JsonValue + private TypedObject value; + + private DestinationOracleEncryption(TypedObject value) { + this.value = value; + } + + public static DestinationOracleEncryption of(DestinationOracleUnencrypted value) { + Utils.checkNotNull(value, "value"); + return new DestinationOracleEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationOracleUnencrypted>(){})); + } + + public static DestinationOracleEncryption of(NativeNetworkEncryptionNNE value) { + Utils.checkNotNull(value, "value"); + return new DestinationOracleEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<NativeNetworkEncryptionNNE>(){})); + } + + public static DestinationOracleEncryption of(TLSEncryptedVerifyCertificate value) { + Utils.checkNotNull(value, "value"); + return new DestinationOracleEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<TLSEncryptedVerifyCertificate>(){})); + } + + /** + * Returns an instance of one of these types: + * <ul> + * <li>{@code com.airbyte.api.models.shared.DestinationOracleUnencrypted}</li> + * <li>{@code com.airbyte.api.models.shared.NativeNetworkEncryptionNNE}</li> + * <li>{@code com.airbyte.api.models.shared.TLSEncryptedVerifyCertificate}</li> + * </ul> + * + * <p>Use {@code instanceof} to determine what type is returned. For example: + * + * <pre> + * if (obj.value() instanceof String) { + * String answer = (String) obj.value(); + * System.out.println("answer=" + answer); + * } + * </pre> + * + * @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; + } + DestinationOracleEncryption other = (DestinationOracleEncryption) o; + return Objects.deepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Objects.hash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer<DestinationOracleEncryption> { + + public _Deserializer() { + super(DestinationOracleEncryption.class, false, + TypeReferenceWithShape.of(new TypeReference<TLSEncryptedVerifyCertificate>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<NativeNetworkEncryptionNNE>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<DestinationOracleUnencrypted>() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(DestinationOracleEncryption.class, + "value", value); + } + +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java index abd6db152..4cd8f997b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationOracleEncryptionMethod { CLIENT_NNE("client_nne"); @@ -20,4 +21,13 @@ private DestinationOracleEncryptionMethod(String value) { public String value() { return value; } + + public static Optional<DestinationOracleEncryptionMethod> fromValue(String value) { + for (DestinationOracleEncryptionMethod o: DestinationOracleEncryptionMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleNoTunnel.java index 54b203845..1651901aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationOracleNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOraclePasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationOraclePasswordAuthentication.java index 011168a4f..3bb2e21aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOraclePasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOraclePasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationOraclePasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHKeyAuthentication.java index dae2240c7..3e8e0e0bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationOracleSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHTunnelMethod.java index d86f064eb..b71ace9a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationOracleSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java index a6ef80fa3..90a6d9ef5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationOracleSchemasEncryptionMethod { ENCRYPTED_VERIFY_CERTIFICATE("encrypted_verify_certificate"); @@ -20,4 +21,13 @@ private DestinationOracleSchemasEncryptionMethod(String value) { public String value() { return value; } + + public static Optional<DestinationOracleSchemasEncryptionMethod> fromValue(String value) { + for (DestinationOracleSchemasEncryptionMethod o: DestinationOracleSchemasEncryptionMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java index 26857c5c6..7bfdf4f25 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationOracleSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationOracleSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationOracleSchemasTunnelMethod> fromValue(String value) { + for (DestinationOracleSchemasTunnelMethod o: DestinationOracleSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java index a0b236f38..95a2505f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationOracleSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationOracleSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationOracleSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (DestinationOracleSchemasTunnelMethodTunnelMethod o: DestinationOracleSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java index d3075871b..be082d1b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationOracleTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private DestinationOracleTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationOracleTunnelMethod> fromValue(String value) { + for (DestinationOracleTunnelMethod o: DestinationOracleTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleUnencrypted.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleUnencrypted.java index 66560b226..d76e94224 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleUnencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleUnencrypted.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationOracleUnencrypted - Data transfer will not be encrypted. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPatchRequest.java b/src/main/java/com/airbyte/api/models/shared/DestinationPatchRequest.java index 4c3ac6849..96f45b929 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPatchRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPatchRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationPatchRequest { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvector.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvector.java index 0bba05041..8fb28aca1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvector.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvector.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * DestinationPgvector - The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorAzureOpenAI.java index db6bef2e6..2502b928a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorAzureOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPgvectorAzureOpenAI - Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByMarkdownHeader.java index 10b44f447..7c37de29a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByMarkdownHeader.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPgvectorByMarkdownHeader - Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByProgrammingLanguage.java index 158112de0..76b12923c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByProgrammingLanguage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPgvectorByProgrammingLanguage - Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorBySeparator.java index fbfa3d4aa..ddd6d5858 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorBySeparator.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * DestinationPgvectorBySeparator - Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCohere.java index 6a2646445..51b2fc271 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCohere.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPgvectorCohere - Use the Cohere API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCredentials.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCredentials.java index 02d9be459..10b57cedf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationPgvectorCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorEmbedding.java index df2c1d42a..5c7468af9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorEmbedding.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationPgvectorEmbedding - Embedding configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFake.java index 30a88d03d..c3050c75a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPgvectorFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFieldNameMappingConfigModel.java index d8b2657dc..fb0b91a1a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFieldNameMappingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationPgvectorFieldNameMappingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java index c672843ad..18d89ad6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationPgvectorLanguage - Split code in suitable places based on the programming language */ @@ -38,4 +39,13 @@ private DestinationPgvectorLanguage(String value) { public String value() { return value; } + + public static Optional<DestinationPgvectorLanguage> fromValue(String value) { + for (DestinationPgvectorLanguage o: DestinationPgvectorLanguage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java index 14a56ab81..164503e0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPgvectorMode { OPENAI("openai"); @@ -20,4 +21,13 @@ private DestinationPgvectorMode(String value) { public String value() { return value; } + + public static Optional<DestinationPgvectorMode> fromValue(String value) { + for (DestinationPgvectorMode o: DestinationPgvectorMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAI.java index 6eda6a47a..77b270a7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPgvectorOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAICompatible.java index 0a9cf2dbf..e334ec690 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAICompatible.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPgvectorOpenAICompatible - Use a service that's compatible with the OpenAI API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorProcessingConfigModel.java index 3b1c7325a..359cbb192 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorProcessingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationPgvectorProcessingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java index 97811aecc..f08b31685 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPgvectorSchemasEmbeddingEmbedding5Mode { OPENAI_COMPATIBLE("openai_compatible"); @@ -20,4 +21,13 @@ private DestinationPgvectorSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional<DestinationPgvectorSchemasEmbeddingEmbedding5Mode> fromValue(String value) { + for (DestinationPgvectorSchemasEmbeddingEmbedding5Mode o: DestinationPgvectorSchemasEmbeddingEmbedding5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java index 31f63f960..12492d6f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPgvectorSchemasEmbeddingEmbeddingMode { AZURE_OPENAI("azure_openai"); @@ -20,4 +21,13 @@ private DestinationPgvectorSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationPgvectorSchemasEmbeddingEmbeddingMode> fromValue(String value) { + for (DestinationPgvectorSchemasEmbeddingEmbeddingMode o: DestinationPgvectorSchemasEmbeddingEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java index 568e2108f..9da670f89 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPgvectorSchemasEmbeddingMode { FAKE("fake"); @@ -20,4 +21,13 @@ private DestinationPgvectorSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationPgvectorSchemasEmbeddingMode> fromValue(String value) { + for (DestinationPgvectorSchemasEmbeddingMode o: DestinationPgvectorSchemasEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java index ace99bbce..8d542f721 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPgvectorSchemasMode { COHERE("cohere"); @@ -20,4 +21,13 @@ private DestinationPgvectorSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationPgvectorSchemasMode> fromValue(String value) { + for (DestinationPgvectorSchemasMode o: DestinationPgvectorSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java index 94fbdcff6..eb0f3a295 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPgvectorSchemasProcessingMode { SEPARATOR("separator"); @@ -20,4 +21,13 @@ private DestinationPgvectorSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional<DestinationPgvectorSchemasProcessingMode> fromValue(String value) { + for (DestinationPgvectorSchemasProcessingMode o: DestinationPgvectorSchemasProcessingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java index 243e2a828..6cd505746 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPgvectorSchemasProcessingTextSplitterMode { MARKDOWN("markdown"); @@ -20,4 +21,13 @@ private DestinationPgvectorSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional<DestinationPgvectorSchemasProcessingTextSplitterMode> fromValue(String value) { + for (DestinationPgvectorSchemasProcessingTextSplitterMode o: DestinationPgvectorSchemasProcessingTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java index 70434a2f5..ce0774638 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode { CODE("code"); @@ -20,4 +21,13 @@ private DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode(String public String value() { return value; } + + public static Optional<DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode> fromValue(String value) { + for (DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode o: DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorTextSplitter.java index 5ab30fffb..37842bde6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorTextSplitter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationPgvectorTextSplitter - Split text fields into chunks based on the specified method. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPinecone.java b/src/main/java/com/airbyte/api/models/shared/DestinationPinecone.java index d1ec2f086..1b3f95374 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPinecone.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPinecone.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * DestinationPinecone - The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeAzureOpenAI.java index 1c92aea10..47ade5f8f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeAzureOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPineconeAzureOpenAI - Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByMarkdownHeader.java index ea3ef4ffa..6aaa6beac 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByMarkdownHeader.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPineconeByMarkdownHeader - Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByProgrammingLanguage.java index 47571bfb6..974c480fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByProgrammingLanguage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPineconeByProgrammingLanguage - Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeBySeparator.java index 84e7ba976..e5ff25796 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeBySeparator.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * DestinationPineconeBySeparator - Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeCohere.java index 85f7b74fc..bf2b87f6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeCohere.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPineconeCohere - Use the Cohere API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeEmbedding.java index d30377fa6..264879906 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeEmbedding.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationPineconeEmbedding - Embedding configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFake.java index 0484970cb..be8b82d2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPineconeFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFieldNameMappingConfigModel.java index 2c58384d7..5056e0ef2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFieldNameMappingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationPineconeFieldNameMappingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeIndexing.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeIndexing.java index 842b59968..20989ed44 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeIndexing.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeIndexing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * DestinationPineconeIndexing - Pinecone is a popular vector store that can be used to store and retrieve embeddings. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java index 2340fde92..b5956228b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationPineconeLanguage - Split code in suitable places based on the programming language */ @@ -38,4 +39,13 @@ private DestinationPineconeLanguage(String value) { public String value() { return value; } + + public static Optional<DestinationPineconeLanguage> fromValue(String value) { + for (DestinationPineconeLanguage o: DestinationPineconeLanguage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java index c6c537831..6d5b55870 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPineconeMode { OPENAI("openai"); @@ -20,4 +21,13 @@ private DestinationPineconeMode(String value) { public String value() { return value; } + + public static Optional<DestinationPineconeMode> fromValue(String value) { + for (DestinationPineconeMode o: DestinationPineconeMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAI.java index 04040de0e..287cbf9b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPineconeOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAICompatible.java index bb650b155..abd409a41 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAICompatible.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationPineconeOpenAICompatible - Use a service that's compatible with the OpenAI API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeProcessingConfigModel.java index c5442447f..316844bd0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeProcessingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationPineconeProcessingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java index d4dad7147..b092b4fc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPineconeSchemasEmbeddingEmbedding5Mode { OPENAI_COMPATIBLE("openai_compatible"); @@ -20,4 +21,13 @@ private DestinationPineconeSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional<DestinationPineconeSchemasEmbeddingEmbedding5Mode> fromValue(String value) { + for (DestinationPineconeSchemasEmbeddingEmbedding5Mode o: DestinationPineconeSchemasEmbeddingEmbedding5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java index da716afbc..695287276 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPineconeSchemasEmbeddingEmbeddingMode { AZURE_OPENAI("azure_openai"); @@ -20,4 +21,13 @@ private DestinationPineconeSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationPineconeSchemasEmbeddingEmbeddingMode> fromValue(String value) { + for (DestinationPineconeSchemasEmbeddingEmbeddingMode o: DestinationPineconeSchemasEmbeddingEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java index c0cf6ba27..dba9fb5de 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPineconeSchemasEmbeddingMode { FAKE("fake"); @@ -20,4 +21,13 @@ private DestinationPineconeSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationPineconeSchemasEmbeddingMode> fromValue(String value) { + for (DestinationPineconeSchemasEmbeddingMode o: DestinationPineconeSchemasEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java index 03e549898..3196e4b23 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPineconeSchemasMode { COHERE("cohere"); @@ -20,4 +21,13 @@ private DestinationPineconeSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationPineconeSchemasMode> fromValue(String value) { + for (DestinationPineconeSchemasMode o: DestinationPineconeSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java index 2a7749f32..7226645e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPineconeSchemasProcessingMode { SEPARATOR("separator"); @@ -20,4 +21,13 @@ private DestinationPineconeSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional<DestinationPineconeSchemasProcessingMode> fromValue(String value) { + for (DestinationPineconeSchemasProcessingMode o: DestinationPineconeSchemasProcessingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java index 7e215241e..6251d4c38 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPineconeSchemasProcessingTextSplitterMode { MARKDOWN("markdown"); @@ -20,4 +21,13 @@ private DestinationPineconeSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional<DestinationPineconeSchemasProcessingTextSplitterMode> fromValue(String value) { + for (DestinationPineconeSchemasProcessingTextSplitterMode o: DestinationPineconeSchemasProcessingTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java index 18d513f6e..8cf8a5a83 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode { CODE("code"); @@ -20,4 +21,13 @@ private DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode(String public String value() { return value; } + + public static Optional<DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode> fromValue(String value) { + for (DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode o: DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeTextSplitter.java index da6cc0515..f382bf354 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeTextSplitter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationPineconeTextSplitter - Split text fields into chunks based on the specified method. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgres.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgres.java index 6868f2bc5..d0d7f61e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgres.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgres.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationPostgres { /** @@ -116,6 +114,13 @@ public class DestinationPostgres { @JsonProperty("tunnel_method") private Optional<? extends DestinationPostgresSSHTunnelMethod> tunnelMethod; + /** + * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased precision in numeric values. (this is disabled by default for backwards compatibility, but is recommended to enable) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("unconstrained_number") + private Optional<Boolean> unconstrainedNumber; + /** * Username to use to access the database. */ @@ -136,6 +141,7 @@ public DestinationPostgres( @JsonProperty("ssl") Optional<Boolean> ssl, @JsonProperty("ssl_mode") Optional<? extends SSLModes> sslMode, @JsonProperty("tunnel_method") Optional<? extends DestinationPostgresSSHTunnelMethod> tunnelMethod, + @JsonProperty("unconstrained_number") Optional<Boolean> unconstrainedNumber, @JsonProperty("username") String username) { Utils.checkNotNull(database, "database"); Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -149,6 +155,7 @@ public DestinationPostgres( Utils.checkNotNull(ssl, "ssl"); Utils.checkNotNull(sslMode, "sslMode"); Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + Utils.checkNotNull(unconstrainedNumber, "unconstrainedNumber"); Utils.checkNotNull(username, "username"); this.database = database; this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); @@ -163,6 +170,7 @@ public DestinationPostgres( this.ssl = ssl; this.sslMode = sslMode; this.tunnelMethod = tunnelMethod; + this.unconstrainedNumber = unconstrainedNumber; this.username = username; } @@ -170,7 +178,7 @@ public DestinationPostgres( String database, String host, String username) { - this(database, Optional.empty(), Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(database, Optional.empty(), Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); } /** @@ -283,6 +291,14 @@ public Optional<DestinationPostgresSSHTunnelMethod> tunnelMethod() { return (Optional<DestinationPostgresSSHTunnelMethod>) tunnelMethod; } + /** + * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased precision in numeric values. (this is disabled by default for backwards compatibility, but is recommended to enable) + */ + @JsonIgnore + public Optional<Boolean> unconstrainedNumber() { + return unconstrainedNumber; + } + /** * Username to use to access the database. */ @@ -507,6 +523,24 @@ public DestinationPostgres withTunnelMethod(Optional<? extends DestinationPostgr return this; } + /** + * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased precision in numeric values. (this is disabled by default for backwards compatibility, but is recommended to enable) + */ + public DestinationPostgres withUnconstrainedNumber(boolean unconstrainedNumber) { + Utils.checkNotNull(unconstrainedNumber, "unconstrainedNumber"); + this.unconstrainedNumber = Optional.ofNullable(unconstrainedNumber); + return this; + } + + /** + * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased precision in numeric values. (this is disabled by default for backwards compatibility, but is recommended to enable) + */ + public DestinationPostgres withUnconstrainedNumber(Optional<Boolean> unconstrainedNumber) { + Utils.checkNotNull(unconstrainedNumber, "unconstrainedNumber"); + this.unconstrainedNumber = unconstrainedNumber; + return this; + } + /** * Username to use to access the database. */ @@ -539,6 +573,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.ssl, other.ssl) && Objects.deepEquals(this.sslMode, other.sslMode) && Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && + Objects.deepEquals(this.unconstrainedNumber, other.unconstrainedNumber) && Objects.deepEquals(this.username, other.username); } @@ -558,6 +593,7 @@ public int hashCode() { ssl, sslMode, tunnelMethod, + unconstrainedNumber, username); } @@ -577,6 +613,7 @@ public String toString() { "ssl", ssl, "sslMode", sslMode, "tunnelMethod", tunnelMethod, + "unconstrainedNumber", unconstrainedNumber, "username", username); } @@ -606,6 +643,8 @@ public final static class Builder { private Optional<? extends DestinationPostgresSSHTunnelMethod> tunnelMethod = Optional.empty(); + private Optional<Boolean> unconstrainedNumber; + private String username; private Builder() { @@ -824,6 +863,24 @@ public Builder tunnelMethod(Optional<? extends DestinationPostgresSSHTunnelMetho return this; } + /** + * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased precision in numeric values. (this is disabled by default for backwards compatibility, but is recommended to enable) + */ + public Builder unconstrainedNumber(boolean unconstrainedNumber) { + Utils.checkNotNull(unconstrainedNumber, "unconstrainedNumber"); + this.unconstrainedNumber = Optional.ofNullable(unconstrainedNumber); + return this; + } + + /** + * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased precision in numeric values. (this is disabled by default for backwards compatibility, but is recommended to enable) + */ + public Builder unconstrainedNumber(Optional<Boolean> unconstrainedNumber) { + Utils.checkNotNull(unconstrainedNumber, "unconstrainedNumber"); + this.unconstrainedNumber = unconstrainedNumber; + return this; + } + /** * Username to use to access the database. */ @@ -848,6 +905,9 @@ public DestinationPostgres build() { } if (ssl == null) { ssl = _SINGLETON_VALUE_Ssl.value(); + } + if (unconstrainedNumber == null) { + unconstrainedNumber = _SINGLETON_VALUE_UnconstrainedNumber.value(); } return new DestinationPostgres( database, disableTypeDedupe, @@ -861,6 +921,7 @@ public DestinationPostgres build() { ssl, sslMode, tunnelMethod, + unconstrainedNumber, username); } @@ -899,6 +960,12 @@ public DestinationPostgres build() { "ssl", "false", new TypeReference<Optional<Boolean>>() {}); + + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_UnconstrainedNumber = + new LazySingletonValue<>( + "unconstrained_number", + "false", + new TypeReference<Optional<Boolean>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java index f8a18c8d0..9cd022e53 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPostgresMode { - ALLOW("allow"); + DISABLE("disable"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationPostgresMode(String value) { public String value() { return value; } + + public static Optional<DestinationPostgresMode> fromValue(String value) { + for (DestinationPostgresMode o: DestinationPostgresMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresNoTunnel.java index ded631fc1..22d2e227e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationPostgresNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresPasswordAuthentication.java index 61e639475..05936c6f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationPostgresPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHKeyAuthentication.java index 0727a3a10..ad4004a09 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationPostgresSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHTunnelMethod.java index 4ce671cd2..41588bc54 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationPostgresSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java index 9a4e881cf..0bf38ab87 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPostgresSchemasMode { - PREFER("prefer"); + ALLOW("allow"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationPostgresSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationPostgresSchemasMode> fromValue(String value) { + for (DestinationPostgresSchemasMode o: DestinationPostgresSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.java deleted file mode 100644 index fb83a56dc..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum DestinationPostgresSchemasSSLModeSSLModes1Mode { - DISABLE("disable"); - - @JsonValue - private final String value; - - private DestinationPostgresSchemasSSLModeSSLModes1Mode(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.java new file mode 100644 index 000000000..d0cb9d15d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum DestinationPostgresSchemasSSLModeSSLModes5Mode { + VERIFY_CA("verify-ca"); + + @JsonValue + private final String value; + + private DestinationPostgresSchemasSSLModeSSLModes5Mode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationPostgresSchemasSSLModeSSLModes5Mode> fromValue(String value) { + for (DestinationPostgresSchemasSSLModeSSLModes5Mode o: DestinationPostgresSchemasSSLModeSSLModes5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java index b9738f4a0..00a6de03e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPostgresSchemasSSLModeSSLModes6Mode { VERIFY_FULL("verify-full"); @@ -20,4 +21,13 @@ private DestinationPostgresSchemasSSLModeSSLModes6Mode(String value) { public String value() { return value; } + + public static Optional<DestinationPostgresSchemasSSLModeSSLModes6Mode> fromValue(String value) { + for (DestinationPostgresSchemasSSLModeSSLModes6Mode o: DestinationPostgresSchemasSSLModeSSLModes6Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java index e919b88a4..31459b5e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPostgresSchemasSSLModeSSLModesMode { - VERIFY_CA("verify-ca"); + REQUIRE("require"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationPostgresSchemasSSLModeSSLModesMode(String value) { public String value() { return value; } + + public static Optional<DestinationPostgresSchemasSSLModeSSLModesMode> fromValue(String value) { + for (DestinationPostgresSchemasSSLModeSSLModesMode o: DestinationPostgresSchemasSSLModeSSLModesMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java index 631797a49..58580c7c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationPostgresSchemasSslModeMode { - REQUIRE("require"); + PREFER("prefer"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private DestinationPostgresSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional<DestinationPostgresSchemasSslModeMode> fromValue(String value) { + for (DestinationPostgresSchemasSslModeMode o: DestinationPostgresSchemasSslModeMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java index 075131f88..7b3ea8e95 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationPostgresSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationPostgresSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationPostgresSchemasTunnelMethod> fromValue(String value) { + for (DestinationPostgresSchemasTunnelMethod o: DestinationPostgresSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java index 1138d2b38..6554e953c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationPostgresSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationPostgresSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationPostgresSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (DestinationPostgresSchemasTunnelMethodTunnelMethod o: DestinationPostgresSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java index f86c75c33..8fe6711f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationPostgresTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private DestinationPostgresTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationPostgresTunnelMethod> fromValue(String value) { + for (DestinationPostgresTunnelMethod o: DestinationPostgresTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPubsub.java b/src/main/java/com/airbyte/api/models/shared/DestinationPubsub.java index 65a846be1..3bdf87b16 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPubsub.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPubsub.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationPubsub { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPutRequest.java b/src/main/java/com/airbyte/api/models/shared/DestinationPutRequest.java index da13fa512..2f75ec9e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPutRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPutRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationPutRequest { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrant.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrant.java index 2167e86c5..d3b67df94 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrant.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrant.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrant - The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAuthenticationMethod.java index eef5a30d7..4febb0ffb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAuthenticationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationQdrantAuthenticationMethod - Method to authenticate with the Qdrant Instance */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAzureOpenAI.java index 43625edfa..a76d89bed 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAzureOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrantAzureOpenAI - Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByMarkdownHeader.java index 4c0105e57..355d96391 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByMarkdownHeader.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrantByMarkdownHeader - Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByProgrammingLanguage.java index d603462de..e7bd18bb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByProgrammingLanguage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrantByProgrammingLanguage - Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantBySeparator.java index 5d4a61b2c..6b0c09368 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantBySeparator.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrantBySeparator - Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantCohere.java index d8da92191..25ef8b86b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantCohere.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrantCohere - Use the Cohere API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantEmbedding.java index 7decf5b65..264268b02 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantEmbedding.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationQdrantEmbedding - Embedding configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFake.java index 04f3544b2..f240ab334 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrantFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFieldNameMappingConfigModel.java index cc93fe37a..f206682f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFieldNameMappingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationQdrantFieldNameMappingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantIndexing.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantIndexing.java index 0028c87ed..b3cbc93ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantIndexing.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantIndexing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrantIndexing - Indexing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java index 2ba3793d0..1225f0271 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationQdrantLanguage - Split code in suitable places based on the programming language */ @@ -38,4 +39,13 @@ private DestinationQdrantLanguage(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantLanguage> fromValue(String value) { + for (DestinationQdrantLanguage o: DestinationQdrantLanguage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java index 979b00260..55724fab4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantMode { OPENAI("openai"); @@ -20,4 +21,13 @@ private DestinationQdrantMode(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantMode> fromValue(String value) { + for (DestinationQdrantMode o: DestinationQdrantMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantNoAuth.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantNoAuth.java index 5f0fca9d0..4e2125c64 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantNoAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantNoAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationQdrantNoAuth { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAI.java index c0c41a639..ec510e1fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrantOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAICompatible.java index 6e49fc06a..51454af30 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAICompatible.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationQdrantOpenAICompatible - Use a service that's compatible with the OpenAI API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantProcessingConfigModel.java index 43e457757..1297a2754 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantProcessingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationQdrantProcessingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java index 0178e38c9..c76b90c3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantSchemasEmbeddingEmbedding5Mode { OPENAI_COMPATIBLE("openai_compatible"); @@ -20,4 +21,13 @@ private DestinationQdrantSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantSchemasEmbeddingEmbedding5Mode> fromValue(String value) { + for (DestinationQdrantSchemasEmbeddingEmbedding5Mode o: DestinationQdrantSchemasEmbeddingEmbedding5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java index 3c597b098..3318a4a81 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantSchemasEmbeddingEmbeddingMode { AZURE_OPENAI("azure_openai"); @@ -20,4 +21,13 @@ private DestinationQdrantSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantSchemasEmbeddingEmbeddingMode> fromValue(String value) { + for (DestinationQdrantSchemasEmbeddingEmbeddingMode o: DestinationQdrantSchemasEmbeddingEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java index 2c14038d7..2f339d422 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantSchemasEmbeddingMode { FAKE("fake"); @@ -20,4 +21,13 @@ private DestinationQdrantSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantSchemasEmbeddingMode> fromValue(String value) { + for (DestinationQdrantSchemasEmbeddingMode o: DestinationQdrantSchemasEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java index 040bf8041..7140f7855 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantSchemasIndexingAuthMethodMode { NO_AUTH("no_auth"); @@ -20,4 +21,13 @@ private DestinationQdrantSchemasIndexingAuthMethodMode(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantSchemasIndexingAuthMethodMode> fromValue(String value) { + for (DestinationQdrantSchemasIndexingAuthMethodMode o: DestinationQdrantSchemasIndexingAuthMethodMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java index 785639c03..541a1eab9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantSchemasIndexingMode { API_KEY_AUTH("api_key_auth"); @@ -20,4 +21,13 @@ private DestinationQdrantSchemasIndexingMode(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantSchemasIndexingMode> fromValue(String value) { + for (DestinationQdrantSchemasIndexingMode o: DestinationQdrantSchemasIndexingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java index 2d83d107a..9961535b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantSchemasMode { COHERE("cohere"); @@ -20,4 +21,13 @@ private DestinationQdrantSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantSchemasMode> fromValue(String value) { + for (DestinationQdrantSchemasMode o: DestinationQdrantSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java index 6ad10dd67..3c80dc09f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantSchemasProcessingMode { SEPARATOR("separator"); @@ -20,4 +21,13 @@ private DestinationQdrantSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantSchemasProcessingMode> fromValue(String value) { + for (DestinationQdrantSchemasProcessingMode o: DestinationQdrantSchemasProcessingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java index 80eb25868..6fd754e46 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantSchemasProcessingTextSplitterMode { MARKDOWN("markdown"); @@ -20,4 +21,13 @@ private DestinationQdrantSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional<DestinationQdrantSchemasProcessingTextSplitterMode> fromValue(String value) { + for (DestinationQdrantSchemasProcessingTextSplitterMode o: DestinationQdrantSchemasProcessingTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java index 027049ac8..de7555f26 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode { CODE("code"); @@ -20,4 +21,13 @@ private DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode(String va public String value() { return value; } + + public static Optional<DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode> fromValue(String value) { + for (DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode o: DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantTextSplitter.java index bb88ff365..6189b1ef9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantTextSplitter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationQdrantTextSplitter - Split text fields into chunks based on the specified method. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedis.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedis.java index 7bece6f74..7c3edb99e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedis.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedis.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationRedis { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisDisable.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisDisable.java index c392578e6..4fd264fdc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisDisable.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisDisable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationRedisDisable - Disable SSL. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java index 8b349e674..af4eb8761 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationRedisMode { DISABLE("disable"); @@ -20,4 +21,13 @@ private DestinationRedisMode(String value) { public String value() { return value; } + + public static Optional<DestinationRedisMode> fromValue(String value) { + for (DestinationRedisMode o: DestinationRedisMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisNoTunnel.java index 981bd217b..daa3e4618 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationRedisNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisPasswordAuthentication.java index 19ee30795..11883bf95 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationRedisPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHKeyAuthentication.java index d0cca2881..b8f0a3812 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationRedisSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHTunnelMethod.java index cc628a57a..b61ee9322 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationRedisSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSLModes.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSLModes.java index a34af83d9..714f80c01 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSLModes.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationRedisSSLModes - SSL connection modes. * <li><b>verify-full</b> - This is the most secure mode. Always require encryption and verifies the identity of the source database server diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java index bcc8f8a07..1882bdc5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationRedisSchemasMode { VERIFY_FULL("verify-full"); @@ -20,4 +21,13 @@ private DestinationRedisSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationRedisSchemasMode> fromValue(String value) { + for (DestinationRedisSchemasMode o: DestinationRedisSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java index 1e7df4a0e..b89462d5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationRedisSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationRedisSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationRedisSchemasTunnelMethod> fromValue(String value) { + for (DestinationRedisSchemasTunnelMethod o: DestinationRedisSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java index aa9a6a848..8aced04aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationRedisSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationRedisSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationRedisSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (DestinationRedisSchemasTunnelMethodTunnelMethod o: DestinationRedisSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java index aa9f6b3da..f66682ccc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationRedisTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private DestinationRedisTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationRedisTunnelMethod> fromValue(String value) { + for (DestinationRedisTunnelMethod o: DestinationRedisTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisVerifyFull.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisVerifyFull.java index b4c0c4aaf..553eb42ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisVerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisVerifyFull.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationRedisVerifyFull - Verify-full SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshift.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshift.java index 47242f7d9..339095b80 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshift.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshift.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationRedshift { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java index a871af157..df4f217ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationRedshiftMethod { S3_STAGING("S3 Staging"); @@ -20,4 +21,13 @@ private DestinationRedshiftMethod(String value) { public String value() { return value; } + + public static Optional<DestinationRedshiftMethod> fromValue(String value) { + for (DestinationRedshiftMethod o: DestinationRedshiftMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftNoTunnel.java index 05a21d1fe..e691d7893 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationRedshiftNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftPasswordAuthentication.java index 092f7d5f2..6b8d04dc9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationRedshiftPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java index 67aed7ba5..9936e7a6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationRedshiftS3BucketRegion - The region of the S3 staging bucket. */ @@ -56,4 +57,13 @@ private DestinationRedshiftS3BucketRegion(String value) { public String value() { return value; } + + public static Optional<DestinationRedshiftS3BucketRegion> fromValue(String value) { + for (DestinationRedshiftS3BucketRegion o: DestinationRedshiftS3BucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHKeyAuthentication.java index a7f789679..6edfc5fb5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationRedshiftSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHTunnelMethod.java index d49d37f55..c909fc411 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationRedshiftSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java index 8b88106e5..9cdb1d84b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationRedshiftSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationRedshiftSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationRedshiftSchemasTunnelMethod> fromValue(String value) { + for (DestinationRedshiftSchemasTunnelMethod o: DestinationRedshiftSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java index 5e96fabc5..4cf7483b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationRedshiftSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationRedshiftSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationRedshiftSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (DestinationRedshiftSchemasTunnelMethodTunnelMethod o: DestinationRedshiftSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java index 7c7714e40..2c8aed896 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationRedshiftTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private DestinationRedshiftTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationRedshiftTunnelMethod> fromValue(String value) { + for (DestinationRedshiftTunnelMethod o: DestinationRedshiftTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationResponse.java b/src/main/java/com/airbyte/api/models/shared/DestinationResponse.java index 405318a25..51ea97e74 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * DestinationResponse - Provides details of a single destination. */ 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 f08921b7f..1067601f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationS3 { /** @@ -33,7 +31,7 @@ public class DestinationS3 { private S3 destinationType; /** - * The pattern allows you to set the file-name format for the S3 staging file(s) + * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("file_name_pattern") @@ -46,7 +44,7 @@ public class DestinationS3 { private DestinationS3OutputFormat format; /** - * The Role ARN + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("role_arn") @@ -79,7 +77,7 @@ public class DestinationS3 { private Optional<String> s3Endpoint; /** - * Format string on how data will be organized inside the S3 bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("s3_path_format") @@ -148,7 +146,7 @@ public S3 destinationType() { } /** - * The pattern allows you to set the file-name format for the S3 staging file(s) + * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> */ @JsonIgnore public Optional<String> fileNamePattern() { @@ -164,7 +162,7 @@ public DestinationS3OutputFormat format() { } /** - * The Role ARN + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. */ @JsonIgnore public Optional<String> roleArn() { @@ -205,7 +203,7 @@ public Optional<String> s3Endpoint() { } /** - * Format string on how data will be organized inside the S3 bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> */ @JsonIgnore public Optional<String> s3PathFormat() { @@ -243,7 +241,7 @@ public DestinationS3 withAccessKeyId(Optional<String> accessKeyId) { } /** - * The pattern allows you to set the file-name format for the S3 staging file(s) + * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> */ public DestinationS3 withFileNamePattern(String fileNamePattern) { Utils.checkNotNull(fileNamePattern, "fileNamePattern"); @@ -252,7 +250,7 @@ public DestinationS3 withFileNamePattern(String fileNamePattern) { } /** - * The pattern allows you to set the file-name format for the S3 staging file(s) + * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> */ public DestinationS3 withFileNamePattern(Optional<String> fileNamePattern) { Utils.checkNotNull(fileNamePattern, "fileNamePattern"); @@ -270,7 +268,7 @@ public DestinationS3 withFormat(DestinationS3OutputFormat format) { } /** - * The Role ARN + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. */ public DestinationS3 withRoleArn(String roleArn) { Utils.checkNotNull(roleArn, "roleArn"); @@ -279,7 +277,7 @@ public DestinationS3 withRoleArn(String roleArn) { } /** - * The Role ARN + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. */ public DestinationS3 withRoleArn(Optional<String> roleArn) { Utils.checkNotNull(roleArn, "roleArn"); @@ -342,7 +340,7 @@ public DestinationS3 withS3Endpoint(Optional<String> s3Endpoint) { } /** - * Format string on how data will be organized inside the S3 bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> */ public DestinationS3 withS3PathFormat(String s3PathFormat) { Utils.checkNotNull(s3PathFormat, "s3PathFormat"); @@ -351,7 +349,7 @@ public DestinationS3 withS3PathFormat(String s3PathFormat) { } /** - * Format string on how data will be organized inside the S3 bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> */ public DestinationS3 withS3PathFormat(Optional<String> s3PathFormat) { Utils.checkNotNull(s3PathFormat, "s3PathFormat"); @@ -448,7 +446,7 @@ public final static class Builder { private Optional<? extends DestinationS3S3BucketRegion> s3BucketRegion; - private Optional<String> s3Endpoint; + private Optional<String> s3Endpoint = Optional.empty(); private Optional<String> s3PathFormat = Optional.empty(); @@ -477,7 +475,7 @@ public Builder accessKeyId(Optional<String> accessKeyId) { } /** - * The pattern allows you to set the file-name format for the S3 staging file(s) + * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> */ public Builder fileNamePattern(String fileNamePattern) { Utils.checkNotNull(fileNamePattern, "fileNamePattern"); @@ -486,7 +484,7 @@ public Builder fileNamePattern(String fileNamePattern) { } /** - * The pattern allows you to set the file-name format for the S3 staging file(s) + * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> */ public Builder fileNamePattern(Optional<String> fileNamePattern) { Utils.checkNotNull(fileNamePattern, "fileNamePattern"); @@ -504,7 +502,7 @@ public Builder format(DestinationS3OutputFormat format) { } /** - * The Role ARN + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. */ public Builder roleArn(String roleArn) { Utils.checkNotNull(roleArn, "roleArn"); @@ -513,7 +511,7 @@ public Builder roleArn(String roleArn) { } /** - * The Role ARN + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. */ public Builder roleArn(Optional<String> roleArn) { Utils.checkNotNull(roleArn, "roleArn"); @@ -576,7 +574,7 @@ public Builder s3Endpoint(Optional<String> s3Endpoint) { } /** - * Format string on how data will be organized inside the S3 bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> */ public Builder s3PathFormat(String s3PathFormat) { Utils.checkNotNull(s3PathFormat, "s3PathFormat"); @@ -585,7 +583,7 @@ public Builder s3PathFormat(String s3PathFormat) { } /** - * Format string on how data will be organized inside the S3 bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> */ public Builder s3PathFormat(Optional<String> s3PathFormat) { Utils.checkNotNull(s3PathFormat, "s3PathFormat"); @@ -614,9 +612,6 @@ public Builder secretAccessKey(Optional<String> secretAccessKey) { public DestinationS3 build() { if (s3BucketRegion == null) { s3BucketRegion = _SINGLETON_VALUE_S3BucketRegion.value(); - } - if (s3Endpoint == null) { - s3Endpoint = _SINGLETON_VALUE_S3Endpoint.value(); } return new DestinationS3( accessKeyId, fileNamePattern, @@ -641,12 +636,6 @@ public DestinationS3 build() { "s3_bucket_region", "\"\"", new TypeReference<Optional<? extends DestinationS3S3BucketRegion>>() {}); - - private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_S3Endpoint = - new LazySingletonValue<>( - "s3_endpoint", - "\"\"", - new TypeReference<Optional<String>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3AvroApacheAvro.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3AvroApacheAvro.java index bc4d94b89..b72a91b91 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3AvroApacheAvro.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3AvroApacheAvro.java @@ -2,26 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3AvroApacheAvro { + @JsonIgnore + private Map<String, Object> additionalProperties; + /** * The compression algorithm used to compress data. Default to no compression. */ @@ -38,6 +44,7 @@ public DestinationS3AvroApacheAvro( @JsonProperty("format_type") Optional<? extends DestinationS3SchemasFormatFormatType> formatType) { Utils.checkNotNull(compressionCodec, "compressionCodec"); Utils.checkNotNull(formatType, "formatType"); + this.additionalProperties = new HashMap<>(); this.compressionCodec = compressionCodec; this.formatType = formatType; } @@ -47,6 +54,11 @@ public DestinationS3AvroApacheAvro( this(compressionCodec, Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + /** * The compression algorithm used to compress data. Default to no compression. */ @@ -65,6 +77,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3AvroApacheAvro withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3AvroApacheAvro withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * The compression algorithm used to compress data. Default to no compression. */ @@ -96,6 +122,7 @@ public boolean equals(java.lang.Object o) { } DestinationS3AvroApacheAvro other = (DestinationS3AvroApacheAvro) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.compressionCodec, other.compressionCodec) && Objects.deepEquals(this.formatType, other.formatType); } @@ -103,6 +130,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, compressionCodec, formatType); } @@ -110,12 +138,15 @@ public int hashCode() { @Override public String toString() { return Utils.toString(DestinationS3AvroApacheAvro.class, + "additionalProperties", additionalProperties, "compressionCodec", compressionCodec, "formatType", formatType); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private DestinationS3CompressionCodec compressionCodec; private Optional<? extends DestinationS3SchemasFormatFormatType> formatType; @@ -124,6 +155,22 @@ private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * The compression algorithm used to compress data. Default to no compression. */ @@ -150,7 +197,8 @@ public DestinationS3AvroApacheAvro build() { formatType = _SINGLETON_VALUE_FormatType.value(); } return new DestinationS3AvroApacheAvro( compressionCodec, - formatType); + formatType) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3SchemasFormatFormatType>> _SINGLETON_VALUE_FormatType = diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Bzip2.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Bzip2.java index 33a55cb4e..111b7ebb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Bzip2.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Bzip2.java @@ -2,26 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3Bzip2 { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional<? extends DestinationS3SchemasFormatCodec> codec; @@ -30,6 +36,7 @@ public class DestinationS3Bzip2 { public DestinationS3Bzip2( @JsonProperty("codec") Optional<? extends DestinationS3SchemasFormatCodec> codec) { Utils.checkNotNull(codec, "codec"); + this.additionalProperties = new HashMap<>(); this.codec = codec; } @@ -37,6 +44,11 @@ public DestinationS3Bzip2() { this(Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional<DestinationS3SchemasFormatCodec> codec() { @@ -47,6 +59,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3Bzip2 withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3Bzip2 withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3Bzip2 withCodec(DestinationS3SchemasFormatCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -69,29 +95,50 @@ public boolean equals(java.lang.Object o) { } DestinationS3Bzip2 other = (DestinationS3Bzip2) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.codec, other.codec); } @Override public int hashCode() { return Objects.hash( + additionalProperties, codec); } @Override public String toString() { return Utils.toString(DestinationS3Bzip2.class, + "additionalProperties", additionalProperties, "codec", codec); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3SchemasFormatCodec> codec; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder codec(DestinationS3SchemasFormatCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -108,7 +155,8 @@ public DestinationS3Bzip2 build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); } return new DestinationS3Bzip2( - codec); + codec) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3SchemasFormatCodec>> _SINGLETON_VALUE_Codec = diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3CSVCommaSeparatedValues.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3CSVCommaSeparatedValues.java index 82ed4f106..cf06b3067 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3CSVCommaSeparatedValues.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3CSVCommaSeparatedValues.java @@ -2,39 +2,42 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3CSVCommaSeparatedValues { + @JsonIgnore + private Map<String, Object> additionalProperties; + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression") private Optional<? extends DestinationS3Compression> compression; - /** - * Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. - */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("flattening") - private Optional<? extends DestinationS3Flattening> flattening; + private Optional<? extends Flattening> flattening; @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") @@ -43,11 +46,12 @@ public class DestinationS3CSVCommaSeparatedValues { @JsonCreator public DestinationS3CSVCommaSeparatedValues( @JsonProperty("compression") Optional<? extends DestinationS3Compression> compression, - @JsonProperty("flattening") Optional<? extends DestinationS3Flattening> flattening, + @JsonProperty("flattening") Optional<? extends Flattening> flattening, @JsonProperty("format_type") Optional<? extends DestinationS3FormatType> formatType) { Utils.checkNotNull(compression, "compression"); Utils.checkNotNull(flattening, "flattening"); Utils.checkNotNull(formatType, "formatType"); + this.additionalProperties = new HashMap<>(); this.compression = compression; this.flattening = flattening; this.formatType = formatType; @@ -57,8 +61,13 @@ public DestinationS3CSVCommaSeparatedValues() { this(Optional.empty(), Optional.empty(), Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ @SuppressWarnings("unchecked") @JsonIgnore @@ -66,13 +75,10 @@ public Optional<DestinationS3Compression> compression() { return (Optional<DestinationS3Compression>) compression; } - /** - * Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. - */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationS3Flattening> flattening() { - return (Optional<DestinationS3Flattening>) flattening; + public Optional<Flattening> flattening() { + return (Optional<Flattening>) flattening; } @SuppressWarnings("unchecked") @@ -85,8 +91,22 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3CSVCommaSeparatedValues withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3CSVCommaSeparatedValues withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ public DestinationS3CSVCommaSeparatedValues withCompression(DestinationS3Compression compression) { Utils.checkNotNull(compression, "compression"); @@ -95,7 +115,7 @@ public DestinationS3CSVCommaSeparatedValues withCompression(DestinationS3Compres } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ public DestinationS3CSVCommaSeparatedValues withCompression(Optional<? extends DestinationS3Compression> compression) { Utils.checkNotNull(compression, "compression"); @@ -103,19 +123,13 @@ public DestinationS3CSVCommaSeparatedValues withCompression(Optional<? extends D return this; } - /** - * Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. - */ - public DestinationS3CSVCommaSeparatedValues withFlattening(DestinationS3Flattening flattening) { + public DestinationS3CSVCommaSeparatedValues withFlattening(Flattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); return this; } - /** - * Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. - */ - public DestinationS3CSVCommaSeparatedValues withFlattening(Optional<? extends DestinationS3Flattening> flattening) { + public DestinationS3CSVCommaSeparatedValues withFlattening(Optional<? extends Flattening> flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; return this; @@ -143,6 +157,7 @@ public boolean equals(java.lang.Object o) { } DestinationS3CSVCommaSeparatedValues other = (DestinationS3CSVCommaSeparatedValues) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.compression, other.compression) && Objects.deepEquals(this.flattening, other.flattening) && Objects.deepEquals(this.formatType, other.formatType); @@ -151,6 +166,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, compression, flattening, formatType); @@ -159,6 +175,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(DestinationS3CSVCommaSeparatedValues.class, + "additionalProperties", additionalProperties, "compression", compression, "flattening", flattening, "formatType", formatType); @@ -166,9 +183,11 @@ public String toString() { public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3Compression> compression = Optional.empty(); - private Optional<? extends DestinationS3Flattening> flattening; + private Optional<? extends Flattening> flattening; private Optional<? extends DestinationS3FormatType> formatType; @@ -176,8 +195,24 @@ private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ public Builder compression(DestinationS3Compression compression) { Utils.checkNotNull(compression, "compression"); @@ -186,7 +221,7 @@ public Builder compression(DestinationS3Compression compression) { } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ public Builder compression(Optional<? extends DestinationS3Compression> compression) { Utils.checkNotNull(compression, "compression"); @@ -194,19 +229,13 @@ public Builder compression(Optional<? extends DestinationS3Compression> compress return this; } - /** - * Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. - */ - public Builder flattening(DestinationS3Flattening flattening) { + public Builder flattening(Flattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); return this; } - /** - * Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. - */ - public Builder flattening(Optional<? extends DestinationS3Flattening> flattening) { + public Builder flattening(Optional<? extends Flattening> flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; return this; @@ -233,14 +262,15 @@ public DestinationS3CSVCommaSeparatedValues build() { } return new DestinationS3CSVCommaSeparatedValues( compression, flattening, - formatType); + formatType) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<Optional<? extends DestinationS3Flattening>> _SINGLETON_VALUE_Flattening = + private static final LazySingletonValue<Optional<? extends Flattening>> _SINGLETON_VALUE_Flattening = new LazySingletonValue<>( "flattening", "\"No flattening\"", - new TypeReference<Optional<? extends DestinationS3Flattening>>() {}); + new TypeReference<Optional<? extends Flattening>>() {}); private static final LazySingletonValue<Optional<? extends DestinationS3FormatType>> _SINGLETON_VALUE_FormatType = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java index 675c7701b..8545a7d2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3Codec { NO_COMPRESSION("no compression"); @@ -20,4 +21,13 @@ private DestinationS3Codec(String value) { public String value() { return value; } + + public static Optional<DestinationS3Codec> fromValue(String value) { + for (DestinationS3Codec o: DestinationS3Codec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Compression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Compression.java index 6cd71391e..a9acb033d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Compression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Compression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,9 +16,8 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** - * DestinationS3Compression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * DestinationS3Compression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ @JsonDeserialize(using = DestinationS3Compression._Deserializer.class) diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionCodec.java index 7c492b361..60ec945c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionCodec.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationS3CompressionCodec - The compression algorithm used to compress data. Default to no compression. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java index 38a319b1e..1f28695f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3CompressionType { NO_COMPRESSION("No Compression"); @@ -20,4 +21,13 @@ private DestinationS3CompressionType(String value) { public String value() { return value; } + + public static Optional<DestinationS3CompressionType> fromValue(String value) { + for (DestinationS3CompressionType o: DestinationS3CompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLake.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLake.java new file mode 100644 index 000000000..d3b9de88c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLake.java @@ -0,0 +1,504 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * DestinationS3DataLake - Defines the configurations required to connect to an Iceberg catalog, including warehouse location, main branch name, and catalog type specifics. + */ + +public class DestinationS3DataLake { + + /** + * The AWS Access Key ID with permissions for S3 and Glue operations. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("access_key_id") + private Optional<String> accessKeyId; + + /** + * Specifies the type of Iceberg catalog (e.g., NESSIE, GLUE, REST) and its associated configuration. + */ + @JsonProperty("catalog_type") + private CatalogType catalogType; + + @JsonProperty("destinationType") + private S3DataLake destinationType; + + /** + * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("main_branch_name") + private Optional<String> mainBranchName; + + /** + * The name of the S3 bucket that will host the Iceberg data. + */ + @JsonProperty("s3_bucket_name") + private String s3BucketName; + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + @JsonProperty("s3_bucket_region") + private DestinationS3DataLakeS3BucketRegion s3BucketRegion; + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_endpoint") + private Optional<String> s3Endpoint; + + /** + * The AWS Secret Access Key paired with the Access Key ID for AWS authentication. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("secret_access_key") + private Optional<String> secretAccessKey; + + /** + * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such as "s3://" for Amazon S3). + */ + @JsonProperty("warehouse_location") + private String warehouseLocation; + + @JsonCreator + public DestinationS3DataLake( + @JsonProperty("access_key_id") Optional<String> accessKeyId, + @JsonProperty("catalog_type") CatalogType catalogType, + @JsonProperty("main_branch_name") Optional<String> mainBranchName, + @JsonProperty("s3_bucket_name") String s3BucketName, + @JsonProperty("s3_bucket_region") DestinationS3DataLakeS3BucketRegion s3BucketRegion, + @JsonProperty("s3_endpoint") Optional<String> s3Endpoint, + @JsonProperty("secret_access_key") Optional<String> secretAccessKey, + @JsonProperty("warehouse_location") String warehouseLocation) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + Utils.checkNotNull(catalogType, "catalogType"); + Utils.checkNotNull(mainBranchName, "mainBranchName"); + Utils.checkNotNull(s3BucketName, "s3BucketName"); + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + Utils.checkNotNull(warehouseLocation, "warehouseLocation"); + this.accessKeyId = accessKeyId; + this.catalogType = catalogType; + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.mainBranchName = mainBranchName; + this.s3BucketName = s3BucketName; + this.s3BucketRegion = s3BucketRegion; + this.s3Endpoint = s3Endpoint; + this.secretAccessKey = secretAccessKey; + this.warehouseLocation = warehouseLocation; + } + + public DestinationS3DataLake( + CatalogType catalogType, + String s3BucketName, + DestinationS3DataLakeS3BucketRegion s3BucketRegion, + String warehouseLocation) { + this(Optional.empty(), catalogType, Optional.empty(), s3BucketName, s3BucketRegion, Optional.empty(), Optional.empty(), warehouseLocation); + } + + /** + * The AWS Access Key ID with permissions for S3 and Glue operations. + */ + @JsonIgnore + public Optional<String> accessKeyId() { + return accessKeyId; + } + + /** + * Specifies the type of Iceberg catalog (e.g., NESSIE, GLUE, REST) and its associated configuration. + */ + @JsonIgnore + public CatalogType catalogType() { + return catalogType; + } + + @JsonIgnore + public S3DataLake destinationType() { + return destinationType; + } + + /** + * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + */ + @JsonIgnore + public Optional<String> mainBranchName() { + return mainBranchName; + } + + /** + * The name of the S3 bucket that will host the Iceberg data. + */ + @JsonIgnore + public String s3BucketName() { + return s3BucketName; + } + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + @JsonIgnore + public DestinationS3DataLakeS3BucketRegion s3BucketRegion() { + return s3BucketRegion; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + @JsonIgnore + public Optional<String> s3Endpoint() { + return s3Endpoint; + } + + /** + * The AWS Secret Access Key paired with the Access Key ID for AWS authentication. + */ + @JsonIgnore + public Optional<String> secretAccessKey() { + return secretAccessKey; + } + + /** + * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such as "s3://" for Amazon S3). + */ + @JsonIgnore + public String warehouseLocation() { + return warehouseLocation; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The AWS Access Key ID with permissions for S3 and Glue operations. + */ + public DestinationS3DataLake withAccessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = Optional.ofNullable(accessKeyId); + return this; + } + + /** + * The AWS Access Key ID with permissions for S3 and Glue operations. + */ + public DestinationS3DataLake withAccessKeyId(Optional<String> accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + /** + * Specifies the type of Iceberg catalog (e.g., NESSIE, GLUE, REST) and its associated configuration. + */ + public DestinationS3DataLake withCatalogType(CatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + */ + public DestinationS3DataLake withMainBranchName(String mainBranchName) { + Utils.checkNotNull(mainBranchName, "mainBranchName"); + this.mainBranchName = Optional.ofNullable(mainBranchName); + return this; + } + + /** + * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + */ + public DestinationS3DataLake withMainBranchName(Optional<String> mainBranchName) { + Utils.checkNotNull(mainBranchName, "mainBranchName"); + this.mainBranchName = mainBranchName; + return this; + } + + /** + * The name of the S3 bucket that will host the Iceberg data. + */ + public DestinationS3DataLake withS3BucketName(String s3BucketName) { + Utils.checkNotNull(s3BucketName, "s3BucketName"); + this.s3BucketName = s3BucketName; + return this; + } + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + public DestinationS3DataLake withS3BucketRegion(DestinationS3DataLakeS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + public DestinationS3DataLake withS3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + public DestinationS3DataLake withS3Endpoint(Optional<String> s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + /** + * The AWS Secret Access Key paired with the Access Key ID for AWS authentication. + */ + public DestinationS3DataLake withSecretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = Optional.ofNullable(secretAccessKey); + return this; + } + + /** + * The AWS Secret Access Key paired with the Access Key ID for AWS authentication. + */ + public DestinationS3DataLake withSecretAccessKey(Optional<String> secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + /** + * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such as "s3://" for Amazon S3). + */ + public DestinationS3DataLake withWarehouseLocation(String warehouseLocation) { + Utils.checkNotNull(warehouseLocation, "warehouseLocation"); + this.warehouseLocation = warehouseLocation; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationS3DataLake other = (DestinationS3DataLake) o; + return + Objects.deepEquals(this.accessKeyId, other.accessKeyId) && + Objects.deepEquals(this.catalogType, other.catalogType) && + Objects.deepEquals(this.destinationType, other.destinationType) && + Objects.deepEquals(this.mainBranchName, other.mainBranchName) && + Objects.deepEquals(this.s3BucketName, other.s3BucketName) && + Objects.deepEquals(this.s3BucketRegion, other.s3BucketRegion) && + Objects.deepEquals(this.s3Endpoint, other.s3Endpoint) && + Objects.deepEquals(this.secretAccessKey, other.secretAccessKey) && + Objects.deepEquals(this.warehouseLocation, other.warehouseLocation); + } + + @Override + public int hashCode() { + return Objects.hash( + accessKeyId, + catalogType, + destinationType, + mainBranchName, + s3BucketName, + s3BucketRegion, + s3Endpoint, + secretAccessKey, + warehouseLocation); + } + + @Override + public String toString() { + return Utils.toString(DestinationS3DataLake.class, + "accessKeyId", accessKeyId, + "catalogType", catalogType, + "destinationType", destinationType, + "mainBranchName", mainBranchName, + "s3BucketName", s3BucketName, + "s3BucketRegion", s3BucketRegion, + "s3Endpoint", s3Endpoint, + "secretAccessKey", secretAccessKey, + "warehouseLocation", warehouseLocation); + } + + public final static class Builder { + + private Optional<String> accessKeyId = Optional.empty(); + + private CatalogType catalogType; + + private Optional<String> mainBranchName; + + private String s3BucketName; + + private DestinationS3DataLakeS3BucketRegion s3BucketRegion; + + private Optional<String> s3Endpoint = Optional.empty(); + + private Optional<String> secretAccessKey = Optional.empty(); + + private String warehouseLocation; + + private Builder() { + // force use of static builder() method + } + + /** + * The AWS Access Key ID with permissions for S3 and Glue operations. + */ + public Builder accessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = Optional.ofNullable(accessKeyId); + return this; + } + + /** + * The AWS Access Key ID with permissions for S3 and Glue operations. + */ + public Builder accessKeyId(Optional<String> accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + /** + * Specifies the type of Iceberg catalog (e.g., NESSIE, GLUE, REST) and its associated configuration. + */ + public Builder catalogType(CatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + */ + public Builder mainBranchName(String mainBranchName) { + Utils.checkNotNull(mainBranchName, "mainBranchName"); + this.mainBranchName = Optional.ofNullable(mainBranchName); + return this; + } + + /** + * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + */ + public Builder mainBranchName(Optional<String> mainBranchName) { + Utils.checkNotNull(mainBranchName, "mainBranchName"); + this.mainBranchName = mainBranchName; + return this; + } + + /** + * The name of the S3 bucket that will host the Iceberg data. + */ + public Builder s3BucketName(String s3BucketName) { + Utils.checkNotNull(s3BucketName, "s3BucketName"); + this.s3BucketName = s3BucketName; + return this; + } + + /** + * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ + public Builder s3BucketRegion(DestinationS3DataLakeS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + public Builder s3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + /** + * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + */ + public Builder s3Endpoint(Optional<String> s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + /** + * The AWS Secret Access Key paired with the Access Key ID for AWS authentication. + */ + public Builder secretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = Optional.ofNullable(secretAccessKey); + return this; + } + + /** + * The AWS Secret Access Key paired with the Access Key ID for AWS authentication. + */ + public Builder secretAccessKey(Optional<String> secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + /** + * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such as "s3://" for Amazon S3). + */ + public Builder warehouseLocation(String warehouseLocation) { + Utils.checkNotNull(warehouseLocation, "warehouseLocation"); + this.warehouseLocation = warehouseLocation; + return this; + } + + public DestinationS3DataLake build() { + if (mainBranchName == null) { + mainBranchName = _SINGLETON_VALUE_MainBranchName.value(); + } return new DestinationS3DataLake( + accessKeyId, + catalogType, + mainBranchName, + s3BucketName, + s3BucketRegion, + s3Endpoint, + secretAccessKey, + warehouseLocation); + } + + private static final LazySingletonValue<S3DataLake> _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"s3-data-lake\"", + new TypeReference<S3DataLake>() {}); + + private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_MainBranchName = + new LazySingletonValue<>( + "main_branch_name", + "\"main\"", + new TypeReference<Optional<String>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeCatalogType.java new file mode 100644 index 000000000..257084532 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeCatalogType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum DestinationS3DataLakeCatalogType { + GLUE("GLUE"); + + @JsonValue + private final String value; + + private DestinationS3DataLakeCatalogType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationS3DataLakeCatalogType> fromValue(String value) { + for (DestinationS3DataLakeCatalogType o: DestinationS3DataLakeCatalogType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeGlueCatalog.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeGlueCatalog.java new file mode 100644 index 000000000..ca564bae8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeGlueCatalog.java @@ -0,0 +1,316 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +/** + * DestinationS3DataLakeGlueCatalog - Configuration details for connecting to an AWS Glue-based Iceberg catalog. + */ + +public class DestinationS3DataLakeGlueCatalog { + + @JsonIgnore + private Map<String, Object> additionalProperties; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("catalog_type") + private Optional<? extends DestinationS3DataLakeCatalogType> catalogType; + + /** + * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the connection is set to `Destination-defined` or `Source-defined` + */ + @JsonProperty("database_name") + private String databaseName; + + /** + * The AWS Account ID associated with the Glue service used by the Iceberg catalog. + */ + @JsonProperty("glue_id") + private String glueId; + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("role_arn") + private Optional<String> roleArn; + + @JsonCreator + public DestinationS3DataLakeGlueCatalog( + @JsonProperty("catalog_type") Optional<? extends DestinationS3DataLakeCatalogType> catalogType, + @JsonProperty("database_name") String databaseName, + @JsonProperty("glue_id") String glueId, + @JsonProperty("role_arn") Optional<String> roleArn) { + Utils.checkNotNull(catalogType, "catalogType"); + Utils.checkNotNull(databaseName, "databaseName"); + Utils.checkNotNull(glueId, "glueId"); + Utils.checkNotNull(roleArn, "roleArn"); + this.additionalProperties = new HashMap<>(); + this.catalogType = catalogType; + this.databaseName = databaseName; + this.glueId = glueId; + this.roleArn = roleArn; + } + + public DestinationS3DataLakeGlueCatalog( + String databaseName, + String glueId) { + this(Optional.empty(), databaseName, glueId, Optional.empty()); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<DestinationS3DataLakeCatalogType> catalogType() { + return (Optional<DestinationS3DataLakeCatalogType>) catalogType; + } + + /** + * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the connection is set to `Destination-defined` or `Source-defined` + */ + @JsonIgnore + public String databaseName() { + return databaseName; + } + + /** + * The AWS Account ID associated with the Glue service used by the Iceberg catalog. + */ + @JsonIgnore + public String glueId() { + return glueId; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + @JsonIgnore + public Optional<String> roleArn() { + return roleArn; + } + + public final static Builder builder() { + return new Builder(); + } + + @JsonAnySetter + public DestinationS3DataLakeGlueCatalog withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3DataLakeGlueCatalog withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public DestinationS3DataLakeGlueCatalog withCatalogType(DestinationS3DataLakeCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public DestinationS3DataLakeGlueCatalog withCatalogType(Optional<? extends DestinationS3DataLakeCatalogType> catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the connection is set to `Destination-defined` or `Source-defined` + */ + public DestinationS3DataLakeGlueCatalog withDatabaseName(String databaseName) { + Utils.checkNotNull(databaseName, "databaseName"); + this.databaseName = databaseName; + return this; + } + + /** + * The AWS Account ID associated with the Glue service used by the Iceberg catalog. + */ + public DestinationS3DataLakeGlueCatalog withGlueId(String glueId) { + Utils.checkNotNull(glueId, "glueId"); + this.glueId = glueId; + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public DestinationS3DataLakeGlueCatalog withRoleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public DestinationS3DataLakeGlueCatalog withRoleArn(Optional<String> roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationS3DataLakeGlueCatalog other = (DestinationS3DataLakeGlueCatalog) o; + return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && + Objects.deepEquals(this.catalogType, other.catalogType) && + Objects.deepEquals(this.databaseName, other.databaseName) && + Objects.deepEquals(this.glueId, other.glueId) && + Objects.deepEquals(this.roleArn, other.roleArn); + } + + @Override + public int hashCode() { + return Objects.hash( + additionalProperties, + catalogType, + databaseName, + glueId, + roleArn); + } + + @Override + public String toString() { + return Utils.toString(DestinationS3DataLakeGlueCatalog.class, + "additionalProperties", additionalProperties, + "catalogType", catalogType, + "databaseName", databaseName, + "glueId", glueId, + "roleArn", roleArn); + } + + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<? extends DestinationS3DataLakeCatalogType> catalogType; + + private String databaseName; + + private String glueId; + + private Optional<String> roleArn = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Builder catalogType(DestinationS3DataLakeCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public Builder catalogType(Optional<? extends DestinationS3DataLakeCatalogType> catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the connection is set to `Destination-defined` or `Source-defined` + */ + public Builder databaseName(String databaseName) { + Utils.checkNotNull(databaseName, "databaseName"); + this.databaseName = databaseName; + return this; + } + + /** + * The AWS Account ID associated with the Glue service used by the Iceberg catalog. + */ + public Builder glueId(String glueId) { + Utils.checkNotNull(glueId, "glueId"); + this.glueId = glueId; + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public Builder roleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public Builder roleArn(Optional<String> roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + + public DestinationS3DataLakeGlueCatalog build() { + if (catalogType == null) { + catalogType = _SINGLETON_VALUE_CatalogType.value(); + } return new DestinationS3DataLakeGlueCatalog( + catalogType, + databaseName, + glueId, + roleArn) + .withAdditionalProperties(additionalProperties); + } + + private static final LazySingletonValue<Optional<? extends DestinationS3DataLakeCatalogType>> _SINGLETON_VALUE_CatalogType = + new LazySingletonValue<>( + "catalog_type", + "\"GLUE\"", + new TypeReference<Optional<? extends DestinationS3DataLakeCatalogType>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeRestCatalog.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeRestCatalog.java new file mode 100644 index 000000000..7757d8260 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeRestCatalog.java @@ -0,0 +1,264 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +/** + * DestinationS3DataLakeRestCatalog - Configuration details for connecting to a REST catalog. + */ + +public class DestinationS3DataLakeRestCatalog { + + @JsonIgnore + private Map<String, Object> additionalProperties; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("catalog_type") + private Optional<? extends DestinationS3DataLakeSchemasCatalogType> catalogType; + + /** + * The namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` + */ + @JsonProperty("namespace") + private String namespace; + + /** + * The base URL of the Rest server used to connect to the Rest catalog. + */ + @JsonProperty("server_uri") + private String serverUri; + + @JsonCreator + public DestinationS3DataLakeRestCatalog( + @JsonProperty("catalog_type") Optional<? extends DestinationS3DataLakeSchemasCatalogType> catalogType, + @JsonProperty("namespace") String namespace, + @JsonProperty("server_uri") String serverUri) { + Utils.checkNotNull(catalogType, "catalogType"); + Utils.checkNotNull(namespace, "namespace"); + Utils.checkNotNull(serverUri, "serverUri"); + this.additionalProperties = new HashMap<>(); + this.catalogType = catalogType; + this.namespace = namespace; + this.serverUri = serverUri; + } + + public DestinationS3DataLakeRestCatalog( + String namespace, + String serverUri) { + this(Optional.empty(), namespace, serverUri); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<DestinationS3DataLakeSchemasCatalogType> catalogType() { + return (Optional<DestinationS3DataLakeSchemasCatalogType>) catalogType; + } + + /** + * The namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` + */ + @JsonIgnore + public String namespace() { + return namespace; + } + + /** + * The base URL of the Rest server used to connect to the Rest catalog. + */ + @JsonIgnore + public String serverUri() { + return serverUri; + } + + public final static Builder builder() { + return new Builder(); + } + + @JsonAnySetter + public DestinationS3DataLakeRestCatalog withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3DataLakeRestCatalog withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public DestinationS3DataLakeRestCatalog withCatalogType(DestinationS3DataLakeSchemasCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public DestinationS3DataLakeRestCatalog withCatalogType(Optional<? extends DestinationS3DataLakeSchemasCatalogType> catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` + */ + public DestinationS3DataLakeRestCatalog withNamespace(String namespace) { + Utils.checkNotNull(namespace, "namespace"); + this.namespace = namespace; + return this; + } + + /** + * The base URL of the Rest server used to connect to the Rest catalog. + */ + public DestinationS3DataLakeRestCatalog withServerUri(String serverUri) { + Utils.checkNotNull(serverUri, "serverUri"); + this.serverUri = serverUri; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationS3DataLakeRestCatalog other = (DestinationS3DataLakeRestCatalog) o; + return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && + Objects.deepEquals(this.catalogType, other.catalogType) && + Objects.deepEquals(this.namespace, other.namespace) && + Objects.deepEquals(this.serverUri, other.serverUri); + } + + @Override + public int hashCode() { + return Objects.hash( + additionalProperties, + catalogType, + namespace, + serverUri); + } + + @Override + public String toString() { + return Utils.toString(DestinationS3DataLakeRestCatalog.class, + "additionalProperties", additionalProperties, + "catalogType", catalogType, + "namespace", namespace, + "serverUri", serverUri); + } + + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<? extends DestinationS3DataLakeSchemasCatalogType> catalogType; + + private String namespace; + + private String serverUri; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Builder catalogType(DestinationS3DataLakeSchemasCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public Builder catalogType(Optional<? extends DestinationS3DataLakeSchemasCatalogType> catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` + */ + public Builder namespace(String namespace) { + Utils.checkNotNull(namespace, "namespace"); + this.namespace = namespace; + return this; + } + + /** + * The base URL of the Rest server used to connect to the Rest catalog. + */ + public Builder serverUri(String serverUri) { + Utils.checkNotNull(serverUri, "serverUri"); + this.serverUri = serverUri; + return this; + } + + public DestinationS3DataLakeRestCatalog build() { + if (catalogType == null) { + catalogType = _SINGLETON_VALUE_CatalogType.value(); + } return new DestinationS3DataLakeRestCatalog( + catalogType, + namespace, + serverUri) + .withAdditionalProperties(additionalProperties); + } + + private static final LazySingletonValue<Optional<? extends DestinationS3DataLakeSchemasCatalogType>> _SINGLETON_VALUE_CatalogType = + new LazySingletonValue<>( + "catalog_type", + "\"REST\"", + new TypeReference<Optional<? extends DestinationS3DataLakeSchemasCatalogType>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeS3BucketRegion.java new file mode 100644 index 000000000..077810f48 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeS3BucketRegion.java @@ -0,0 +1,69 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * DestinationS3DataLakeS3BucketRegion - The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + */ +public enum DestinationS3DataLakeS3BucketRegion { + UNKNOWN(""), + AF_SOUTH1("af-south-1"), + AP_EAST1("ap-east-1"), + AP_NORTHEAST1("ap-northeast-1"), + AP_NORTHEAST2("ap-northeast-2"), + AP_NORTHEAST3("ap-northeast-3"), + AP_SOUTH1("ap-south-1"), + AP_SOUTH2("ap-south-2"), + AP_SOUTHEAST1("ap-southeast-1"), + AP_SOUTHEAST2("ap-southeast-2"), + AP_SOUTHEAST3("ap-southeast-3"), + AP_SOUTHEAST4("ap-southeast-4"), + CA_CENTRAL1("ca-central-1"), + CA_WEST1("ca-west-1"), + CN_NORTH1("cn-north-1"), + CN_NORTHWEST1("cn-northwest-1"), + EU_CENTRAL1("eu-central-1"), + EU_CENTRAL2("eu-central-2"), + EU_NORTH1("eu-north-1"), + EU_SOUTH1("eu-south-1"), + EU_SOUTH2("eu-south-2"), + EU_WEST1("eu-west-1"), + EU_WEST2("eu-west-2"), + EU_WEST3("eu-west-3"), + IL_CENTRAL1("il-central-1"), + ME_CENTRAL1("me-central-1"), + ME_SOUTH1("me-south-1"), + SA_EAST1("sa-east-1"), + US_EAST1("us-east-1"), + US_EAST2("us-east-2"), + US_GOV_EAST1("us-gov-east-1"), + US_GOV_WEST1("us-gov-west-1"), + US_WEST1("us-west-1"), + US_WEST2("us-west-2"); + + @JsonValue + private final String value; + + private DestinationS3DataLakeS3BucketRegion(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationS3DataLakeS3BucketRegion> fromValue(String value) { + for (DestinationS3DataLakeS3BucketRegion o: DestinationS3DataLakeS3BucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogType.java new file mode 100644 index 000000000..54b86738c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum DestinationS3DataLakeSchemasCatalogType { + REST("REST"); + + @JsonValue + private final String value; + + private DestinationS3DataLakeSchemasCatalogType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationS3DataLakeSchemasCatalogType> fromValue(String value) { + for (DestinationS3DataLakeSchemasCatalogType o: DestinationS3DataLakeSchemasCatalogType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.java new file mode 100644 index 000000000..187f7bee7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum DestinationS3DataLakeSchemasCatalogTypeCatalogType { + NESSIE("NESSIE"); + + @JsonValue + private final String value; + + private DestinationS3DataLakeSchemasCatalogTypeCatalogType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationS3DataLakeSchemasCatalogTypeCatalogType> fromValue(String value) { + for (DestinationS3DataLakeSchemasCatalogTypeCatalogType o: DestinationS3DataLakeSchemasCatalogTypeCatalogType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Deflate.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Deflate.java index c513acd9e..2f89c79d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Deflate.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Deflate.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; @@ -14,38 +15,46 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3Deflate { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional<? extends DestinationS3SchemasCodec> codec; - /** - * 0: no compression & fastest, 9: best compression & slowest. - */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_level") - private Optional<Long> compressionLevel; + private long compressionLevel; @JsonCreator public DestinationS3Deflate( @JsonProperty("codec") Optional<? extends DestinationS3SchemasCodec> codec, - @JsonProperty("compression_level") Optional<Long> compressionLevel) { + @JsonProperty("compression_level") long compressionLevel) { Utils.checkNotNull(codec, "codec"); Utils.checkNotNull(compressionLevel, "compressionLevel"); + this.additionalProperties = new HashMap<>(); this.codec = codec; this.compressionLevel = compressionLevel; } - public DestinationS3Deflate() { - this(Optional.empty(), Optional.empty()); + public DestinationS3Deflate( + long compressionLevel) { + this(Optional.empty(), compressionLevel); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } @SuppressWarnings("unchecked") @@ -54,11 +63,8 @@ public Optional<DestinationS3SchemasCodec> codec() { return (Optional<DestinationS3SchemasCodec>) codec; } - /** - * 0: no compression & fastest, 9: best compression & slowest. - */ @JsonIgnore - public Optional<Long> compressionLevel() { + public long compressionLevel() { return compressionLevel; } @@ -66,6 +72,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3Deflate withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3Deflate withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3Deflate withCodec(DestinationS3SchemasCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -78,19 +98,7 @@ public DestinationS3Deflate withCodec(Optional<? extends DestinationS3SchemasCod return this; } - /** - * 0: no compression & fastest, 9: best compression & slowest. - */ public DestinationS3Deflate withCompressionLevel(long compressionLevel) { - Utils.checkNotNull(compressionLevel, "compressionLevel"); - this.compressionLevel = Optional.ofNullable(compressionLevel); - return this; - } - - /** - * 0: no compression & fastest, 9: best compression & slowest. - */ - public DestinationS3Deflate withCompressionLevel(Optional<Long> compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); this.compressionLevel = compressionLevel; return this; @@ -106,6 +114,7 @@ public boolean equals(java.lang.Object o) { } DestinationS3Deflate other = (DestinationS3Deflate) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.codec, other.codec) && Objects.deepEquals(this.compressionLevel, other.compressionLevel); } @@ -113,6 +122,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, codec, compressionLevel); } @@ -120,20 +130,39 @@ public int hashCode() { @Override public String toString() { return Utils.toString(DestinationS3Deflate.class, + "additionalProperties", additionalProperties, "codec", codec, "compressionLevel", compressionLevel); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3SchemasCodec> codec; - private Optional<Long> compressionLevel; + private Long compressionLevel; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder codec(DestinationS3SchemasCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -146,19 +175,7 @@ public Builder codec(Optional<? extends DestinationS3SchemasCodec> codec) { return this; } - /** - * 0: no compression & fastest, 9: best compression & slowest. - */ public Builder compressionLevel(long compressionLevel) { - Utils.checkNotNull(compressionLevel, "compressionLevel"); - this.compressionLevel = Optional.ofNullable(compressionLevel); - return this; - } - - /** - * 0: no compression & fastest, 9: best compression & slowest. - */ - public Builder compressionLevel(Optional<Long> compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); this.compressionLevel = compressionLevel; return this; @@ -167,12 +184,10 @@ public Builder compressionLevel(Optional<Long> compressionLevel) { public DestinationS3Deflate build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); - } - if (compressionLevel == null) { - compressionLevel = _SINGLETON_VALUE_CompressionLevel.value(); } return new DestinationS3Deflate( codec, - compressionLevel); + compressionLevel) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3SchemasCodec>> _SINGLETON_VALUE_Codec = @@ -180,12 +195,6 @@ public DestinationS3Deflate build() { "codec", "\"Deflate\"", new TypeReference<Optional<? extends DestinationS3SchemasCodec>>() {}); - - private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_CompressionLevel = - new LazySingletonValue<>( - "compression_level", - "0", - new TypeReference<Optional<Long>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java index 025c71374..f6f6d0c17 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - -/** - * DestinationS3Flattening - Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. - */ +import java.util.Objects; +import java.util.Optional; public enum DestinationS3Flattening { NO_FLATTENING("No flattening"), ROOT_LEVEL_FLATTENING("Root level flattening"); @@ -24,4 +22,13 @@ private DestinationS3Flattening(String value) { public String value() { return value; } + + public static Optional<DestinationS3Flattening> fromValue(String value) { + for (DestinationS3Flattening o: DestinationS3Flattening.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java index 9b2843aa8..bfee5926a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3FormatType { CSV("CSV"); @@ -20,4 +21,13 @@ private DestinationS3FormatType(String value) { public String value() { return value; } + + public static Optional<DestinationS3FormatType> fromValue(String value) { + for (DestinationS3FormatType o: DestinationS3FormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GZIP.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GZIP.java index d91add7fd..59739a08d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GZIP.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GZIP.java @@ -2,26 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3GZIP { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_type") private Optional<? extends DestinationS3SchemasCompressionType> compressionType; @@ -30,6 +36,7 @@ public class DestinationS3GZIP { public DestinationS3GZIP( @JsonProperty("compression_type") Optional<? extends DestinationS3SchemasCompressionType> compressionType) { Utils.checkNotNull(compressionType, "compressionType"); + this.additionalProperties = new HashMap<>(); this.compressionType = compressionType; } @@ -37,6 +44,11 @@ public DestinationS3GZIP() { this(Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional<DestinationS3SchemasCompressionType> compressionType() { @@ -47,6 +59,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3GZIP withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3GZIP withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3GZIP withCompressionType(DestinationS3SchemasCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -69,29 +95,50 @@ public boolean equals(java.lang.Object o) { } DestinationS3GZIP other = (DestinationS3GZIP) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { return Objects.hash( + additionalProperties, compressionType); } @Override public String toString() { return Utils.toString(DestinationS3GZIP.class, + "additionalProperties", additionalProperties, "compressionType", compressionType); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3SchemasCompressionType> compressionType; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder compressionType(DestinationS3SchemasCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -108,7 +155,8 @@ public DestinationS3GZIP build() { if (compressionType == null) { compressionType = _SINGLETON_VALUE_CompressionType.value(); } return new DestinationS3GZIP( - compressionType); + compressionType) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3SchemasCompressionType>> _SINGLETON_VALUE_CompressionType = diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Glue.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Glue.java index 083ed830c..a1c31a220 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Glue.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Glue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationS3Glue { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompression.java index b390599cb..7b9196f03 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationS3GlueCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompressionType.java index 68ec8dc02..88a1a782c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3GlueCompressionType { NO_COMPRESSION("No Compression"); @@ -20,4 +21,13 @@ private DestinationS3GlueCompressionType(String value) { public String value() { return value; } + + public static Optional<DestinationS3GlueCompressionType> fromValue(String value) { + for (DestinationS3GlueCompressionType o: DestinationS3GlueCompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFlattening.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFlattening.java new file mode 100644 index 000000000..38ae80de4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFlattening.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * DestinationS3GlueFlattening - Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. + */ +public enum DestinationS3GlueFlattening { + NO_FLATTENING("No flattening"), + ROOT_LEVEL_FLATTENING("Root level flattening"); + + @JsonValue + private final String value; + + private DestinationS3GlueFlattening(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<DestinationS3GlueFlattening> fromValue(String value) { + for (DestinationS3GlueFlattening o: DestinationS3GlueFlattening.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFormatType.java index d1e917f20..8e357a422 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3GlueFormatType { JSONL("JSONL"); @@ -20,4 +21,13 @@ private DestinationS3GlueFormatType(String value) { public String value() { return value; } + + public static Optional<DestinationS3GlueFormatType> fromValue(String value) { + for (DestinationS3GlueFormatType o: DestinationS3GlueFormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueGZIP.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueGZIP.java index 7b25f1489..8f32102c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueGZIP.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueGZIP.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationS3GlueGZIP { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.java index ee526436f..7fcafc270 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueJSONLinesNewlineDelimitedJSON.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationS3GlueJSONLinesNewlineDelimitedJSON { /** @@ -34,7 +32,7 @@ public class DestinationS3GlueJSONLinesNewlineDelimitedJSON { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("flattening") - private Optional<? extends Flattening> flattening; + private Optional<? extends DestinationS3GlueFlattening> flattening; @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") @@ -43,7 +41,7 @@ public class DestinationS3GlueJSONLinesNewlineDelimitedJSON { @JsonCreator public DestinationS3GlueJSONLinesNewlineDelimitedJSON( @JsonProperty("compression") Optional<? extends DestinationS3GlueCompression> compression, - @JsonProperty("flattening") Optional<? extends Flattening> flattening, + @JsonProperty("flattening") Optional<? extends DestinationS3GlueFlattening> flattening, @JsonProperty("format_type") Optional<? extends DestinationS3GlueFormatType> formatType) { Utils.checkNotNull(compression, "compression"); Utils.checkNotNull(flattening, "flattening"); @@ -71,8 +69,8 @@ public Optional<DestinationS3GlueCompression> compression() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional<Flattening> flattening() { - return (Optional<Flattening>) flattening; + public Optional<DestinationS3GlueFlattening> flattening() { + return (Optional<DestinationS3GlueFlattening>) flattening; } @SuppressWarnings("unchecked") @@ -106,7 +104,7 @@ public DestinationS3GlueJSONLinesNewlineDelimitedJSON withCompression(Optional<? /** * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. */ - public DestinationS3GlueJSONLinesNewlineDelimitedJSON withFlattening(Flattening flattening) { + public DestinationS3GlueJSONLinesNewlineDelimitedJSON withFlattening(DestinationS3GlueFlattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); return this; @@ -115,7 +113,7 @@ public DestinationS3GlueJSONLinesNewlineDelimitedJSON withFlattening(Flattening /** * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. */ - public DestinationS3GlueJSONLinesNewlineDelimitedJSON withFlattening(Optional<? extends Flattening> flattening) { + public DestinationS3GlueJSONLinesNewlineDelimitedJSON withFlattening(Optional<? extends DestinationS3GlueFlattening> flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; return this; @@ -168,7 +166,7 @@ public final static class Builder { private Optional<? extends DestinationS3GlueCompression> compression = Optional.empty(); - private Optional<? extends Flattening> flattening; + private Optional<? extends DestinationS3GlueFlattening> flattening; private Optional<? extends DestinationS3GlueFormatType> formatType; @@ -197,7 +195,7 @@ public Builder compression(Optional<? extends DestinationS3GlueCompression> comp /** * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. */ - public Builder flattening(Flattening flattening) { + public Builder flattening(DestinationS3GlueFlattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); return this; @@ -206,7 +204,7 @@ public Builder flattening(Flattening flattening) { /** * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. */ - public Builder flattening(Optional<? extends Flattening> flattening) { + public Builder flattening(Optional<? extends DestinationS3GlueFlattening> flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; return this; @@ -236,11 +234,11 @@ public DestinationS3GlueJSONLinesNewlineDelimitedJSON build() { formatType); } - private static final LazySingletonValue<Optional<? extends Flattening>> _SINGLETON_VALUE_Flattening = + private static final LazySingletonValue<Optional<? extends DestinationS3GlueFlattening>> _SINGLETON_VALUE_Flattening = new LazySingletonValue<>( "flattening", "\"Root level flattening\"", - new TypeReference<Optional<? extends Flattening>>() {}); + new TypeReference<Optional<? extends DestinationS3GlueFlattening>>() {}); private static final LazySingletonValue<Optional<? extends DestinationS3GlueFormatType>> _SINGLETON_VALUE_FormatType = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueNoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueNoCompression.java index 2e4ef980f..712e53666 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueNoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueNoCompression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationS3GlueNoCompression { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueOutputFormat.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueOutputFormat.java index 07e52c1fb..2b06444c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueOutputFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueOutputFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationS3GlueOutputFormat - Format of the data output. See <a href="https://docs.airbyte.com/integrations/destinations/s3/#supported-output-schema">here</a> for more details */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueS3BucketRegion.java index 5f57717cf..076ac9469 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueS3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueS3BucketRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationS3GlueS3BucketRegion - The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. */ @@ -56,4 +57,13 @@ private DestinationS3GlueS3BucketRegion(String value) { public String value() { return value; } + + public static Optional<DestinationS3GlueS3BucketRegion> fromValue(String value) { + for (DestinationS3GlueS3BucketRegion o: DestinationS3GlueS3BucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueSchemasCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueSchemasCompressionType.java index d85749267..013f344d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueSchemasCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueSchemasCompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3GlueSchemasCompressionType { GZIP("GZIP"); @@ -20,4 +21,13 @@ private DestinationS3GlueSchemasCompressionType(String value) { public String value() { return value; } + + public static Optional<DestinationS3GlueSchemasCompressionType> fromValue(String value) { + for (DestinationS3GlueSchemasCompressionType o: DestinationS3GlueSchemasCompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.java index a168f68f8..e2f035765 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.java @@ -2,26 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3JSONLinesNewlineDelimitedJSON { + @JsonIgnore + private Map<String, Object> additionalProperties; + /** * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ @@ -29,12 +35,9 @@ public class DestinationS3JSONLinesNewlineDelimitedJSON { @JsonProperty("compression") private Optional<? extends DestinationS3SchemasCompression> compression; - /** - * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. - */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("flattening") - private Optional<? extends DestinationS3SchemasFlattening> flattening; + private Optional<? extends DestinationS3Flattening> flattening; @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") @@ -43,11 +46,12 @@ public class DestinationS3JSONLinesNewlineDelimitedJSON { @JsonCreator public DestinationS3JSONLinesNewlineDelimitedJSON( @JsonProperty("compression") Optional<? extends DestinationS3SchemasCompression> compression, - @JsonProperty("flattening") Optional<? extends DestinationS3SchemasFlattening> flattening, + @JsonProperty("flattening") Optional<? extends DestinationS3Flattening> flattening, @JsonProperty("format_type") Optional<? extends DestinationS3SchemasFormatType> formatType) { Utils.checkNotNull(compression, "compression"); Utils.checkNotNull(flattening, "flattening"); Utils.checkNotNull(formatType, "formatType"); + this.additionalProperties = new HashMap<>(); this.compression = compression; this.flattening = flattening; this.formatType = formatType; @@ -57,6 +61,11 @@ public DestinationS3JSONLinesNewlineDelimitedJSON() { this(Optional.empty(), Optional.empty(), Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + /** * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ @@ -66,13 +75,10 @@ public Optional<DestinationS3SchemasCompression> compression() { return (Optional<DestinationS3SchemasCompression>) compression; } - /** - * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. - */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationS3SchemasFlattening> flattening() { - return (Optional<DestinationS3SchemasFlattening>) flattening; + public Optional<DestinationS3Flattening> flattening() { + return (Optional<DestinationS3Flattening>) flattening; } @SuppressWarnings("unchecked") @@ -85,6 +91,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3JSONLinesNewlineDelimitedJSON withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3JSONLinesNewlineDelimitedJSON withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ @@ -103,19 +123,13 @@ public DestinationS3JSONLinesNewlineDelimitedJSON withCompression(Optional<? ext return this; } - /** - * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. - */ - public DestinationS3JSONLinesNewlineDelimitedJSON withFlattening(DestinationS3SchemasFlattening flattening) { + public DestinationS3JSONLinesNewlineDelimitedJSON withFlattening(DestinationS3Flattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); return this; } - /** - * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. - */ - public DestinationS3JSONLinesNewlineDelimitedJSON withFlattening(Optional<? extends DestinationS3SchemasFlattening> flattening) { + public DestinationS3JSONLinesNewlineDelimitedJSON withFlattening(Optional<? extends DestinationS3Flattening> flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; return this; @@ -143,6 +157,7 @@ public boolean equals(java.lang.Object o) { } DestinationS3JSONLinesNewlineDelimitedJSON other = (DestinationS3JSONLinesNewlineDelimitedJSON) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.compression, other.compression) && Objects.deepEquals(this.flattening, other.flattening) && Objects.deepEquals(this.formatType, other.formatType); @@ -151,6 +166,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, compression, flattening, formatType); @@ -159,6 +175,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(DestinationS3JSONLinesNewlineDelimitedJSON.class, + "additionalProperties", additionalProperties, "compression", compression, "flattening", flattening, "formatType", formatType); @@ -166,9 +183,11 @@ public String toString() { public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3SchemasCompression> compression = Optional.empty(); - private Optional<? extends DestinationS3SchemasFlattening> flattening; + private Optional<? extends DestinationS3Flattening> flattening; private Optional<? extends DestinationS3SchemasFormatType> formatType; @@ -176,6 +195,22 @@ private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ @@ -194,19 +229,13 @@ public Builder compression(Optional<? extends DestinationS3SchemasCompression> c return this; } - /** - * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. - */ - public Builder flattening(DestinationS3SchemasFlattening flattening) { + public Builder flattening(DestinationS3Flattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); return this; } - /** - * Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. - */ - public Builder flattening(Optional<? extends DestinationS3SchemasFlattening> flattening) { + public Builder flattening(Optional<? extends DestinationS3Flattening> flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; return this; @@ -233,14 +262,15 @@ public DestinationS3JSONLinesNewlineDelimitedJSON build() { } return new DestinationS3JSONLinesNewlineDelimitedJSON( compression, flattening, - formatType); + formatType) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<Optional<? extends DestinationS3SchemasFlattening>> _SINGLETON_VALUE_Flattening = + private static final LazySingletonValue<Optional<? extends DestinationS3Flattening>> _SINGLETON_VALUE_Flattening = new LazySingletonValue<>( "flattening", "\"No flattening\"", - new TypeReference<Optional<? extends DestinationS3SchemasFlattening>>() {}); + new TypeReference<Optional<? extends DestinationS3Flattening>>() {}); private static final LazySingletonValue<Optional<? extends DestinationS3SchemasFormatType>> _SINGLETON_VALUE_FormatType = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3NoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3NoCompression.java index 194065dbc..204202b96 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3NoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3NoCompression.java @@ -2,26 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3NoCompression { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_type") private Optional<? extends DestinationS3CompressionType> compressionType; @@ -30,6 +36,7 @@ public class DestinationS3NoCompression { public DestinationS3NoCompression( @JsonProperty("compression_type") Optional<? extends DestinationS3CompressionType> compressionType) { Utils.checkNotNull(compressionType, "compressionType"); + this.additionalProperties = new HashMap<>(); this.compressionType = compressionType; } @@ -37,6 +44,11 @@ public DestinationS3NoCompression() { this(Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional<DestinationS3CompressionType> compressionType() { @@ -47,6 +59,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3NoCompression withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3NoCompression withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3NoCompression withCompressionType(DestinationS3CompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -69,29 +95,50 @@ public boolean equals(java.lang.Object o) { } DestinationS3NoCompression other = (DestinationS3NoCompression) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { return Objects.hash( + additionalProperties, compressionType); } @Override public String toString() { return Utils.toString(DestinationS3NoCompression.class, + "additionalProperties", additionalProperties, "compressionType", compressionType); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3CompressionType> compressionType; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder compressionType(DestinationS3CompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -108,7 +155,8 @@ public DestinationS3NoCompression build() { if (compressionType == null) { compressionType = _SINGLETON_VALUE_CompressionType.value(); } return new DestinationS3NoCompression( - compressionType); + compressionType) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3CompressionType>> _SINGLETON_VALUE_CompressionType = diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3OutputFormat.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3OutputFormat.java index 8d8b62f9d..20b98c362 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3OutputFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3OutputFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationS3OutputFormat - Format of the data output. See <a href="https://docs.airbyte.com/integrations/destinations/s3/#supported-output-schema">here</a> for more details */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3ParquetColumnarStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3ParquetColumnarStorage.java index 833f7e819..2117092a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3ParquetColumnarStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3ParquetColumnarStorage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; @@ -15,15 +16,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Boolean; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3ParquetColumnarStorage { + @JsonIgnore + private Map<String, Object> additionalProperties; + /** * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. */ @@ -86,6 +92,7 @@ public DestinationS3ParquetColumnarStorage( Utils.checkNotNull(formatType, "formatType"); Utils.checkNotNull(maxPaddingSizeMb, "maxPaddingSizeMb"); Utils.checkNotNull(pageSizeKb, "pageSizeKb"); + this.additionalProperties = new HashMap<>(); this.blockSizeMb = blockSizeMb; this.compressionCodec = compressionCodec; this.dictionaryEncoding = dictionaryEncoding; @@ -99,6 +106,11 @@ public DestinationS3ParquetColumnarStorage() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + /** * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. */ @@ -158,6 +170,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3ParquetColumnarStorage withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3ParquetColumnarStorage withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. */ @@ -288,6 +314,7 @@ public boolean equals(java.lang.Object o) { } DestinationS3ParquetColumnarStorage other = (DestinationS3ParquetColumnarStorage) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.blockSizeMb, other.blockSizeMb) && Objects.deepEquals(this.compressionCodec, other.compressionCodec) && Objects.deepEquals(this.dictionaryEncoding, other.dictionaryEncoding) && @@ -300,6 +327,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, blockSizeMb, compressionCodec, dictionaryEncoding, @@ -312,6 +340,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(DestinationS3ParquetColumnarStorage.class, + "additionalProperties", additionalProperties, "blockSizeMb", blockSizeMb, "compressionCodec", compressionCodec, "dictionaryEncoding", dictionaryEncoding, @@ -323,11 +352,13 @@ public String toString() { public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<Long> blockSizeMb; private Optional<? extends DestinationS3SchemasCompressionCodec> compressionCodec; - private Optional<Boolean> dictionaryEncoding; + private Optional<Boolean> dictionaryEncoding = Optional.empty(); private Optional<Long> dictionaryPageSizeKb; @@ -341,6 +372,22 @@ private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. */ @@ -468,9 +515,6 @@ public DestinationS3ParquetColumnarStorage build() { if (compressionCodec == null) { compressionCodec = _SINGLETON_VALUE_CompressionCodec.value(); } - if (dictionaryEncoding == null) { - dictionaryEncoding = _SINGLETON_VALUE_DictionaryEncoding.value(); - } if (dictionaryPageSizeKb == null) { dictionaryPageSizeKb = _SINGLETON_VALUE_DictionaryPageSizeKb.value(); } @@ -489,7 +533,8 @@ public DestinationS3ParquetColumnarStorage build() { dictionaryPageSizeKb, formatType, maxPaddingSizeMb, - pageSizeKb); + pageSizeKb) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_BlockSizeMb = @@ -504,12 +549,6 @@ public DestinationS3ParquetColumnarStorage build() { "\"UNCOMPRESSED\"", new TypeReference<Optional<? extends DestinationS3SchemasCompressionCodec>>() {}); - private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_DictionaryEncoding = - new LazySingletonValue<>( - "dictionary_encoding", - "true", - new TypeReference<Optional<Boolean>>() {}); - private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_DictionaryPageSizeKb = new LazySingletonValue<>( "dictionary_page_size_kb", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java index 38a43d7ca..d2f8fa91d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationS3S3BucketRegion - The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. */ @@ -56,4 +57,13 @@ private DestinationS3S3BucketRegion(String value) { public String value() { return value; } + + public static Optional<DestinationS3S3BucketRegion> fromValue(String value) { + for (DestinationS3S3BucketRegion o: DestinationS3S3BucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java index 8ba4bbbdb..a0f84851a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasCodec { DEFLATE("Deflate"); @@ -20,4 +21,13 @@ private DestinationS3SchemasCodec(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasCodec> fromValue(String value) { + for (DestinationS3SchemasCodec o: DestinationS3SchemasCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompression.java index 9c5476603..0c83bd846 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationS3SchemasCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java index da5cc4bcb..a189e9233 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationS3SchemasCompressionCodec - The compression algorithm used to compress data pages. */ @@ -29,4 +30,13 @@ private DestinationS3SchemasCompressionCodec(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasCompressionCodec> fromValue(String value) { + for (DestinationS3SchemasCompressionCodec o: DestinationS3SchemasCompressionCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java index 13341f078..c0a0776d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasCompressionType { GZIP("GZIP"); @@ -20,4 +21,13 @@ private DestinationS3SchemasCompressionType(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasCompressionType> fromValue(String value) { + for (DestinationS3SchemasCompressionType o: DestinationS3SchemasCompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java deleted file mode 100644 index a9d2ccf6e..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * DestinationS3SchemasFlattening - Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. - */ -public enum DestinationS3SchemasFlattening { - NO_FLATTENING("No flattening"), - ROOT_LEVEL_FLATTENING("Root level flattening"); - - @JsonValue - private final String value; - - private DestinationS3SchemasFlattening(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java index a43258387..5a28f0a17 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasFormatCodec { BZIP2("bzip2"); @@ -20,4 +21,13 @@ private DestinationS3SchemasFormatCodec(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasFormatCodec> fromValue(String value) { + for (DestinationS3SchemasFormatCodec o: DestinationS3SchemasFormatCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java index 43fc7ee72..642add3bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasFormatCompressionType { NO_COMPRESSION("No Compression"); @@ -20,4 +21,13 @@ private DestinationS3SchemasFormatCompressionType(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasFormatCompressionType> fromValue(String value) { + for (DestinationS3SchemasFormatCompressionType o: DestinationS3SchemasFormatCompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java index ba9368900..00fd33644 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasFormatFormatType { AVRO("Avro"); @@ -20,4 +21,13 @@ private DestinationS3SchemasFormatFormatType(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasFormatFormatType> fromValue(String value) { + for (DestinationS3SchemasFormatFormatType o: DestinationS3SchemasFormatFormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatNoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatNoCompression.java index 05b730f54..8cc76d56b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatNoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatNoCompression.java @@ -2,26 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3SchemasFormatNoCompression { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional<? extends DestinationS3Codec> codec; @@ -30,6 +36,7 @@ public class DestinationS3SchemasFormatNoCompression { public DestinationS3SchemasFormatNoCompression( @JsonProperty("codec") Optional<? extends DestinationS3Codec> codec) { Utils.checkNotNull(codec, "codec"); + this.additionalProperties = new HashMap<>(); this.codec = codec; } @@ -37,6 +44,11 @@ public DestinationS3SchemasFormatNoCompression() { this(Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional<DestinationS3Codec> codec() { @@ -47,6 +59,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3SchemasFormatNoCompression withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3SchemasFormatNoCompression withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3SchemasFormatNoCompression withCodec(DestinationS3Codec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -69,29 +95,50 @@ public boolean equals(java.lang.Object o) { } DestinationS3SchemasFormatNoCompression other = (DestinationS3SchemasFormatNoCompression) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.codec, other.codec); } @Override public int hashCode() { return Objects.hash( + additionalProperties, codec); } @Override public String toString() { return Utils.toString(DestinationS3SchemasFormatNoCompression.class, + "additionalProperties", additionalProperties, "codec", codec); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3Codec> codec; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder codec(DestinationS3Codec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -108,7 +155,8 @@ public DestinationS3SchemasFormatNoCompression build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); } return new DestinationS3SchemasFormatNoCompression( - codec); + codec) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3Codec>> _SINGLETON_VALUE_Codec = diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java index 05df3f3fc..6d2a3f6e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasFormatOutputFormat3Codec { ZSTANDARD("zstandard"); @@ -20,4 +21,13 @@ private DestinationS3SchemasFormatOutputFormat3Codec(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasFormatOutputFormat3Codec> fromValue(String value) { + for (DestinationS3SchemasFormatOutputFormat3Codec o: DestinationS3SchemasFormatOutputFormat3Codec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java index 70618c7f5..c01232001 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec { SNAPPY("snappy"); @@ -20,4 +21,13 @@ private DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec(String valu public String value() { return value; } + + public static Optional<DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec> fromValue(String value) { + for (DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec o: DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java index 1422c16a9..f3f2691cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasFormatOutputFormatCodec { XZ("xz"); @@ -20,4 +21,13 @@ private DestinationS3SchemasFormatOutputFormatCodec(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasFormatOutputFormatCodec> fromValue(String value) { + for (DestinationS3SchemasFormatOutputFormatCodec o: DestinationS3SchemasFormatOutputFormatCodec.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java index a71d1f641..d09338a87 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasFormatOutputFormatCompressionType { GZIP("GZIP"); @@ -20,4 +21,13 @@ private DestinationS3SchemasFormatOutputFormatCompressionType(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasFormatOutputFormatCompressionType> fromValue(String value) { + for (DestinationS3SchemasFormatOutputFormatCompressionType o: DestinationS3SchemasFormatOutputFormatCompressionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java index 63318b9e1..f00936ff7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasFormatOutputFormatFormatType { PARQUET("Parquet"); @@ -20,4 +21,13 @@ private DestinationS3SchemasFormatOutputFormatFormatType(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasFormatOutputFormatFormatType> fromValue(String value) { + for (DestinationS3SchemasFormatOutputFormatFormatType o: DestinationS3SchemasFormatOutputFormatFormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java index 671eb5925..c2b5de1d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationS3SchemasFormatType { JSONL("JSONL"); @@ -20,4 +21,13 @@ private DestinationS3SchemasFormatType(String value) { public String value() { return value; } + + public static Optional<DestinationS3SchemasFormatType> fromValue(String value) { + for (DestinationS3SchemasFormatType o: DestinationS3SchemasFormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasGZIP.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasGZIP.java index 13e3b7a75..b2dd9be36 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasGZIP.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasGZIP.java @@ -2,26 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3SchemasGZIP { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_type") private Optional<? extends DestinationS3SchemasFormatOutputFormatCompressionType> compressionType; @@ -30,6 +36,7 @@ public class DestinationS3SchemasGZIP { public DestinationS3SchemasGZIP( @JsonProperty("compression_type") Optional<? extends DestinationS3SchemasFormatOutputFormatCompressionType> compressionType) { Utils.checkNotNull(compressionType, "compressionType"); + this.additionalProperties = new HashMap<>(); this.compressionType = compressionType; } @@ -37,6 +44,11 @@ public DestinationS3SchemasGZIP() { this(Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional<DestinationS3SchemasFormatOutputFormatCompressionType> compressionType() { @@ -47,6 +59,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3SchemasGZIP withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3SchemasGZIP withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3SchemasGZIP withCompressionType(DestinationS3SchemasFormatOutputFormatCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -69,29 +95,50 @@ public boolean equals(java.lang.Object o) { } DestinationS3SchemasGZIP other = (DestinationS3SchemasGZIP) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { return Objects.hash( + additionalProperties, compressionType); } @Override public String toString() { return Utils.toString(DestinationS3SchemasGZIP.class, + "additionalProperties", additionalProperties, "compressionType", compressionType); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3SchemasFormatOutputFormatCompressionType> compressionType; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder compressionType(DestinationS3SchemasFormatOutputFormatCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -108,7 +155,8 @@ public DestinationS3SchemasGZIP build() { if (compressionType == null) { compressionType = _SINGLETON_VALUE_CompressionType.value(); } return new DestinationS3SchemasGZIP( - compressionType); + compressionType) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3SchemasFormatOutputFormatCompressionType>> _SINGLETON_VALUE_CompressionType = diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasNoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasNoCompression.java index 2bc606aab..7f0d1c6b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasNoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasNoCompression.java @@ -2,26 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3SchemasNoCompression { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_type") private Optional<? extends DestinationS3SchemasFormatCompressionType> compressionType; @@ -30,6 +36,7 @@ public class DestinationS3SchemasNoCompression { public DestinationS3SchemasNoCompression( @JsonProperty("compression_type") Optional<? extends DestinationS3SchemasFormatCompressionType> compressionType) { Utils.checkNotNull(compressionType, "compressionType"); + this.additionalProperties = new HashMap<>(); this.compressionType = compressionType; } @@ -37,6 +44,11 @@ public DestinationS3SchemasNoCompression() { this(Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional<DestinationS3SchemasFormatCompressionType> compressionType() { @@ -47,6 +59,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3SchemasNoCompression withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3SchemasNoCompression withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3SchemasNoCompression withCompressionType(DestinationS3SchemasFormatCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -69,29 +95,50 @@ public boolean equals(java.lang.Object o) { } DestinationS3SchemasNoCompression other = (DestinationS3SchemasNoCompression) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { return Objects.hash( + additionalProperties, compressionType); } @Override public String toString() { return Utils.toString(DestinationS3SchemasNoCompression.class, + "additionalProperties", additionalProperties, "compressionType", compressionType); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3SchemasFormatCompressionType> compressionType; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder compressionType(DestinationS3SchemasFormatCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -108,7 +155,8 @@ public DestinationS3SchemasNoCompression build() { if (compressionType == null) { compressionType = _SINGLETON_VALUE_CompressionType.value(); } return new DestinationS3SchemasNoCompression( - compressionType); + compressionType) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3SchemasFormatCompressionType>> _SINGLETON_VALUE_CompressionType = diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Snappy.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Snappy.java index eb4647d00..d4cb91bd7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Snappy.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Snappy.java @@ -2,26 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3Snappy { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional<? extends DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec> codec; @@ -30,6 +36,7 @@ public class DestinationS3Snappy { public DestinationS3Snappy( @JsonProperty("codec") Optional<? extends DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec> codec) { Utils.checkNotNull(codec, "codec"); + this.additionalProperties = new HashMap<>(); this.codec = codec; } @@ -37,6 +44,11 @@ public DestinationS3Snappy() { this(Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional<DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec> codec() { @@ -47,6 +59,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3Snappy withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3Snappy withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3Snappy withCodec(DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -69,29 +95,50 @@ public boolean equals(java.lang.Object o) { } DestinationS3Snappy other = (DestinationS3Snappy) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.codec, other.codec); } @Override public int hashCode() { return Objects.hash( + additionalProperties, codec); } @Override public String toString() { return Utils.toString(DestinationS3Snappy.class, + "additionalProperties", additionalProperties, "codec", codec); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec> codec; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder codec(DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -108,7 +155,8 @@ public DestinationS3Snappy build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); } return new DestinationS3Snappy( - codec); + codec) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec>> _SINGLETON_VALUE_Codec = diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Xz.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Xz.java index fa31e1666..6263df73d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Xz.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Xz.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; @@ -14,38 +15,46 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3Xz { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional<? extends DestinationS3SchemasFormatOutputFormatCodec> codec; - /** - * See <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. - */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_level") - private Optional<Long> compressionLevel; + private long compressionLevel; @JsonCreator public DestinationS3Xz( @JsonProperty("codec") Optional<? extends DestinationS3SchemasFormatOutputFormatCodec> codec, - @JsonProperty("compression_level") Optional<Long> compressionLevel) { + @JsonProperty("compression_level") long compressionLevel) { Utils.checkNotNull(codec, "codec"); Utils.checkNotNull(compressionLevel, "compressionLevel"); + this.additionalProperties = new HashMap<>(); this.codec = codec; this.compressionLevel = compressionLevel; } - public DestinationS3Xz() { - this(Optional.empty(), Optional.empty()); + public DestinationS3Xz( + long compressionLevel) { + this(Optional.empty(), compressionLevel); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } @SuppressWarnings("unchecked") @@ -54,11 +63,8 @@ public Optional<DestinationS3SchemasFormatOutputFormatCodec> codec() { return (Optional<DestinationS3SchemasFormatOutputFormatCodec>) codec; } - /** - * See <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. - */ @JsonIgnore - public Optional<Long> compressionLevel() { + public long compressionLevel() { return compressionLevel; } @@ -66,6 +72,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3Xz withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3Xz withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3Xz withCodec(DestinationS3SchemasFormatOutputFormatCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -78,19 +98,7 @@ public DestinationS3Xz withCodec(Optional<? extends DestinationS3SchemasFormatOu return this; } - /** - * See <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. - */ public DestinationS3Xz withCompressionLevel(long compressionLevel) { - Utils.checkNotNull(compressionLevel, "compressionLevel"); - this.compressionLevel = Optional.ofNullable(compressionLevel); - return this; - } - - /** - * See <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. - */ - public DestinationS3Xz withCompressionLevel(Optional<Long> compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); this.compressionLevel = compressionLevel; return this; @@ -106,6 +114,7 @@ public boolean equals(java.lang.Object o) { } DestinationS3Xz other = (DestinationS3Xz) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.codec, other.codec) && Objects.deepEquals(this.compressionLevel, other.compressionLevel); } @@ -113,6 +122,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, codec, compressionLevel); } @@ -120,20 +130,39 @@ public int hashCode() { @Override public String toString() { return Utils.toString(DestinationS3Xz.class, + "additionalProperties", additionalProperties, "codec", codec, "compressionLevel", compressionLevel); } public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3SchemasFormatOutputFormatCodec> codec; - private Optional<Long> compressionLevel; + private Long compressionLevel; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder codec(DestinationS3SchemasFormatOutputFormatCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -146,19 +175,7 @@ public Builder codec(Optional<? extends DestinationS3SchemasFormatOutputFormatCo return this; } - /** - * See <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. - */ public Builder compressionLevel(long compressionLevel) { - Utils.checkNotNull(compressionLevel, "compressionLevel"); - this.compressionLevel = Optional.ofNullable(compressionLevel); - return this; - } - - /** - * See <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. - */ - public Builder compressionLevel(Optional<Long> compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); this.compressionLevel = compressionLevel; return this; @@ -167,12 +184,10 @@ public Builder compressionLevel(Optional<Long> compressionLevel) { public DestinationS3Xz build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); - } - if (compressionLevel == null) { - compressionLevel = _SINGLETON_VALUE_CompressionLevel.value(); } return new DestinationS3Xz( codec, - compressionLevel); + compressionLevel) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3SchemasFormatOutputFormatCodec>> _SINGLETON_VALUE_Codec = @@ -180,12 +195,6 @@ public DestinationS3Xz build() { "codec", "\"xz\"", new TypeReference<Optional<? extends DestinationS3SchemasFormatOutputFormatCodec>>() {}); - - private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_CompressionLevel = - new LazySingletonValue<>( - "compression_level", - "6", - new TypeReference<Optional<Long>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Zstandard.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Zstandard.java index 85a4084f4..a7e7f04e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Zstandard.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Zstandard.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; @@ -15,48 +16,53 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Boolean; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - public class DestinationS3Zstandard { + @JsonIgnore + private Map<String, Object> additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional<? extends DestinationS3SchemasFormatOutputFormat3Codec> codec; - /** - * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory. - */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_level") - private Optional<Long> compressionLevel; + private long compressionLevel; - /** - * If true, include a checksum with each data block. - */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("include_checksum") - private Optional<Boolean> includeChecksum; + private boolean includeChecksum; @JsonCreator public DestinationS3Zstandard( @JsonProperty("codec") Optional<? extends DestinationS3SchemasFormatOutputFormat3Codec> codec, - @JsonProperty("compression_level") Optional<Long> compressionLevel, - @JsonProperty("include_checksum") Optional<Boolean> includeChecksum) { + @JsonProperty("compression_level") long compressionLevel, + @JsonProperty("include_checksum") boolean includeChecksum) { Utils.checkNotNull(codec, "codec"); Utils.checkNotNull(compressionLevel, "compressionLevel"); Utils.checkNotNull(includeChecksum, "includeChecksum"); + this.additionalProperties = new HashMap<>(); this.codec = codec; this.compressionLevel = compressionLevel; this.includeChecksum = includeChecksum; } - public DestinationS3Zstandard() { - this(Optional.empty(), Optional.empty(), Optional.empty()); + public DestinationS3Zstandard( + long compressionLevel, + boolean includeChecksum) { + this(Optional.empty(), compressionLevel, includeChecksum); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } @SuppressWarnings("unchecked") @@ -65,19 +71,13 @@ public Optional<DestinationS3SchemasFormatOutputFormat3Codec> codec() { return (Optional<DestinationS3SchemasFormatOutputFormat3Codec>) codec; } - /** - * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory. - */ @JsonIgnore - public Optional<Long> compressionLevel() { + public long compressionLevel() { return compressionLevel; } - /** - * If true, include a checksum with each data block. - */ @JsonIgnore - public Optional<Boolean> includeChecksum() { + public boolean includeChecksum() { return includeChecksum; } @@ -85,6 +85,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public DestinationS3Zstandard withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public DestinationS3Zstandard withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public DestinationS3Zstandard withCodec(DestinationS3SchemasFormatOutputFormat3Codec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -97,37 +111,13 @@ public DestinationS3Zstandard withCodec(Optional<? extends DestinationS3SchemasF return this; } - /** - * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory. - */ public DestinationS3Zstandard withCompressionLevel(long compressionLevel) { - Utils.checkNotNull(compressionLevel, "compressionLevel"); - this.compressionLevel = Optional.ofNullable(compressionLevel); - return this; - } - - /** - * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory. - */ - public DestinationS3Zstandard withCompressionLevel(Optional<Long> compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); this.compressionLevel = compressionLevel; return this; } - /** - * If true, include a checksum with each data block. - */ public DestinationS3Zstandard withIncludeChecksum(boolean includeChecksum) { - Utils.checkNotNull(includeChecksum, "includeChecksum"); - this.includeChecksum = Optional.ofNullable(includeChecksum); - return this; - } - - /** - * If true, include a checksum with each data block. - */ - public DestinationS3Zstandard withIncludeChecksum(Optional<Boolean> includeChecksum) { Utils.checkNotNull(includeChecksum, "includeChecksum"); this.includeChecksum = includeChecksum; return this; @@ -143,6 +133,7 @@ public boolean equals(java.lang.Object o) { } DestinationS3Zstandard other = (DestinationS3Zstandard) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.codec, other.codec) && Objects.deepEquals(this.compressionLevel, other.compressionLevel) && Objects.deepEquals(this.includeChecksum, other.includeChecksum); @@ -151,6 +142,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, codec, compressionLevel, includeChecksum); @@ -159,6 +151,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(DestinationS3Zstandard.class, + "additionalProperties", additionalProperties, "codec", codec, "compressionLevel", compressionLevel, "includeChecksum", includeChecksum); @@ -166,16 +159,34 @@ public String toString() { public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private Optional<? extends DestinationS3SchemasFormatOutputFormat3Codec> codec; - private Optional<Long> compressionLevel; + private Long compressionLevel; - private Optional<Boolean> includeChecksum; + private Boolean includeChecksum; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + public Builder codec(DestinationS3SchemasFormatOutputFormat3Codec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -188,37 +199,13 @@ public Builder codec(Optional<? extends DestinationS3SchemasFormatOutputFormat3C return this; } - /** - * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory. - */ public Builder compressionLevel(long compressionLevel) { - Utils.checkNotNull(compressionLevel, "compressionLevel"); - this.compressionLevel = Optional.ofNullable(compressionLevel); - return this; - } - - /** - * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory. - */ - public Builder compressionLevel(Optional<Long> compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); this.compressionLevel = compressionLevel; return this; } - /** - * If true, include a checksum with each data block. - */ public Builder includeChecksum(boolean includeChecksum) { - Utils.checkNotNull(includeChecksum, "includeChecksum"); - this.includeChecksum = Optional.ofNullable(includeChecksum); - return this; - } - - /** - * If true, include a checksum with each data block. - */ - public Builder includeChecksum(Optional<Boolean> includeChecksum) { Utils.checkNotNull(includeChecksum, "includeChecksum"); this.includeChecksum = includeChecksum; return this; @@ -227,16 +214,11 @@ public Builder includeChecksum(Optional<Boolean> includeChecksum) { public DestinationS3Zstandard build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); - } - if (compressionLevel == null) { - compressionLevel = _SINGLETON_VALUE_CompressionLevel.value(); - } - if (includeChecksum == null) { - includeChecksum = _SINGLETON_VALUE_IncludeChecksum.value(); } return new DestinationS3Zstandard( codec, compressionLevel, - includeChecksum); + includeChecksum) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<? extends DestinationS3SchemasFormatOutputFormat3Codec>> _SINGLETON_VALUE_Codec = @@ -244,18 +226,6 @@ public DestinationS3Zstandard build() { "codec", "\"zstandard\"", new TypeReference<Optional<? extends DestinationS3SchemasFormatOutputFormat3Codec>>() {}); - - private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_CompressionLevel = - new LazySingletonValue<>( - "compression_level", - "3", - new TypeReference<Optional<Long>>() {}); - - private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_IncludeChecksum = - new LazySingletonValue<>( - "include_checksum", - "false", - new TypeReference<Optional<Boolean>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.java b/src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.java index 1cbd3b90b..cbf0c4953 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationSftpJson { @JsonProperty("destinationType") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java index 6505368f8..58f677d11 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationSnowflake { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java index fe0f4e05d..0a4cd17cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeAuthType { KEY_PAIR_AUTHENTICATION("Key Pair Authentication"); @@ -20,4 +21,13 @@ private DestinationSnowflakeAuthType(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeAuthType> fromValue(String value) { + for (DestinationSnowflakeAuthType o: DestinationSnowflakeAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java index bceb8ca8c..f97c5d2e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * DestinationSnowflakeCortex - The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexAzureOpenAI.java index 3ef3a9429..cf8c3bee7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexAzureOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationSnowflakeCortexAzureOpenAI - Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByMarkdownHeader.java index 19a2da848..8443d7ccf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByMarkdownHeader.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationSnowflakeCortexByMarkdownHeader - Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByProgrammingLanguage.java index 0bff14179..7fd780683 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByProgrammingLanguage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationSnowflakeCortexByProgrammingLanguage - Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexBySeparator.java index 208425d31..30c2e9f65 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexBySeparator.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * DestinationSnowflakeCortexBySeparator - Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCohere.java index adae16386..bdea1d618 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCohere.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationSnowflakeCortexCohere - Use the Cohere API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCredentials.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCredentials.java index 55cb19c46..abf37088c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationSnowflakeCortexCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexEmbedding.java index 231c06028..b5c4a3c09 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexEmbedding.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationSnowflakeCortexEmbedding - Embedding configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFake.java index 9fc40005b..fd78d982b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationSnowflakeCortexFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.java index d73325ac4..2aeac1b19 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationSnowflakeCortexFieldNameMappingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java index 43b8d2638..dce70eb48 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationSnowflakeCortexLanguage - Split code in suitable places based on the programming language */ @@ -38,4 +39,13 @@ private DestinationSnowflakeCortexLanguage(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeCortexLanguage> fromValue(String value) { + for (DestinationSnowflakeCortexLanguage o: DestinationSnowflakeCortexLanguage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java index dd9a3e7b2..b20a05f67 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeCortexMode { OPENAI("openai"); @@ -20,4 +21,13 @@ private DestinationSnowflakeCortexMode(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeCortexMode> fromValue(String value) { + for (DestinationSnowflakeCortexMode o: DestinationSnowflakeCortexMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAI.java index 4ac54d73c..cfafd8cfb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationSnowflakeCortexOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAICompatible.java index f37f5d081..a64efa0a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAICompatible.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationSnowflakeCortexOpenAICompatible - Use a service that's compatible with the OpenAI API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexProcessingConfigModel.java index c3e493380..05a5f194c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexProcessingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationSnowflakeCortexProcessingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java index e9f5dd924..6945f44a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode { OPENAI_COMPATIBLE("openai_compatible"); @@ -20,4 +21,13 @@ private DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode> fromValue(String value) { + for (DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode o: DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java index 59ad6f006..628ccf178 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode { AZURE_OPENAI("azure_openai"); @@ -20,4 +21,13 @@ private DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode> fromValue(String value) { + for (DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode o: DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java index 58915a72e..151f49d2e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeCortexSchemasEmbeddingMode { FAKE("fake"); @@ -20,4 +21,13 @@ private DestinationSnowflakeCortexSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeCortexSchemasEmbeddingMode> fromValue(String value) { + for (DestinationSnowflakeCortexSchemasEmbeddingMode o: DestinationSnowflakeCortexSchemasEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java index 9df6149e2..6c0997cd7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeCortexSchemasMode { COHERE("cohere"); @@ -20,4 +21,13 @@ private DestinationSnowflakeCortexSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeCortexSchemasMode> fromValue(String value) { + for (DestinationSnowflakeCortexSchemasMode o: DestinationSnowflakeCortexSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java index 30afd8cf5..a57ce17f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeCortexSchemasProcessingMode { SEPARATOR("separator"); @@ -20,4 +21,13 @@ private DestinationSnowflakeCortexSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeCortexSchemasProcessingMode> fromValue(String value) { + for (DestinationSnowflakeCortexSchemasProcessingMode o: DestinationSnowflakeCortexSchemasProcessingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java index 18200d7be..cdaf00d53 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeCortexSchemasProcessingTextSplitterMode { MARKDOWN("markdown"); @@ -20,4 +21,13 @@ private DestinationSnowflakeCortexSchemasProcessingTextSplitterMode(String value public String value() { return value; } + + public static Optional<DestinationSnowflakeCortexSchemasProcessingTextSplitterMode> fromValue(String value) { + for (DestinationSnowflakeCortexSchemasProcessingTextSplitterMode o: DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java index b0e43a76b..44b34d125 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode { CODE("code"); @@ -20,4 +21,13 @@ private DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode( public String value() { return value; } + + public static Optional<DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode> fromValue(String value) { + for (DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode o: DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexTextSplitter.java index ed7e4cef1..3940ed066 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexTextSplitter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationSnowflakeCortexTextSplitter - Split text fields into chunks based on the specified method. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java index 46ba9a897..60bd57efb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationSnowflakeOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java index 3776bf283..30bb65f43 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeSchemasAuthType { USERNAME_AND_PASSWORD("Username and Password"); @@ -20,4 +21,13 @@ private DestinationSnowflakeSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeSchemasAuthType> fromValue(String value) { + for (DestinationSnowflakeSchemasAuthType o: DestinationSnowflakeSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java index dee214cf9..eea45db32 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeSchemasCredentialsAuthType { O_AUTH20("OAuth2.0"); @@ -20,4 +21,13 @@ private DestinationSnowflakeSchemasCredentialsAuthType(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeSchemasCredentialsAuthType> fromValue(String value) { + for (DestinationSnowflakeSchemasCredentialsAuthType o: DestinationSnowflakeSchemasCredentialsAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java index b4d0ae2a6..c289bbc17 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationSnowflakeSnowflake { SNOWFLAKE("snowflake"); @@ -20,4 +21,13 @@ private DestinationSnowflakeSnowflake(String value) { public String value() { return value; } + + public static Optional<DestinationSnowflakeSnowflake> fromValue(String value) { + for (DestinationSnowflakeSnowflake o: DestinationSnowflakeSnowflake.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java index 724bc2817..34fdd2449 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationTeradata { @JsonProperty("destinationType") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAllow.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAllow.java index f5e0e5c48..e65a8d50f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAllow.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAllow.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationTeradataAllow - Allow SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataDisable.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataDisable.java index 7c8932adb..75ef58899 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataDisable.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataDisable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationTeradataDisable - Disable SSL. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java index 965fd0050..56310f464 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationTeradataMode { DISABLE("disable"); @@ -20,4 +21,13 @@ private DestinationTeradataMode(String value) { public String value() { return value; } + + public static Optional<DestinationTeradataMode> fromValue(String value) { + for (DestinationTeradataMode o: DestinationTeradataMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataPrefer.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataPrefer.java index 7afd761b7..c73d9cb28 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataPrefer.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataPrefer.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationTeradataPrefer - Prefer SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataRequire.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataRequire.java index d33672a70..67be312bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataRequire.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataRequire.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationTeradataRequire - Require SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSSLModes.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSSLModes.java index edf653f5f..3140c5d3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSSLModes.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationTeradataSSLModes - SSL connection modes. * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java index c89511cb8..502bcf072 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationTeradataSchemasMode { ALLOW("allow"); @@ -20,4 +21,13 @@ private DestinationTeradataSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationTeradataSchemasMode> fromValue(String value) { + for (DestinationTeradataSchemasMode o: DestinationTeradataSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java index 55e93614d..18de1728f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationTeradataSchemasSSLModeSSLModes5Mode { VERIFY_CA("verify-ca"); @@ -20,4 +21,13 @@ private DestinationTeradataSchemasSSLModeSSLModes5Mode(String value) { public String value() { return value; } + + public static Optional<DestinationTeradataSchemasSSLModeSSLModes5Mode> fromValue(String value) { + for (DestinationTeradataSchemasSSLModeSSLModes5Mode o: DestinationTeradataSchemasSSLModeSSLModes5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java index 7a870e818..385df37b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationTeradataSchemasSSLModeSSLModes6Mode { VERIFY_FULL("verify-full"); @@ -20,4 +21,13 @@ private DestinationTeradataSchemasSSLModeSSLModes6Mode(String value) { public String value() { return value; } + + public static Optional<DestinationTeradataSchemasSSLModeSSLModes6Mode> fromValue(String value) { + for (DestinationTeradataSchemasSSLModeSSLModes6Mode o: DestinationTeradataSchemasSSLModeSSLModes6Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java index 93e52437c..c94784e9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationTeradataSchemasSSLModeSSLModesMode { REQUIRE("require"); @@ -20,4 +21,13 @@ private DestinationTeradataSchemasSSLModeSSLModesMode(String value) { public String value() { return value; } + + public static Optional<DestinationTeradataSchemasSSLModeSSLModesMode> fromValue(String value) { + for (DestinationTeradataSchemasSSLModeSSLModesMode o: DestinationTeradataSchemasSSLModeSSLModesMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java index e5dad5d25..003c02ca2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationTeradataSchemasSslModeMode { PREFER("prefer"); @@ -20,4 +21,13 @@ private DestinationTeradataSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional<DestinationTeradataSchemasSslModeMode> fromValue(String value) { + for (DestinationTeradataSchemasSslModeMode o: DestinationTeradataSchemasSslModeMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyCa.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyCa.java index 310b04c5a..5ea3a89da 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyCa.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationTeradataVerifyCa - Verify-ca SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyFull.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyFull.java index 08351a090..3660bf243 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyFull.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationTeradataVerifyFull - Verify-full SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java b/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java index e74d1289b..12d2a414a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationTimeplus { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java b/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java index 2bc76e815..0792381de 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationTypesense { /** @@ -52,7 +50,7 @@ public class DestinationTypesense { private Optional<String> path; /** - * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443 + * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 8108 */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") @@ -132,7 +130,7 @@ public Optional<String> path() { } /** - * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443 + * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 8108 */ @JsonIgnore public Optional<String> port() { @@ -206,7 +204,7 @@ public DestinationTypesense withPath(Optional<String> path) { } /** - * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443 + * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 8108 */ public DestinationTypesense withPort(String port) { Utils.checkNotNull(port, "port"); @@ -215,7 +213,7 @@ public DestinationTypesense withPort(String port) { } /** - * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443 + * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 8108 */ public DestinationTypesense withPort(Optional<String> port) { Utils.checkNotNull(port, "port"); @@ -357,7 +355,7 @@ public Builder path(Optional<String> path) { } /** - * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443 + * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 8108 */ public Builder port(String port) { Utils.checkNotNull(port, "port"); @@ -366,7 +364,7 @@ public Builder port(String port) { } /** - * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443 + * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 8108 */ public Builder port(Optional<String> port) { Utils.checkNotNull(port, "port"); diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationVectara.java b/src/main/java/com/airbyte/api/models/shared/DestinationVectara.java index 8484818e5..3b4c3c6cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationVectara.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationVectara.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * DestinationVectara - Configuration to connect to the Vectara instance */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviate.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviate.java index 55250a33d..731880028 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviate.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviate.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviate - The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAPIToken.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAPIToken.java index ef71932c4..99e71dcc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAPIToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateAPIToken - Authenticate using an API token (suitable for Weaviate Cloud) */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAuthentication.java index bb61b941a..29eb28d79 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationWeaviateAuthentication - Authentication method */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAzureOpenAI.java index 3621e9dc2..33e669c85 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAzureOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateAzureOpenAI - Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByMarkdownHeader.java index 06eca6ac9..2b9331fe9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByMarkdownHeader.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateByMarkdownHeader - Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByProgrammingLanguage.java index 4abe7e000..17cd1010a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByProgrammingLanguage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateByProgrammingLanguage - Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateBySeparator.java index e187c7566..f47ee66ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateBySeparator.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateBySeparator - Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateCohere.java index 48e65ed06..fb253066c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateCohere.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateCohere - Use the Cohere API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateEmbedding.java index cb8815053..c4f1d650c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateEmbedding.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationWeaviateEmbedding - Embedding configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFake.java index 44674370c..d253e3499 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFieldNameMappingConfigModel.java index 6d4ec67cb..66f4d46d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFieldNameMappingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationWeaviateFieldNameMappingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateIndexing.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateIndexing.java index d77b8c4fd..6f50474ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateIndexing.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateIndexing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateIndexing - Indexing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java index 5b8cb1e86..ee98ce2fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationWeaviateLanguage - Split code in suitable places based on the programming language */ @@ -38,4 +39,13 @@ private DestinationWeaviateLanguage(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateLanguage> fromValue(String value) { + for (DestinationWeaviateLanguage o: DestinationWeaviateLanguage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java index 3bc38a668..3da259472 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateMode { NO_EMBEDDING("no_embedding"); @@ -20,4 +21,13 @@ private DestinationWeaviateMode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateMode> fromValue(String value) { + for (DestinationWeaviateMode o: DestinationWeaviateMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAI.java index 528485b8f..38636f0c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAICompatible.java index 79c6f3ac7..074a10ea9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAICompatible.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateOpenAICompatible - Use a service that's compatible with the OpenAI API to embed text. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateProcessingConfigModel.java index e9c9a0126..6f895711d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateProcessingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationWeaviateProcessingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java index b0cc7f589..f5d7ea2e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasEmbeddingEmbedding5Mode { FROM_FIELD("from_field"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasEmbeddingEmbedding5Mode> fromValue(String value) { + for (DestinationWeaviateSchemasEmbeddingEmbedding5Mode o: DestinationWeaviateSchemasEmbeddingEmbedding5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java index 23a75b77e..eab690f75 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasEmbeddingEmbedding6Mode { FAKE("fake"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasEmbeddingEmbedding6Mode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasEmbeddingEmbedding6Mode> fromValue(String value) { + for (DestinationWeaviateSchemasEmbeddingEmbedding6Mode o: DestinationWeaviateSchemasEmbeddingEmbedding6Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java index 16ecd63c1..fe042e676 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasEmbeddingEmbedding7Mode { OPENAI_COMPATIBLE("openai_compatible"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasEmbeddingEmbedding7Mode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasEmbeddingEmbedding7Mode> fromValue(String value) { + for (DestinationWeaviateSchemasEmbeddingEmbedding7Mode o: DestinationWeaviateSchemasEmbeddingEmbedding7Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java index 7f6257031..27e85f628 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasEmbeddingEmbeddingMode { COHERE("cohere"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasEmbeddingEmbeddingMode> fromValue(String value) { + for (DestinationWeaviateSchemasEmbeddingEmbeddingMode o: DestinationWeaviateSchemasEmbeddingEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java index 65174efe0..dfc18a64f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasEmbeddingMode { OPENAI("openai"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasEmbeddingMode> fromValue(String value) { + for (DestinationWeaviateSchemasEmbeddingMode o: DestinationWeaviateSchemasEmbeddingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java index 6786face3..c621a8e35 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasIndexingAuthAuthenticationMode { NO_AUTH("no_auth"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasIndexingAuthAuthenticationMode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasIndexingAuthAuthenticationMode> fromValue(String value) { + for (DestinationWeaviateSchemasIndexingAuthAuthenticationMode o: DestinationWeaviateSchemasIndexingAuthAuthenticationMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java index 6e87bf444..f8b5752ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasIndexingAuthMode { USERNAME_PASSWORD("username_password"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasIndexingAuthMode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasIndexingAuthMode> fromValue(String value) { + for (DestinationWeaviateSchemasIndexingAuthMode o: DestinationWeaviateSchemasIndexingAuthMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java index 6afe7ecdd..92beb8889 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasIndexingMode { TOKEN("token"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasIndexingMode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasIndexingMode> fromValue(String value) { + for (DestinationWeaviateSchemasIndexingMode o: DestinationWeaviateSchemasIndexingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java index 169fe8358..420f80860 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasMode { AZURE_OPENAI("azure_openai"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasMode> fromValue(String value) { + for (DestinationWeaviateSchemasMode o: DestinationWeaviateSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java index 72463142a..908f25797 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasProcessingMode { SEPARATOR("separator"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasProcessingMode> fromValue(String value) { + for (DestinationWeaviateSchemasProcessingMode o: DestinationWeaviateSchemasProcessingMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java index 4f3f0f7b4..0342188e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasProcessingTextSplitterMode { MARKDOWN("markdown"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasProcessingTextSplitterMode> fromValue(String value) { + for (DestinationWeaviateSchemasProcessingTextSplitterMode o: DestinationWeaviateSchemasProcessingTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java index a89438304..060f047cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode { CODE("code"); @@ -20,4 +21,13 @@ private DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode(String public String value() { return value; } + + public static Optional<DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode> fromValue(String value) { + for (DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode o: DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateTextSplitter.java index 817053a1a..53a9e2b9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateTextSplitter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationWeaviateTextSplitter - Split text fields into chunks based on the specified method. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateUsernamePassword.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateUsernamePassword.java index 0dd071731..8ba783715 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateUsernamePassword.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateUsernamePassword.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationWeaviateUsernamePassword - Authenticate using username and password (suitable for self-managed Weaviate clusters) */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrick.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrick.java index b8617ab97..80429a1a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrick.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrick.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationYellowbrick { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickAllow.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickAllow.java index 81cbe26ef..207966741 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickAllow.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickAllow.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationYellowbrickAllow - Allow SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickDisable.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickDisable.java index 8f49c561b..76935f7fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickDisable.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickDisable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationYellowbrickDisable - Disable SSL. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java index 596ac9bc5..c07680675 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationYellowbrickMode { DISABLE("disable"); @@ -20,4 +21,13 @@ private DestinationYellowbrickMode(String value) { public String value() { return value; } + + public static Optional<DestinationYellowbrickMode> fromValue(String value) { + for (DestinationYellowbrickMode o: DestinationYellowbrickMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickNoTunnel.java index 8e2127171..8c6dfe9b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class DestinationYellowbrickNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPasswordAuthentication.java index 342e4a7c3..2cdf29364 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationYellowbrickPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPrefer.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPrefer.java index 77a636a3f..f3e10a9b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPrefer.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPrefer.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationYellowbrickPrefer - Prefer SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickRequire.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickRequire.java index 3cefe7f46..c75c5f21a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickRequire.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickRequire.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationYellowbrickRequire - Require SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHKeyAuthentication.java index 8c5010c83..66e433555 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationYellowbrickSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHTunnelMethod.java index 54f896518..452015b7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationYellowbrickSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSLModes.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSLModes.java index 5cd74dfdc..11b30a612 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSLModes.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DestinationYellowbrickSSLModes - SSL connection modes. * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java index f21b480b0..593efa677 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationYellowbrickSchemasMode { ALLOW("allow"); @@ -20,4 +21,13 @@ private DestinationYellowbrickSchemasMode(String value) { public String value() { return value; } + + public static Optional<DestinationYellowbrickSchemasMode> fromValue(String value) { + for (DestinationYellowbrickSchemasMode o: DestinationYellowbrickSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java index 70e2c058c..338a99972 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationYellowbrickSchemasSSLModeSSLModes5Mode { VERIFY_CA("verify-ca"); @@ -20,4 +21,13 @@ private DestinationYellowbrickSchemasSSLModeSSLModes5Mode(String value) { public String value() { return value; } + + public static Optional<DestinationYellowbrickSchemasSSLModeSSLModes5Mode> fromValue(String value) { + for (DestinationYellowbrickSchemasSSLModeSSLModes5Mode o: DestinationYellowbrickSchemasSSLModeSSLModes5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java index 6326c3205..7ee907ca7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationYellowbrickSchemasSSLModeSSLModes6Mode { VERIFY_FULL("verify-full"); @@ -20,4 +21,13 @@ private DestinationYellowbrickSchemasSSLModeSSLModes6Mode(String value) { public String value() { return value; } + + public static Optional<DestinationYellowbrickSchemasSSLModeSSLModes6Mode> fromValue(String value) { + for (DestinationYellowbrickSchemasSSLModeSSLModes6Mode o: DestinationYellowbrickSchemasSSLModeSSLModes6Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java index 6928419d8..6e29dee39 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationYellowbrickSchemasSSLModeSSLModesMode { REQUIRE("require"); @@ -20,4 +21,13 @@ private DestinationYellowbrickSchemasSSLModeSSLModesMode(String value) { public String value() { return value; } + + public static Optional<DestinationYellowbrickSchemasSSLModeSSLModesMode> fromValue(String value) { + for (DestinationYellowbrickSchemasSSLModeSSLModesMode o: DestinationYellowbrickSchemasSSLModeSSLModesMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java index 7d5bca5ba..20a7699e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DestinationYellowbrickSchemasSslModeMode { PREFER("prefer"); @@ -20,4 +21,13 @@ private DestinationYellowbrickSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional<DestinationYellowbrickSchemasSslModeMode> fromValue(String value) { + for (DestinationYellowbrickSchemasSslModeMode o: DestinationYellowbrickSchemasSslModeMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java index fbdab32f1..208eace55 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationYellowbrickSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private DestinationYellowbrickSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationYellowbrickSchemasTunnelMethod> fromValue(String value) { + for (DestinationYellowbrickSchemasTunnelMethod o: DestinationYellowbrickSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java index 67171e525..1e2f94bbb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationYellowbrickSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private DestinationYellowbrickSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationYellowbrickSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (DestinationYellowbrickSchemasTunnelMethodTunnelMethod o: DestinationYellowbrickSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java index 5b7f80ae8..d93c149b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DestinationYellowbrickTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private DestinationYellowbrickTunnelMethod(String value) { public String value() { return value; } + + public static Optional<DestinationYellowbrickTunnelMethod> fromValue(String value) { + for (DestinationYellowbrickTunnelMethod o: DestinationYellowbrickTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyCa.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyCa.java index 70d2b139b..8cf35d10c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyCa.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationYellowbrickVerifyCa - Verify-ca SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyFull.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyFull.java index 37eec8c9a..0027f6e63 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyFull.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DestinationYellowbrickVerifyFull - Verify-full SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationsResponse.java b/src/main/java/com/airbyte/api/models/shared/DestinationsResponse.java index 02ace5d25..fbd17bc04 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class DestinationsResponse { @JsonProperty("data") diff --git a/src/main/java/com/airbyte/api/models/shared/DetailType.java b/src/main/java/com/airbyte/api/models/shared/DetailType.java index f61ea87c7..281fe6e2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DetailType.java +++ b/src/main/java/com/airbyte/api/models/shared/DetailType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DetailType - Select the granularity of the information about each item. */ @@ -24,4 +25,13 @@ private DetailType(String value) { public String value() { return value; } + + public static Optional<DetailType> fromValue(String value) { + for (DetailType o: DetailType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java b/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java index 33ae69737..a46b4531d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java +++ b/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * DetectChangesWithXminSystemColumn - <i>Recommended</i> - Incrementally reads new inserts and updates via Postgres <a href="https://docs.airbyte.com/integrations/sources/postgres/#xmin">Xmin system column</a>. Suitable for databases that have low transaction pressure. */ diff --git a/src/main/java/com/airbyte/api/models/shared/DevNull.java b/src/main/java/com/airbyte/api/models/shared/DevNull.java index ce5f87778..131108dce 100644 --- a/src/main/java/com/airbyte/api/models/shared/DevNull.java +++ b/src/main/java/com/airbyte/api/models/shared/DevNull.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DevNull { DEV_NULL("dev-null"); @@ -20,4 +21,13 @@ private DevNull(String value) { public String value() { return value; } + + public static Optional<DevNull> fromValue(String value) { + for (DevNull o: DevNull.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Dimension.java b/src/main/java/com/airbyte/api/models/shared/Dimension.java index df8208e4a..0fb07476d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dimension.java +++ b/src/main/java/com/airbyte/api/models/shared/Dimension.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Dimension - Dimension used by the cohort. Required and only supports `firstSessionDate` */ @@ -23,4 +24,13 @@ private Dimension(String value) { public String value() { return value; } + + public static Optional<Dimension> fromValue(String value) { + for (Dimension o: Dimension.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DimensionsFilter.java b/src/main/java/com/airbyte/api/models/shared/DimensionsFilter.java index 4a2cb48be..fa59e46fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DimensionsFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/DimensionsFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * DimensionsFilter - Dimensions filter */ diff --git a/src/main/java/com/airbyte/api/models/shared/Disable.java b/src/main/java/com/airbyte/api/models/shared/Disable.java index 956ed4c62..a0fdc991a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Disable.java +++ b/src/main/java/com/airbyte/api/models/shared/Disable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * Disable - Disable SSL. */ @@ -27,7 +25,7 @@ public class Disable { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationPostgresSchemasSSLModeSSLModes1Mode> mode; + private Optional<? extends DestinationPostgresMode> mode; @JsonCreator public Disable() { @@ -37,8 +35,8 @@ public Disable() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationPostgresSchemasSSLModeSSLModes1Mode> mode() { - return (Optional<DestinationPostgresSchemasSSLModeSSLModes1Mode>) mode; + public Optional<DestinationPostgresMode> mode() { + return (Optional<DestinationPostgresMode>) mode; } public final static Builder builder() { @@ -81,11 +79,11 @@ public Disable build() { ); } - private static final LazySingletonValue<Optional<? extends DestinationPostgresSchemasSSLModeSSLModes1Mode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationPostgresMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"disable\"", - new TypeReference<Optional<? extends DestinationPostgresSchemasSSLModeSSLModes1Mode>>() {}); + new TypeReference<Optional<? extends DestinationPostgresMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Disabled.java b/src/main/java/com/airbyte/api/models/shared/Disabled.java index 7f34af328..f5d492581 100644 --- a/src/main/java/com/airbyte/api/models/shared/Disabled.java +++ b/src/main/java/com/airbyte/api/models/shared/Disabled.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,11 +14,10 @@ import java.lang.String; import java.util.Objects; - public class Disabled { @JsonProperty("deletion_mode") - private SourceFaunaDeletionMode deletionMode; + private SourceFaunaSchemasDeletionMode deletionMode; @JsonCreator public Disabled() { @@ -28,7 +26,7 @@ public Disabled() { } @JsonIgnore - public SourceFaunaDeletionMode deletionMode() { + public SourceFaunaSchemasDeletionMode deletionMode() { return deletionMode; } @@ -72,11 +70,11 @@ public Disabled build() { ); } - private static final LazySingletonValue<SourceFaunaDeletionMode> _SINGLETON_VALUE_DeletionMode = + private static final LazySingletonValue<SourceFaunaSchemasDeletionMode> _SINGLETON_VALUE_DeletionMode = new LazySingletonValue<>( "deletion_mode", "\"ignore\"", - new TypeReference<SourceFaunaDeletionMode>() {}); + new TypeReference<SourceFaunaSchemasDeletionMode>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java b/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java index 766cb640f..54d217d48 100644 --- a/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java +++ b/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DistanceMetric - The Distance metric used to measure similarities among vectors. This field is only used if the collection defined in the does not exist yet and is created automatically by the connector. */ @@ -25,4 +26,13 @@ private DistanceMetric(String value) { public String value() { return value; } + + public static Optional<DistanceMetric> fromValue(String value) { + for (DistanceMetric o: DistanceMetric.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Dixa.java b/src/main/java/com/airbyte/api/models/shared/Dixa.java index 3b83cf989..de2932880 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dixa.java +++ b/src/main/java/com/airbyte/api/models/shared/Dixa.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Dixa { DIXA("dixa"); @@ -20,4 +21,13 @@ private Dixa(String value) { public String value() { return value; } + + public static Optional<Dixa> fromValue(String value) { + for (Dixa o: Dixa.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Dockerhub.java b/src/main/java/com/airbyte/api/models/shared/Dockerhub.java index c6e7850f3..3a80b8e00 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dockerhub.java +++ b/src/main/java/com/airbyte/api/models/shared/Dockerhub.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Dockerhub { DOCKERHUB("dockerhub"); @@ -20,4 +21,13 @@ private Dockerhub(String value) { public String value() { return value; } + + public static Optional<Dockerhub> fromValue(String value) { + for (Dockerhub o: Dockerhub.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DocumentFileTypeFormatExperimental.java b/src/main/java/com/airbyte/api/models/shared/DocumentFileTypeFormatExperimental.java index 724665e28..1434645bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DocumentFileTypeFormatExperimental.java +++ b/src/main/java/com/airbyte/api/models/shared/DocumentFileTypeFormatExperimental.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * DocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Domain.java b/src/main/java/com/airbyte/api/models/shared/Domain.java index c25cf1347..e18bc5801 100644 --- a/src/main/java/com/airbyte/api/models/shared/Domain.java +++ b/src/main/java/com/airbyte/api/models/shared/Domain.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Domain - The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', 'in', etc.) */ @@ -30,4 +31,13 @@ private Domain(String value) { public String value() { return value; } + + public static Optional<Domain> fromValue(String value) { + for (Domain o: Domain.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java b/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java index c3766ee3a..3751eb7b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java +++ b/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DomainRegionCode - Domain region code. 'EU' or 'US' are possible values. The default is 'US'. */ @@ -24,4 +25,13 @@ private DomainRegionCode(String value) { public String value() { return value; } + + public static Optional<DomainRegionCode> fromValue(String value) { + for (DomainRegionCode o: DomainRegionCode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/DoubleValue.java index a86f58d15..1a269348a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/DoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class DoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/Dremio.java b/src/main/java/com/airbyte/api/models/shared/Dremio.java index 12df5e83c..54cd2ee2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dremio.java +++ b/src/main/java/com/airbyte/api/models/shared/Dremio.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Dremio { DREMIO("dremio"); @@ -20,4 +21,13 @@ private Dremio(String value) { public String value() { return value; } + + public static Optional<Dremio> fromValue(String value) { + for (Dremio o: Dremio.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Drift.java b/src/main/java/com/airbyte/api/models/shared/Drift.java index 4a1c67b92..01db293f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Drift.java +++ b/src/main/java/com/airbyte/api/models/shared/Drift.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Drift { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/DriftCredentials.java b/src/main/java/com/airbyte/api/models/shared/DriftCredentials.java index bbe5c8ec1..f0fc5bd1f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DriftCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/DriftCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class DriftCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Drip.java b/src/main/java/com/airbyte/api/models/shared/Drip.java index b7da95bec..cdebb4adc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Drip.java +++ b/src/main/java/com/airbyte/api/models/shared/Drip.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Drip { DRIP("drip"); @@ -20,4 +21,13 @@ private Drip(String value) { public String value() { return value; } + + public static Optional<Drip> fromValue(String value) { + for (Drip o: Drip.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DropboxSign.java b/src/main/java/com/airbyte/api/models/shared/DropboxSign.java index e3ba63885..24dc26d69 100644 --- a/src/main/java/com/airbyte/api/models/shared/DropboxSign.java +++ b/src/main/java/com/airbyte/api/models/shared/DropboxSign.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum DropboxSign { DROPBOX_SIGN("dropbox-sign"); @@ -20,4 +21,13 @@ private DropboxSign(String value) { public String value() { return value; } + + public static Optional<DropboxSign> fromValue(String value) { + for (DropboxSign o: DropboxSign.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Duckdb.java b/src/main/java/com/airbyte/api/models/shared/Duckdb.java index d72307d14..5ee71f016 100644 --- a/src/main/java/com/airbyte/api/models/shared/Duckdb.java +++ b/src/main/java/com/airbyte/api/models/shared/Duckdb.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Duckdb { DUCKDB("duckdb"); @@ -20,4 +21,13 @@ private Duckdb(String value) { public String value() { return value; } + + public static Optional<Duckdb> fromValue(String value) { + for (Duckdb o: Duckdb.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java b/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java index e77a34333..1a9498477 100644 --- a/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * DynamoDBRegion - The region of the DynamoDB. */ @@ -56,4 +57,13 @@ private DynamoDBRegion(String value) { public String value() { return value; } + + public static Optional<DynamoDBRegion> fromValue(String value) { + for (DynamoDBRegion o: DynamoDBRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Dynamodb.java b/src/main/java/com/airbyte/api/models/shared/Dynamodb.java index f6b4775a1..33ae13316 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/Dynamodb.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Dynamodb { DYNAMODB("dynamodb"); @@ -20,4 +21,13 @@ private Dynamodb(String value) { public String value() { return value; } + + public static Optional<Dynamodb> fromValue(String value) { + for (Dynamodb o: Dynamodb.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/EConomic.java b/src/main/java/com/airbyte/api/models/shared/EConomic.java index 4029b815f..7490e79fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/EConomic.java +++ b/src/main/java/com/airbyte/api/models/shared/EConomic.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum EConomic { E_CONOMIC("e-conomic"); @@ -20,4 +21,13 @@ private EConomic(String value) { public String value() { return value; } + + public static Optional<EConomic> fromValue(String value) { + for (EConomic o: EConomic.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/EUBasedAccount.java b/src/main/java/com/airbyte/api/models/shared/EUBasedAccount.java index ae4398f80..4260a23d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/EUBasedAccount.java +++ b/src/main/java/com/airbyte/api/models/shared/EUBasedAccount.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class EUBasedAccount { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/Easypost.java b/src/main/java/com/airbyte/api/models/shared/Easypost.java index 17717bdad..a09c81e2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Easypost.java +++ b/src/main/java/com/airbyte/api/models/shared/Easypost.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Easypost { EASYPOST("easypost"); @@ -20,4 +21,13 @@ private Easypost(String value) { public String value() { return value; } + + public static Optional<Easypost> fromValue(String value) { + for (Easypost o: Easypost.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Easypromos.java b/src/main/java/com/airbyte/api/models/shared/Easypromos.java index b033da5a0..30dc8647a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Easypromos.java +++ b/src/main/java/com/airbyte/api/models/shared/Easypromos.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Easypromos { EASYPROMOS("easypromos"); @@ -20,4 +21,13 @@ private Easypromos(String value) { public String value() { return value; } + + public static Optional<Easypromos> fromValue(String value) { + for (Easypromos o: Easypromos.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Elasticemail.java b/src/main/java/com/airbyte/api/models/shared/Elasticemail.java index fed270cd7..6523e62cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Elasticemail.java +++ b/src/main/java/com/airbyte/api/models/shared/Elasticemail.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Elasticemail { ELASTICEMAIL("elasticemail"); @@ -20,4 +21,13 @@ private Elasticemail(String value) { public String value() { return value; } + + public static Optional<Elasticemail> fromValue(String value) { + for (Elasticemail o: Elasticemail.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java b/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java index 3475d2b92..b8e0ad1dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java +++ b/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Elasticsearch { ELASTICSEARCH("elasticsearch"); @@ -20,4 +21,13 @@ private Elasticsearch(String value) { public String value() { return value; } + + public static Optional<Elasticsearch> fromValue(String value) { + for (Elasticsearch o: Elasticsearch.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/EmailNotificationConfig.java b/src/main/java/com/airbyte/api/models/shared/EmailNotificationConfig.java new file mode 100644 index 000000000..d23b3fd39 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/EmailNotificationConfig.java @@ -0,0 +1,111 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * EmailNotificationConfig - Configures an email notification. + */ + +public class EmailNotificationConfig { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("enabled") + private Optional<Boolean> enabled; + + @JsonCreator + public EmailNotificationConfig( + @JsonProperty("enabled") Optional<Boolean> enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + } + + public EmailNotificationConfig() { + this(Optional.empty()); + } + + @JsonIgnore + public Optional<Boolean> enabled() { + return enabled; + } + + public final static Builder builder() { + return new Builder(); + } + + public EmailNotificationConfig withEnabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EmailNotificationConfig withEnabled(Optional<Boolean> enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmailNotificationConfig other = (EmailNotificationConfig) o; + return + Objects.deepEquals(this.enabled, other.enabled); + } + + @Override + public int hashCode() { + return Objects.hash( + enabled); + } + + @Override + public String toString() { + return Utils.toString(EmailNotificationConfig.class, + "enabled", enabled); + } + + public final static class Builder { + + private Optional<Boolean> enabled = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder enabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public Builder enabled(Optional<Boolean> enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + public EmailNotificationConfig build() { + return new EmailNotificationConfig( + enabled); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java b/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java index 80160009d..86b6bcd90 100644 --- a/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java +++ b/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Emailoctopus { EMAILOCTOPUS("emailoctopus"); @@ -20,4 +21,13 @@ private Emailoctopus(String value) { public String value() { return value; } + + public static Optional<Emailoctopus> fromValue(String value) { + for (Emailoctopus o: Emailoctopus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Embedding.java b/src/main/java/com/airbyte/api/models/shared/Embedding.java index 272e162e0..a5e8732b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Embedding.java +++ b/src/main/java/com/airbyte/api/models/shared/Embedding.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * Embedding - Embedding configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java b/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java index 2f4a2a2fb..e0e7fbe2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java +++ b/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum EmploymentHero { EMPLOYMENT_HERO("employment-hero"); @@ -20,4 +21,13 @@ private EmploymentHero(String value) { public String value() { return value; } + + public static Optional<EmploymentHero> fromValue(String value) { + for (EmploymentHero o: EmploymentHero.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Enabled.java b/src/main/java/com/airbyte/api/models/shared/Enabled.java index af937cf9e..23c5b6653 100644 --- a/src/main/java/com/airbyte/api/models/shared/Enabled.java +++ b/src/main/java/com/airbyte/api/models/shared/Enabled.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class Enabled { /** @@ -29,7 +27,7 @@ public class Enabled { private Optional<String> column; @JsonProperty("deletion_mode") - private SourceFaunaSchemasDeletionMode deletionMode; + private SourceFaunaDeletionMode deletionMode; @JsonCreator public Enabled( @@ -52,7 +50,7 @@ public Optional<String> column() { } @JsonIgnore - public SourceFaunaSchemasDeletionMode deletionMode() { + public SourceFaunaDeletionMode deletionMode() { return deletionMode; } @@ -145,11 +143,11 @@ public Enabled build() { "\"deleted_at\"", new TypeReference<Optional<String>>() {}); - private static final LazySingletonValue<SourceFaunaSchemasDeletionMode> _SINGLETON_VALUE_DeletionMode = + private static final LazySingletonValue<SourceFaunaDeletionMode> _SINGLETON_VALUE_DeletionMode = new LazySingletonValue<>( "deletion_mode", "\"deleted_field\"", - new TypeReference<SourceFaunaSchemasDeletionMode>() {}); + new TypeReference<SourceFaunaDeletionMode>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Encharge.java b/src/main/java/com/airbyte/api/models/shared/Encharge.java index 0ba2d9289..aeb0fdcd5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Encharge.java +++ b/src/main/java/com/airbyte/api/models/shared/Encharge.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Encharge { ENCHARGE("encharge"); @@ -20,4 +21,13 @@ private Encharge(String value) { public String value() { return value; } + + public static Optional<Encharge> fromValue(String value) { + for (Encharge o: Encharge.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptedTrustServerCertificate.java b/src/main/java/com/airbyte/api/models/shared/EncryptedTrustServerCertificate.java index 286705037..e0cb8ceb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptedTrustServerCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptedTrustServerCertificate.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * EncryptedTrustServerCertificate - Use the certificate provided by the server without verification. (For testing purposes only!) */ @@ -27,7 +25,7 @@ public class EncryptedTrustServerCertificate { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_method") - private Optional<? extends DestinationMssqlSchemasSslMethod> sslMethod; + private Optional<? extends DestinationMssqlSslMethod> sslMethod; @JsonCreator public EncryptedTrustServerCertificate() { @@ -37,8 +35,8 @@ public EncryptedTrustServerCertificate() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationMssqlSchemasSslMethod> sslMethod() { - return (Optional<DestinationMssqlSchemasSslMethod>) sslMethod; + public Optional<DestinationMssqlSslMethod> sslMethod() { + return (Optional<DestinationMssqlSslMethod>) sslMethod; } public final static Builder builder() { @@ -81,11 +79,11 @@ public EncryptedTrustServerCertificate build() { ); } - private static final LazySingletonValue<Optional<? extends DestinationMssqlSchemasSslMethod>> _SINGLETON_VALUE_SslMethod = + private static final LazySingletonValue<Optional<? extends DestinationMssqlSslMethod>> _SINGLETON_VALUE_SslMethod = new LazySingletonValue<>( "ssl_method", "\"encrypted_trust_server_certificate\"", - new TypeReference<Optional<? extends DestinationMssqlSchemasSslMethod>>() {}); + new TypeReference<Optional<? extends DestinationMssqlSslMethod>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/EncryptedVerifyCertificate.java index b7afc3952..efaa3ac8f 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptedVerifyCertificate.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * EncryptedVerifyCertificate - Verify and use the certificate provided by the server. */ @@ -34,7 +32,7 @@ public class EncryptedVerifyCertificate { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_method") - private Optional<? extends DestinationMssqlSchemasSslMethodSslMethod> sslMethod; + private Optional<? extends DestinationMssqlSchemasSslMethod> sslMethod; @JsonCreator public EncryptedVerifyCertificate( @@ -58,8 +56,8 @@ public Optional<String> hostNameInCertificate() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationMssqlSchemasSslMethodSslMethod> sslMethod() { - return (Optional<DestinationMssqlSchemasSslMethodSslMethod>) sslMethod; + public Optional<DestinationMssqlSchemasSslMethod> sslMethod() { + return (Optional<DestinationMssqlSchemasSslMethod>) sslMethod; } public final static Builder builder() { @@ -143,11 +141,11 @@ public EncryptedVerifyCertificate build() { hostNameInCertificate); } - private static final LazySingletonValue<Optional<? extends DestinationMssqlSchemasSslMethodSslMethod>> _SINGLETON_VALUE_SslMethod = + private static final LazySingletonValue<Optional<? extends DestinationMssqlSchemasSslMethod>> _SINGLETON_VALUE_SslMethod = new LazySingletonValue<>( "ssl_method", "\"encrypted_verify_certificate\"", - new TypeReference<Optional<? extends DestinationMssqlSchemasSslMethodSslMethod>>() {}); + new TypeReference<Optional<? extends DestinationMssqlSchemasSslMethod>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Encryption.java b/src/main/java/com/airbyte/api/models/shared/Encryption.java index 0032dab79..e77951451 100644 --- a/src/main/java/com/airbyte/api/models/shared/Encryption.java +++ b/src/main/java/com/airbyte/api/models/shared/Encryption.java @@ -2,106 +2,21 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.OneOfDeserializer; -import com.airbyte.api.utils.TypedObject; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils.TypeReferenceWithShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.lang.Override; +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonSubTypes.Type; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; - -/** - * Encryption - The encryption method which is used when communicating with the database. - */ - -@JsonDeserialize(using = Encryption._Deserializer.class) -public class Encryption { - - @JsonValue - private TypedObject value; - - private Encryption(TypedObject value) { - this.value = value; - } - - public static Encryption of(DestinationOracleUnencrypted value) { - Utils.checkNotNull(value, "value"); - return new Encryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DestinationOracleUnencrypted>(){})); - } - public static Encryption of(NativeNetworkEncryptionNNE value) { - Utils.checkNotNull(value, "value"); - return new Encryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<NativeNetworkEncryptionNNE>(){})); - } +@JsonTypeInfo(use = Id.NAME, property = "algorithm", include = As.EXISTING_PROPERTY, visible = true) +@JsonSubTypes({ + @Type(value = EncryptionRSA.class, name="RSA"), + @Type(value = EncryptionAES.class, name="AES")}) +public interface Encryption { - public static Encryption of(TLSEncryptedVerifyCertificate value) { - Utils.checkNotNull(value, "value"); - return new Encryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<TLSEncryptedVerifyCertificate>(){})); - } - - /** - * Returns an instance of one of these types: - * <ul> - * <li>{@code com.airbyte.api.models.shared.DestinationOracleUnencrypted}</li> - * <li>{@code com.airbyte.api.models.shared.NativeNetworkEncryptionNNE}</li> - * <li>{@code com.airbyte.api.models.shared.TLSEncryptedVerifyCertificate}</li> - * </ul> - * - * <p>Use {@code instanceof} to determine what type is returned. For example: - * - * <pre> - * if (obj.value() instanceof String) { - * String answer = (String) obj.value(); - * System.out.println("answer=" + answer); - * } - * </pre> - * - * @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; - } - Encryption other = (Encryption) o; - return Objects.deepEquals(this.value.value(), other.value.value()); - } - - @Override - public int hashCode() { - return Objects.hash(value.value()); - } - - @SuppressWarnings("serial") - public static final class _Deserializer extends OneOfDeserializer<Encryption> { + String algorithm(); - public _Deserializer() { - super(Encryption.class, false, - TypeReferenceWithShape.of(new TypeReference<TLSEncryptedVerifyCertificate>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<NativeNetworkEncryptionNNE>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<DestinationOracleUnencrypted>() {}, JsonShape.DEFAULT)); - } - } - - @Override - public String toString() { - return Utils.toString(Encryption.class, - "value", value); - } - } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionAES.java b/src/main/java/com/airbyte/api/models/shared/EncryptionAES.java new file mode 100644 index 000000000..ae17c8610 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionAES.java @@ -0,0 +1,233 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class EncryptionAES implements Encryption { + + @JsonProperty("algorithm") + private EncryptionMapperAlgorithm algorithm; + + @JsonProperty("fieldNameSuffix") + private String fieldNameSuffix; + + @JsonProperty("key") + private String key; + + @JsonProperty("mode") + private Mode mode; + + @JsonProperty("padding") + private Padding padding; + + @JsonProperty("targetField") + private String targetField; + + @JsonCreator + public EncryptionAES( + @JsonProperty("algorithm") EncryptionMapperAlgorithm algorithm, + @JsonProperty("fieldNameSuffix") String fieldNameSuffix, + @JsonProperty("key") String key, + @JsonProperty("mode") Mode mode, + @JsonProperty("padding") Padding padding, + @JsonProperty("targetField") String targetField) { + Utils.checkNotNull(algorithm, "algorithm"); + Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); + Utils.checkNotNull(key, "key"); + Utils.checkNotNull(mode, "mode"); + Utils.checkNotNull(padding, "padding"); + Utils.checkNotNull(targetField, "targetField"); + this.algorithm = algorithm; + this.fieldNameSuffix = fieldNameSuffix; + this.key = key; + this.mode = mode; + this.padding = padding; + this.targetField = targetField; + } + + @JsonIgnore + @Override + public String algorithm() { + return Utils.discriminatorToString(algorithm); + } + + @JsonIgnore + public String fieldNameSuffix() { + return fieldNameSuffix; + } + + @JsonIgnore + public String key() { + return key; + } + + @JsonIgnore + public Mode mode() { + return mode; + } + + @JsonIgnore + public Padding padding() { + return padding; + } + + @JsonIgnore + public String targetField() { + return targetField; + } + + public final static Builder builder() { + return new Builder(); + } + + public EncryptionAES withAlgorithm(EncryptionMapperAlgorithm algorithm) { + Utils.checkNotNull(algorithm, "algorithm"); + this.algorithm = algorithm; + return this; + } + + public EncryptionAES withFieldNameSuffix(String fieldNameSuffix) { + Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); + this.fieldNameSuffix = fieldNameSuffix; + return this; + } + + public EncryptionAES withKey(String key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + public EncryptionAES withMode(Mode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + public EncryptionAES withPadding(Padding padding) { + Utils.checkNotNull(padding, "padding"); + this.padding = padding; + return this; + } + + public EncryptionAES withTargetField(String targetField) { + Utils.checkNotNull(targetField, "targetField"); + this.targetField = targetField; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EncryptionAES other = (EncryptionAES) o; + return + Objects.deepEquals(this.algorithm, other.algorithm) && + Objects.deepEquals(this.fieldNameSuffix, other.fieldNameSuffix) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.mode, other.mode) && + Objects.deepEquals(this.padding, other.padding) && + Objects.deepEquals(this.targetField, other.targetField); + } + + @Override + public int hashCode() { + return Objects.hash( + algorithm, + fieldNameSuffix, + key, + mode, + padding, + targetField); + } + + @Override + public String toString() { + return Utils.toString(EncryptionAES.class, + "algorithm", algorithm, + "fieldNameSuffix", fieldNameSuffix, + "key", key, + "mode", mode, + "padding", padding, + "targetField", targetField); + } + + public final static class Builder { + + private EncryptionMapperAlgorithm algorithm; + + private String fieldNameSuffix; + + private String key; + + private Mode mode; + + private Padding padding; + + private String targetField; + + private Builder() { + // force use of static builder() method + } + + public Builder algorithm(EncryptionMapperAlgorithm algorithm) { + Utils.checkNotNull(algorithm, "algorithm"); + this.algorithm = algorithm; + return this; + } + + public Builder fieldNameSuffix(String fieldNameSuffix) { + Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); + this.fieldNameSuffix = fieldNameSuffix; + return this; + } + + public Builder key(String key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + public Builder mode(Mode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + public Builder padding(Padding padding) { + Utils.checkNotNull(padding, "padding"); + this.padding = padding; + return this; + } + + public Builder targetField(String targetField) { + Utils.checkNotNull(targetField, "targetField"); + this.targetField = targetField; + return this; + } + + public EncryptionAES build() { + return new EncryptionAES( + algorithm, + fieldNameSuffix, + key, + mode, + padding, + targetField); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java b/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java index 408fa8140..11dc46199 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * EncryptionAlgorithm - This parameter defines the database encryption algorithm. */ @@ -25,4 +26,13 @@ private EncryptionAlgorithm(String value) { public String value() { return value; } + + public static Optional<EncryptionAlgorithm> fromValue(String value) { + for (EncryptionAlgorithm o: EncryptionAlgorithm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.java b/src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.java new file mode 100644 index 000000000..0fa159e04 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum EncryptionMapperAlgorithm { + RSA("RSA"), + AES("AES"); + + @JsonValue + private final String value; + + private EncryptionMapperAlgorithm(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<EncryptionMapperAlgorithm> fromValue(String value) { + for (EncryptionMapperAlgorithm o: EncryptionMapperAlgorithm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java index 671072abd..517d4aafd 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum EncryptionMethod { UNENCRYPTED("unencrypted"); @@ -20,4 +21,13 @@ private EncryptionMethod(String value) { public String value() { return value; } + + public static Optional<EncryptionMethod> fromValue(String value) { + for (EncryptionMethod o: EncryptionMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionRSA.java b/src/main/java/com/airbyte/api/models/shared/EncryptionRSA.java new file mode 100644 index 000000000..0842d74d8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionRSA.java @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class EncryptionRSA implements Encryption { + + @JsonProperty("algorithm") + private EncryptionMapperAlgorithm algorithm; + + @JsonProperty("fieldNameSuffix") + private String fieldNameSuffix; + + @JsonProperty("publicKey") + private String publicKey; + + @JsonProperty("targetField") + private String targetField; + + @JsonCreator + public EncryptionRSA( + @JsonProperty("algorithm") EncryptionMapperAlgorithm algorithm, + @JsonProperty("fieldNameSuffix") String fieldNameSuffix, + @JsonProperty("publicKey") String publicKey, + @JsonProperty("targetField") String targetField) { + Utils.checkNotNull(algorithm, "algorithm"); + Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); + Utils.checkNotNull(publicKey, "publicKey"); + Utils.checkNotNull(targetField, "targetField"); + this.algorithm = algorithm; + this.fieldNameSuffix = fieldNameSuffix; + this.publicKey = publicKey; + this.targetField = targetField; + } + + @JsonIgnore + @Override + public String algorithm() { + return Utils.discriminatorToString(algorithm); + } + + @JsonIgnore + public String fieldNameSuffix() { + return fieldNameSuffix; + } + + @JsonIgnore + public String publicKey() { + return publicKey; + } + + @JsonIgnore + public String targetField() { + return targetField; + } + + public final static Builder builder() { + return new Builder(); + } + + public EncryptionRSA withAlgorithm(EncryptionMapperAlgorithm algorithm) { + Utils.checkNotNull(algorithm, "algorithm"); + this.algorithm = algorithm; + return this; + } + + public EncryptionRSA withFieldNameSuffix(String fieldNameSuffix) { + Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); + this.fieldNameSuffix = fieldNameSuffix; + return this; + } + + public EncryptionRSA withPublicKey(String publicKey) { + Utils.checkNotNull(publicKey, "publicKey"); + this.publicKey = publicKey; + return this; + } + + public EncryptionRSA withTargetField(String targetField) { + Utils.checkNotNull(targetField, "targetField"); + this.targetField = targetField; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EncryptionRSA other = (EncryptionRSA) o; + return + Objects.deepEquals(this.algorithm, other.algorithm) && + Objects.deepEquals(this.fieldNameSuffix, other.fieldNameSuffix) && + Objects.deepEquals(this.publicKey, other.publicKey) && + Objects.deepEquals(this.targetField, other.targetField); + } + + @Override + public int hashCode() { + return Objects.hash( + algorithm, + fieldNameSuffix, + publicKey, + targetField); + } + + @Override + public String toString() { + return Utils.toString(EncryptionRSA.class, + "algorithm", algorithm, + "fieldNameSuffix", fieldNameSuffix, + "publicKey", publicKey, + "targetField", targetField); + } + + public final static class Builder { + + private EncryptionMapperAlgorithm algorithm; + + private String fieldNameSuffix; + + private String publicKey; + + private String targetField; + + private Builder() { + // force use of static builder() method + } + + public Builder algorithm(EncryptionMapperAlgorithm algorithm) { + Utils.checkNotNull(algorithm, "algorithm"); + this.algorithm = algorithm; + return this; + } + + public Builder fieldNameSuffix(String fieldNameSuffix) { + Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); + this.fieldNameSuffix = fieldNameSuffix; + return this; + } + + public Builder publicKey(String publicKey) { + Utils.checkNotNull(publicKey, "publicKey"); + this.publicKey = publicKey; + return this; + } + + public Builder targetField(String targetField) { + Utils.checkNotNull(targetField, "targetField"); + this.targetField = targetField; + return this; + } + + public EncryptionRSA build() { + return new EncryptionRSA( + algorithm, + fieldNameSuffix, + publicKey, + targetField); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java b/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java index 83f75453e..e5d7e2688 100644 --- a/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java +++ b/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; - +import java.util.Objects; +import java.util.Optional; /** * EngagementWindowDays - Number of days to use as the conversion attribution window for an engagement action. */ @@ -27,4 +28,13 @@ private EngagementWindowDays(long value) { public long value() { return value; } + + public static Optional<EngagementWindowDays> fromValue(long value) { + for (EngagementWindowDays o: EngagementWindowDays.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Enterprise.java b/src/main/java/com/airbyte/api/models/shared/Enterprise.java index 639678c75..994410357 100644 --- a/src/main/java/com/airbyte/api/models/shared/Enterprise.java +++ b/src/main/java/com/airbyte/api/models/shared/Enterprise.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,12 +18,11 @@ import java.util.Objects; import java.util.Optional; - public class Enterprise { @JsonInclude(Include.NON_ABSENT) @JsonProperty("api_endpoint") - private Optional<? extends SourceJotformSchemasApiEndpoint> apiEndpoint; + private Optional<? extends SourceJotformApiEndpoint> apiEndpoint; /** * Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com @@ -42,8 +40,8 @@ public Enterprise( @SuppressWarnings("unchecked") @JsonIgnore - public Optional<SourceJotformSchemasApiEndpoint> apiEndpoint() { - return (Optional<SourceJotformSchemasApiEndpoint>) apiEndpoint; + public Optional<SourceJotformApiEndpoint> apiEndpoint() { + return (Optional<SourceJotformApiEndpoint>) apiEndpoint; } /** @@ -117,11 +115,11 @@ public Enterprise build() { enterpriseUrl); } - private static final LazySingletonValue<Optional<? extends SourceJotformSchemasApiEndpoint>> _SINGLETON_VALUE_ApiEndpoint = + private static final LazySingletonValue<Optional<? extends SourceJotformApiEndpoint>> _SINGLETON_VALUE_ApiEndpoint = new LazySingletonValue<>( "api_endpoint", "\"enterprise\"", - new TypeReference<Optional<? extends SourceJotformSchemasApiEndpoint>>() {}); + new TypeReference<Optional<? extends SourceJotformApiEndpoint>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Entity.java b/src/main/java/com/airbyte/api/models/shared/Entity.java index ad4c93b9c..a717c8d47 100644 --- a/src/main/java/com/airbyte/api/models/shared/Entity.java +++ b/src/main/java/com/airbyte/api/models/shared/Entity.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Entity { PARTIES("parties"), OPPORTUNITIES("opportunities"), @@ -22,4 +23,13 @@ private Entity(String value) { public String value() { return value; } + + public static Optional<Entity> fromValue(String value) { + for (Entity o: Entity.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Environment.java b/src/main/java/com/airbyte/api/models/shared/Environment.java index 01df28351..fef9fb9ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/Environment.java +++ b/src/main/java/com/airbyte/api/models/shared/Environment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Environment - The environment to use. Either sandbox or production. * @@ -25,4 +26,13 @@ private Environment(String value) { public String value() { return value; } + + public static Optional<Environment> fromValue(String value) { + for (Environment o: Environment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Equal.java b/src/main/java/com/airbyte/api/models/shared/Equal.java new file mode 100644 index 000000000..be74c7565 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Equal.java @@ -0,0 +1,170 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class Equal implements RowFilteringOperation { + + /** + * The value to compare the field against. + */ + @JsonProperty("comparisonValue") + private String comparisonValue; + + /** + * The name of the field to apply the operation on. + */ + @JsonProperty("fieldName") + private String fieldName; + + @JsonProperty("type") + private RowFilteringOperationType type; + + @JsonCreator + public Equal( + @JsonProperty("comparisonValue") String comparisonValue, + @JsonProperty("fieldName") String fieldName, + @JsonProperty("type") RowFilteringOperationType type) { + Utils.checkNotNull(comparisonValue, "comparisonValue"); + Utils.checkNotNull(fieldName, "fieldName"); + Utils.checkNotNull(type, "type"); + this.comparisonValue = comparisonValue; + this.fieldName = fieldName; + this.type = type; + } + + /** + * The value to compare the field against. + */ + @JsonIgnore + public String comparisonValue() { + return comparisonValue; + } + + /** + * The name of the field to apply the operation on. + */ + @JsonIgnore + public String fieldName() { + return fieldName; + } + + @JsonIgnore + @Override + public String type() { + return Utils.discriminatorToString(type); + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The value to compare the field against. + */ + public Equal withComparisonValue(String comparisonValue) { + Utils.checkNotNull(comparisonValue, "comparisonValue"); + this.comparisonValue = comparisonValue; + return this; + } + + /** + * The name of the field to apply the operation on. + */ + public Equal withFieldName(String fieldName) { + Utils.checkNotNull(fieldName, "fieldName"); + this.fieldName = fieldName; + return this; + } + + public Equal withType(RowFilteringOperationType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Equal other = (Equal) o; + return + Objects.deepEquals(this.comparisonValue, other.comparisonValue) && + Objects.deepEquals(this.fieldName, other.fieldName) && + Objects.deepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Objects.hash( + comparisonValue, + fieldName, + type); + } + + @Override + public String toString() { + return Utils.toString(Equal.class, + "comparisonValue", comparisonValue, + "fieldName", fieldName, + "type", type); + } + + public final static class Builder { + + private String comparisonValue; + + private String fieldName; + + private RowFilteringOperationType type; + + private Builder() { + // force use of static builder() method + } + + /** + * The value to compare the field against. + */ + public Builder comparisonValue(String comparisonValue) { + Utils.checkNotNull(comparisonValue, "comparisonValue"); + this.comparisonValue = comparisonValue; + return this; + } + + /** + * The name of the field to apply the operation on. + */ + public Builder fieldName(String fieldName) { + Utils.checkNotNull(fieldName, "fieldName"); + this.fieldName = fieldName; + return this; + } + + public Builder type(RowFilteringOperationType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public Equal build() { + return new Equal( + comparisonValue, + fieldName, + type); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Eventbrite.java b/src/main/java/com/airbyte/api/models/shared/Eventbrite.java index a54e4f80d..98734de11 100644 --- a/src/main/java/com/airbyte/api/models/shared/Eventbrite.java +++ b/src/main/java/com/airbyte/api/models/shared/Eventbrite.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Eventbrite { EVENTBRITE("eventbrite"); @@ -20,4 +21,13 @@ private Eventbrite(String value) { public String value() { return value; } + + public static Optional<Eventbrite> fromValue(String value) { + for (Eventbrite o: Eventbrite.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Eventee.java b/src/main/java/com/airbyte/api/models/shared/Eventee.java index c2ef6b71b..b31b044c0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Eventee.java +++ b/src/main/java/com/airbyte/api/models/shared/Eventee.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Eventee { EVENTEE("eventee"); @@ -20,4 +21,13 @@ private Eventee(String value) { public String value() { return value; } + + public static Optional<Eventee> fromValue(String value) { + for (Eventee o: Eventee.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Eventzilla.java b/src/main/java/com/airbyte/api/models/shared/Eventzilla.java index 83ecd5ba6..6fc74dbc5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Eventzilla.java +++ b/src/main/java/com/airbyte/api/models/shared/Eventzilla.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Eventzilla { EVENTZILLA("eventzilla"); @@ -20,4 +21,13 @@ private Eventzilla(String value) { public String value() { return value; } + + public static Optional<Eventzilla> fromValue(String value) { + for (Eventzilla o: Eventzilla.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Everhour.java b/src/main/java/com/airbyte/api/models/shared/Everhour.java new file mode 100644 index 000000000..1fca5acff --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Everhour.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Everhour { + EVERHOUR("everhour"); + + @JsonValue + private final String value; + + private Everhour(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Everhour> fromValue(String value) { + for (Everhour o: Everhour.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java b/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java index 3aed61d18..750d044a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java +++ b/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -25,7 +24,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; - /** * EveryNThEntry - For each stream, log every N-th entry with a maximum cap. */ diff --git a/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java index 861957c81..ffa4ed645 100644 --- a/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ExcelFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java b/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java index 89e531282..3c18ecf20 100644 --- a/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java +++ b/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ExchangeRates { EXCHANGE_RATES("exchange-rates"); @@ -20,4 +21,13 @@ private ExchangeRates(String value) { public String value() { return value; } + + public static Optional<ExchangeRates> fromValue(String value) { + for (ExchangeRates o: ExchangeRates.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Expression.java b/src/main/java/com/airbyte/api/models/shared/Expression.java index 1a659ad8d..6d51db945 100644 --- a/src/main/java/com/airbyte/api/models/shared/Expression.java +++ b/src/main/java/com/airbyte/api/models/shared/Expression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class Expression { @JsonProperty("field_name") diff --git a/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java b/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java index 935d9a9a7..6e8f71b6b 100644 --- a/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java +++ b/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class ExternalTableViaS3 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java b/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java index c77191166..e3d494471 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Ezofficeinventory { EZOFFICEINVENTORY("ezofficeinventory"); @@ -20,4 +21,13 @@ private Ezofficeinventory(String value) { public String value() { return value; } + + public static Optional<Ezofficeinventory> fromValue(String value) { + for (Ezofficeinventory o: Ezofficeinventory.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java b/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java index c1b9c99e0..ee7e1eac4 100644 --- a/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class FacebookMarketing { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java b/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java index 08d2bcd17..996f06b71 100644 --- a/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class FacebookMarketingCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Factorial.java b/src/main/java/com/airbyte/api/models/shared/Factorial.java index 47c520814..b0eeefcfb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Factorial.java +++ b/src/main/java/com/airbyte/api/models/shared/Factorial.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Factorial { FACTORIAL("factorial"); @@ -20,4 +21,13 @@ private Factorial(String value) { public String value() { return value; } + + public static Optional<Factorial> fromValue(String value) { + for (Factorial o: Factorial.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Failing.java b/src/main/java/com/airbyte/api/models/shared/Failing.java index 7cd6dc293..27d427d52 100644 --- a/src/main/java/com/airbyte/api/models/shared/Failing.java +++ b/src/main/java/com/airbyte/api/models/shared/Failing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -25,7 +24,6 @@ import java.util.Objects; import java.util.Optional; - public class Failing { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/Fake.java b/src/main/java/com/airbyte/api/models/shared/Fake.java index e9c615999..a9aeef1e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fake.java +++ b/src/main/java/com/airbyte/api/models/shared/Fake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * Fake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. */ @@ -27,7 +25,7 @@ public class Fake { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationAstraSchemasMode> mode; + private Optional<? extends DestinationAstraSchemasEmbeddingMode> mode; @JsonCreator public Fake() { @@ -37,8 +35,8 @@ public Fake() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationAstraSchemasMode> mode() { - return (Optional<DestinationAstraSchemasMode>) mode; + public Optional<DestinationAstraSchemasEmbeddingMode> mode() { + return (Optional<DestinationAstraSchemasEmbeddingMode>) mode; } public final static Builder builder() { @@ -81,11 +79,11 @@ public Fake build() { ); } - private static final LazySingletonValue<Optional<? extends DestinationAstraSchemasMode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationAstraSchemasEmbeddingMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"fake\"", - new TypeReference<Optional<? extends DestinationAstraSchemasMode>>() {}); + new TypeReference<Optional<? extends DestinationAstraSchemasEmbeddingMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Faker.java b/src/main/java/com/airbyte/api/models/shared/Faker.java index cb056bbf3..700b43b47 100644 --- a/src/main/java/com/airbyte/api/models/shared/Faker.java +++ b/src/main/java/com/airbyte/api/models/shared/Faker.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Faker { FAKER("faker"); @@ -20,4 +21,13 @@ private Faker(String value) { public String value() { return value; } + + public static Optional<Faker> fromValue(String value) { + for (Faker o: Faker.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Fastbill.java b/src/main/java/com/airbyte/api/models/shared/Fastbill.java new file mode 100644 index 000000000..bff40b048 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Fastbill.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Fastbill { + FASTBILL("fastbill"); + + @JsonValue + private final String value; + + private Fastbill(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Fastbill> fromValue(String value) { + for (Fastbill o: Fastbill.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Fauna.java b/src/main/java/com/airbyte/api/models/shared/Fauna.java index baefeaea7..11a196cfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fauna.java +++ b/src/main/java/com/airbyte/api/models/shared/Fauna.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Fauna { FAUNA("fauna"); @@ -20,4 +21,13 @@ private Fauna(String value) { public String value() { return value; } + + public static Optional<Fauna> fromValue(String value) { + for (Fauna o: Fauna.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java index ce4b86616..d26f05dd2 100644 --- a/src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class FieldNameMappingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/FieldRenaming.java b/src/main/java/com/airbyte/api/models/shared/FieldRenaming.java new file mode 100644 index 000000000..bff74f6e9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/FieldRenaming.java @@ -0,0 +1,140 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class FieldRenaming { + + /** + * The new name for the field after renaming. + */ + @JsonProperty("newFieldName") + private String newFieldName; + + /** + * The current name of the field to rename. + */ + @JsonProperty("originalFieldName") + private String originalFieldName; + + @JsonCreator + public FieldRenaming( + @JsonProperty("newFieldName") String newFieldName, + @JsonProperty("originalFieldName") String originalFieldName) { + Utils.checkNotNull(newFieldName, "newFieldName"); + Utils.checkNotNull(originalFieldName, "originalFieldName"); + this.newFieldName = newFieldName; + this.originalFieldName = originalFieldName; + } + + /** + * The new name for the field after renaming. + */ + @JsonIgnore + public String newFieldName() { + return newFieldName; + } + + /** + * The current name of the field to rename. + */ + @JsonIgnore + public String originalFieldName() { + return originalFieldName; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The new name for the field after renaming. + */ + public FieldRenaming withNewFieldName(String newFieldName) { + Utils.checkNotNull(newFieldName, "newFieldName"); + this.newFieldName = newFieldName; + return this; + } + + /** + * The current name of the field to rename. + */ + public FieldRenaming withOriginalFieldName(String originalFieldName) { + Utils.checkNotNull(originalFieldName, "originalFieldName"); + this.originalFieldName = originalFieldName; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FieldRenaming other = (FieldRenaming) o; + return + Objects.deepEquals(this.newFieldName, other.newFieldName) && + Objects.deepEquals(this.originalFieldName, other.originalFieldName); + } + + @Override + public int hashCode() { + return Objects.hash( + newFieldName, + originalFieldName); + } + + @Override + public String toString() { + return Utils.toString(FieldRenaming.class, + "newFieldName", newFieldName, + "originalFieldName", originalFieldName); + } + + public final static class Builder { + + private String newFieldName; + + private String originalFieldName; + + private Builder() { + // force use of static builder() method + } + + /** + * The new name for the field after renaming. + */ + public Builder newFieldName(String newFieldName) { + Utils.checkNotNull(newFieldName, "newFieldName"); + this.newFieldName = newFieldName; + return this; + } + + /** + * The current name of the field to rename. + */ + public Builder originalFieldName(String originalFieldName) { + Utils.checkNotNull(originalFieldName, "originalFieldName"); + this.originalFieldName = originalFieldName; + return this; + } + + public FieldRenaming build() { + return new FieldRenaming( + newFieldName, + originalFieldName); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/File.java b/src/main/java/com/airbyte/api/models/shared/File.java index 051bd859c..6a897d158 100644 --- a/src/main/java/com/airbyte/api/models/shared/File.java +++ b/src/main/java/com/airbyte/api/models/shared/File.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum File { FILE("file"); @@ -20,4 +21,13 @@ private File(String value) { public String value() { return value; } + + public static Optional<File> fromValue(String value) { + for (File o: File.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java index d94f57e00..a17cf09bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class FileBasedStreamConfig { /** diff --git a/src/main/java/com/airbyte/api/models/shared/FileFormat.java b/src/main/java/com/airbyte/api/models/shared/FileFormat.java index ab5bd3d30..91891ebb7 100644 --- a/src/main/java/com/airbyte/api/models/shared/FileFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/FileFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * FileFormat - File format of Iceberg storage. */ diff --git a/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java b/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java index 0334a314d..4dd4013c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum FileStorageFormat { PARQUET("Parquet"), AVRO("Avro"); @@ -21,4 +22,13 @@ private FileStorageFormat(String value) { public String value() { return value; } + + public static Optional<FileStorageFormat> fromValue(String value) { + for (FileStorageFormat o: FileStorageFormat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Filetype.java b/src/main/java/com/airbyte/api/models/shared/Filetype.java index bbdca97a4..71fb6d7b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/Filetype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Filetype { AVRO("avro"); @@ -20,4 +21,13 @@ private Filetype(String value) { public String value() { return value; } + + public static Optional<Filetype> fromValue(String value) { + for (Filetype o: Filetype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Fillout.java b/src/main/java/com/airbyte/api/models/shared/Fillout.java index f85913cf8..5647be413 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fillout.java +++ b/src/main/java/com/airbyte/api/models/shared/Fillout.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Fillout { FILLOUT("fillout"); @@ -20,4 +21,13 @@ private Fillout(String value) { public String value() { return value; } + + public static Optional<Fillout> fromValue(String value) { + for (Fillout o: Fillout.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Filter.java b/src/main/java/com/airbyte/api/models/shared/Filter.java index 096fb23c9..6edbf2a65 100644 --- a/src/main/java/com/airbyte/api/models/shared/Filter.java +++ b/src/main/java/com/airbyte/api/models/shared/Filter.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Filter - Filter for using in the `segments_experiences` stream */ @@ -25,4 +26,13 @@ private Filter(String value) { public String value() { return value; } + + public static Optional<Filter> fromValue(String value) { + for (Filter o: Filter.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java b/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java index 6af273f86..7cebdacd1 100644 --- a/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java +++ b/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/FilterName.java b/src/main/java/com/airbyte/api/models/shared/FilterName.java index 65ba73d56..447f29bb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/FilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum FilterName { STRING_FILTER("stringFilter"); @@ -20,4 +21,13 @@ private FilterName(String value) { public String value() { return value; } + + public static Optional<FilterName> fromValue(String value) { + for (FilterName o: FilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FilterType.java b/src/main/java/com/airbyte/api/models/shared/FilterType.java index 386b93e10..f85bdf3bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/FilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/FilterType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum FilterType { AND_GROUP("andGroup"); @@ -20,4 +21,13 @@ private FilterType(String value) { public String value() { return value; } + + public static Optional<FilterType> fromValue(String value) { + for (FilterType o: FilterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Finage.java b/src/main/java/com/airbyte/api/models/shared/Finage.java index f35d7a2a4..084101038 100644 --- a/src/main/java/com/airbyte/api/models/shared/Finage.java +++ b/src/main/java/com/airbyte/api/models/shared/Finage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Finage { FINAGE("finage"); @@ -20,4 +21,13 @@ private Finage(String value) { public String value() { return value; } + + public static Optional<Finage> fromValue(String value) { + for (Finage o: Finage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java b/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java index 0f6e6829c..bff03c569 100644 --- a/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java +++ b/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum FinancialModelling { FINANCIAL_MODELLING("financial-modelling"); @@ -20,4 +21,13 @@ private FinancialModelling(String value) { public String value() { return value; } + + public static Optional<FinancialModelling> fromValue(String value) { + for (FinancialModelling o: FinancialModelling.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Finnhub.java b/src/main/java/com/airbyte/api/models/shared/Finnhub.java index 8e5c538d4..485ffbe94 100644 --- a/src/main/java/com/airbyte/api/models/shared/Finnhub.java +++ b/src/main/java/com/airbyte/api/models/shared/Finnhub.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Finnhub { FINNHUB("finnhub"); @@ -20,4 +21,13 @@ private Finnhub(String value) { public String value() { return value; } + + public static Optional<Finnhub> fromValue(String value) { + for (Finnhub o: Finnhub.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Finnworlds.java b/src/main/java/com/airbyte/api/models/shared/Finnworlds.java index 0593b98aa..8b31231a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Finnworlds.java +++ b/src/main/java/com/airbyte/api/models/shared/Finnworlds.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Finnworlds { FINNWORLDS("finnworlds"); @@ -20,4 +21,13 @@ private Finnworlds(String value) { public String value() { return value; } + + public static Optional<Finnworlds> fromValue(String value) { + for (Finnworlds o: Finnworlds.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Firebolt.java b/src/main/java/com/airbyte/api/models/shared/Firebolt.java index 3625f5cd8..66dbc2b8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Firebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/Firebolt.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Firebolt { FIREBOLT("firebolt"); @@ -20,4 +21,13 @@ private Firebolt(String value) { public String value() { return value; } + + public static Optional<Firebolt> fromValue(String value) { + for (Firebolt o: Firebolt.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Firehydrant.java b/src/main/java/com/airbyte/api/models/shared/Firehydrant.java index 163c4141b..34b979656 100644 --- a/src/main/java/com/airbyte/api/models/shared/Firehydrant.java +++ b/src/main/java/com/airbyte/api/models/shared/Firehydrant.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Firehydrant { FIREHYDRANT("firehydrant"); @@ -20,4 +21,13 @@ private Firehydrant(String value) { public String value() { return value; } + + public static Optional<Firehydrant> fromValue(String value) { + for (Firehydrant o: Firehydrant.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Firestore.java b/src/main/java/com/airbyte/api/models/shared/Firestore.java index 7cf52b27a..1ff3e81d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Firestore.java +++ b/src/main/java/com/airbyte/api/models/shared/Firestore.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Firestore { FIRESTORE("firestore"); @@ -20,4 +21,13 @@ private Firestore(String value) { public String value() { return value; } + + public static Optional<Firestore> fromValue(String value) { + for (Firestore o: Firestore.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java b/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java index d8946f86e..0abdc03f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java +++ b/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; - /** * FirstNEntries - Log first N entries per stream. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Flattening.java b/src/main/java/com/airbyte/api/models/shared/Flattening.java index 8ee0448f7..2a44ecb8f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flattening.java +++ b/src/main/java/com/airbyte/api/models/shared/Flattening.java @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - -/** - * Flattening - Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. - */ +import java.util.Objects; +import java.util.Optional; public enum Flattening { NO_FLATTENING("No flattening"), ROOT_LEVEL_FLATTENING("Root level flattening"); @@ -24,4 +22,13 @@ private Flattening(String value) { public String value() { return value; } + + public static Optional<Flattening> fromValue(String value) { + for (Flattening o: Flattening.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Fleetio.java b/src/main/java/com/airbyte/api/models/shared/Fleetio.java index ce9b325e4..7dc8c3457 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fleetio.java +++ b/src/main/java/com/airbyte/api/models/shared/Fleetio.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Fleetio { FLEETIO("fleetio"); @@ -20,4 +21,13 @@ private Fleetio(String value) { public String value() { return value; } + + public static Optional<Fleetio> fromValue(String value) { + for (Fleetio o: Fleetio.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Flexmail.java b/src/main/java/com/airbyte/api/models/shared/Flexmail.java index e11a0a72b..35941e8c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flexmail.java +++ b/src/main/java/com/airbyte/api/models/shared/Flexmail.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Flexmail { FLEXMAIL("flexmail"); @@ -20,4 +21,13 @@ private Flexmail(String value) { public String value() { return value; } + + public static Optional<Flexmail> fromValue(String value) { + for (Flexmail o: Flexmail.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Flexport.java b/src/main/java/com/airbyte/api/models/shared/Flexport.java index 6948c8f4e..2885a713d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flexport.java +++ b/src/main/java/com/airbyte/api/models/shared/Flexport.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Flexport { FLEXPORT("flexport"); @@ -20,4 +21,13 @@ private Flexport(String value) { public String value() { return value; } + + public static Optional<Flexport> fromValue(String value) { + for (Flexport o: Flexport.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Float.java b/src/main/java/com/airbyte/api/models/shared/Float.java index aa2ddef10..6336c820c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Float.java +++ b/src/main/java/com/airbyte/api/models/shared/Float.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Float { FLOAT("float"); @@ -20,4 +21,13 @@ private Float(String value) { public String value() { return value; } + + public static Optional<Float> fromValue(String value) { + for (Float o: Float.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Flowlu.java b/src/main/java/com/airbyte/api/models/shared/Flowlu.java index 8b4066be3..c619edfb7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flowlu.java +++ b/src/main/java/com/airbyte/api/models/shared/Flowlu.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Flowlu { FLOWLU("flowlu"); @@ -20,4 +21,13 @@ private Flowlu(String value) { public String value() { return value; } + + public static Optional<Flowlu> fromValue(String value) { + for (Flowlu o: Flowlu.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Format.java b/src/main/java/com/airbyte/api/models/shared/Format.java index bc3e5d44c..d1c95f08e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Format.java +++ b/src/main/java/com/airbyte/api/models/shared/Format.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * Format - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. */ diff --git a/src/main/java/com/airbyte/api/models/shared/FormatType.java b/src/main/java/com/airbyte/api/models/shared/FormatType.java index 026e13a83..aae8ae586 100644 --- a/src/main/java/com/airbyte/api/models/shared/FormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/FormatType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum FormatType { CSV("CSV"); @@ -20,4 +21,13 @@ private FormatType(String value) { public String value() { return value; } + + public static Optional<FormatType> fromValue(String value) { + for (FormatType o: FormatType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java b/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java index c798f3a6f..00be9962f 100644 --- a/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum FormatTypeWildcard { JSONL("JSONL"); @@ -20,4 +21,13 @@ private FormatTypeWildcard(String value) { public String value() { return value; } + + public static Optional<FormatTypeWildcard> fromValue(String value) { + for (FormatTypeWildcard o: FormatTypeWildcard.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Formbricks.java b/src/main/java/com/airbyte/api/models/shared/Formbricks.java index 4bf54c3c5..b6b0e143b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Formbricks.java +++ b/src/main/java/com/airbyte/api/models/shared/Formbricks.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Formbricks { FORMBRICKS("formbricks"); @@ -20,4 +21,13 @@ private Formbricks(String value) { public String value() { return value; } + + public static Optional<Formbricks> fromValue(String value) { + for (Formbricks o: Formbricks.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java b/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java index 9009377fe..bb1ed104b 100644 --- a/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java +++ b/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum FreeAgentConnector { FREE_AGENT_CONNECTOR("free-agent-connector"); @@ -20,4 +21,13 @@ private FreeAgentConnector(String value) { public String value() { return value; } + + public static Optional<FreeAgentConnector> fromValue(String value) { + for (FreeAgentConnector o: FreeAgentConnector.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Freightview.java b/src/main/java/com/airbyte/api/models/shared/Freightview.java index 22f515ac3..212ddb14d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freightview.java +++ b/src/main/java/com/airbyte/api/models/shared/Freightview.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Freightview { FREIGHTVIEW("freightview"); @@ -20,4 +21,13 @@ private Freightview(String value) { public String value() { return value; } + + public static Optional<Freightview> fromValue(String value) { + for (Freightview o: Freightview.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshbooks.java b/src/main/java/com/airbyte/api/models/shared/Freshbooks.java index 83a2651f2..af9526d04 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshbooks.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Freshbooks { FRESHBOOKS("freshbooks"); @@ -20,4 +21,13 @@ private Freshbooks(String value) { public String value() { return value; } + + public static Optional<Freshbooks> fromValue(String value) { + for (Freshbooks o: Freshbooks.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshcaller.java b/src/main/java/com/airbyte/api/models/shared/Freshcaller.java index 29eed0029..414877bfa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshcaller.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshcaller.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Freshcaller { FRESHCALLER("freshcaller"); @@ -20,4 +21,13 @@ private Freshcaller(String value) { public String value() { return value; } + + public static Optional<Freshcaller> fromValue(String value) { + for (Freshcaller o: Freshcaller.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshchat.java b/src/main/java/com/airbyte/api/models/shared/Freshchat.java index 14a1c75d4..c9e621b9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshchat.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshchat.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Freshchat { FRESHCHAT("freshchat"); @@ -20,4 +21,13 @@ private Freshchat(String value) { public String value() { return value; } + + public static Optional<Freshchat> fromValue(String value) { + for (Freshchat o: Freshchat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshdesk.java b/src/main/java/com/airbyte/api/models/shared/Freshdesk.java index 4dd266455..63ae73752 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshdesk.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshdesk.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Freshdesk { FRESHDESK("freshdesk"); @@ -20,4 +21,13 @@ private Freshdesk(String value) { public String value() { return value; } + + public static Optional<Freshdesk> fromValue(String value) { + for (Freshdesk o: Freshdesk.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshsales.java b/src/main/java/com/airbyte/api/models/shared/Freshsales.java index cc786211a..a8300223b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshsales.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshsales.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Freshsales { FRESHSALES("freshsales"); @@ -20,4 +21,13 @@ private Freshsales(String value) { public String value() { return value; } + + public static Optional<Freshsales> fromValue(String value) { + for (Freshsales o: Freshsales.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshservice.java b/src/main/java/com/airbyte/api/models/shared/Freshservice.java index 576601ec8..932eccbab 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshservice.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshservice.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Freshservice { FRESHSERVICE("freshservice"); @@ -20,4 +21,13 @@ private Freshservice(String value) { public String value() { return value; } + + public static Optional<Freshservice> fromValue(String value) { + for (Freshservice o: Freshservice.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FromCSV.java b/src/main/java/com/airbyte/api/models/shared/FromCSV.java index d43672989..26772455c 100644 --- a/src/main/java/com/airbyte/api/models/shared/FromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/FromCSV.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class FromCSV { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/FromField.java b/src/main/java/com/airbyte/api/models/shared/FromField.java index 7d9222283..e4f2bda64 100644 --- a/src/main/java/com/airbyte/api/models/shared/FromField.java +++ b/src/main/java/com/airbyte/api/models/shared/FromField.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * FromField - Use a field in the record as the embedding. This is useful if you already have an embedding for your data and want to store it in the vector store. */ diff --git a/src/main/java/com/airbyte/api/models/shared/FromValue.java b/src/main/java/com/airbyte/api/models/shared/FromValue.java index 89fd60b52..4e1709823 100644 --- a/src/main/java/com/airbyte/api/models/shared/FromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/FromValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = FromValue._Deserializer.class) public class FromValue { diff --git a/src/main/java/com/airbyte/api/models/shared/Front.java b/src/main/java/com/airbyte/api/models/shared/Front.java index f97a54144..092647078 100644 --- a/src/main/java/com/airbyte/api/models/shared/Front.java +++ b/src/main/java/com/airbyte/api/models/shared/Front.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Front { FRONT("front"); @@ -20,4 +21,13 @@ private Front(String value) { public String value() { return value; } + + public static Optional<Front> fromValue(String value) { + for (Front o: Front.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Fulcrum.java b/src/main/java/com/airbyte/api/models/shared/Fulcrum.java index cb33e80ec..07cd7c97d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fulcrum.java +++ b/src/main/java/com/airbyte/api/models/shared/Fulcrum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Fulcrum { FULCRUM("fulcrum"); @@ -20,4 +21,13 @@ private Fulcrum(String value) { public String value() { return value; } + + public static Optional<Fulcrum> fromValue(String value) { + for (Fulcrum o: Fulcrum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Fullstory.java b/src/main/java/com/airbyte/api/models/shared/Fullstory.java new file mode 100644 index 000000000..0b63457db --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Fullstory.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Fullstory { + FULLSTORY("fullstory"); + + @JsonValue + private final String value; + + private Fullstory(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Fullstory> fromValue(String value) { + for (Fullstory o: Fullstory.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java b/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java index cc1c86a3d..b0d0b6ec8 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * GCSBucketRegion - Select a Region of the GCS Bucket. Read more <a href="https://cloud.google.com/storage/docs/locations">here</a>. */ @@ -57,4 +58,13 @@ private GCSBucketRegion(String value) { public String value() { return value; } + + public static Optional<GCSBucketRegion> fromValue(String value) { + for (GCSBucketRegion o: GCSBucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java b/src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java index 2e05807fd..efcbe4809 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class GCSGoogleCloudStorage { /** diff --git a/src/main/java/com/airbyte/api/models/shared/GCSStaging.java b/src/main/java/com/airbyte/api/models/shared/GCSStaging.java index 2779e28df..07f5fb152 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSStaging.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSStaging.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * GCSStaging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. */ diff --git a/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java b/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java index 5fe1b9be1..734877510 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * GCSTmpFilesAfterwardProcessing - This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. */ @@ -24,4 +25,13 @@ private GCSTmpFilesAfterwardProcessing(String value) { public String value() { return value; } + + public static Optional<GCSTmpFilesAfterwardProcessing> fromValue(String value) { + for (GCSTmpFilesAfterwardProcessing o: GCSTmpFilesAfterwardProcessing.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GainsightPx.java b/src/main/java/com/airbyte/api/models/shared/GainsightPx.java index ab1eaa092..685796f82 100644 --- a/src/main/java/com/airbyte/api/models/shared/GainsightPx.java +++ b/src/main/java/com/airbyte/api/models/shared/GainsightPx.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GainsightPx { GAINSIGHT_PX("gainsight-px"); @@ -20,4 +21,13 @@ private GainsightPx(String value) { public String value() { return value; } + + public static Optional<GainsightPx> fromValue(String value) { + for (GainsightPx o: GainsightPx.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Gcs.java b/src/main/java/com/airbyte/api/models/shared/Gcs.java index a259214c1..2908cd687 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gcs.java +++ b/src/main/java/com/airbyte/api/models/shared/Gcs.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Gcs { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/GcsCredentials.java b/src/main/java/com/airbyte/api/models/shared/GcsCredentials.java index 00632a3c2..059ed00ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/GcsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GcsCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class GcsCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/GeographyEnum.java b/src/main/java/com/airbyte/api/models/shared/GeographyEnum.java index 5ff189688..cc4abd1c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/GeographyEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/GeographyEnum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GeographyEnum { AUTO("auto"), US("us"), @@ -22,4 +23,13 @@ private GeographyEnum(String value) { public String value() { return value; } + + public static Optional<GeographyEnum> fromValue(String value) { + for (GeographyEnum o: GeographyEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GeographyEnumNoDefault.java b/src/main/java/com/airbyte/api/models/shared/GeographyEnumNoDefault.java index b3e75086c..3e72393e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/GeographyEnumNoDefault.java +++ b/src/main/java/com/airbyte/api/models/shared/GeographyEnumNoDefault.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GeographyEnumNoDefault { AUTO("auto"), US("us"), @@ -22,4 +23,13 @@ private GeographyEnumNoDefault(String value) { public String value() { return value; } + + public static Optional<GeographyEnumNoDefault> fromValue(String value) { + for (GeographyEnumNoDefault o: GeographyEnumNoDefault.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Getgist.java b/src/main/java/com/airbyte/api/models/shared/Getgist.java index e6dcfa81f..650665b4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Getgist.java +++ b/src/main/java/com/airbyte/api/models/shared/Getgist.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Getgist { GETGIST("getgist"); @@ -20,4 +21,13 @@ private Getgist(String value) { public String value() { return value; } + + public static Optional<Getgist> fromValue(String value) { + for (Getgist o: Getgist.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Getlago.java b/src/main/java/com/airbyte/api/models/shared/Getlago.java index 2c3a1e7cf..f21e63caf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Getlago.java +++ b/src/main/java/com/airbyte/api/models/shared/Getlago.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Getlago { GETLAGO("getlago"); @@ -20,4 +21,13 @@ private Getlago(String value) { public String value() { return value; } + + public static Optional<Getlago> fromValue(String value) { + for (Getlago o: Getlago.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Gitbook.java b/src/main/java/com/airbyte/api/models/shared/Gitbook.java index a5e2b60ca..247ddee1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gitbook.java +++ b/src/main/java/com/airbyte/api/models/shared/Gitbook.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Gitbook { GITBOOK("gitbook"); @@ -20,4 +21,13 @@ private Gitbook(String value) { public String value() { return value; } + + public static Optional<Gitbook> fromValue(String value) { + for (Gitbook o: Gitbook.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Github.java b/src/main/java/com/airbyte/api/models/shared/Github.java index f12671514..a4fe7ef93 100644 --- a/src/main/java/com/airbyte/api/models/shared/Github.java +++ b/src/main/java/com/airbyte/api/models/shared/Github.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Github { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/GithubCredentials.java b/src/main/java/com/airbyte/api/models/shared/GithubCredentials.java index d58ba5ec8..0f3941d89 100644 --- a/src/main/java/com/airbyte/api/models/shared/GithubCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GithubCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class GithubCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Gitlab.java b/src/main/java/com/airbyte/api/models/shared/Gitlab.java index 4d3432f05..76ccff551 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gitlab.java +++ b/src/main/java/com/airbyte/api/models/shared/Gitlab.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Gitlab { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/GitlabCredentials.java b/src/main/java/com/airbyte/api/models/shared/GitlabCredentials.java index 3e97f487a..fff0fabb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/GitlabCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GitlabCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class GitlabCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Glassfrog.java b/src/main/java/com/airbyte/api/models/shared/Glassfrog.java index 963b65d84..5f4411b27 100644 --- a/src/main/java/com/airbyte/api/models/shared/Glassfrog.java +++ b/src/main/java/com/airbyte/api/models/shared/Glassfrog.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Glassfrog { GLASSFROG("glassfrog"); @@ -20,4 +21,13 @@ private Glassfrog(String value) { public String value() { return value; } + + public static Optional<Glassfrog> fromValue(String value) { + for (Glassfrog o: Glassfrog.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GlobalAccount.java b/src/main/java/com/airbyte/api/models/shared/GlobalAccount.java index 51cdd019b..22aa73d68 100644 --- a/src/main/java/com/airbyte/api/models/shared/GlobalAccount.java +++ b/src/main/java/com/airbyte/api/models/shared/GlobalAccount.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class GlobalAccount { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java b/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java index 2c29fb7cd..2ed0b6875 100644 --- a/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java +++ b/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * GlueCatalog - The GlueCatalog connects to a AWS Glue Catalog */ diff --git a/src/main/java/com/airbyte/api/models/shared/Gmail.java b/src/main/java/com/airbyte/api/models/shared/Gmail.java index d7274ba7e..37e405fc5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gmail.java +++ b/src/main/java/com/airbyte/api/models/shared/Gmail.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Gmail { GMAIL("gmail"); @@ -20,4 +21,13 @@ private Gmail(String value) { public String value() { return value; } + + public static Optional<Gmail> fromValue(String value) { + for (Gmail o: Gmail.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Gnews.java b/src/main/java/com/airbyte/api/models/shared/Gnews.java index 6f49a98a8..ef3642abf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gnews.java +++ b/src/main/java/com/airbyte/api/models/shared/Gnews.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Gnews { GNEWS("gnews"); @@ -20,4 +21,13 @@ private Gnews(String value) { public String value() { return value; } + + public static Optional<Gnews> fromValue(String value) { + for (Gnews o: Gnews.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java b/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java index 08a42302b..3a6fc85c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * GoCardlessAPIEnvironment - Environment you are trying to connect to. */ @@ -24,4 +25,13 @@ private GoCardlessAPIEnvironment(String value) { public String value() { return value; } + + public static Optional<GoCardlessAPIEnvironment> fromValue(String value) { + for (GoCardlessAPIEnvironment o: GoCardlessAPIEnvironment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Gocardless.java b/src/main/java/com/airbyte/api/models/shared/Gocardless.java index d8361377c..685c80242 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gocardless.java +++ b/src/main/java/com/airbyte/api/models/shared/Gocardless.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Gocardless { GOCARDLESS("gocardless"); @@ -20,4 +21,13 @@ private Gocardless(String value) { public String value() { return value; } + + public static Optional<Gocardless> fromValue(String value) { + for (Gocardless o: Gocardless.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Goldcast.java b/src/main/java/com/airbyte/api/models/shared/Goldcast.java index b135a4f1c..16219f81e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Goldcast.java +++ b/src/main/java/com/airbyte/api/models/shared/Goldcast.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Goldcast { GOLDCAST("goldcast"); @@ -20,4 +21,13 @@ private Goldcast(String value) { public String value() { return value; } + + public static Optional<Goldcast> fromValue(String value) { + for (Goldcast o: Goldcast.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Gong.java b/src/main/java/com/airbyte/api/models/shared/Gong.java index 68edab001..ea35196d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gong.java +++ b/src/main/java/com/airbyte/api/models/shared/Gong.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Gong { GONG("gong"); @@ -20,4 +21,13 @@ private Gong(String value) { public String value() { return value; } + + public static Optional<Gong> fromValue(String value) { + for (Gong o: Gong.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleAds.java b/src/main/java/com/airbyte/api/models/shared/GoogleAds.java index 9654498c1..7808d34d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleAds.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleAds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleAds { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleAdsCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleAdsCredentials.java index 1c6b2436a..0aaae3438 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleAdsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleAdsCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleAdsCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApi.java b/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApi.java index f9d58a765..5717bf1a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleAnalyticsDataApi { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApiCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApiCredentials.java index 5b578cf74..a56d7c9b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApiCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApiCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleAnalyticsDataApiCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java b/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java index c04076bb4..da87d6e96 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GoogleCalendar { GOOGLE_CALENDAR("google-calendar"); @@ -20,4 +21,13 @@ private GoogleCalendar(String value) { public String value() { return value; } + + public static Optional<GoogleCalendar> fromValue(String value) { + for (GoogleCalendar o: GoogleCalendar.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java b/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java index aff0af818..b12bb72f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GoogleClassroom { GOOGLE_CLASSROOM("google-classroom"); @@ -20,4 +21,13 @@ private GoogleClassroom(String value) { public String value() { return value; } + + public static Optional<GoogleClassroom> fromValue(String value) { + for (GoogleClassroom o: GoogleClassroom.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleCredentials.java index fde6c4cc8..9ddb472d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java b/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java index 96d4190d5..4b98435c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GoogleDirectory { GOOGLE_DIRECTORY("google-directory"); @@ -20,4 +21,13 @@ private GoogleDirectory(String value) { public String value() { return value; } + + public static Optional<GoogleDirectory> fromValue(String value) { + for (GoogleDirectory o: GoogleDirectory.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleDrive.java b/src/main/java/com/airbyte/api/models/shared/GoogleDrive.java index 2e592b0d6..f6fb955e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleDrive.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleDrive.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleDrive { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleDriveCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleDriveCredentials.java index c15a56e67..722f1fa40 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleDriveCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleDriveCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleDriveCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleForms.java b/src/main/java/com/airbyte/api/models/shared/GoogleForms.java index 6f8ec4803..6cef0941f 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleForms.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleForms.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GoogleForms { GOOGLE_FORMS("google-forms"); @@ -20,4 +21,13 @@ private GoogleForms(String value) { public String value() { return value; } + + public static Optional<GoogleForms> fromValue(String value) { + for (GoogleForms o: GoogleForms.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java b/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java index d0844a30d..04e563765 100644 --- a/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java +++ b/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GooglePagespeedInsights { GOOGLE_PAGESPEED_INSIGHTS("google-pagespeed-insights"); @@ -20,4 +21,13 @@ private GooglePagespeedInsights(String value) { public String value() { return value; } + + public static Optional<GooglePagespeedInsights> fromValue(String value) { + for (GooglePagespeedInsights o: GooglePagespeedInsights.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleSearchConsole.java b/src/main/java/com/airbyte/api/models/shared/GoogleSearchConsole.java index 449b6b1bd..3f3003fd3 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleSearchConsole.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleSearchConsole.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleSearchConsole { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/GoogleSheets.java index 270f5a27f..381e4c4b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleSheets.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleSheets { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleSheetsCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleSheetsCredentials.java index 065d76c67..32618657a 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleSheetsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleSheetsCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class GoogleSheetsCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java b/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java index 5889fa644..2bec6af4c 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GoogleTasks { GOOGLE_TASKS("google-tasks"); @@ -20,4 +21,13 @@ private GoogleTasks(String value) { public String value() { return value; } + + public static Optional<GoogleTasks> fromValue(String value) { + for (GoogleTasks o: GoogleTasks.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java b/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java index e5b0cded9..5ac64ccbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum GoogleWebfonts { GOOGLE_WEBFONTS("google-webfonts"); @@ -20,4 +21,13 @@ private GoogleWebfonts(String value) { public String value() { return value; } + + public static Optional<GoogleWebfonts> fromValue(String value) { + for (GoogleWebfonts o: GoogleWebfonts.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Gorgias.java b/src/main/java/com/airbyte/api/models/shared/Gorgias.java index ba4ac94a9..ff8117e40 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gorgias.java +++ b/src/main/java/com/airbyte/api/models/shared/Gorgias.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Gorgias { GORGIAS("gorgias"); @@ -20,4 +21,13 @@ private Gorgias(String value) { public String value() { return value; } + + public static Optional<Gorgias> fromValue(String value) { + for (Gorgias o: Gorgias.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Granularity.java b/src/main/java/com/airbyte/api/models/shared/Granularity.java index e44be225c..d73edaa21 100644 --- a/src/main/java/com/airbyte/api/models/shared/Granularity.java +++ b/src/main/java/com/airbyte/api/models/shared/Granularity.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Granularity - Chosen granularity for API */ @@ -27,4 +28,13 @@ private Granularity(String value) { public String value() { return value; } + + public static Optional<Granularity> fromValue(String value) { + for (Granularity o: Granularity.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java b/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java index 29672677d..d0ecc6b94 100644 --- a/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * GranularityForGeoLocationRegion - The granularity used for geo location data in reports. */ @@ -25,4 +26,13 @@ private GranularityForGeoLocationRegion(String value) { public String value() { return value; } + + public static Optional<GranularityForGeoLocationRegion> fromValue(String value) { + for (GranularityForGeoLocationRegion o: GranularityForGeoLocationRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java b/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java index 87125220c..48c64c554 100644 --- a/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java +++ b/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * GranularityForPeriodicReports - The granularity used for periodic data in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. */ @@ -25,4 +26,13 @@ private GranularityForPeriodicReports(String value) { public String value() { return value; } + + public static Optional<GranularityForPeriodicReports> fromValue(String value) { + for (GranularityForPeriodicReports o: GranularityForPeriodicReports.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Greenhouse.java b/src/main/java/com/airbyte/api/models/shared/Greenhouse.java index c91b1b180..266b90d3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Greenhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/Greenhouse.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Greenhouse { GREENHOUSE("greenhouse"); @@ -20,4 +21,13 @@ private Greenhouse(String value) { public String value() { return value; } + + public static Optional<Greenhouse> fromValue(String value) { + for (Greenhouse o: Greenhouse.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Greythr.java b/src/main/java/com/airbyte/api/models/shared/Greythr.java new file mode 100644 index 000000000..5df889c0e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Greythr.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Greythr { + GREYTHR("greythr"); + + @JsonValue + private final String value; + + private Greythr(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Greythr> fromValue(String value) { + for (Greythr o: Greythr.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Gridly.java b/src/main/java/com/airbyte/api/models/shared/Gridly.java index 8e53c8b49..e840ffce6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gridly.java +++ b/src/main/java/com/airbyte/api/models/shared/Gridly.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Gridly { GRIDLY("gridly"); @@ -20,4 +21,13 @@ private Gridly(String value) { public String value() { return value; } + + public static Optional<Gridly> fromValue(String value) { + for (Gridly o: Gridly.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GroupBy.java b/src/main/java/com/airbyte/api/models/shared/GroupBy.java index 18cf56acb..c4bf02233 100644 --- a/src/main/java/com/airbyte/api/models/shared/GroupBy.java +++ b/src/main/java/com/airbyte/api/models/shared/GroupBy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * GroupBy - Category term for grouping the search results */ @@ -26,4 +27,13 @@ private GroupBy(String value) { public String value() { return value; } + + public static Optional<GroupBy> fromValue(String value) { + for (GroupBy o: GroupBy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Guru.java b/src/main/java/com/airbyte/api/models/shared/Guru.java index c7cea2ba4..909663b59 100644 --- a/src/main/java/com/airbyte/api/models/shared/Guru.java +++ b/src/main/java/com/airbyte/api/models/shared/Guru.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Guru { GURU("guru"); @@ -20,4 +21,13 @@ private Guru(String value) { public String value() { return value; } + + public static Optional<Guru> fromValue(String value) { + for (Guru o: Guru.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Gutendex.java b/src/main/java/com/airbyte/api/models/shared/Gutendex.java index 10fc39c90..a6cfb7f83 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gutendex.java +++ b/src/main/java/com/airbyte/api/models/shared/Gutendex.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Gutendex { GUTENDEX("gutendex"); @@ -20,4 +21,13 @@ private Gutendex(String value) { public String value() { return value; } + + public static Optional<Gutendex> fromValue(String value) { + for (Gutendex o: Gutendex.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Gzip.java b/src/main/java/com/airbyte/api/models/shared/Gzip.java index b2c32434d..82ab59498 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gzip.java +++ b/src/main/java/com/airbyte/api/models/shared/Gzip.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class Gzip { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/HMACKey.java b/src/main/java/com/airbyte/api/models/shared/HMACKey.java index 61e76e073..241a2c11d 100644 --- a/src/main/java/com/airbyte/api/models/shared/HMACKey.java +++ b/src/main/java/com/airbyte/api/models/shared/HMACKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class HMACKey { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/HTTPSPublicWeb.java b/src/main/java/com/airbyte/api/models/shared/HTTPSPublicWeb.java index abfba200b..ff6964568 100644 --- a/src/main/java/com/airbyte/api/models/shared/HTTPSPublicWeb.java +++ b/src/main/java/com/airbyte/api/models/shared/HTTPSPublicWeb.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class HTTPSPublicWeb { @JsonProperty("storage") diff --git a/src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java b/src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java index 27191f4ad..b289724b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * HadoopCatalogUseHierarchicalFileSystemsAsSameAsStorageConfig - A Hadoop catalog doesn’t need to connect to a Hive MetaStore, but can only be used with HDFS or similar file systems that support atomic rename. */ diff --git a/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java b/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java index 2cb48a425..75fad7580 100644 --- a/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum HardcodedRecords { HARDCODED_RECORDS("hardcoded-records"); @@ -20,4 +21,13 @@ private HardcodedRecords(String value) { public String value() { return value; } + + public static Optional<HardcodedRecords> fromValue(String value) { + for (HardcodedRecords o: HardcodedRecords.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Harvest.java b/src/main/java/com/airbyte/api/models/shared/Harvest.java index a3021e226..e9493bfe1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Harvest.java +++ b/src/main/java/com/airbyte/api/models/shared/Harvest.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Harvest { HARVEST("harvest"); @@ -20,4 +21,13 @@ private Harvest(String value) { public String value() { return value; } + + public static Optional<Harvest> fromValue(String value) { + for (Harvest o: Harvest.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Hashing.java b/src/main/java/com/airbyte/api/models/shared/Hashing.java new file mode 100644 index 000000000..2f47bd6ee --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Hashing.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class Hashing { + + /** + * The suffix to append to the field name after hashing. + */ + @JsonProperty("fieldNameSuffix") + private String fieldNameSuffix; + + /** + * The hashing algorithm to use. + */ + @JsonProperty("method") + private HashingMethod method; + + /** + * The name of the field to be hashed. + */ + @JsonProperty("targetField") + private String targetField; + + @JsonCreator + public Hashing( + @JsonProperty("fieldNameSuffix") String fieldNameSuffix, + @JsonProperty("method") HashingMethod method, + @JsonProperty("targetField") String targetField) { + Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); + Utils.checkNotNull(method, "method"); + Utils.checkNotNull(targetField, "targetField"); + this.fieldNameSuffix = fieldNameSuffix; + this.method = method; + this.targetField = targetField; + } + + /** + * The suffix to append to the field name after hashing. + */ + @JsonIgnore + public String fieldNameSuffix() { + return fieldNameSuffix; + } + + /** + * The hashing algorithm to use. + */ + @JsonIgnore + public HashingMethod method() { + return method; + } + + /** + * The name of the field to be hashed. + */ + @JsonIgnore + public String targetField() { + return targetField; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The suffix to append to the field name after hashing. + */ + public Hashing withFieldNameSuffix(String fieldNameSuffix) { + Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); + this.fieldNameSuffix = fieldNameSuffix; + return this; + } + + /** + * The hashing algorithm to use. + */ + public Hashing withMethod(HashingMethod method) { + Utils.checkNotNull(method, "method"); + this.method = method; + return this; + } + + /** + * The name of the field to be hashed. + */ + public Hashing withTargetField(String targetField) { + Utils.checkNotNull(targetField, "targetField"); + this.targetField = targetField; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Hashing other = (Hashing) o; + return + Objects.deepEquals(this.fieldNameSuffix, other.fieldNameSuffix) && + Objects.deepEquals(this.method, other.method) && + Objects.deepEquals(this.targetField, other.targetField); + } + + @Override + public int hashCode() { + return Objects.hash( + fieldNameSuffix, + method, + targetField); + } + + @Override + public String toString() { + return Utils.toString(Hashing.class, + "fieldNameSuffix", fieldNameSuffix, + "method", method, + "targetField", targetField); + } + + public final static class Builder { + + private String fieldNameSuffix; + + private HashingMethod method; + + private String targetField; + + private Builder() { + // force use of static builder() method + } + + /** + * The suffix to append to the field name after hashing. + */ + public Builder fieldNameSuffix(String fieldNameSuffix) { + Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); + this.fieldNameSuffix = fieldNameSuffix; + return this; + } + + /** + * The hashing algorithm to use. + */ + public Builder method(HashingMethod method) { + Utils.checkNotNull(method, "method"); + this.method = method; + return this; + } + + /** + * The name of the field to be hashed. + */ + public Builder targetField(String targetField) { + Utils.checkNotNull(targetField, "targetField"); + this.targetField = targetField; + return this; + } + + public Hashing build() { + return new Hashing( + fieldNameSuffix, + method, + targetField); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/HashingMethod.java b/src/main/java/com/airbyte/api/models/shared/HashingMethod.java new file mode 100644 index 000000000..0ddfa7436 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/HashingMethod.java @@ -0,0 +1,42 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * HashingMethod - The hashing algorithm to use. + */ +public enum HashingMethod { + MD2("MD2"), + MD5("MD5"), + SHA1("SHA-1"), + SHA224("SHA-224"), + SHA256("SHA-256"), + SHA384("SHA-384"), + SHA512("SHA-512"); + + @JsonValue + private final String value; + + private HashingMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<HashingMethod> fromValue(String value) { + for (HashingMethod o: HashingMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Header.java b/src/main/java/com/airbyte/api/models/shared/Header.java index faa332a5e..bd0245d96 100644 --- a/src/main/java/com/airbyte/api/models/shared/Header.java +++ b/src/main/java/com/airbyte/api/models/shared/Header.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class Header { @JsonProperty("header_key") diff --git a/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java index f17b45f93..fd09ee15f 100644 --- a/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum HeaderDefinitionType { FROM_CSV("From CSV"); @@ -20,4 +21,13 @@ private HeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<HeaderDefinitionType> fromValue(String value) { + for (HeaderDefinitionType o: HeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Height.java b/src/main/java/com/airbyte/api/models/shared/Height.java index 7e5f7289b..b5b35bc55 100644 --- a/src/main/java/com/airbyte/api/models/shared/Height.java +++ b/src/main/java/com/airbyte/api/models/shared/Height.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Height { HEIGHT("height"); @@ -20,4 +21,13 @@ private Height(String value) { public String value() { return value; } + + public static Optional<Height> fromValue(String value) { + for (Height o: Height.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Hellobaton.java b/src/main/java/com/airbyte/api/models/shared/Hellobaton.java new file mode 100644 index 000000000..687889042 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Hellobaton.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Hellobaton { + HELLOBATON("hellobaton"); + + @JsonValue + private final String value; + + private Hellobaton(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Hellobaton> fromValue(String value) { + for (Hellobaton o: Hellobaton.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/HelpScout.java b/src/main/java/com/airbyte/api/models/shared/HelpScout.java new file mode 100644 index 000000000..14a146198 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/HelpScout.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum HelpScout { + HELP_SCOUT("help-scout"); + + @JsonValue + private final String value; + + private HelpScout(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<HelpScout> fromValue(String value) { + for (HelpScout o: HelpScout.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Hibob.java b/src/main/java/com/airbyte/api/models/shared/Hibob.java index d7a201476..cf1f732a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hibob.java +++ b/src/main/java/com/airbyte/api/models/shared/Hibob.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Hibob { HIBOB("hibob"); @@ -20,4 +21,13 @@ private Hibob(String value) { public String value() { return value; } + + public static Optional<Hibob> fromValue(String value) { + for (Hibob o: Hibob.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/HighLevel.java b/src/main/java/com/airbyte/api/models/shared/HighLevel.java index 7a3db7e05..24bef0c73 100644 --- a/src/main/java/com/airbyte/api/models/shared/HighLevel.java +++ b/src/main/java/com/airbyte/api/models/shared/HighLevel.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum HighLevel { HIGH_LEVEL("high-level"); @@ -20,4 +21,13 @@ private HighLevel(String value) { public String value() { return value; } + + public static Optional<HighLevel> fromValue(String value) { + for (HighLevel o: HighLevel.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java b/src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java index 373f01b1d..0200c8e05 100644 --- a/src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java +++ b/src/main/java/com/airbyte/api/models/shared/HiveCatalogUseApacheHiveMetaStore.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,12 +18,11 @@ import java.util.Objects; import java.util.Optional; - public class HiveCatalogUseApacheHiveMetaStore { @JsonInclude(Include.NON_ABSENT) @JsonProperty("catalog_type") - private Optional<? extends CatalogType> catalogType; + private Optional<? extends DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType> catalogType; /** * The default database tables are written to if the source does not specify a namespace. The usual value for this field is "default". @@ -41,7 +39,7 @@ public class HiveCatalogUseApacheHiveMetaStore { @JsonCreator public HiveCatalogUseApacheHiveMetaStore( - @JsonProperty("catalog_type") Optional<? extends CatalogType> catalogType, + @JsonProperty("catalog_type") Optional<? extends DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType> catalogType, @JsonProperty("database") Optional<String> database, @JsonProperty("hive_thrift_uri") String hiveThriftUri) { Utils.checkNotNull(catalogType, "catalogType"); @@ -59,8 +57,8 @@ public HiveCatalogUseApacheHiveMetaStore( @SuppressWarnings("unchecked") @JsonIgnore - public Optional<CatalogType> catalogType() { - return (Optional<CatalogType>) catalogType; + public Optional<DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType> catalogType() { + return (Optional<DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType>) catalogType; } /** @@ -83,13 +81,13 @@ public final static Builder builder() { return new Builder(); } - public HiveCatalogUseApacheHiveMetaStore withCatalogType(CatalogType catalogType) { + public HiveCatalogUseApacheHiveMetaStore withCatalogType(DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = Optional.ofNullable(catalogType); return this; } - public HiveCatalogUseApacheHiveMetaStore withCatalogType(Optional<? extends CatalogType> catalogType) { + public HiveCatalogUseApacheHiveMetaStore withCatalogType(Optional<? extends DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType> catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = catalogType; return this; @@ -155,7 +153,7 @@ public String toString() { public final static class Builder { - private Optional<? extends CatalogType> catalogType; + private Optional<? extends DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType> catalogType; private Optional<String> database; @@ -165,13 +163,13 @@ private Builder() { // force use of static builder() method } - public Builder catalogType(CatalogType catalogType) { + public Builder catalogType(DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = Optional.ofNullable(catalogType); return this; } - public Builder catalogType(Optional<? extends CatalogType> catalogType) { + public Builder catalogType(Optional<? extends DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType> catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = catalogType; return this; @@ -216,11 +214,11 @@ public HiveCatalogUseApacheHiveMetaStore build() { hiveThriftUri); } - private static final LazySingletonValue<Optional<? extends CatalogType>> _SINGLETON_VALUE_CatalogType = + private static final LazySingletonValue<Optional<? extends DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType>> _SINGLETON_VALUE_CatalogType = new LazySingletonValue<>( "catalog_type", "\"Hive\"", - new TypeReference<Optional<? extends CatalogType>>() {}); + new TypeReference<Optional<? extends DestinationIcebergSchemasCatalogConfigIcebergCatalogConfig1CatalogType>>() {}); private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_Database = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/Hoorayhr.java b/src/main/java/com/airbyte/api/models/shared/Hoorayhr.java new file mode 100644 index 000000000..17887b75d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Hoorayhr.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Hoorayhr { + HOORAYHR("hoorayhr"); + + @JsonValue + private final String value; + + private Hoorayhr(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Hoorayhr> fromValue(String value) { + for (Hoorayhr o: Hoorayhr.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Hubplanner.java b/src/main/java/com/airbyte/api/models/shared/Hubplanner.java index b94613de4..1757a8b19 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hubplanner.java +++ b/src/main/java/com/airbyte/api/models/shared/Hubplanner.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Hubplanner { HUBPLANNER("hubplanner"); @@ -20,4 +21,13 @@ private Hubplanner(String value) { public String value() { return value; } + + public static Optional<Hubplanner> fromValue(String value) { + for (Hubplanner o: Hubplanner.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Hubspot.java b/src/main/java/com/airbyte/api/models/shared/Hubspot.java index 17b82d2f9..c9297f728 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hubspot.java +++ b/src/main/java/com/airbyte/api/models/shared/Hubspot.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Hubspot { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/HubspotCredentials.java b/src/main/java/com/airbyte/api/models/shared/HubspotCredentials.java index d7374ace1..c64dd3c70 100644 --- a/src/main/java/com/airbyte/api/models/shared/HubspotCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/HubspotCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class HubspotCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java b/src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java new file mode 100644 index 000000000..279d78269 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum HuggingFaceDatasets { + HUGGING_FACE_DATASETS("hugging-face-datasets"); + + @JsonValue + private final String value; + + private HuggingFaceDatasets(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<HuggingFaceDatasets> fromValue(String value) { + for (HuggingFaceDatasets o: HuggingFaceDatasets.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Humanitix.java b/src/main/java/com/airbyte/api/models/shared/Humanitix.java index 4a2ab742e..b672aa8d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Humanitix.java +++ b/src/main/java/com/airbyte/api/models/shared/Humanitix.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Humanitix { HUMANITIX("humanitix"); @@ -20,4 +21,13 @@ private Humanitix(String value) { public String value() { return value; } + + public static Optional<Humanitix> fromValue(String value) { + for (Humanitix o: Humanitix.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Huntr.java b/src/main/java/com/airbyte/api/models/shared/Huntr.java new file mode 100644 index 000000000..bff9ba99b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Huntr.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Huntr { + HUNTR("huntr"); + + @JsonValue + private final String value; + + private Huntr(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Huntr> fromValue(String value) { + for (Huntr o: Huntr.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/IAMRole.java b/src/main/java/com/airbyte/api/models/shared/IAMRole.java index c5ed6dfe9..1ea6e3e35 100644 --- a/src/main/java/com/airbyte/api/models/shared/IAMRole.java +++ b/src/main/java/com/airbyte/api/models/shared/IAMRole.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class IAMRole { /** diff --git a/src/main/java/com/airbyte/api/models/shared/IAMUser.java b/src/main/java/com/airbyte/api/models/shared/IAMUser.java index da5c96ce8..7f2ae890c 100644 --- a/src/main/java/com/airbyte/api/models/shared/IAMUser.java +++ b/src/main/java/com/airbyte/api/models/shared/IAMUser.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class IAMUser { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Iceberg.java b/src/main/java/com/airbyte/api/models/shared/Iceberg.java index 2969b6a8d..92cf6aa11 100644 --- a/src/main/java/com/airbyte/api/models/shared/Iceberg.java +++ b/src/main/java/com/airbyte/api/models/shared/Iceberg.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Iceberg { ICEBERG("iceberg"); @@ -20,4 +21,13 @@ private Iceberg(String value) { public String value() { return value; } + + public static Optional<Iceberg> fromValue(String value) { + for (Iceberg o: Iceberg.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/IcebergCatalogConfig.java b/src/main/java/com/airbyte/api/models/shared/IcebergCatalogConfig.java index 4e426e5cc..4dd4d2b01 100644 --- a/src/main/java/com/airbyte/api/models/shared/IcebergCatalogConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/IcebergCatalogConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * IcebergCatalogConfig - Catalog config of Iceberg. */ diff --git a/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java b/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java index 478a9c7bc..2688d2d60 100644 --- a/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java +++ b/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum IlluminaBasespace { ILLUMINA_BASESPACE("illumina-basespace"); @@ -20,4 +21,13 @@ private IlluminaBasespace(String value) { public String value() { return value; } + + public static Optional<IlluminaBasespace> fromValue(String value) { + for (IlluminaBasespace o: IlluminaBasespace.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/In.java b/src/main/java/com/airbyte/api/models/shared/In.java index eff08fc6f..3dea6bd1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/In.java +++ b/src/main/java/com/airbyte/api/models/shared/In.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum In { TITLE("title"), DESCRIPTION("description"), @@ -22,4 +23,13 @@ private In(String value) { public String value() { return value; } + + public static Optional<In> fromValue(String value) { + for (In o: In.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/InListFilter.java b/src/main/java/com/airbyte/api/models/shared/InListFilter.java index 3536b0424..764ff0166 100644 --- a/src/main/java/com/airbyte/api/models/shared/InListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/InListFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class InListFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/IncidentIo.java b/src/main/java/com/airbyte/api/models/shared/IncidentIo.java index 6d687327f..5ba52836a 100644 --- a/src/main/java/com/airbyte/api/models/shared/IncidentIo.java +++ b/src/main/java/com/airbyte/api/models/shared/IncidentIo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum IncidentIo { INCIDENT_IO("incident-io"); @@ -20,4 +21,13 @@ private IncidentIo(String value) { public String value() { return value; } + + public static Optional<IncidentIo> fromValue(String value) { + for (IncidentIo o: IncidentIo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Indexing.java b/src/main/java/com/airbyte/api/models/shared/Indexing.java index 1494d7f9a..4496206b2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Indexing.java +++ b/src/main/java/com/airbyte/api/models/shared/Indexing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * Indexing - Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG and Gen AI apps with fewer hallucinations in production. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java b/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java index 576f892fe..73cb63c92 100644 --- a/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Inflowinventory { INFLOWINVENTORY("inflowinventory"); @@ -20,4 +21,13 @@ private Inflowinventory(String value) { public String value() { return value; } + + public static Optional<Inflowinventory> fromValue(String value) { + for (Inflowinventory o: Inflowinventory.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/InitiateOauthRequest.java b/src/main/java/com/airbyte/api/models/shared/InitiateOauthRequest.java index f229d879a..d1a13fdfa 100644 --- a/src/main/java/com/airbyte/api/models/shared/InitiateOauthRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/InitiateOauthRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * InitiateOauthRequest - POST body for initiating OAuth via the public API */ 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 aac3fac15..30adf91eb 100644 --- a/src/main/java/com/airbyte/api/models/shared/InsightConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/InsightConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * InsightConfig - Config for custom insights */ diff --git a/src/main/java/com/airbyte/api/models/shared/Insightly.java b/src/main/java/com/airbyte/api/models/shared/Insightly.java index c5673080f..93d41f066 100644 --- a/src/main/java/com/airbyte/api/models/shared/Insightly.java +++ b/src/main/java/com/airbyte/api/models/shared/Insightly.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Insightly { INSIGHTLY("insightly"); @@ -20,4 +21,13 @@ private Insightly(String value) { public String value() { return value; } + + public static Optional<Insightly> fromValue(String value) { + for (Insightly o: Insightly.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Instagram.java b/src/main/java/com/airbyte/api/models/shared/Instagram.java index 1833be069..820576630 100644 --- a/src/main/java/com/airbyte/api/models/shared/Instagram.java +++ b/src/main/java/com/airbyte/api/models/shared/Instagram.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class Instagram { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Instance.java b/src/main/java/com/airbyte/api/models/shared/Instance.java index 5cdd7318e..6e1ece1d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Instance.java +++ b/src/main/java/com/airbyte/api/models/shared/Instance.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Instance { STANDALONE("standalone"); @@ -20,4 +21,13 @@ private Instance(String value) { public String value() { return value; } + + public static Optional<Instance> fromValue(String value) { + for (Instance o: Instance.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Instatus.java b/src/main/java/com/airbyte/api/models/shared/Instatus.java index 5c9d9bb08..eb096aa41 100644 --- a/src/main/java/com/airbyte/api/models/shared/Instatus.java +++ b/src/main/java/com/airbyte/api/models/shared/Instatus.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Instatus { INSTATUS("instatus"); @@ -20,4 +21,13 @@ private Instatus(String value) { public String value() { return value; } + + public static Optional<Instatus> fromValue(String value) { + for (Instatus o: Instatus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Int64Value.java b/src/main/java/com/airbyte/api/models/shared/Int64Value.java index 39beb4d71..f667ea76b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/Int64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class Int64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/Intercom.java b/src/main/java/com/airbyte/api/models/shared/Intercom.java index 011230fc8..a39d8ffd2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Intercom.java +++ b/src/main/java/com/airbyte/api/models/shared/Intercom.java @@ -2,186 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; import java.util.Objects; import java.util.Optional; +public enum Intercom { + INTERCOM("intercom"); + @JsonValue + private final String value; -public class Intercom { - - /** - * Client Id for your Intercom application. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("client_id") - private Optional<String> clientId; - - /** - * Client Secret for your Intercom application. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("client_secret") - private Optional<String> clientSecret; - - @JsonCreator - public Intercom( - @JsonProperty("client_id") Optional<String> clientId, - @JsonProperty("client_secret") Optional<String> clientSecret) { - Utils.checkNotNull(clientId, "clientId"); - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientId = clientId; - this.clientSecret = clientSecret; - } - - public Intercom() { - this(Optional.empty(), Optional.empty()); - } - - /** - * Client Id for your Intercom application. - */ - @JsonIgnore - public Optional<String> clientId() { - return clientId; - } - - /** - * Client Secret for your Intercom application. - */ - @JsonIgnore - public Optional<String> clientSecret() { - return clientSecret; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Client Id for your Intercom application. - */ - public Intercom withClientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = Optional.ofNullable(clientId); - return this; - } - - /** - * Client Id for your Intercom application. - */ - public Intercom withClientId(Optional<String> clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * Client Secret for your Intercom application. - */ - public Intercom withClientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = Optional.ofNullable(clientSecret); - return this; - } - - /** - * Client Secret for your Intercom application. - */ - public Intercom withClientSecret(Optional<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; - } - Intercom other = (Intercom) o; - return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + private Intercom(String value) { + this.value = value; } - @Override - public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + public String value() { + return value; } - @Override - public String toString() { - return Utils.toString(Intercom.class, - "clientId", clientId, - "clientSecret", clientSecret); - } - - public final static class Builder { - - private Optional<String> clientId = Optional.empty(); - - private Optional<String> clientSecret = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * Client Id for your Intercom application. - */ - public Builder clientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = Optional.ofNullable(clientId); - return this; - } - - /** - * Client Id for your Intercom application. - */ - public Builder clientId(Optional<String> clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * Client Secret for your Intercom application. - */ - public Builder clientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = Optional.ofNullable(clientSecret); - return this; - } - - /** - * Client Secret for your Intercom application. - */ - public Builder clientSecret(Optional<String> clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; - return this; - } - - public Intercom build() { - return new Intercom( - clientId, - clientSecret); + public static Optional<Intercom> fromValue(String value) { + for (Intercom o: Intercom.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } } + return Optional.empty(); } } - diff --git a/src/main/java/com/airbyte/api/models/shared/Interval.java b/src/main/java/com/airbyte/api/models/shared/Interval.java index 8d69a9677..5bde7ca91 100644 --- a/src/main/java/com/airbyte/api/models/shared/Interval.java +++ b/src/main/java/com/airbyte/api/models/shared/Interval.java @@ -2,26 +2,22 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** - * Interval - Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + * Interval - Time-series data point interval. Required for intraday endpoints. + * */ public enum Interval { ONEMIN("1min"), FIVEMIN("5min"), FIFTEENMIN("15min"), THIRTYMIN("30min"), - FORTY_FIVEMIN("45min"), - ONEH("1h"), - TWOH("2h"), - FOURH("4h"), - ONEDAY("1day"), - ONEWEEK("1week"), - ONEMONTH("1month"); + SIXTYMIN("60min"); @JsonValue private final String value; @@ -33,4 +29,13 @@ private Interval(String value) { public String value() { return value; } + + public static Optional<Interval> fromValue(String value) { + for (Interval o: Interval.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Intruder.java b/src/main/java/com/airbyte/api/models/shared/Intruder.java new file mode 100644 index 000000000..f52833c34 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Intruder.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Intruder { + INTRUDER("intruder"); + + @JsonValue + private final String value; + + private Intruder(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Intruder> fromValue(String value) { + for (Intruder o: Intruder.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java index a981fe36f..8444e85fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * InvalidCDCPositionBehaviorAdvanced - Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ @@ -24,4 +25,13 @@ private InvalidCDCPositionBehaviorAdvanced(String value) { public String value() { return value; } + + public static Optional<InvalidCDCPositionBehaviorAdvanced> fromValue(String value) { + for (InvalidCDCPositionBehaviorAdvanced o: InvalidCDCPositionBehaviorAdvanced.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Invoiced.java b/src/main/java/com/airbyte/api/models/shared/Invoiced.java index 6072487e2..feef730c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Invoiced.java +++ b/src/main/java/com/airbyte/api/models/shared/Invoiced.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Invoiced { INVOICED("invoiced"); @@ -20,4 +21,13 @@ private Invoiced(String value) { public String value() { return value; } + + public static Optional<Invoiced> fromValue(String value) { + for (Invoiced o: Invoiced.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java b/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java index cdb2d5b0e..7a42d8c06 100644 --- a/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java +++ b/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Invoiceninja { INVOICENINJA("invoiceninja"); @@ -20,4 +21,13 @@ private Invoiceninja(String value) { public String value() { return value; } + + public static Optional<Invoiceninja> fromValue(String value) { + for (Invoiceninja o: Invoiceninja.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Ip2whois.java b/src/main/java/com/airbyte/api/models/shared/Ip2whois.java index 17165f9d2..a577d2d0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ip2whois.java +++ b/src/main/java/com/airbyte/api/models/shared/Ip2whois.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Ip2whois { IP2WHOIS("ip2whois"); @@ -20,4 +21,13 @@ private Ip2whois(String value) { public String value() { return value; } + + public static Optional<Ip2whois> fromValue(String value) { + for (Ip2whois o: Ip2whois.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Iterable.java b/src/main/java/com/airbyte/api/models/shared/Iterable.java index f94e27a9d..1637a9816 100644 --- a/src/main/java/com/airbyte/api/models/shared/Iterable.java +++ b/src/main/java/com/airbyte/api/models/shared/Iterable.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Iterable { ITERABLE("iterable"); @@ -20,4 +21,13 @@ private Iterable(String value) { public String value() { return value; } + + public static Optional<Iterable> fromValue(String value) { + for (Iterable o: Iterable.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/JSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/JSONLinesNewlineDelimitedJSON.java index e36d43066..60ef45f13 100644 --- a/src/main/java/com/airbyte/api/models/shared/JSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/JSONLinesNewlineDelimitedJSON.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class JSONLinesNewlineDelimitedJSON { /** diff --git a/src/main/java/com/airbyte/api/models/shared/JdbcCatalogUseRelationalDatabase.java b/src/main/java/com/airbyte/api/models/shared/JdbcCatalogUseRelationalDatabase.java index c69cebc9d..ffb8007eb 100644 --- a/src/main/java/com/airbyte/api/models/shared/JdbcCatalogUseRelationalDatabase.java +++ b/src/main/java/com/airbyte/api/models/shared/JdbcCatalogUseRelationalDatabase.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * JdbcCatalogUseRelationalDatabase - Using a table in a relational database to manage Iceberg tables through JDBC. Read more <a href="https://iceberg.apache.org/docs/latest/jdbc/">here</a>. Supporting: PostgreSQL */ diff --git a/src/main/java/com/airbyte/api/models/shared/Jira.java b/src/main/java/com/airbyte/api/models/shared/Jira.java index 59c3762a8..04ce0b24d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Jira.java +++ b/src/main/java/com/airbyte/api/models/shared/Jira.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Jira { JIRA("jira"); @@ -20,4 +21,13 @@ private Jira(String value) { public String value() { return value; } + + public static Optional<Jira> fromValue(String value) { + for (Jira o: Jira.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/JobCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/JobCreateRequest.java index d526a8970..51a3aae5b 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/JobCreateRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * JobCreateRequest - Creates a new Job from the configuration provided in the request body. */ diff --git a/src/main/java/com/airbyte/api/models/shared/JobResponse.java b/src/main/java/com/airbyte/api/models/shared/JobResponse.java index 3dffdade0..73eb18cf4 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/JobResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * JobResponse - Provides details of a single job. */ diff --git a/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java b/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java index 349046167..1a54bdfef 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum JobStatusEnum { PENDING("pending"), RUNNING("running"), @@ -25,4 +26,13 @@ private JobStatusEnum(String value) { public String value() { return value; } + + public static Optional<JobStatusEnum> fromValue(String value) { + for (JobStatusEnum o: JobStatusEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java index ac23e2f1e..864c15bff 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * JobTypeEnum - Enum that describes the different types of jobs that the platform runs. */ @@ -26,4 +27,13 @@ private JobTypeEnum(String value) { public String value() { return value; } + + public static Optional<JobTypeEnum> fromValue(String value) { + for (JobTypeEnum o: JobTypeEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java b/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java index dfed7d525..1e5886140 100644 --- a/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java +++ b/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Jobnimbus { JOBNIMBUS("jobnimbus"); @@ -20,4 +21,13 @@ private Jobnimbus(String value) { public String value() { return value; } + + public static Optional<Jobnimbus> fromValue(String value) { + for (Jobnimbus o: Jobnimbus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/JobsResponse.java b/src/main/java/com/airbyte/api/models/shared/JobsResponse.java index 58b46cf95..895988b8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/JobsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class JobsResponse { @JsonProperty("data") diff --git a/src/main/java/com/airbyte/api/models/shared/Jotform.java b/src/main/java/com/airbyte/api/models/shared/Jotform.java index 6e738a162..14516832c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Jotform.java +++ b/src/main/java/com/airbyte/api/models/shared/Jotform.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Jotform { JOTFORM("jotform"); @@ -20,4 +21,13 @@ private Jotform(String value) { public String value() { return value; } + + public static Optional<Jotform> fromValue(String value) { + for (Jotform o: Jotform.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/JsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/JsonlFormat.java index f3525db6e..4c180ab03 100644 --- a/src/main/java/com/airbyte/api/models/shared/JsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/JsonlFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class JsonlFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/JustSift.java b/src/main/java/com/airbyte/api/models/shared/JustSift.java index d7b2c4011..707524412 100644 --- a/src/main/java/com/airbyte/api/models/shared/JustSift.java +++ b/src/main/java/com/airbyte/api/models/shared/JustSift.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum JustSift { JUST_SIFT("just-sift"); @@ -20,4 +21,13 @@ private JustSift(String value) { public String value() { return value; } + + public static Optional<JustSift> fromValue(String value) { + for (JustSift o: JustSift.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Justcall.java b/src/main/java/com/airbyte/api/models/shared/Justcall.java index ffc9c5e79..f2763720a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Justcall.java +++ b/src/main/java/com/airbyte/api/models/shared/Justcall.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Justcall { JUSTCALL("justcall"); @@ -20,4 +21,13 @@ private Justcall(String value) { public String value() { return value; } + + public static Optional<Justcall> fromValue(String value) { + for (Justcall o: Justcall.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/K6Cloud.java b/src/main/java/com/airbyte/api/models/shared/K6Cloud.java index aeea8aaf8..ecf6e9c12 100644 --- a/src/main/java/com/airbyte/api/models/shared/K6Cloud.java +++ b/src/main/java/com/airbyte/api/models/shared/K6Cloud.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum K6Cloud { K6_CLOUD("k6-cloud"); @@ -20,4 +21,13 @@ private K6Cloud(String value) { public String value() { return value; } + + public static Optional<K6Cloud> fromValue(String value) { + for (K6Cloud o: K6Cloud.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Katana.java b/src/main/java/com/airbyte/api/models/shared/Katana.java index f5d31b7b2..30f775a74 100644 --- a/src/main/java/com/airbyte/api/models/shared/Katana.java +++ b/src/main/java/com/airbyte/api/models/shared/Katana.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Katana { KATANA("katana"); @@ -20,4 +21,13 @@ private Katana(String value) { public String value() { return value; } + + public static Optional<Katana> fromValue(String value) { + for (Katana o: Katana.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Keka.java b/src/main/java/com/airbyte/api/models/shared/Keka.java new file mode 100644 index 000000000..02448a8ed --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Keka.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Keka { + KEKA("keka"); + + @JsonValue + private final String value; + + private Keka(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Keka> fromValue(String value) { + for (Keka o: Keka.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java b/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java index 77853ca76..7a9eded9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class KeyPairAuthentication { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/Kind.java b/src/main/java/com/airbyte/api/models/shared/Kind.java index b1c162c0c..32a85a9f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kind.java +++ b/src/main/java/com/airbyte/api/models/shared/Kind.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Kind - Kind parameter for `contact_groups` stream */ @@ -24,4 +25,13 @@ private Kind(String value) { public String value() { return value; } + + public static Optional<Kind> fromValue(String value) { + for (Kind o: Kind.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Kisi.java b/src/main/java/com/airbyte/api/models/shared/Kisi.java index cc297fe85..a65f16316 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kisi.java +++ b/src/main/java/com/airbyte/api/models/shared/Kisi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Kisi { KISI("kisi"); @@ -20,4 +21,13 @@ private Kisi(String value) { public String value() { return value; } + + public static Optional<Kisi> fromValue(String value) { + for (Kisi o: Kisi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java b/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java index 1fbe124e6..b5dd1711e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java +++ b/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Kissmetrics { KISSMETRICS("kissmetrics"); @@ -20,4 +21,13 @@ private Kissmetrics(String value) { public String value() { return value; } + + public static Optional<Kissmetrics> fromValue(String value) { + for (Kissmetrics o: Kissmetrics.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Klarna.java b/src/main/java/com/airbyte/api/models/shared/Klarna.java index 805c361c4..a72f6b524 100644 --- a/src/main/java/com/airbyte/api/models/shared/Klarna.java +++ b/src/main/java/com/airbyte/api/models/shared/Klarna.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Klarna { KLARNA("klarna"); @@ -20,4 +21,13 @@ private Klarna(String value) { public String value() { return value; } + + public static Optional<Klarna> fromValue(String value) { + for (Klarna o: Klarna.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/KlausApi.java b/src/main/java/com/airbyte/api/models/shared/KlausApi.java index 3a541fd04..8a32944ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/KlausApi.java +++ b/src/main/java/com/airbyte/api/models/shared/KlausApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum KlausApi { KLAUS_API("klaus-api"); @@ -20,4 +21,13 @@ private KlausApi(String value) { public String value() { return value; } + + public static Optional<KlausApi> fromValue(String value) { + for (KlausApi o: KlausApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Klaviyo.java b/src/main/java/com/airbyte/api/models/shared/Klaviyo.java index cd7ea8350..4a833f1de 100644 --- a/src/main/java/com/airbyte/api/models/shared/Klaviyo.java +++ b/src/main/java/com/airbyte/api/models/shared/Klaviyo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Klaviyo { KLAVIYO("klaviyo"); @@ -20,4 +21,13 @@ private Klaviyo(String value) { public String value() { return value; } + + public static Optional<Klaviyo> fromValue(String value) { + for (Klaviyo o: Klaviyo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Kyve.java b/src/main/java/com/airbyte/api/models/shared/Kyve.java index a8d3e115e..600a18e85 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kyve.java +++ b/src/main/java/com/airbyte/api/models/shared/Kyve.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Kyve { KYVE("kyve"); @@ -20,4 +21,13 @@ private Kyve(String value) { public String value() { return value; } + + public static Optional<Kyve> fromValue(String value) { + for (Kyve o: Kyve.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java b/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java index 5964e8f0c..acfab1050 100644 --- a/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java +++ b/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * LSNCommitBehaviour - Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync. */ @@ -24,4 +25,13 @@ private LSNCommitBehaviour(String value) { public String value() { return value; } + + public static Optional<LSNCommitBehaviour> fromValue(String value) { + for (LSNCommitBehaviour o: LSNCommitBehaviour.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Lang.java b/src/main/java/com/airbyte/api/models/shared/Lang.java index 69dec12e8..6e58df561 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lang.java +++ b/src/main/java/com/airbyte/api/models/shared/Lang.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Lang - You can use lang parameter to get the output in your language. The contents of the description field will be translated. See <a href="https://openweathermap.org/api/one-call-api#multi">here</a> for the list of supported languages. */ @@ -71,4 +72,13 @@ private Lang(String value) { public String value() { return value; } + + public static Optional<Lang> fromValue(String value) { + for (Lang o: Lang.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Language.java b/src/main/java/com/airbyte/api/models/shared/Language.java index 6fdbef746..bb33fddd2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Language.java +++ b/src/main/java/com/airbyte/api/models/shared/Language.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Language - The 2-letter ISO-639-1 code of the language you want to get headlines * for. Possible options: ar de en es fr he it nl no pt ru se ud zh. @@ -38,4 +39,13 @@ private Language(String value) { public String value() { return value; } + + public static Optional<Language> fromValue(String value) { + for (Language o: Language.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java b/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java index f9da9c0f6..b3b5eca61 100644 --- a/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java +++ b/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Launchdarkly { LAUNCHDARKLY("launchdarkly"); @@ -20,4 +21,13 @@ private Launchdarkly(String value) { public String value() { return value; } + + public static Optional<Launchdarkly> fromValue(String value) { + for (Launchdarkly o: Launchdarkly.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java b/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java index da42e31af..04bbe8c3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java +++ b/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Leadfeeder { LEADFEEDER("leadfeeder"); @@ -20,4 +21,13 @@ private Leadfeeder(String value) { public String value() { return value; } + + public static Optional<Leadfeeder> fromValue(String value) { + for (Leadfeeder o: Leadfeeder.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Lemlist.java b/src/main/java/com/airbyte/api/models/shared/Lemlist.java index efbf36f55..5bce1714a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lemlist.java +++ b/src/main/java/com/airbyte/api/models/shared/Lemlist.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Lemlist { LEMLIST("lemlist"); @@ -20,4 +21,13 @@ private Lemlist(String value) { public String value() { return value; } + + public static Optional<Lemlist> fromValue(String value) { + for (Lemlist o: Lemlist.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java b/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java index 037f34d01..83fbc3a83 100644 --- a/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum LessAnnoyingCrm { LESS_ANNOYING_CRM("less-annoying-crm"); @@ -20,4 +21,13 @@ private LessAnnoyingCrm(String value) { public String value() { return value; } + + public static Optional<LessAnnoyingCrm> fromValue(String value) { + for (LessAnnoyingCrm o: LessAnnoyingCrm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Level.java b/src/main/java/com/airbyte/api/models/shared/Level.java index 15e566deb..56b573a9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Level.java +++ b/src/main/java/com/airbyte/api/models/shared/Level.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Level - Chosen level for API */ @@ -26,4 +27,13 @@ private Level(String value) { public String value() { return value; } + + public static Optional<Level> fromValue(String value) { + for (Level o: Level.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LeverHiring.java b/src/main/java/com/airbyte/api/models/shared/LeverHiring.java index f5bfceb1d..692f4a9ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/LeverHiring.java +++ b/src/main/java/com/airbyte/api/models/shared/LeverHiring.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class LeverHiring { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/LeverHiringCredentials.java b/src/main/java/com/airbyte/api/models/shared/LeverHiringCredentials.java index 486f1e4bb..c019db8bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/LeverHiringCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/LeverHiringCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class LeverHiringCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java b/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java index c1fbf6515..68f4b5b70 100644 --- a/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java +++ b/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum LightspeedRetail { LIGHTSPEED_RETAIL("lightspeed-retail"); @@ -20,4 +21,13 @@ private LightspeedRetail(String value) { public String value() { return value; } + + public static Optional<LightspeedRetail> fromValue(String value) { + for (LightspeedRetail o: LightspeedRetail.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LinkedinAds.java b/src/main/java/com/airbyte/api/models/shared/LinkedinAds.java index 92f4f2133..91c37054f 100644 --- a/src/main/java/com/airbyte/api/models/shared/LinkedinAds.java +++ b/src/main/java/com/airbyte/api/models/shared/LinkedinAds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class LinkedinAds { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/LinkedinAdsCredentials.java b/src/main/java/com/airbyte/api/models/shared/LinkedinAdsCredentials.java index b7fb18172..9f14f3481 100644 --- a/src/main/java/com/airbyte/api/models/shared/LinkedinAdsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/LinkedinAdsCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class LinkedinAdsCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java b/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java index 8ea76b416..270db65b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java +++ b/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum LinkedinPages { LINKEDIN_PAGES("linkedin-pages"); @@ -20,4 +21,13 @@ private LinkedinPages(String value) { public String value() { return value; } + + public static Optional<LinkedinPages> fromValue(String value) { + for (LinkedinPages o: LinkedinPages.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Linnworks.java b/src/main/java/com/airbyte/api/models/shared/Linnworks.java index 4a509884e..fbbec4030 100644 --- a/src/main/java/com/airbyte/api/models/shared/Linnworks.java +++ b/src/main/java/com/airbyte/api/models/shared/Linnworks.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Linnworks { LINNWORKS("linnworks"); @@ -20,4 +21,13 @@ private Linnworks(String value) { public String value() { return value; } + + public static Optional<Linnworks> fromValue(String value) { + for (Linnworks o: Linnworks.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java b/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java index 9005c7b6a..50345dfb9 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * LoadingMethod - The way data will be uploaded to BigQuery. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Lob.java b/src/main/java/com/airbyte/api/models/shared/Lob.java index 2c3cabb8d..c45eb5f3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lob.java +++ b/src/main/java/com/airbyte/api/models/shared/Lob.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Lob { LOB("lob"); @@ -20,4 +21,13 @@ private Lob(String value) { public String value() { return value; } + + public static Optional<Lob> fromValue(String value) { + for (Lob o: Lob.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Local.java b/src/main/java/com/airbyte/api/models/shared/Local.java index 8236dcef6..9f2a8363d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Local.java +++ b/src/main/java/com/airbyte/api/models/shared/Local.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * Local - Process files locally, supporting `fast` and `ocr` modes. This is the default option. */ diff --git a/src/main/java/com/airbyte/api/models/shared/LocalFilesystemLimited.java b/src/main/java/com/airbyte/api/models/shared/LocalFilesystemLimited.java index 790a68c37..26c552fb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/LocalFilesystemLimited.java +++ b/src/main/java/com/airbyte/api/models/shared/LocalFilesystemLimited.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class LocalFilesystemLimited { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Logging.java b/src/main/java/com/airbyte/api/models/shared/Logging.java index fb6c6b465..b4aa87fbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Logging.java +++ b/src/main/java/com/airbyte/api/models/shared/Logging.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class Logging { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java b/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java index 7cd2a164f..41f688698 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * LoggingConfiguration - Configurate how the messages are logged. */ diff --git a/src/main/java/com/airbyte/api/models/shared/LoggingType.java b/src/main/java/com/airbyte/api/models/shared/LoggingType.java index 757dba0d4..8ca128d4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoggingType.java +++ b/src/main/java/com/airbyte/api/models/shared/LoggingType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum LoggingType { FIRST_N("FirstN"); @@ -20,4 +21,13 @@ private LoggingType(String value) { public String value() { return value; } + + public static Optional<LoggingType> fromValue(String value) { + for (LoggingType o: LoggingType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LoginPassword.java b/src/main/java/com/airbyte/api/models/shared/LoginPassword.java index d3c1caeed..cd3908f99 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoginPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/LoginPassword.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * LoginPassword - Login/Password. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Lokalise.java b/src/main/java/com/airbyte/api/models/shared/Lokalise.java index 5af6b7890..924637bba 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lokalise.java +++ b/src/main/java/com/airbyte/api/models/shared/Lokalise.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Lokalise { LOKALISE("lokalise"); @@ -20,4 +21,13 @@ private Lokalise(String value) { public String value() { return value; } + + public static Optional<Lokalise> fromValue(String value) { + for (Lokalise o: Lokalise.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Looker.java b/src/main/java/com/airbyte/api/models/shared/Looker.java index 2cf54f902..e4e0e6fa7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Looker.java +++ b/src/main/java/com/airbyte/api/models/shared/Looker.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Looker { LOOKER("looker"); @@ -20,4 +21,13 @@ private Looker(String value) { public String value() { return value; } + + public static Optional<Looker> fromValue(String value) { + for (Looker o: Looker.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Luma.java b/src/main/java/com/airbyte/api/models/shared/Luma.java index 0b83dcb33..84d1cb00e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Luma.java +++ b/src/main/java/com/airbyte/api/models/shared/Luma.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Luma { LUMA("luma"); @@ -20,4 +21,13 @@ private Luma(String value) { public String value() { return value; } + + public static Optional<Luma> fromValue(String value) { + for (Luma o: Luma.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailchimp.java b/src/main/java/com/airbyte/api/models/shared/Mailchimp.java index ff0dd7954..aa9cd3b9f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailchimp.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailchimp.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Mailchimp { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/MailchimpCredentials.java b/src/main/java/com/airbyte/api/models/shared/MailchimpCredentials.java index 2845d1904..1fcf4de8d 100644 --- a/src/main/java/com/airbyte/api/models/shared/MailchimpCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MailchimpCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class MailchimpCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Mailerlite.java b/src/main/java/com/airbyte/api/models/shared/Mailerlite.java index a5ce8e996..39149e8fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailerlite.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailerlite.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mailerlite { MAILERLITE("mailerlite"); @@ -20,4 +21,13 @@ private Mailerlite(String value) { public String value() { return value; } + + public static Optional<Mailerlite> fromValue(String value) { + for (Mailerlite o: Mailerlite.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailersend.java b/src/main/java/com/airbyte/api/models/shared/Mailersend.java new file mode 100644 index 000000000..b5ba9483a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Mailersend.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Mailersend { + MAILERSEND("mailersend"); + + @JsonValue + private final String value; + + private Mailersend(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Mailersend> fromValue(String value) { + for (Mailersend o: Mailersend.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Mailgun.java b/src/main/java/com/airbyte/api/models/shared/Mailgun.java index b3fb1e8a1..730977357 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailgun.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailgun.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mailgun { MAILGUN("mailgun"); @@ -20,4 +21,13 @@ private Mailgun(String value) { public String value() { return value; } + + public static Optional<Mailgun> fromValue(String value) { + for (Mailgun o: Mailgun.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MailjetMail.java b/src/main/java/com/airbyte/api/models/shared/MailjetMail.java index 6b1a42896..a9fb41ae0 100644 --- a/src/main/java/com/airbyte/api/models/shared/MailjetMail.java +++ b/src/main/java/com/airbyte/api/models/shared/MailjetMail.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum MailjetMail { MAILJET_MAIL("mailjet-mail"); @@ -20,4 +21,13 @@ private MailjetMail(String value) { public String value() { return value; } + + public static Optional<MailjetMail> fromValue(String value) { + for (MailjetMail o: MailjetMail.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MailjetSms.java b/src/main/java/com/airbyte/api/models/shared/MailjetSms.java index de471b828..ffceea8c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/MailjetSms.java +++ b/src/main/java/com/airbyte/api/models/shared/MailjetSms.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum MailjetSms { MAILJET_SMS("mailjet-sms"); @@ -20,4 +21,13 @@ private MailjetSms(String value) { public String value() { return value; } + + public static Optional<MailjetSms> fromValue(String value) { + for (MailjetSms o: MailjetSms.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailosaur.java b/src/main/java/com/airbyte/api/models/shared/Mailosaur.java index f8f04fbcc..f272bc9e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailosaur.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailosaur.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mailosaur { MAILOSAUR("mailosaur"); @@ -20,4 +21,13 @@ private Mailosaur(String value) { public String value() { return value; } + + public static Optional<Mailosaur> fromValue(String value) { + for (Mailosaur o: Mailosaur.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailtrap.java b/src/main/java/com/airbyte/api/models/shared/Mailtrap.java index 5568b2307..17529ad2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailtrap.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailtrap.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mailtrap { MAILTRAP("mailtrap"); @@ -20,4 +21,13 @@ private Mailtrap(String value) { public String value() { return value; } + + public static Optional<Mailtrap> fromValue(String value) { + for (Mailtrap o: Mailtrap.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java b/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java index c770564e8..2b3d92620 100644 --- a/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java @@ -2,31 +2,78 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.util.Objects; - /** * MapperConfiguration - The values required to configure the mapper. */ +@JsonDeserialize(using = MapperConfiguration._Deserializer.class) public class MapperConfiguration { - @JsonCreator - public MapperConfiguration() { - - + @JsonValue + private TypedObject value; + + private MapperConfiguration(TypedObject value) { + this.value = value; + } + + public static MapperConfiguration of(Hashing value) { + Utils.checkNotNull(value, "value"); + return new MapperConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<Hashing>(){})); + } + + public static MapperConfiguration of(FieldRenaming value) { + Utils.checkNotNull(value, "value"); + return new MapperConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<FieldRenaming>(){})); + } + + public static MapperConfiguration of(RowFiltering value) { + Utils.checkNotNull(value, "value"); + return new MapperConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<RowFiltering>(){})); } - public final static Builder builder() { - return new Builder(); + public static MapperConfiguration of(Encryption value) { + Utils.checkNotNull(value, "value"); + return new MapperConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<Encryption>(){})); } + /** + * Returns an instance of one of these types: + * <ul> + * <li>{@code com.airbyte.api.models.shared.Hashing}</li> + * <li>{@code com.airbyte.api.models.shared.FieldRenaming}</li> + * <li>{@code com.airbyte.api.models.shared.RowFiltering}</li> + * <li>{@code com.airbyte.api.models.shared.Encryption}</li> + * </ul> + * + * <p>Use {@code instanceof} to determine what type is returned. For example: + * + * <pre> + * if (obj.value() instanceof String) { + * String answer = (String) obj.value(); + * System.out.println("answer=" + answer); + * } + * </pre> + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -35,30 +82,31 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - return true; + MapperConfiguration other = (MapperConfiguration) o; + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash( - ); + return Objects.hash(value.value()); } - @Override - public String toString() { - return Utils.toString(MapperConfiguration.class); + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer<MapperConfiguration> { + + public _Deserializer() { + super(MapperConfiguration.class, false, + TypeReferenceWithShape.of(new TypeReference<Encryption>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<Hashing>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<FieldRenaming>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<RowFiltering>() {}, JsonShape.DEFAULT)); + } } - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public MapperConfiguration build() { - return new MapperConfiguration( - ); - } + @Override + public String toString() { + return Utils.toString(MapperConfiguration.class, + "value", value); } + } - diff --git a/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java b/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java index 92deca1e5..7e58899ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java +++ b/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * MarketNewsCategory - This parameter can be 1 of the following values general, forex, crypto, merger. */ @@ -26,4 +27,13 @@ private MarketNewsCategory(String value) { public String value() { return value; } + + public static Optional<MarketNewsCategory> fromValue(String value) { + for (MarketNewsCategory o: MarketNewsCategory.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Marketo.java b/src/main/java/com/airbyte/api/models/shared/Marketo.java index b00c1ab24..228de6121 100644 --- a/src/main/java/com/airbyte/api/models/shared/Marketo.java +++ b/src/main/java/com/airbyte/api/models/shared/Marketo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Marketo { MARKETO("marketo"); @@ -20,4 +21,13 @@ private Marketo(String value) { public String value() { return value; } + + public static Optional<Marketo> fromValue(String value) { + for (Marketo o: Marketo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Marketstack.java b/src/main/java/com/airbyte/api/models/shared/Marketstack.java index 6c21a6546..1cc339f7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Marketstack.java +++ b/src/main/java/com/airbyte/api/models/shared/Marketstack.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Marketstack { MARKETSTACK("marketstack"); @@ -20,4 +21,13 @@ private Marketstack(String value) { public String value() { return value; } + + public static Optional<Marketstack> fromValue(String value) { + for (Marketstack o: Marketstack.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mention.java b/src/main/java/com/airbyte/api/models/shared/Mention.java index 628632177..6a5ed106b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mention.java +++ b/src/main/java/com/airbyte/api/models/shared/Mention.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mention { MENTION("mention"); @@ -20,4 +21,13 @@ private Mention(String value) { public String value() { return value; } + + public static Optional<Mention> fromValue(String value) { + for (Mention o: Mention.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Merge.java b/src/main/java/com/airbyte/api/models/shared/Merge.java new file mode 100644 index 000000000..ade21f929 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Merge.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Merge { + MERGE("merge"); + + @JsonValue + private final String value; + + private Merge(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Merge> fromValue(String value) { + for (Merge o: Merge.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Metabase.java b/src/main/java/com/airbyte/api/models/shared/Metabase.java index 627c23d3e..7df6bbb42 100644 --- a/src/main/java/com/airbyte/api/models/shared/Metabase.java +++ b/src/main/java/com/airbyte/api/models/shared/Metabase.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Metabase { METABASE("metabase"); @@ -20,4 +21,13 @@ private Metabase(String value) { public String value() { return value; } + + public static Optional<Metabase> fromValue(String value) { + for (Metabase o: Metabase.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Method.java b/src/main/java/com/airbyte/api/models/shared/Method.java index 7a1210690..17b47383a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Method.java +++ b/src/main/java/com/airbyte/api/models/shared/Method.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Method { STANDARD("Standard"); @@ -20,4 +21,13 @@ private Method(String value) { public String value() { return value; } + + public static Optional<Method> fromValue(String value) { + for (Method o: Method.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MetricsFilter.java b/src/main/java/com/airbyte/api/models/shared/MetricsFilter.java index 66234743d..d1e38b761 100644 --- a/src/main/java/com/airbyte/api/models/shared/MetricsFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/MetricsFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * MetricsFilter - Metrics filter */ diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java index 0ea1d6ab6..bf121bbd2 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum MicrosoftDataverse { MICROSOFT_DATAVERSE("microsoft-dataverse"); @@ -20,4 +21,13 @@ private MicrosoftDataverse(String value) { public String value() { return value; } + + public static Optional<MicrosoftDataverse> fromValue(String value) { + for (MicrosoftDataverse o: MicrosoftDataverse.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java index df7396acd..6a031b9f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum MicrosoftEntraId { MICROSOFT_ENTRA_ID("microsoft-entra-id"); @@ -20,4 +21,13 @@ private MicrosoftEntraId(String value) { public String value() { return value; } + + public static Optional<MicrosoftEntraId> fromValue(String value) { + for (MicrosoftEntraId o: MicrosoftEntraId.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java index 89c17466f..20b5e9926 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum MicrosoftLists { MICROSOFT_LISTS("microsoft-lists"); @@ -20,4 +21,13 @@ private MicrosoftLists(String value) { public String value() { return value; } + + public static Optional<MicrosoftLists> fromValue(String value) { + for (MicrosoftLists o: MicrosoftLists.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedrive.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedrive.java index de57ed49c..55edb8478 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedrive.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class MicrosoftOnedrive { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedriveCredentials.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedriveCredentials.java index 7b8a6f687..95df18496 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedriveCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedriveCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class MicrosoftOnedriveCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepoint.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepoint.java index a50450980..58586fce3 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepoint.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepoint.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class MicrosoftSharepoint { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepointCredentials.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepointCredentials.java index f97c108a3..adc7aa6bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepointCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepointCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class MicrosoftSharepointCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftTeams.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftTeams.java index 3df87df81..6757796c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftTeams.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftTeams.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class MicrosoftTeams { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftTeamsCredentials.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftTeamsCredentials.java index 3562fc6e4..b06683012 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftTeamsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftTeamsCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class MicrosoftTeamsCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Milvus.java b/src/main/java/com/airbyte/api/models/shared/Milvus.java index 2bf46bc53..de2debd87 100644 --- a/src/main/java/com/airbyte/api/models/shared/Milvus.java +++ b/src/main/java/com/airbyte/api/models/shared/Milvus.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Milvus { MILVUS("milvus"); @@ -20,4 +21,13 @@ private Milvus(String value) { public String value() { return value; } + + public static Optional<Milvus> fromValue(String value) { + for (Milvus o: Milvus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Miro.java b/src/main/java/com/airbyte/api/models/shared/Miro.java index e34ed674c..0b55b8454 100644 --- a/src/main/java/com/airbyte/api/models/shared/Miro.java +++ b/src/main/java/com/airbyte/api/models/shared/Miro.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Miro { MIRO("miro"); @@ -20,4 +21,13 @@ private Miro(String value) { public String value() { return value; } + + public static Optional<Miro> fromValue(String value) { + for (Miro o: Miro.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Missive.java b/src/main/java/com/airbyte/api/models/shared/Missive.java index 9a341ba7d..a10449cfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Missive.java +++ b/src/main/java/com/airbyte/api/models/shared/Missive.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Missive { MISSIVE("missive"); @@ -20,4 +21,13 @@ private Missive(String value) { public String value() { return value; } + + public static Optional<Missive> fromValue(String value) { + for (Missive o: Missive.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mixmax.java b/src/main/java/com/airbyte/api/models/shared/Mixmax.java index bcec4202c..43b600088 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mixmax.java +++ b/src/main/java/com/airbyte/api/models/shared/Mixmax.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mixmax { MIXMAX("mixmax"); @@ -20,4 +21,13 @@ private Mixmax(String value) { public String value() { return value; } + + public static Optional<Mixmax> fromValue(String value) { + for (Mixmax o: Mixmax.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mixpanel.java b/src/main/java/com/airbyte/api/models/shared/Mixpanel.java index 88201a295..df41e51c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mixpanel.java +++ b/src/main/java/com/airbyte/api/models/shared/Mixpanel.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mixpanel { MIXPANEL("mixpanel"); @@ -20,4 +21,13 @@ private Mixpanel(String value) { public String value() { return value; } + + public static Optional<Mixpanel> fromValue(String value) { + for (Mixpanel o: Mixpanel.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mode.java b/src/main/java/com/airbyte/api/models/shared/Mode.java index 621d1275d..e5dfb980d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/Mode.java @@ -2,13 +2,19 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mode { - MODE("mode"); + CBC("CBC"), + CFB("CFB"), + OFB("OFB"), + CTR("CTR"), + GCM("GCM"), + ECB("ECB"); @JsonValue private final String value; @@ -20,4 +26,13 @@ private Mode(String value) { public String value() { return value; } + + public static Optional<Mode> fromValue(String value) { + for (Mode o: Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Monday.java b/src/main/java/com/airbyte/api/models/shared/Monday.java index 6cd47fe36..0f940b235 100644 --- a/src/main/java/com/airbyte/api/models/shared/Monday.java +++ b/src/main/java/com/airbyte/api/models/shared/Monday.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Monday { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/MondayCredentials.java b/src/main/java/com/airbyte/api/models/shared/MondayCredentials.java index fb7190f1a..b934f6e62 100644 --- a/src/main/java/com/airbyte/api/models/shared/MondayCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MondayCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class MondayCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/MongoDBAtlas.java b/src/main/java/com/airbyte/api/models/shared/MongoDBAtlas.java index d99abd883..34d2b2f24 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongoDBAtlas.java +++ b/src/main/java/com/airbyte/api/models/shared/MongoDBAtlas.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class MongoDBAtlas { /** diff --git a/src/main/java/com/airbyte/api/models/shared/MongoDBAtlasReplicaSet.java b/src/main/java/com/airbyte/api/models/shared/MongoDBAtlasReplicaSet.java index be381ee1c..75b128039 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongoDBAtlasReplicaSet.java +++ b/src/main/java/com/airbyte/api/models/shared/MongoDBAtlasReplicaSet.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -23,7 +22,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; - /** * MongoDBAtlasReplicaSet - MongoDB Atlas-hosted cluster configured as a replica set */ @@ -41,7 +39,7 @@ public class MongoDBAtlasReplicaSet { private Optional<String> authSource; @JsonProperty("cluster_type") - private SourceMongodbV2ClusterType clusterType; + private SourceMongodbV2SchemasClusterType clusterType; /** * The connection string of the cluster that you want to replicate. @@ -120,7 +118,7 @@ public Optional<String> authSource() { } @JsonIgnore - public SourceMongodbV2ClusterType clusterType() { + public SourceMongodbV2SchemasClusterType clusterType() { return clusterType; } @@ -430,11 +428,11 @@ public MongoDBAtlasReplicaSet build() { "\"admin\"", new TypeReference<Optional<String>>() {}); - private static final LazySingletonValue<SourceMongodbV2ClusterType> _SINGLETON_VALUE_ClusterType = + private static final LazySingletonValue<SourceMongodbV2SchemasClusterType> _SINGLETON_VALUE_ClusterType = new LazySingletonValue<>( "cluster_type", "\"ATLAS_REPLICA_SET\"", - new TypeReference<SourceMongodbV2ClusterType>() {}); + new TypeReference<SourceMongodbV2SchemasClusterType>() {}); private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_SchemaEnforced = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/MongoDbInstanceType.java b/src/main/java/com/airbyte/api/models/shared/MongoDbInstanceType.java index f960319f7..1d93b111c 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongoDbInstanceType.java +++ b/src/main/java/com/airbyte/api/models/shared/MongoDbInstanceType.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * MongoDbInstanceType - MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Mongodb.java b/src/main/java/com/airbyte/api/models/shared/Mongodb.java index 092746746..3c3d298f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mongodb.java +++ b/src/main/java/com/airbyte/api/models/shared/Mongodb.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mongodb { MONGODB("mongodb"); @@ -20,4 +21,13 @@ private Mongodb(String value) { public String value() { return value; } + + public static Optional<Mongodb> fromValue(String value) { + for (Mongodb o: Mongodb.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MongodbV2.java b/src/main/java/com/airbyte/api/models/shared/MongodbV2.java index c6bf23279..ed4dbce12 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongodbV2.java +++ b/src/main/java/com/airbyte/api/models/shared/MongodbV2.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum MongodbV2 { MONGODB_V2("mongodb-v2"); @@ -20,4 +21,13 @@ private MongodbV2(String value) { public String value() { return value; } + + public static Optional<MongodbV2> fromValue(String value) { + for (MongodbV2 o: MongodbV2.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Motherduck.java b/src/main/java/com/airbyte/api/models/shared/Motherduck.java index 84962b592..88087facd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Motherduck.java +++ b/src/main/java/com/airbyte/api/models/shared/Motherduck.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Motherduck { MOTHERDUCK("motherduck"); @@ -20,4 +21,13 @@ private Motherduck(String value) { public String value() { return value; } + + public static Optional<Motherduck> fromValue(String value) { + for (Motherduck o: Motherduck.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mssql.java b/src/main/java/com/airbyte/api/models/shared/Mssql.java index de0d20ac0..35c4fea48 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mssql.java +++ b/src/main/java/com/airbyte/api/models/shared/Mssql.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mssql { MSSQL("mssql"); @@ -20,4 +21,13 @@ private Mssql(String value) { public String value() { return value; } + + public static Optional<Mssql> fromValue(String value) { + for (Mssql o: Mssql.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MssqlV2.java b/src/main/java/com/airbyte/api/models/shared/MssqlV2.java new file mode 100644 index 000000000..102920551 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/MssqlV2.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum MssqlV2 { + MSSQL_V2("mssql-v2"); + + @JsonValue + private final String value; + + private MssqlV2(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<MssqlV2> fromValue(String value) { + for (MssqlV2 o: MssqlV2.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Mux.java b/src/main/java/com/airbyte/api/models/shared/Mux.java index b882294f4..f8eb8c0e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mux.java +++ b/src/main/java/com/airbyte/api/models/shared/Mux.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mux { MUX("mux"); @@ -20,4 +21,13 @@ private Mux(String value) { public String value() { return value; } + + public static Optional<Mux> fromValue(String value) { + for (Mux o: Mux.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MyHours.java b/src/main/java/com/airbyte/api/models/shared/MyHours.java index b53d2117a..f1826efec 100644 --- a/src/main/java/com/airbyte/api/models/shared/MyHours.java +++ b/src/main/java/com/airbyte/api/models/shared/MyHours.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum MyHours { MY_HOURS("my-hours"); @@ -20,4 +21,13 @@ private MyHours(String value) { public String value() { return value; } + + public static Optional<MyHours> fromValue(String value) { + for (MyHours o: MyHours.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mysql.java b/src/main/java/com/airbyte/api/models/shared/Mysql.java index 2616d32ba..80ebe905d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mysql.java +++ b/src/main/java/com/airbyte/api/models/shared/Mysql.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Mysql { MYSQL("mysql"); @@ -20,4 +21,13 @@ private Mysql(String value) { public String value() { return value; } + + public static Optional<Mysql> fromValue(String value) { + for (Mysql o: Mysql.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/N8n.java b/src/main/java/com/airbyte/api/models/shared/N8n.java index 7d57ba7e9..9e4b05e3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/N8n.java +++ b/src/main/java/com/airbyte/api/models/shared/N8n.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum N8n { N8N("n8n"); @@ -20,4 +21,13 @@ private N8n(String value) { public String value() { return value; } + + public static Optional<N8n> fromValue(String value) { + for (N8n o: N8n.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Name.java b/src/main/java/com/airbyte/api/models/shared/Name.java new file mode 100644 index 000000000..97263c790 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Name.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Name { + UNENCRYPTED("unencrypted"); + + @JsonValue + private final String value; + + private Name(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Name> fromValue(String value) { + for (Name o: Name.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java index b452cda0b..7c2dac188 100644 --- a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * NamespaceDefinitionEnum - Define the location where the data will be stored in the destination */ @@ -25,4 +26,13 @@ private NamespaceDefinitionEnum(String value) { public String value() { return value; } + + public static Optional<NamespaceDefinitionEnum> fromValue(String value) { + for (NamespaceDefinitionEnum o: NamespaceDefinitionEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java index 8755fd9e7..1e741a257 100644 --- a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java +++ b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * NamespaceDefinitionEnumNoDefault - Define the location where the data will be stored in the destination */ @@ -25,4 +26,13 @@ private NamespaceDefinitionEnumNoDefault(String value) { public String value() { return value; } + + public static Optional<NamespaceDefinitionEnumNoDefault> fromValue(String value) { + for (NamespaceDefinitionEnumNoDefault o: NamespaceDefinitionEnumNoDefault.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Nasa.java b/src/main/java/com/airbyte/api/models/shared/Nasa.java index 6e44422f8..c886d604e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nasa.java +++ b/src/main/java/com/airbyte/api/models/shared/Nasa.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Nasa { NASA("nasa"); @@ -20,4 +21,13 @@ private Nasa(String value) { public String value() { return value; } + + public static Optional<Nasa> fromValue(String value) { + for (Nasa o: Nasa.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NativeNetworkEncryptionNNE.java b/src/main/java/com/airbyte/api/models/shared/NativeNetworkEncryptionNNE.java index 9ecd1a96d..da811e5cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/NativeNetworkEncryptionNNE.java +++ b/src/main/java/com/airbyte/api/models/shared/NativeNetworkEncryptionNNE.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * NativeNetworkEncryptionNNE - The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Navan.java b/src/main/java/com/airbyte/api/models/shared/Navan.java new file mode 100644 index 000000000..af0efa48e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Navan.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Navan { + NAVAN("navan"); + + @JsonValue + private final String value; + + private Navan(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Navan> fromValue(String value) { + for (Navan o: Navan.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/NessieCatalog.java b/src/main/java/com/airbyte/api/models/shared/NessieCatalog.java new file mode 100644 index 000000000..4b3800c1a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/NessieCatalog.java @@ -0,0 +1,324 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +/** + * NessieCatalog - Configuration details for connecting to a Nessie-based Iceberg catalog. + */ + +public class NessieCatalog { + + @JsonIgnore + private Map<String, Object> additionalProperties; + + /** + * Optional token for authentication with the Nessie server. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("access_token") + private Optional<String> accessToken; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("catalog_type") + private Optional<? extends DestinationS3DataLakeSchemasCatalogTypeCatalogType> catalogType; + + /** + * The Nessie namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` + */ + @JsonProperty("namespace") + private String namespace; + + /** + * The base URL of the Nessie server used to connect to the Nessie catalog. + */ + @JsonProperty("server_uri") + private String serverUri; + + @JsonCreator + public NessieCatalog( + @JsonProperty("access_token") Optional<String> accessToken, + @JsonProperty("catalog_type") Optional<? extends DestinationS3DataLakeSchemasCatalogTypeCatalogType> catalogType, + @JsonProperty("namespace") String namespace, + @JsonProperty("server_uri") String serverUri) { + Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(catalogType, "catalogType"); + Utils.checkNotNull(namespace, "namespace"); + Utils.checkNotNull(serverUri, "serverUri"); + this.additionalProperties = new HashMap<>(); + this.accessToken = accessToken; + this.catalogType = catalogType; + this.namespace = namespace; + this.serverUri = serverUri; + } + + public NessieCatalog( + String namespace, + String serverUri) { + this(Optional.empty(), Optional.empty(), namespace, serverUri); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + + /** + * Optional token for authentication with the Nessie server. + */ + @JsonIgnore + public Optional<String> accessToken() { + return accessToken; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<DestinationS3DataLakeSchemasCatalogTypeCatalogType> catalogType() { + return (Optional<DestinationS3DataLakeSchemasCatalogTypeCatalogType>) catalogType; + } + + /** + * The Nessie namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` + */ + @JsonIgnore + public String namespace() { + return namespace; + } + + /** + * The base URL of the Nessie server used to connect to the Nessie catalog. + */ + @JsonIgnore + public String serverUri() { + return serverUri; + } + + public final static Builder builder() { + return new Builder(); + } + + @JsonAnySetter + public NessieCatalog withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public NessieCatalog withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Optional token for authentication with the Nessie server. + */ + public NessieCatalog withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + /** + * Optional token for authentication with the Nessie server. + */ + public NessieCatalog withAccessToken(Optional<String> accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + public NessieCatalog withCatalogType(DestinationS3DataLakeSchemasCatalogTypeCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public NessieCatalog withCatalogType(Optional<? extends DestinationS3DataLakeSchemasCatalogTypeCatalogType> catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The Nessie namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` + */ + public NessieCatalog withNamespace(String namespace) { + Utils.checkNotNull(namespace, "namespace"); + this.namespace = namespace; + return this; + } + + /** + * The base URL of the Nessie server used to connect to the Nessie catalog. + */ + public NessieCatalog withServerUri(String serverUri) { + Utils.checkNotNull(serverUri, "serverUri"); + this.serverUri = serverUri; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NessieCatalog other = (NessieCatalog) o; + return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && + Objects.deepEquals(this.accessToken, other.accessToken) && + Objects.deepEquals(this.catalogType, other.catalogType) && + Objects.deepEquals(this.namespace, other.namespace) && + Objects.deepEquals(this.serverUri, other.serverUri); + } + + @Override + public int hashCode() { + return Objects.hash( + additionalProperties, + accessToken, + catalogType, + namespace, + serverUri); + } + + @Override + public String toString() { + return Utils.toString(NessieCatalog.class, + "additionalProperties", additionalProperties, + "accessToken", accessToken, + "catalogType", catalogType, + "namespace", namespace, + "serverUri", serverUri); + } + + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<String> accessToken = Optional.empty(); + + private Optional<? extends DestinationS3DataLakeSchemasCatalogTypeCatalogType> catalogType; + + private String namespace; + + private String serverUri; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Optional token for authentication with the Nessie server. + */ + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + /** + * Optional token for authentication with the Nessie server. + */ + public Builder accessToken(Optional<String> accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + public Builder catalogType(DestinationS3DataLakeSchemasCatalogTypeCatalogType catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = Optional.ofNullable(catalogType); + return this; + } + + public Builder catalogType(Optional<? extends DestinationS3DataLakeSchemasCatalogTypeCatalogType> catalogType) { + Utils.checkNotNull(catalogType, "catalogType"); + this.catalogType = catalogType; + return this; + } + + /** + * The Nessie namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` + */ + public Builder namespace(String namespace) { + Utils.checkNotNull(namespace, "namespace"); + this.namespace = namespace; + return this; + } + + /** + * The base URL of the Nessie server used to connect to the Nessie catalog. + */ + public Builder serverUri(String serverUri) { + Utils.checkNotNull(serverUri, "serverUri"); + this.serverUri = serverUri; + return this; + } + + public NessieCatalog build() { + if (catalogType == null) { + catalogType = _SINGLETON_VALUE_CatalogType.value(); + } return new NessieCatalog( + accessToken, + catalogType, + namespace, + serverUri) + .withAdditionalProperties(additionalProperties); + } + + private static final LazySingletonValue<Optional<? extends DestinationS3DataLakeSchemasCatalogTypeCatalogType>> _SINGLETON_VALUE_CatalogType = + new LazySingletonValue<>( + "catalog_type", + "\"NESSIE\"", + new TypeReference<Optional<? extends DestinationS3DataLakeSchemasCatalogTypeCatalogType>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Netsuite.java b/src/main/java/com/airbyte/api/models/shared/Netsuite.java index 8f081d236..00aa5d26f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Netsuite.java +++ b/src/main/java/com/airbyte/api/models/shared/Netsuite.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Netsuite { NETSUITE("netsuite"); @@ -20,4 +21,13 @@ private Netsuite(String value) { public String value() { return value; } + + public static Optional<Netsuite> fromValue(String value) { + for (Netsuite o: Netsuite.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NewsApi.java b/src/main/java/com/airbyte/api/models/shared/NewsApi.java index 370879d9c..8eecae748 100644 --- a/src/main/java/com/airbyte/api/models/shared/NewsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/NewsApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum NewsApi { NEWS_API("news-api"); @@ -20,4 +21,13 @@ private NewsApi(String value) { public String value() { return value; } + + public static Optional<NewsApi> fromValue(String value) { + for (NewsApi o: NewsApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Newsdata.java b/src/main/java/com/airbyte/api/models/shared/Newsdata.java new file mode 100644 index 000000000..e8862ccf7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Newsdata.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Newsdata { + NEWSDATA("newsdata"); + + @JsonValue + private final String value; + + private Newsdata(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Newsdata> fromValue(String value) { + for (Newsdata o: Newsdata.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java b/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java index 5ced9a69d..10ee1d9ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java +++ b/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum NewsdataIo { NEWSDATA_IO("newsdata-io"); @@ -20,4 +21,13 @@ private NewsdataIo(String value) { public String value() { return value; } + + public static Optional<NewsdataIo> fromValue(String value) { + for (NewsdataIo o: NewsdataIo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NoAuth.java b/src/main/java/com/airbyte/api/models/shared/NoAuth.java index 713593e11..92ea969d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/NoAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * NoAuth - Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses) */ diff --git a/src/main/java/com/airbyte/api/models/shared/NoAuthentication.java b/src/main/java/com/airbyte/api/models/shared/NoAuthentication.java index 8be3082fb..cdd1ca43c 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/NoAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * NoAuthentication - Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses) */ diff --git a/src/main/java/com/airbyte/api/models/shared/NoCompression.java b/src/main/java/com/airbyte/api/models/shared/NoCompression.java index 771953ff6..b6cbad075 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/NoCompression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class NoCompression { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/NoExternalEmbedding.java b/src/main/java/com/airbyte/api/models/shared/NoExternalEmbedding.java index a188d0a40..c0bfa4182 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoExternalEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/NoExternalEmbedding.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * NoExternalEmbedding - Do not calculate and pass embeddings to Weaviate. Suitable for clusters with configured vectorizers to calculate embeddings within Weaviate or for classes that should only support regular text search. */ diff --git a/src/main/java/com/airbyte/api/models/shared/NoTunnel.java b/src/main/java/com/airbyte/api/models/shared/NoTunnel.java index 7cb737eb5..ad587c75f 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/NoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class NoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Nocrm.java b/src/main/java/com/airbyte/api/models/shared/Nocrm.java index 54e6a8a14..7d21a45b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nocrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Nocrm.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Nocrm { NOCRM("nocrm"); @@ -20,4 +21,13 @@ private Nocrm(String value) { public String value() { return value; } + + public static Optional<Nocrm> fromValue(String value) { + for (Nocrm o: Nocrm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java index 4e738155d..db0918a63 100644 --- a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * NonBreakingSchemaUpdatesBehaviorEnum - Set how Airbyte handles syncs when it detects a non-breaking schema change in the source */ @@ -26,4 +27,13 @@ private NonBreakingSchemaUpdatesBehaviorEnum(String value) { public String value() { return value; } + + public static Optional<NonBreakingSchemaUpdatesBehaviorEnum> fromValue(String value) { + for (NonBreakingSchemaUpdatesBehaviorEnum o: NonBreakingSchemaUpdatesBehaviorEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java index 4c9bd878a..0e4bf67e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java +++ b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * NonBreakingSchemaUpdatesBehaviorEnumNoDefault - Set how Airbyte handles syncs when it detects a non-breaking schema change in the source */ @@ -26,4 +27,13 @@ private NonBreakingSchemaUpdatesBehaviorEnumNoDefault(String value) { public String value() { return value; } + + public static Optional<NonBreakingSchemaUpdatesBehaviorEnumNoDefault> fromValue(String value) { + for (NonBreakingSchemaUpdatesBehaviorEnumNoDefault o: NonBreakingSchemaUpdatesBehaviorEnumNoDefault.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/None.java b/src/main/java/com/airbyte/api/models/shared/None.java index d61f1696e..54cbfe1b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/None.java +++ b/src/main/java/com/airbyte/api/models/shared/None.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * None - No authentication will be used */ diff --git a/src/main/java/com/airbyte/api/models/shared/Normalization.java b/src/main/java/com/airbyte/api/models/shared/Normalization.java index ec12c3af5..537f5e10d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Normalization.java +++ b/src/main/java/com/airbyte/api/models/shared/Normalization.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Normalization - Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details. */ @@ -24,4 +25,13 @@ private Normalization(String value) { public String value() { return value; } + + public static Optional<Normalization> fromValue(String value) { + for (Normalization o: Normalization.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NormalizationFlattening.java b/src/main/java/com/airbyte/api/models/shared/NormalizationFlattening.java index 353d7e98f..47af15e7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/NormalizationFlattening.java +++ b/src/main/java/com/airbyte/api/models/shared/NormalizationFlattening.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * NormalizationFlattening - Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. */ @@ -24,4 +25,13 @@ private NormalizationFlattening(String value) { public String value() { return value; } + + public static Optional<NormalizationFlattening> fromValue(String value) { + for (NormalizationFlattening o: NormalizationFlattening.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java b/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java index 6c52e1601..2d135b526 100644 --- a/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java +++ b/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum NorthpassLms { NORTHPASS_LMS("northpass-lms"); @@ -20,4 +21,13 @@ private NorthpassLms(String value) { public String value() { return value; } + + public static Optional<NorthpassLms> fromValue(String value) { + for (NorthpassLms o: NorthpassLms.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Not.java b/src/main/java/com/airbyte/api/models/shared/Not.java new file mode 100644 index 000000000..cf944efa4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Not.java @@ -0,0 +1,130 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +public class Not implements RowFilteringOperation { + + /** + * Conditions to evaluate with the NOT operator. + */ + @JsonProperty("conditions") + private List<RowFilteringOperation> conditions; + + @JsonProperty("type") + private RowFilteringOperationType type; + + @JsonCreator + public Not( + @JsonProperty("conditions") List<RowFilteringOperation> conditions, + @JsonProperty("type") RowFilteringOperationType type) { + Utils.checkNotNull(conditions, "conditions"); + Utils.checkNotNull(type, "type"); + this.conditions = conditions; + this.type = type; + } + + /** + * Conditions to evaluate with the NOT operator. + */ + @JsonIgnore + public List<RowFilteringOperation> conditions() { + return conditions; + } + + @JsonIgnore + @Override + public String type() { + return Utils.discriminatorToString(type); + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Conditions to evaluate with the NOT operator. + */ + public Not withConditions(List<RowFilteringOperation> conditions) { + Utils.checkNotNull(conditions, "conditions"); + this.conditions = conditions; + return this; + } + + public Not withType(RowFilteringOperationType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Not other = (Not) o; + return + Objects.deepEquals(this.conditions, other.conditions) && + Objects.deepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Objects.hash( + conditions, + type); + } + + @Override + public String toString() { + return Utils.toString(Not.class, + "conditions", conditions, + "type", type); + } + + public final static class Builder { + + private List<RowFilteringOperation> conditions; + + private RowFilteringOperationType type; + + private Builder() { + // force use of static builder() method + } + + /** + * Conditions to evaluate with the NOT operator. + */ + public Builder conditions(List<RowFilteringOperation> conditions) { + Utils.checkNotNull(conditions, "conditions"); + this.conditions = conditions; + return this; + } + + public Builder type(RowFilteringOperationType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public Not build() { + return new Not( + conditions, + type); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/NotExpression.java b/src/main/java/com/airbyte/api/models/shared/NotExpression.java index bdfc5ef59..f186d9ca5 100644 --- a/src/main/java/com/airbyte/api/models/shared/NotExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/NotExpression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * NotExpression - The FilterExpression is NOT of notExpression. */ diff --git a/src/main/java/com/airbyte/api/models/shared/NotificationConfig.java b/src/main/java/com/airbyte/api/models/shared/NotificationConfig.java new file mode 100644 index 000000000..a2a197066 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/NotificationConfig.java @@ -0,0 +1,191 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +/** + * NotificationConfig - Configures a notification. + */ + +public class NotificationConfig { + + /** + * Configures an email notification. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("email") + private Optional<? extends EmailNotificationConfig> email; + + /** + * Configures a webhook notification. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("webhook") + private Optional<? extends WebhookNotificationConfig> webhook; + + @JsonCreator + public NotificationConfig( + @JsonProperty("email") Optional<? extends EmailNotificationConfig> email, + @JsonProperty("webhook") Optional<? extends WebhookNotificationConfig> webhook) { + Utils.checkNotNull(email, "email"); + Utils.checkNotNull(webhook, "webhook"); + this.email = email; + this.webhook = webhook; + } + + public NotificationConfig() { + this(Optional.empty(), Optional.empty()); + } + + /** + * Configures an email notification. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<EmailNotificationConfig> email() { + return (Optional<EmailNotificationConfig>) email; + } + + /** + * Configures a webhook notification. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<WebhookNotificationConfig> webhook() { + return (Optional<WebhookNotificationConfig>) webhook; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Configures an email notification. + */ + public NotificationConfig withEmail(EmailNotificationConfig email) { + Utils.checkNotNull(email, "email"); + this.email = Optional.ofNullable(email); + return this; + } + + /** + * Configures an email notification. + */ + public NotificationConfig withEmail(Optional<? extends EmailNotificationConfig> email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * Configures a webhook notification. + */ + public NotificationConfig withWebhook(WebhookNotificationConfig webhook) { + Utils.checkNotNull(webhook, "webhook"); + this.webhook = Optional.ofNullable(webhook); + return this; + } + + /** + * Configures a webhook notification. + */ + public NotificationConfig withWebhook(Optional<? extends WebhookNotificationConfig> webhook) { + Utils.checkNotNull(webhook, "webhook"); + this.webhook = webhook; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NotificationConfig other = (NotificationConfig) o; + return + Objects.deepEquals(this.email, other.email) && + Objects.deepEquals(this.webhook, other.webhook); + } + + @Override + public int hashCode() { + return Objects.hash( + email, + webhook); + } + + @Override + public String toString() { + return Utils.toString(NotificationConfig.class, + "email", email, + "webhook", webhook); + } + + public final static class Builder { + + private Optional<? extends EmailNotificationConfig> email = Optional.empty(); + + private Optional<? extends WebhookNotificationConfig> webhook = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * Configures an email notification. + */ + public Builder email(EmailNotificationConfig email) { + Utils.checkNotNull(email, "email"); + this.email = Optional.ofNullable(email); + return this; + } + + /** + * Configures an email notification. + */ + public Builder email(Optional<? extends EmailNotificationConfig> email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * Configures a webhook notification. + */ + public Builder webhook(WebhookNotificationConfig webhook) { + Utils.checkNotNull(webhook, "webhook"); + this.webhook = Optional.ofNullable(webhook); + return this; + } + + /** + * Configures a webhook notification. + */ + public Builder webhook(Optional<? extends WebhookNotificationConfig> webhook) { + Utils.checkNotNull(webhook, "webhook"); + this.webhook = webhook; + return this; + } + + public NotificationConfig build() { + return new NotificationConfig( + email, + webhook); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/NotificationsConfig.java b/src/main/java/com/airbyte/api/models/shared/NotificationsConfig.java new file mode 100644 index 000000000..4cfb09459 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/NotificationsConfig.java @@ -0,0 +1,435 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +/** + * NotificationsConfig - Configures workspace notifications. + */ + +public class NotificationsConfig { + + /** + * Configures a notification. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("connectionUpdate") + private Optional<? extends NotificationConfig> connectionUpdate; + + /** + * Configures a notification. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("connectionUpdateActionRequired") + private Optional<? extends NotificationConfig> connectionUpdateActionRequired; + + /** + * Configures a notification. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("failure") + private Optional<? extends NotificationConfig> failure; + + /** + * Configures a notification. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("success") + private Optional<? extends NotificationConfig> success; + + /** + * Configures a notification. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("syncDisabled") + private Optional<? extends NotificationConfig> syncDisabled; + + /** + * Configures a notification. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("syncDisabledWarning") + private Optional<? extends NotificationConfig> syncDisabledWarning; + + @JsonCreator + public NotificationsConfig( + @JsonProperty("connectionUpdate") Optional<? extends NotificationConfig> connectionUpdate, + @JsonProperty("connectionUpdateActionRequired") Optional<? extends NotificationConfig> connectionUpdateActionRequired, + @JsonProperty("failure") Optional<? extends NotificationConfig> failure, + @JsonProperty("success") Optional<? extends NotificationConfig> success, + @JsonProperty("syncDisabled") Optional<? extends NotificationConfig> syncDisabled, + @JsonProperty("syncDisabledWarning") Optional<? extends NotificationConfig> syncDisabledWarning) { + Utils.checkNotNull(connectionUpdate, "connectionUpdate"); + Utils.checkNotNull(connectionUpdateActionRequired, "connectionUpdateActionRequired"); + Utils.checkNotNull(failure, "failure"); + Utils.checkNotNull(success, "success"); + Utils.checkNotNull(syncDisabled, "syncDisabled"); + Utils.checkNotNull(syncDisabledWarning, "syncDisabledWarning"); + this.connectionUpdate = connectionUpdate; + this.connectionUpdateActionRequired = connectionUpdateActionRequired; + this.failure = failure; + this.success = success; + this.syncDisabled = syncDisabled; + this.syncDisabledWarning = syncDisabledWarning; + } + + public NotificationsConfig() { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Configures a notification. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<NotificationConfig> connectionUpdate() { + return (Optional<NotificationConfig>) connectionUpdate; + } + + /** + * Configures a notification. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<NotificationConfig> connectionUpdateActionRequired() { + return (Optional<NotificationConfig>) connectionUpdateActionRequired; + } + + /** + * Configures a notification. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<NotificationConfig> failure() { + return (Optional<NotificationConfig>) failure; + } + + /** + * Configures a notification. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<NotificationConfig> success() { + return (Optional<NotificationConfig>) success; + } + + /** + * Configures a notification. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<NotificationConfig> syncDisabled() { + return (Optional<NotificationConfig>) syncDisabled; + } + + /** + * Configures a notification. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<NotificationConfig> syncDisabledWarning() { + return (Optional<NotificationConfig>) syncDisabledWarning; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Configures a notification. + */ + public NotificationsConfig withConnectionUpdate(NotificationConfig connectionUpdate) { + Utils.checkNotNull(connectionUpdate, "connectionUpdate"); + this.connectionUpdate = Optional.ofNullable(connectionUpdate); + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withConnectionUpdate(Optional<? extends NotificationConfig> connectionUpdate) { + Utils.checkNotNull(connectionUpdate, "connectionUpdate"); + this.connectionUpdate = connectionUpdate; + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withConnectionUpdateActionRequired(NotificationConfig connectionUpdateActionRequired) { + Utils.checkNotNull(connectionUpdateActionRequired, "connectionUpdateActionRequired"); + this.connectionUpdateActionRequired = Optional.ofNullable(connectionUpdateActionRequired); + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withConnectionUpdateActionRequired(Optional<? extends NotificationConfig> connectionUpdateActionRequired) { + Utils.checkNotNull(connectionUpdateActionRequired, "connectionUpdateActionRequired"); + this.connectionUpdateActionRequired = connectionUpdateActionRequired; + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withFailure(NotificationConfig failure) { + Utils.checkNotNull(failure, "failure"); + this.failure = Optional.ofNullable(failure); + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withFailure(Optional<? extends NotificationConfig> failure) { + Utils.checkNotNull(failure, "failure"); + this.failure = failure; + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withSuccess(NotificationConfig success) { + Utils.checkNotNull(success, "success"); + this.success = Optional.ofNullable(success); + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withSuccess(Optional<? extends NotificationConfig> success) { + Utils.checkNotNull(success, "success"); + this.success = success; + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withSyncDisabled(NotificationConfig syncDisabled) { + Utils.checkNotNull(syncDisabled, "syncDisabled"); + this.syncDisabled = Optional.ofNullable(syncDisabled); + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withSyncDisabled(Optional<? extends NotificationConfig> syncDisabled) { + Utils.checkNotNull(syncDisabled, "syncDisabled"); + this.syncDisabled = syncDisabled; + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withSyncDisabledWarning(NotificationConfig syncDisabledWarning) { + Utils.checkNotNull(syncDisabledWarning, "syncDisabledWarning"); + this.syncDisabledWarning = Optional.ofNullable(syncDisabledWarning); + return this; + } + + /** + * Configures a notification. + */ + public NotificationsConfig withSyncDisabledWarning(Optional<? extends NotificationConfig> syncDisabledWarning) { + Utils.checkNotNull(syncDisabledWarning, "syncDisabledWarning"); + this.syncDisabledWarning = syncDisabledWarning; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NotificationsConfig other = (NotificationsConfig) o; + return + Objects.deepEquals(this.connectionUpdate, other.connectionUpdate) && + Objects.deepEquals(this.connectionUpdateActionRequired, other.connectionUpdateActionRequired) && + Objects.deepEquals(this.failure, other.failure) && + Objects.deepEquals(this.success, other.success) && + Objects.deepEquals(this.syncDisabled, other.syncDisabled) && + Objects.deepEquals(this.syncDisabledWarning, other.syncDisabledWarning); + } + + @Override + public int hashCode() { + return Objects.hash( + connectionUpdate, + connectionUpdateActionRequired, + failure, + success, + syncDisabled, + syncDisabledWarning); + } + + @Override + public String toString() { + return Utils.toString(NotificationsConfig.class, + "connectionUpdate", connectionUpdate, + "connectionUpdateActionRequired", connectionUpdateActionRequired, + "failure", failure, + "success", success, + "syncDisabled", syncDisabled, + "syncDisabledWarning", syncDisabledWarning); + } + + public final static class Builder { + + private Optional<? extends NotificationConfig> connectionUpdate = Optional.empty(); + + private Optional<? extends NotificationConfig> connectionUpdateActionRequired = Optional.empty(); + + private Optional<? extends NotificationConfig> failure = Optional.empty(); + + private Optional<? extends NotificationConfig> success = Optional.empty(); + + private Optional<? extends NotificationConfig> syncDisabled = Optional.empty(); + + private Optional<? extends NotificationConfig> syncDisabledWarning = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * Configures a notification. + */ + public Builder connectionUpdate(NotificationConfig connectionUpdate) { + Utils.checkNotNull(connectionUpdate, "connectionUpdate"); + this.connectionUpdate = Optional.ofNullable(connectionUpdate); + return this; + } + + /** + * Configures a notification. + */ + public Builder connectionUpdate(Optional<? extends NotificationConfig> connectionUpdate) { + Utils.checkNotNull(connectionUpdate, "connectionUpdate"); + this.connectionUpdate = connectionUpdate; + return this; + } + + /** + * Configures a notification. + */ + public Builder connectionUpdateActionRequired(NotificationConfig connectionUpdateActionRequired) { + Utils.checkNotNull(connectionUpdateActionRequired, "connectionUpdateActionRequired"); + this.connectionUpdateActionRequired = Optional.ofNullable(connectionUpdateActionRequired); + return this; + } + + /** + * Configures a notification. + */ + public Builder connectionUpdateActionRequired(Optional<? extends NotificationConfig> connectionUpdateActionRequired) { + Utils.checkNotNull(connectionUpdateActionRequired, "connectionUpdateActionRequired"); + this.connectionUpdateActionRequired = connectionUpdateActionRequired; + return this; + } + + /** + * Configures a notification. + */ + public Builder failure(NotificationConfig failure) { + Utils.checkNotNull(failure, "failure"); + this.failure = Optional.ofNullable(failure); + return this; + } + + /** + * Configures a notification. + */ + public Builder failure(Optional<? extends NotificationConfig> failure) { + Utils.checkNotNull(failure, "failure"); + this.failure = failure; + return this; + } + + /** + * Configures a notification. + */ + public Builder success(NotificationConfig success) { + Utils.checkNotNull(success, "success"); + this.success = Optional.ofNullable(success); + return this; + } + + /** + * Configures a notification. + */ + public Builder success(Optional<? extends NotificationConfig> success) { + Utils.checkNotNull(success, "success"); + this.success = success; + return this; + } + + /** + * Configures a notification. + */ + public Builder syncDisabled(NotificationConfig syncDisabled) { + Utils.checkNotNull(syncDisabled, "syncDisabled"); + this.syncDisabled = Optional.ofNullable(syncDisabled); + return this; + } + + /** + * Configures a notification. + */ + public Builder syncDisabled(Optional<? extends NotificationConfig> syncDisabled) { + Utils.checkNotNull(syncDisabled, "syncDisabled"); + this.syncDisabled = syncDisabled; + return this; + } + + /** + * Configures a notification. + */ + public Builder syncDisabledWarning(NotificationConfig syncDisabledWarning) { + Utils.checkNotNull(syncDisabledWarning, "syncDisabledWarning"); + this.syncDisabledWarning = Optional.ofNullable(syncDisabledWarning); + return this; + } + + /** + * Configures a notification. + */ + public Builder syncDisabledWarning(Optional<? extends NotificationConfig> syncDisabledWarning) { + Utils.checkNotNull(syncDisabledWarning, "syncDisabledWarning"); + this.syncDisabledWarning = syncDisabledWarning; + return this; + } + + public NotificationsConfig build() { + return new NotificationsConfig( + connectionUpdate, + connectionUpdateActionRequired, + failure, + success, + syncDisabled, + syncDisabledWarning); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Notion.java b/src/main/java/com/airbyte/api/models/shared/Notion.java index fd12e3df0..4c87b16e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Notion.java +++ b/src/main/java/com/airbyte/api/models/shared/Notion.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Notion { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/NotionCredentials.java b/src/main/java/com/airbyte/api/models/shared/NotionCredentials.java index ac858dc40..8632c7b98 100644 --- a/src/main/java/com/airbyte/api/models/shared/NotionCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/NotionCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class NotionCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Nullable.java b/src/main/java/com/airbyte/api/models/shared/Nullable.java index e67b87128..f9d95b662 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nullable.java +++ b/src/main/java/com/airbyte/api/models/shared/Nullable.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Nullable { TITLE("title"), DESCRIPTION("description"), @@ -22,4 +23,13 @@ private Nullable(String value) { public String value() { return value; } + + public static Optional<Nullable> fromValue(String value) { + for (Nullable o: Nullable.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NumericFilter.java b/src/main/java/com/airbyte/api/models/shared/NumericFilter.java index 882746030..1b7a45ea8 100644 --- a/src/main/java/com/airbyte/api/models/shared/NumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/NumericFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.List; import java.util.Objects; - public class NumericFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/Nutshell.java b/src/main/java/com/airbyte/api/models/shared/Nutshell.java index 210f13921..358381e52 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nutshell.java +++ b/src/main/java/com/airbyte/api/models/shared/Nutshell.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Nutshell { NUTSHELL("nutshell"); @@ -20,4 +21,13 @@ private Nutshell(String value) { public String value() { return value; } + + public static Optional<Nutshell> fromValue(String value) { + for (Nutshell o: Nutshell.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Nylas.java b/src/main/java/com/airbyte/api/models/shared/Nylas.java index 511f11e7d..b17f90711 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nylas.java +++ b/src/main/java/com/airbyte/api/models/shared/Nylas.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Nylas { NYLAS("nylas"); @@ -20,4 +21,13 @@ private Nylas(String value) { public String value() { return value; } + + public static Optional<Nylas> fromValue(String value) { + for (Nylas o: Nylas.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Nytimes.java b/src/main/java/com/airbyte/api/models/shared/Nytimes.java index 59581d9e7..fe4ac9f1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nytimes.java +++ b/src/main/java/com/airbyte/api/models/shared/Nytimes.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Nytimes { NYTIMES("nytimes"); @@ -20,4 +21,13 @@ private Nytimes(String value) { public String value() { return value; } + + public static Optional<Nytimes> fromValue(String value) { + for (Nytimes o: Nytimes.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth.java b/src/main/java/com/airbyte/api/models/shared/OAuth.java index 6fa1e87a5..111bc3eb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class OAuth { /** diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth20.java b/src/main/java/com/airbyte/api/models/shared/OAuth20.java index dcee6b14c..5a6579e52 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class OAuth20 { @JsonProperty("auth_method") diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth20Credentials.java b/src/main/java/com/airbyte/api/models/shared/OAuth20Credentials.java index 90e9ae27f..93e0d395f 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth20Credentials.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth20Credentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * OAuth20Credentials - OAuth2.0 credentials used to authenticate admin actions (creating/deleting corpora) */ diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java b/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java index 14a973b99..a2ad109da 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class OAuth20WithPrivateKey { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth2AccessToken.java b/src/main/java/com/airbyte/api/models/shared/OAuth2AccessToken.java index 89415d8bc..37c1ec64a 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth2AccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth2AccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class OAuth2AccessToken { /** @@ -25,7 +23,7 @@ public class OAuth2AccessToken { private String accessToken; @JsonProperty("auth_type") - private SourceAuth0SchemasCredentialsAuthenticationMethod authType; + private SourceAuth0SchemasAuthenticationMethod authType; @JsonCreator public OAuth2AccessToken( @@ -44,7 +42,7 @@ public String accessToken() { } @JsonIgnore - public SourceAuth0SchemasCredentialsAuthenticationMethod authType() { + public SourceAuth0SchemasAuthenticationMethod authType() { return authType; } @@ -111,11 +109,11 @@ public OAuth2AccessToken build() { accessToken); } - private static final LazySingletonValue<SourceAuth0SchemasCredentialsAuthenticationMethod> _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue<SourceAuth0SchemasAuthenticationMethod> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"oauth2_access_token\"", - new TypeReference<SourceAuth0SchemasCredentialsAuthenticationMethod>() {}); + new TypeReference<SourceAuth0SchemasAuthenticationMethod>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth2ConfidentialApplication.java b/src/main/java/com/airbyte/api/models/shared/OAuth2ConfidentialApplication.java index c450bd781..837cb5966 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth2ConfidentialApplication.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth2ConfidentialApplication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class OAuth2ConfidentialApplication { /** @@ -25,7 +23,7 @@ public class OAuth2ConfidentialApplication { private String audience; @JsonProperty("auth_type") - private SourceAuth0SchemasAuthenticationMethod authType; + private SourceAuth0SchemasCredentialsAuthenticationMethod authType; /** * Your application's Client ID. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. @@ -62,7 +60,7 @@ public String audience() { } @JsonIgnore - public SourceAuth0SchemasAuthenticationMethod authType() { + public SourceAuth0SchemasCredentialsAuthenticationMethod authType() { return authType; } @@ -193,11 +191,11 @@ public OAuth2ConfidentialApplication build() { clientSecret); } - private static final LazySingletonValue<SourceAuth0SchemasAuthenticationMethod> _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue<SourceAuth0SchemasCredentialsAuthenticationMethod> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"oauth2_confidential_application\"", - new TypeReference<SourceAuth0SchemasAuthenticationMethod>() {}); + new TypeReference<SourceAuth0SchemasCredentialsAuthenticationMethod>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java b/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java index 851454068..a8660bc3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class OAuth2Recommended { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java b/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java index c39242193..0cebdc127 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum OAuthActorNames { AIRTABLE("airtable"), AMAZON_ADS("amazon-ads"), @@ -26,7 +27,6 @@ public enum OAuthActorNames { GOOGLE_SHEETS("google-sheets"), HUBSPOT("hubspot"), INSTAGRAM("instagram"), - INTERCOM("intercom"), LEVER_HIRING("lever-hiring"), LINKEDIN_ADS("linkedin-ads"), MAILCHIMP("mailchimp"), @@ -61,4 +61,13 @@ private OAuthActorNames(String value) { public String value() { return value; } + + public static Optional<OAuthActorNames> fromValue(String value) { + for (OAuthActorNames o: OAuthActorNames.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java b/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java index d8e1f0ca5..6101e4313 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * OAuthCredentialsConfiguration - The values required to configure the source. */ @@ -123,11 +121,6 @@ public static OAuthCredentialsConfiguration of(Instagram value) { return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<Instagram>(){})); } - public static OAuthCredentialsConfiguration of(Intercom value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<Intercom>(){})); - } - public static OAuthCredentialsConfiguration of(LeverHiring value) { Utils.checkNotNull(value, "value"); return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<LeverHiring>(){})); @@ -269,7 +262,6 @@ public static OAuthCredentialsConfiguration of(ZendeskTalk value) { * <li>{@code com.airbyte.api.models.shared.GoogleSheets}</li> * <li>{@code com.airbyte.api.models.shared.Hubspot}</li> * <li>{@code com.airbyte.api.models.shared.Instagram}</li> - * <li>{@code com.airbyte.api.models.shared.Intercom}</li> * <li>{@code com.airbyte.api.models.shared.LeverHiring}</li> * <li>{@code com.airbyte.api.models.shared.LinkedinAds}</li> * <li>{@code com.airbyte.api.models.shared.Mailchimp}</li> @@ -337,30 +329,29 @@ public _Deserializer() { TypeReferenceWithShape.of(new TypeReference<AmazonSellerPartner>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<BingAds>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Instagram>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<Intercom>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<AmazonAds>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Salesforce>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SnapchatMarketing>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<Snowflake>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Surveymonkey>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<Snowflake>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<TiktokMarketing>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Smartsheets>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Slack>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Shopify>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<TiktokMarketing>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<Typeform>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<RdStationMarketing>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Pinterest>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Notion>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Monday>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<MicrosoftTeams>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<MicrosoftSharepoint>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<GoogleSheets>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<Typeform>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<ZendeskSupport>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<LeverHiring>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<YoutubeAnalytics>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<Airtable>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<ZendeskChat>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<LinkedinAds>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<LeverHiring>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<ZendeskSupport>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Hubspot>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<MicrosoftOnedrive>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<GoogleSheets>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<GoogleSearchConsole>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<GoogleDrive>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<GoogleAnalyticsDataApi>() {}, JsonShape.DEFAULT), @@ -370,12 +361,12 @@ public _Deserializer() { TypeReferenceWithShape.of(new TypeReference<Gcs>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<FacebookMarketing>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Drift>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<Airtable>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<AzureBlobStorage>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<Mailchimp>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<ZendeskTalk>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<AzureBlobStorage>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Asana>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<LinkedinAds>() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference<MicrosoftSharepoint>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<MicrosoftOnedrive>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<Mailchimp>() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/OauthAuthentication.java b/src/main/java/com/airbyte/api/models/shared/OauthAuthentication.java index a917ba342..d5c5fa1ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/OauthAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/OauthAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class OauthAuthentication { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/Okta.java b/src/main/java/com/airbyte/api/models/shared/Okta.java index 32541cd01..57b8e3d7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Okta.java +++ b/src/main/java/com/airbyte/api/models/shared/Okta.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Okta { OKTA("okta"); @@ -20,4 +21,13 @@ private Okta(String value) { public String value() { return value; } + + public static Optional<Okta> fromValue(String value) { + for (Okta o: Okta.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Omnisend.java b/src/main/java/com/airbyte/api/models/shared/Omnisend.java index a11cc228c..a1227001e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Omnisend.java +++ b/src/main/java/com/airbyte/api/models/shared/Omnisend.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Omnisend { OMNISEND("omnisend"); @@ -20,4 +21,13 @@ private Omnisend(String value) { public String value() { return value; } + + public static Optional<Omnisend> fromValue(String value) { + for (Omnisend o: Omnisend.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Oncehub.java b/src/main/java/com/airbyte/api/models/shared/Oncehub.java index 5dbed3a90..99b8962be 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oncehub.java +++ b/src/main/java/com/airbyte/api/models/shared/Oncehub.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Oncehub { ONCEHUB("oncehub"); @@ -20,4 +21,13 @@ private Oncehub(String value) { public String value() { return value; } + + public static Optional<Oncehub> fromValue(String value) { + for (Oncehub o: Oncehub.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java b/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java index 5ad3afae2..55a71f5b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Onepagecrm { ONEPAGECRM("onepagecrm"); @@ -20,4 +21,13 @@ private Onepagecrm(String value) { public String value() { return value; } + + public static Optional<Onepagecrm> fromValue(String value) { + for (Onepagecrm o: Onepagecrm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Onesignal.java b/src/main/java/com/airbyte/api/models/shared/Onesignal.java index a0a755fdd..ffabb19d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Onesignal.java +++ b/src/main/java/com/airbyte/api/models/shared/Onesignal.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Onesignal { ONESIGNAL("onesignal"); @@ -20,4 +21,13 @@ private Onesignal(String value) { public String value() { return value; } + + public static Optional<Onesignal> fromValue(String value) { + for (Onesignal o: Onesignal.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Onfleet.java b/src/main/java/com/airbyte/api/models/shared/Onfleet.java index 27dad1ef0..a084d00aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Onfleet.java +++ b/src/main/java/com/airbyte/api/models/shared/Onfleet.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Onfleet { ONFLEET("onfleet"); @@ -20,4 +21,13 @@ private Onfleet(String value) { public String value() { return value; } + + public static Optional<Onfleet> fromValue(String value) { + for (Onfleet o: Onfleet.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OpenAI.java b/src/main/java/com/airbyte/api/models/shared/OpenAI.java index 02fdf8e29..cd6ca28e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/OpenAI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * OpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. */ @@ -27,7 +25,7 @@ public class OpenAI { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationAstraSchemasEmbeddingEmbedding1Mode> mode; + private Optional<? extends DestinationAstraMode> mode; @JsonProperty("openai_key") private String openaiKey; @@ -42,8 +40,8 @@ public OpenAI( @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationAstraSchemasEmbeddingEmbedding1Mode> mode() { - return (Optional<DestinationAstraSchemasEmbeddingEmbedding1Mode>) mode; + public Optional<DestinationAstraMode> mode() { + return (Optional<DestinationAstraMode>) mode; } @JsonIgnore @@ -108,11 +106,11 @@ public OpenAI build() { openaiKey); } - private static final LazySingletonValue<Optional<? extends DestinationAstraSchemasEmbeddingEmbedding1Mode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationAstraMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"openai\"", - new TypeReference<Optional<? extends DestinationAstraSchemasEmbeddingEmbedding1Mode>>() {}); + new TypeReference<Optional<? extends DestinationAstraMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java index e179659fb..8cf96615a 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * OpenAICompatible - Use a service that's compatible with the OpenAI API to embed text. */ @@ -44,7 +42,7 @@ public class OpenAICompatible { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationAstraSchemasEmbeddingEmbeddingMode> mode; + private Optional<? extends DestinationAstraSchemasEmbeddingEmbedding5Mode> mode; /** * The name of the model to use for embedding @@ -99,8 +97,8 @@ public long dimensions() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationAstraSchemasEmbeddingEmbeddingMode> mode() { - return (Optional<DestinationAstraSchemasEmbeddingEmbeddingMode>) mode; + public Optional<DestinationAstraSchemasEmbeddingEmbedding5Mode> mode() { + return (Optional<DestinationAstraSchemasEmbeddingEmbedding5Mode>) mode; } /** @@ -281,11 +279,11 @@ public OpenAICompatible build() { "\"\"", new TypeReference<Optional<String>>() {}); - private static final LazySingletonValue<Optional<? extends DestinationAstraSchemasEmbeddingEmbeddingMode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationAstraSchemasEmbeddingEmbedding5Mode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"openai_compatible\"", - new TypeReference<Optional<? extends DestinationAstraSchemasEmbeddingEmbeddingMode>>() {}); + new TypeReference<Optional<? extends DestinationAstraSchemasEmbeddingEmbedding5Mode>>() {}); private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_ModelName = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java b/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java index 5bf2f5e56..910ffe4ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java +++ b/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum OpenDataDc { OPEN_DATA_DC("open-data-dc"); @@ -20,4 +21,13 @@ private OpenDataDc(String value) { public String value() { return value; } + + public static Optional<OpenDataDc> fromValue(String value) { + for (OpenDataDc o: OpenDataDc.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Openaq.java b/src/main/java/com/airbyte/api/models/shared/Openaq.java index d7e6d5a51..cb3c8fc11 100644 --- a/src/main/java/com/airbyte/api/models/shared/Openaq.java +++ b/src/main/java/com/airbyte/api/models/shared/Openaq.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Openaq { OPENAQ("openaq"); @@ -20,4 +21,13 @@ private Openaq(String value) { public String value() { return value; } + + public static Optional<Openaq> fromValue(String value) { + for (Openaq o: Openaq.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Openfda.java b/src/main/java/com/airbyte/api/models/shared/Openfda.java index ea01a8511..54da6da1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Openfda.java +++ b/src/main/java/com/airbyte/api/models/shared/Openfda.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Openfda { OPENFDA("openfda"); @@ -20,4 +21,13 @@ private Openfda(String value) { public String value() { return value; } + + public static Optional<Openfda> fromValue(String value) { + for (Openfda o: Openfda.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Openweather.java b/src/main/java/com/airbyte/api/models/shared/Openweather.java index fb3e0ee48..0199ea1d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Openweather.java +++ b/src/main/java/com/airbyte/api/models/shared/Openweather.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Openweather { OPENWEATHER("openweather"); @@ -20,4 +21,13 @@ private Openweather(String value) { public String value() { return value; } + + public static Optional<Openweather> fromValue(String value) { + for (Openweather o: Openweather.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Operator.java b/src/main/java/com/airbyte/api/models/shared/Operator.java index ebff62114..d26f6c3c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Operator.java +++ b/src/main/java/com/airbyte/api/models/shared/Operator.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Operator - An Operator that will be used to filter accounts. The Contains predicate has features for matching words, matching inflectional forms of words, searching using wildcard characters, and searching using proximity. The Equals is used to return all rows where account name is equal(=) to the string that you provided */ @@ -24,4 +25,13 @@ private Operator(String value) { public String value() { return value; } + + public static Optional<Operator> fromValue(String value) { + for (Operator o: Operator.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OpinionStage.java b/src/main/java/com/airbyte/api/models/shared/OpinionStage.java index 8a13d8455..4ac093201 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpinionStage.java +++ b/src/main/java/com/airbyte/api/models/shared/OpinionStage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum OpinionStage { OPINION_STAGE("opinion-stage"); @@ -20,4 +21,13 @@ private OpinionStage(String value) { public String value() { return value; } + + public static Optional<OpinionStage> fromValue(String value) { + for (OpinionStage o: OpinionStage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Opsgenie.java b/src/main/java/com/airbyte/api/models/shared/Opsgenie.java index 80c9d4881..f4a1ae0d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Opsgenie.java +++ b/src/main/java/com/airbyte/api/models/shared/Opsgenie.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Opsgenie { OPSGENIE("opsgenie"); @@ -20,4 +21,13 @@ private Opsgenie(String value) { public String value() { return value; } + + public static Optional<Opsgenie> fromValue(String value) { + for (Opsgenie o: Opsgenie.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OptionTitle.java b/src/main/java/com/airbyte/api/models/shared/OptionTitle.java index 2762e09a0..c155ea949 100644 --- a/src/main/java/com/airbyte/api/models/shared/OptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/OptionTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum OptionTitle { O_AUTH_CREDENTIALS("OAuth Credentials"); @@ -20,4 +21,13 @@ private OptionTitle(String value) { public String value() { return value; } + + public static Optional<OptionTitle> fromValue(String value) { + for (OptionTitle o: OptionTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OptionsList.java b/src/main/java/com/airbyte/api/models/shared/OptionsList.java index 29507b67d..644f7bfeb 100644 --- a/src/main/java/com/airbyte/api/models/shared/OptionsList.java +++ b/src/main/java/com/airbyte/api/models/shared/OptionsList.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class OptionsList { @JsonProperty("option_name") diff --git a/src/main/java/com/airbyte/api/models/shared/OrGroup.java b/src/main/java/com/airbyte/api/models/shared/OrGroup.java index 8b18b0796..0d8655f58 100644 --- a/src/main/java/com/airbyte/api/models/shared/OrGroup.java +++ b/src/main/java/com/airbyte/api/models/shared/OrGroup.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.List; import java.util.Objects; - /** * OrGroup - The FilterExpressions in orGroup have an OR relationship. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Oracle.java b/src/main/java/com/airbyte/api/models/shared/Oracle.java index db82b7cb6..8e61386f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oracle.java +++ b/src/main/java/com/airbyte/api/models/shared/Oracle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Oracle { ORACLE("oracle"); @@ -20,4 +21,13 @@ private Oracle(String value) { public String value() { return value; } + + public static Optional<Oracle> fromValue(String value) { + for (Oracle o: Oracle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Orb.java b/src/main/java/com/airbyte/api/models/shared/Orb.java index 97f0f4634..8abbe1f70 100644 --- a/src/main/java/com/airbyte/api/models/shared/Orb.java +++ b/src/main/java/com/airbyte/api/models/shared/Orb.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Orb { ORB("orb"); @@ -20,4 +21,13 @@ private Orb(String value) { public String value() { return value; } + + public static Optional<Orb> fromValue(String value) { + for (Orb o: Orb.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Orbit.java b/src/main/java/com/airbyte/api/models/shared/Orbit.java deleted file mode 100644 index 0cb1fd04c..000000000 --- a/src/main/java/com/airbyte/api/models/shared/Orbit.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum Orbit { - ORBIT("orbit"); - - @JsonValue - private final String value; - - private Orbit(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java b/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java index ab8faafd4..a55cd1d5d 100644 --- a/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * OrganizationResponse - Provides details of a single organization for a user. */ diff --git a/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java b/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java index 2259b539d..6cfe4be0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.List; import java.util.Objects; - /** * OrganizationsResponse - List/Array of multiple organizations. */ diff --git a/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java b/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java index 144668712..c4023539f 100644 --- a/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java +++ b/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * OriginDatacenterOfTheSurveyMonkeyAccount - Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different. */ @@ -25,4 +26,13 @@ private OriginDatacenterOfTheSurveyMonkeyAccount(String value) { public String value() { return value; } + + public static Optional<OriginDatacenterOfTheSurveyMonkeyAccount> fromValue(String value) { + for (OriginDatacenterOfTheSurveyMonkeyAccount o: OriginDatacenterOfTheSurveyMonkeyAccount.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Oura.java b/src/main/java/com/airbyte/api/models/shared/Oura.java index f5b2a7481..1ddbf98fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oura.java +++ b/src/main/java/com/airbyte/api/models/shared/Oura.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Oura { OURA("oura"); @@ -20,4 +21,13 @@ private Oura(String value) { public String value() { return value; } + + public static Optional<Oura> fromValue(String value) { + for (Oura o: Oura.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java b/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java index 08c0f0990..610d01551 100644 --- a/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java +++ b/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum OutbrainAmplify { OUTBRAIN_AMPLIFY("outbrain-amplify"); @@ -20,4 +21,13 @@ private OutbrainAmplify(String value) { public String value() { return value; } + + public static Optional<OutbrainAmplify> fromValue(String value) { + for (OutbrainAmplify o: OutbrainAmplify.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OutputFormat.java b/src/main/java/com/airbyte/api/models/shared/OutputFormat.java index b52e70ff1..5eb7577f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/OutputFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/OutputFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * OutputFormat - Output data format */ diff --git a/src/main/java/com/airbyte/api/models/shared/OutputFormatWildcard.java b/src/main/java/com/airbyte/api/models/shared/OutputFormatWildcard.java index f765f3e01..88f084076 100644 --- a/src/main/java/com/airbyte/api/models/shared/OutputFormatWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/OutputFormatWildcard.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * OutputFormatWildcard - Format of the data output. */ diff --git a/src/main/java/com/airbyte/api/models/shared/OutputSize.java b/src/main/java/com/airbyte/api/models/shared/OutputSize.java new file mode 100644 index 000000000..30adfef60 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/OutputSize.java @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * OutputSize - Whether to return full or compact data (the last 100 data points). + * + */ +public enum OutputSize { + COMPACT("compact"), + FULL("full"); + + @JsonValue + private final String value; + + private OutputSize(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<OutputSize> fromValue(String value) { + for (OutputSize o: OutputSize.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Outreach.java b/src/main/java/com/airbyte/api/models/shared/Outreach.java index dd2565d7c..d151e2b98 100644 --- a/src/main/java/com/airbyte/api/models/shared/Outreach.java +++ b/src/main/java/com/airbyte/api/models/shared/Outreach.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Outreach { OUTREACH("outreach"); @@ -20,4 +21,13 @@ private Outreach(String value) { public String value() { return value; } + + public static Optional<Outreach> fromValue(String value) { + for (Outreach o: Outreach.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Oveit.java b/src/main/java/com/airbyte/api/models/shared/Oveit.java index f02785672..a65360c80 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oveit.java +++ b/src/main/java/com/airbyte/api/models/shared/Oveit.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Oveit { OVEIT("oveit"); @@ -20,4 +21,13 @@ private Oveit(String value) { public String value() { return value; } + + public static Optional<Oveit> fromValue(String value) { + for (Oveit o: Oveit.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java b/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java index 6f32f39e2..71b35da90 100644 --- a/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum PabblySubscriptionsBilling { PABBLY_SUBSCRIPTIONS_BILLING("pabbly-subscriptions-billing"); @@ -20,4 +21,13 @@ private PabblySubscriptionsBilling(String value) { public String value() { return value; } + + public static Optional<PabblySubscriptionsBilling> fromValue(String value) { + for (PabblySubscriptionsBilling o: PabblySubscriptionsBilling.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Padding.java b/src/main/java/com/airbyte/api/models/shared/Padding.java new file mode 100644 index 000000000..4dd61fe95 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Padding.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Padding { + NO_PADDING("NoPadding"), + PKCS5_PADDING("PKCS5Padding"); + + @JsonValue + private final String value; + + private Padding(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Padding> fromValue(String value) { + for (Padding o: Padding.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Pandadoc.java b/src/main/java/com/airbyte/api/models/shared/Pandadoc.java index a58ef0704..a3648799f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pandadoc.java +++ b/src/main/java/com/airbyte/api/models/shared/Pandadoc.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pandadoc { PANDADOC("pandadoc"); @@ -20,4 +21,13 @@ private Pandadoc(String value) { public String value() { return value; } + + public static Optional<Pandadoc> fromValue(String value) { + for (Pandadoc o: Pandadoc.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Paperform.java b/src/main/java/com/airbyte/api/models/shared/Paperform.java index e40517717..12477c6c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Paperform.java +++ b/src/main/java/com/airbyte/api/models/shared/Paperform.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Paperform { PAPERFORM("paperform"); @@ -20,4 +21,13 @@ private Paperform(String value) { public String value() { return value; } + + public static Optional<Paperform> fromValue(String value) { + for (Paperform o: Paperform.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Papersign.java b/src/main/java/com/airbyte/api/models/shared/Papersign.java index b51b7f28d..6c1ea743b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Papersign.java +++ b/src/main/java/com/airbyte/api/models/shared/Papersign.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Papersign { PAPERSIGN("papersign"); @@ -20,4 +21,13 @@ private Papersign(String value) { public String value() { return value; } + + public static Optional<Papersign> fromValue(String value) { + for (Papersign o: Papersign.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pardot.java b/src/main/java/com/airbyte/api/models/shared/Pardot.java index b481fd175..164de1760 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pardot.java +++ b/src/main/java/com/airbyte/api/models/shared/Pardot.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pardot { PARDOT("pardot"); @@ -20,4 +21,13 @@ private Pardot(String value) { public String value() { return value; } + + public static Optional<Pardot> fromValue(String value) { + for (Pardot o: Pardot.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ParquetColumnarStorage.java b/src/main/java/com/airbyte/api/models/shared/ParquetColumnarStorage.java index b153d2887..5b2505321 100644 --- a/src/main/java/com/airbyte/api/models/shared/ParquetColumnarStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/ParquetColumnarStorage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ParquetColumnarStorage { /** diff --git a/src/main/java/com/airbyte/api/models/shared/ParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/ParquetFormat.java index 8d35270ca..43701c9cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/ParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/ParquetFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class ParquetFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java index 73684f870..f4a765c71 100644 --- a/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ParsingStrategy - The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @@ -26,4 +27,13 @@ private ParsingStrategy(String value) { public String value() { return value; } + + public static Optional<ParsingStrategy> fromValue(String value) { + for (ParsingStrategy o: ParsingStrategy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/PasswordAuthentication.java index 2f61bfb3d..c2fd56f87 100644 --- a/src/main/java/com/airbyte/api/models/shared/PasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/PasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class PasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Payfit.java b/src/main/java/com/airbyte/api/models/shared/Payfit.java new file mode 100644 index 000000000..8532360b8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Payfit.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Payfit { + PAYFIT("payfit"); + + @JsonValue + private final String value; + + private Payfit(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Payfit> fromValue(String value) { + for (Payfit o: Payfit.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java b/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java index af08303bb..dee38775e 100644 --- a/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java +++ b/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum PaypalTransaction { PAYPAL_TRANSACTION("paypal-transaction"); @@ -20,4 +21,13 @@ private PaypalTransaction(String value) { public String value() { return value; } + + public static Optional<PaypalTransaction> fromValue(String value) { + for (PaypalTransaction o: PaypalTransaction.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Paystack.java b/src/main/java/com/airbyte/api/models/shared/Paystack.java index b86f5cd63..7ebda583b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Paystack.java +++ b/src/main/java/com/airbyte/api/models/shared/Paystack.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Paystack { PAYSTACK("paystack"); @@ -20,4 +21,13 @@ private Paystack(String value) { public String value() { return value; } + + public static Optional<Paystack> fromValue(String value) { + for (Paystack o: Paystack.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pendo.java b/src/main/java/com/airbyte/api/models/shared/Pendo.java index df5d01c57..9c18eb1b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pendo.java +++ b/src/main/java/com/airbyte/api/models/shared/Pendo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pendo { PENDO("pendo"); @@ -20,4 +21,13 @@ private Pendo(String value) { public String value() { return value; } + + public static Optional<Pendo> fromValue(String value) { + for (Pendo o: Pendo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pennylane.java b/src/main/java/com/airbyte/api/models/shared/Pennylane.java index f1c21654c..485eb9494 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pennylane.java +++ b/src/main/java/com/airbyte/api/models/shared/Pennylane.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pennylane { PENNYLANE("pennylane"); @@ -20,4 +21,13 @@ private Pennylane(String value) { public String value() { return value; } + + public static Optional<Pennylane> fromValue(String value) { + for (Pennylane o: Pennylane.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java b/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java index a88712800..fe755acdf 100644 --- a/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java +++ b/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; - +import java.util.Objects; +import java.util.Optional; /** * PeriodUsedForMostPopularStreams - Period of time (in days) */ @@ -24,4 +25,13 @@ private PeriodUsedForMostPopularStreams(long value) { public long value() { return value; } + + public static Optional<PeriodUsedForMostPopularStreams> fromValue(long value) { + for (PeriodUsedForMostPopularStreams o: PeriodUsedForMostPopularStreams.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java index a0674c635..7fa1d6bf7 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class PermissionCreateRequest { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionResponse.java b/src/main/java/com/airbyte/api/models/shared/PermissionResponse.java index 9a510cd73..82677af48 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * PermissionResponse - Provides details of a single permission. */ diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionResponseRead.java b/src/main/java/com/airbyte/api/models/shared/PermissionResponseRead.java index 04131fc2f..ea3a4a1b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionResponseRead.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionResponseRead.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * PermissionResponseRead - Reformat PermissionResponse with permission scope */ diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionScope.java b/src/main/java/com/airbyte/api/models/shared/PermissionScope.java index bf47a30a6..ca1c5ce98 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionScope.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionScope.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * PermissionScope - Scope of a single permission, e.g. workspace, organization */ @@ -25,4 +26,13 @@ private PermissionScope(String value) { public String value() { return value; } + + public static Optional<PermissionScope> fromValue(String value) { + for (PermissionScope o: PermissionScope.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionType.java b/src/main/java/com/airbyte/api/models/shared/PermissionType.java index 2ed016099..2f76dcd23 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionType.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * PermissionType - Describes what actions/endpoints the permission entitles to */ @@ -33,4 +34,13 @@ private PermissionType(String value) { public String value() { return value; } + + public static Optional<PermissionType> fromValue(String value) { + for (PermissionType o: PermissionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionUpdateRequest.java b/src/main/java/com/airbyte/api/models/shared/PermissionUpdateRequest.java index f3c2bbfd0..f91025c57 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionUpdateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionUpdateRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class PermissionUpdateRequest { /** diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionsResponse.java b/src/main/java/com/airbyte/api/models/shared/PermissionsResponse.java index 2f74bbaa8..862ec517d 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionsResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.List; import java.util.Objects; - /** * PermissionsResponse - List/Array of multiple permissions */ diff --git a/src/main/java/com/airbyte/api/models/shared/Persistiq.java b/src/main/java/com/airbyte/api/models/shared/Persistiq.java index 1a10714a3..7e37bcb2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Persistiq.java +++ b/src/main/java/com/airbyte/api/models/shared/Persistiq.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Persistiq { PERSISTIQ("persistiq"); @@ -20,4 +21,13 @@ private Persistiq(String value) { public String value() { return value; } + + public static Optional<Persistiq> fromValue(String value) { + for (Persistiq o: Persistiq.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Persona.java b/src/main/java/com/airbyte/api/models/shared/Persona.java index ee369420e..42884c37f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Persona.java +++ b/src/main/java/com/airbyte/api/models/shared/Persona.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Persona { PERSONA("persona"); @@ -20,4 +21,13 @@ private Persona(String value) { public String value() { return value; } + + public static Optional<Persona> fromValue(String value) { + for (Persona o: Persona.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java index f751edcd0..bd39de2d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class PersonalAccessToken { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/PexelsApi.java b/src/main/java/com/airbyte/api/models/shared/PexelsApi.java index a8f800d12..720d3cd96 100644 --- a/src/main/java/com/airbyte/api/models/shared/PexelsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/PexelsApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum PexelsApi { PEXELS_API("pexels-api"); @@ -20,4 +21,13 @@ private PexelsApi(String value) { public String value() { return value; } + + public static Optional<PexelsApi> fromValue(String value) { + for (PexelsApi o: PexelsApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pgvector.java b/src/main/java/com/airbyte/api/models/shared/Pgvector.java index d53716c18..d89a8a0f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pgvector.java +++ b/src/main/java/com/airbyte/api/models/shared/Pgvector.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pgvector { PGVECTOR("pgvector"); @@ -20,4 +21,13 @@ private Pgvector(String value) { public String value() { return value; } + + public static Optional<Pgvector> fromValue(String value) { + for (Pgvector o: Pgvector.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Picqer.java b/src/main/java/com/airbyte/api/models/shared/Picqer.java index 8b010919f..b0fce34f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Picqer.java +++ b/src/main/java/com/airbyte/api/models/shared/Picqer.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Picqer { PICQER("picqer"); @@ -20,4 +21,13 @@ private Picqer(String value) { public String value() { return value; } + + public static Optional<Picqer> fromValue(String value) { + for (Picqer o: Picqer.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pinecone.java b/src/main/java/com/airbyte/api/models/shared/Pinecone.java index 8174037f4..990735d8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pinecone.java +++ b/src/main/java/com/airbyte/api/models/shared/Pinecone.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pinecone { PINECONE("pinecone"); @@ -20,4 +21,13 @@ private Pinecone(String value) { public String value() { return value; } + + public static Optional<Pinecone> fromValue(String value) { + for (Pinecone o: Pinecone.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pingdom.java b/src/main/java/com/airbyte/api/models/shared/Pingdom.java new file mode 100644 index 000000000..0c4d0c19d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Pingdom.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Pingdom { + PINGDOM("pingdom"); + + @JsonValue + private final String value; + + private Pingdom(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Pingdom> fromValue(String value) { + for (Pingdom o: Pingdom.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Pinterest.java b/src/main/java/com/airbyte/api/models/shared/Pinterest.java index 1c31c6432..9e1663011 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pinterest.java +++ b/src/main/java/com/airbyte/api/models/shared/Pinterest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Pinterest { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/PinterestCredentials.java b/src/main/java/com/airbyte/api/models/shared/PinterestCredentials.java index 927b4fc22..99e0196b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/PinterestCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/PinterestCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class PinterestCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Pipedrive.java b/src/main/java/com/airbyte/api/models/shared/Pipedrive.java index eb4d6243d..386305694 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pipedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/Pipedrive.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pipedrive { PIPEDRIVE("pipedrive"); @@ -20,4 +21,13 @@ private Pipedrive(String value) { public String value() { return value; } + + public static Optional<Pipedrive> fromValue(String value) { + for (Pipedrive o: Pipedrive.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pipeliner.java b/src/main/java/com/airbyte/api/models/shared/Pipeliner.java index f89cdc308..33bcbf44f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pipeliner.java +++ b/src/main/java/com/airbyte/api/models/shared/Pipeliner.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pipeliner { PIPELINER("pipeliner"); @@ -20,4 +21,13 @@ private Pipeliner(String value) { public String value() { return value; } + + public static Optional<Pipeliner> fromValue(String value) { + for (Pipeliner o: Pipeliner.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PivotCategory.java b/src/main/java/com/airbyte/api/models/shared/PivotCategory.java index c04964407..0cb891b66 100644 --- a/src/main/java/com/airbyte/api/models/shared/PivotCategory.java +++ b/src/main/java/com/airbyte/api/models/shared/PivotCategory.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * PivotCategory - Choose a category to pivot your analytics report around. This selection will organize your data based on the chosen attribute, allowing you to analyze trends and performance from different perspectives. */ @@ -43,4 +44,13 @@ private PivotCategory(String value) { public String value() { return value; } + + public static Optional<PivotCategory> fromValue(String value) { + for (PivotCategory o: PivotCategory.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java b/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java index ea4a404e9..481488460 100644 --- a/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java +++ b/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum PivotalTracker { PIVOTAL_TRACKER("pivotal-tracker"); @@ -20,4 +21,13 @@ private PivotalTracker(String value) { public String value() { return value; } + + public static Optional<PivotalTracker> fromValue(String value) { + for (PivotalTracker o: PivotalTracker.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Piwik.java b/src/main/java/com/airbyte/api/models/shared/Piwik.java index 2f99b0989..c9e6207bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Piwik.java +++ b/src/main/java/com/airbyte/api/models/shared/Piwik.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Piwik { PIWIK("piwik"); @@ -20,4 +21,13 @@ private Piwik(String value) { public String value() { return value; } + + public static Optional<Piwik> fromValue(String value) { + for (Piwik o: Piwik.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Plaid.java b/src/main/java/com/airbyte/api/models/shared/Plaid.java index eb1b203b4..856cb09fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Plaid.java +++ b/src/main/java/com/airbyte/api/models/shared/Plaid.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Plaid { PLAID("plaid"); @@ -20,4 +21,13 @@ private Plaid(String value) { public String value() { return value; } + + public static Optional<Plaid> fromValue(String value) { + for (Plaid o: Plaid.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java b/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java index e0677e460..acc5ccc2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * PlaidEnvironment - The Plaid environment. */ @@ -25,4 +26,13 @@ private PlaidEnvironment(String value) { public String value() { return value; } + + public static Optional<PlaidEnvironment> fromValue(String value) { + for (PlaidEnvironment o: PlaidEnvironment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Planhat.java b/src/main/java/com/airbyte/api/models/shared/Planhat.java index 0be9825b6..0c1d61d9d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Planhat.java +++ b/src/main/java/com/airbyte/api/models/shared/Planhat.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Planhat { PLANHAT("planhat"); @@ -20,4 +21,13 @@ private Planhat(String value) { public String value() { return value; } + + public static Optional<Planhat> fromValue(String value) { + for (Planhat o: Planhat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Plausible.java b/src/main/java/com/airbyte/api/models/shared/Plausible.java index 8412a3247..a6e8876d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Plausible.java +++ b/src/main/java/com/airbyte/api/models/shared/Plausible.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Plausible { PLAUSIBLE("plausible"); @@ -20,4 +21,13 @@ private Plausible(String value) { public String value() { return value; } + + public static Optional<Plausible> fromValue(String value) { + for (Plausible o: Plausible.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Plugin.java b/src/main/java/com/airbyte/api/models/shared/Plugin.java index 0c50ed626..7786dd2ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/Plugin.java +++ b/src/main/java/com/airbyte/api/models/shared/Plugin.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Plugin - A logical decoding plugin installed on the PostgreSQL server. */ @@ -23,4 +24,13 @@ private Plugin(String value) { public String value() { return value; } + + public static Optional<Plugin> fromValue(String value) { + for (Plugin o: Plugin.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pocket.java b/src/main/java/com/airbyte/api/models/shared/Pocket.java index 7b109040a..d6c969a67 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pocket.java +++ b/src/main/java/com/airbyte/api/models/shared/Pocket.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pocket { POCKET("pocket"); @@ -20,4 +21,13 @@ private Pocket(String value) { public String value() { return value; } + + public static Optional<Pocket> fromValue(String value) { + for (Pocket o: Pocket.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pokeapi.java b/src/main/java/com/airbyte/api/models/shared/Pokeapi.java index 582c6ecbc..a0e62a33e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pokeapi.java +++ b/src/main/java/com/airbyte/api/models/shared/Pokeapi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pokeapi { POKEAPI("pokeapi"); @@ -20,4 +21,13 @@ private Pokeapi(String value) { public String value() { return value; } + + public static Optional<Pokeapi> fromValue(String value) { + for (Pokeapi o: Pokeapi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PokemonName.java b/src/main/java/com/airbyte/api/models/shared/PokemonName.java index 79c53d7fa..98a2c09cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/PokemonName.java +++ b/src/main/java/com/airbyte/api/models/shared/PokemonName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * PokemonName - Pokemon requested from the API. */ @@ -920,4 +921,13 @@ private PokemonName(String value) { public String value() { return value; } + + public static Optional<PokemonName> fromValue(String value) { + for (PokemonName o: PokemonName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java b/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java index 03646d64d..54a21b575 100644 --- a/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java +++ b/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum PolygonStockApi { POLYGON_STOCK_API("polygon-stock-api"); @@ -20,4 +21,13 @@ private PolygonStockApi(String value) { public String value() { return value; } + + public static Optional<PolygonStockApi> fromValue(String value) { + for (PolygonStockApi o: PolygonStockApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Postgres.java b/src/main/java/com/airbyte/api/models/shared/Postgres.java index 68c461293..aab32cb92 100644 --- a/src/main/java/com/airbyte/api/models/shared/Postgres.java +++ b/src/main/java/com/airbyte/api/models/shared/Postgres.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Postgres { POSTGRES("postgres"); @@ -20,4 +21,13 @@ private Postgres(String value) { public String value() { return value; } + + public static Optional<Postgres> fromValue(String value) { + for (Postgres o: Postgres.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java b/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java index 5773824df..1084a2bbf 100644 --- a/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java +++ b/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * PostgresConnection - Postgres can be used to store vector data and retrieve embeddings. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Posthog.java b/src/main/java/com/airbyte/api/models/shared/Posthog.java index ac8644d39..54ddcd04b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Posthog.java +++ b/src/main/java/com/airbyte/api/models/shared/Posthog.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Posthog { POSTHOG("posthog"); @@ -20,4 +21,13 @@ private Posthog(String value) { public String value() { return value; } + + public static Optional<Posthog> fromValue(String value) { + for (Posthog o: Posthog.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java b/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java index b3343b5d7..f19ea0060 100644 --- a/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java +++ b/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Postmarkapp { POSTMARKAPP("postmarkapp"); @@ -20,4 +21,13 @@ private Postmarkapp(String value) { public String value() { return value; } + + public static Optional<Postmarkapp> fromValue(String value) { + for (Postmarkapp o: Postmarkapp.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Prefer.java b/src/main/java/com/airbyte/api/models/shared/Prefer.java index 24a0f4721..5890ab69a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Prefer.java +++ b/src/main/java/com/airbyte/api/models/shared/Prefer.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * Prefer - Prefer SSL mode. */ @@ -27,7 +25,7 @@ public class Prefer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationPostgresSchemasMode> mode; + private Optional<? extends DestinationPostgresSchemasSslModeMode> mode; @JsonCreator public Prefer() { @@ -37,8 +35,8 @@ public Prefer() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationPostgresSchemasMode> mode() { - return (Optional<DestinationPostgresSchemasMode>) mode; + public Optional<DestinationPostgresSchemasSslModeMode> mode() { + return (Optional<DestinationPostgresSchemasSslModeMode>) mode; } public final static Builder builder() { @@ -81,11 +79,11 @@ public Prefer build() { ); } - private static final LazySingletonValue<Optional<? extends DestinationPostgresSchemasMode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationPostgresSchemasSslModeMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"prefer\"", - new TypeReference<Optional<? extends DestinationPostgresSchemasMode>>() {}); + new TypeReference<Optional<? extends DestinationPostgresSchemasSslModeMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Preferred.java b/src/main/java/com/airbyte/api/models/shared/Preferred.java index d7718c97b..84a597e9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Preferred.java +++ b/src/main/java/com/airbyte/api/models/shared/Preferred.java @@ -2,42 +2,91 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; - +import java.util.Optional; /** - * Preferred - Automatically attempt SSL connection. If the MySQL server does not support SSL, continue with a regular connection. + * Preferred - To allow unencrypted communication only when the source doesn't support encryption. */ public class Preferred { + @JsonIgnore + private Map<String, Object> additionalProperties; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private SourceMysqlMode mode; + private Optional<? extends SourceMysqlMode> mode; @JsonCreator + public Preferred( + @JsonProperty("mode") Optional<? extends SourceMysqlMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.additionalProperties = new HashMap<>(); + this.mode = mode; + } + public Preferred() { - - this.mode = Builder._SINGLETON_VALUE_Mode.value(); + this(Optional.empty()); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } + @SuppressWarnings("unchecked") @JsonIgnore - public SourceMysqlMode mode() { - return mode; + public Optional<SourceMysqlMode> mode() { + return (Optional<SourceMysqlMode>) mode; } public final static Builder builder() { return new Builder(); } + + @JsonAnySetter + public Preferred withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public Preferred withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Preferred withMode(SourceMysqlMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public Preferred withMode(Optional<? extends SourceMysqlMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -49,37 +98,75 @@ public boolean equals(java.lang.Object o) { } Preferred other = (Preferred) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.mode, other.mode); } @Override public int hashCode() { return Objects.hash( + additionalProperties, mode); } @Override public String toString() { return Utils.toString(Preferred.class, + "additionalProperties", additionalProperties, "mode", mode); } - public final static class Builder { + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<? extends SourceMysqlMode> mode; private Builder() { // force use of static builder() method } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Builder mode(SourceMysqlMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public Builder mode(Optional<? extends SourceMysqlMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } public Preferred build() { - return new Preferred( - ); + if (mode == null) { + mode = _SINGLETON_VALUE_Mode.value(); + } return new Preferred( + mode) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<SourceMysqlMode> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends SourceMysqlMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"preferred\"", - new TypeReference<SourceMysqlMode>() {}); + new TypeReference<Optional<? extends SourceMysqlMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Prestashop.java b/src/main/java/com/airbyte/api/models/shared/Prestashop.java index 83479cdad..4ca2cfa22 100644 --- a/src/main/java/com/airbyte/api/models/shared/Prestashop.java +++ b/src/main/java/com/airbyte/api/models/shared/Prestashop.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Prestashop { PRESTASHOP("prestashop"); @@ -20,4 +21,13 @@ private Prestashop(String value) { public String value() { return value; } + + public static Optional<Prestashop> fromValue(String value) { + for (Prestashop o: Prestashop.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pretix.java b/src/main/java/com/airbyte/api/models/shared/Pretix.java index 436293ed7..679249981 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pretix.java +++ b/src/main/java/com/airbyte/api/models/shared/Pretix.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pretix { PRETIX("pretix"); @@ -20,4 +21,13 @@ private Pretix(String value) { public String value() { return value; } + + public static Optional<Pretix> fromValue(String value) { + for (Pretix o: Pretix.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Primetric.java b/src/main/java/com/airbyte/api/models/shared/Primetric.java index 6fbb92e50..149f352fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Primetric.java +++ b/src/main/java/com/airbyte/api/models/shared/Primetric.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Primetric { PRIMETRIC("primetric"); @@ -20,4 +21,13 @@ private Primetric(String value) { public String value() { return value; } + + public static Optional<Primetric> fromValue(String value) { + for (Primetric o: Primetric.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PrivateApp.java b/src/main/java/com/airbyte/api/models/shared/PrivateApp.java index 5f246c269..18781d443 100644 --- a/src/main/java/com/airbyte/api/models/shared/PrivateApp.java +++ b/src/main/java/com/airbyte/api/models/shared/PrivateApp.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class PrivateApp { /** diff --git a/src/main/java/com/airbyte/api/models/shared/PrivateToken.java b/src/main/java/com/airbyte/api/models/shared/PrivateToken.java index 5dc050a34..7f0850b30 100644 --- a/src/main/java/com/airbyte/api/models/shared/PrivateToken.java +++ b/src/main/java/com/airbyte/api/models/shared/PrivateToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class PrivateToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Processing.java b/src/main/java/com/airbyte/api/models/shared/Processing.java index ffb108539..a0a73756d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Processing.java +++ b/src/main/java/com/airbyte/api/models/shared/Processing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * Processing - Processing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/ProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/ProcessingConfigModel.java index b25a2a7f3..65f7bb046 100644 --- a/src/main/java/com/airbyte/api/models/shared/ProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/ProcessingConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class ProcessingConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java b/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java index 791d52b92..b07663771 100644 --- a/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java +++ b/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ProductCatalog - Product Catalog version of your Chargebee site. Instructions on how to find your version you may find <a href="https://apidocs.chargebee.com/docs/api?prod_cat_ver=2">here</a> under `API Version` section. If left blank, the product catalog version will be set to 2.0. */ @@ -24,4 +25,13 @@ private ProductCatalog(String value) { public String value() { return value; } + + public static Optional<ProductCatalog> fromValue(String value) { + for (ProductCatalog o: ProductCatalog.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Productboard.java b/src/main/java/com/airbyte/api/models/shared/Productboard.java index 425a6bcf6..6f6e920b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Productboard.java +++ b/src/main/java/com/airbyte/api/models/shared/Productboard.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Productboard { PRODUCTBOARD("productboard"); @@ -20,4 +21,13 @@ private Productboard(String value) { public String value() { return value; } + + public static Optional<Productboard> fromValue(String value) { + for (Productboard o: Productboard.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Productive.java b/src/main/java/com/airbyte/api/models/shared/Productive.java index 2fb10aa0a..e3f86c35b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Productive.java +++ b/src/main/java/com/airbyte/api/models/shared/Productive.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Productive { PRODUCTIVE("productive"); @@ -20,4 +21,13 @@ private Productive(String value) { public String value() { return value; } + + public static Optional<Productive> fromValue(String value) { + for (Productive o: Productive.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ProjectSecret.java b/src/main/java/com/airbyte/api/models/shared/ProjectSecret.java index 1330544f4..403d93aef 100644 --- a/src/main/java/com/airbyte/api/models/shared/ProjectSecret.java +++ b/src/main/java/com/airbyte/api/models/shared/ProjectSecret.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ProjectSecret { /** diff --git a/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java b/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java index 3f260465c..37831eef8 100644 --- a/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java +++ b/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * PublicPermissionType - Subset of `PermissionType` (removing `instance_admin`), could be used in public-api. */ @@ -31,4 +32,13 @@ private PublicPermissionType(String value) { public String value() { return value; } + + public static Optional<PublicPermissionType> fromValue(String value) { + for (PublicPermissionType o: PublicPermissionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pubsub.java b/src/main/java/com/airbyte/api/models/shared/Pubsub.java index 7033e4d33..10a1eaab3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pubsub.java +++ b/src/main/java/com/airbyte/api/models/shared/Pubsub.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pubsub { PUBSUB("pubsub"); @@ -20,4 +21,13 @@ private Pubsub(String value) { public String value() { return value; } + + public static Optional<Pubsub> fromValue(String value) { + for (Pubsub o: Pubsub.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pypi.java b/src/main/java/com/airbyte/api/models/shared/Pypi.java index e3be27dbf..64e960a66 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pypi.java +++ b/src/main/java/com/airbyte/api/models/shared/Pypi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Pypi { PYPI("pypi"); @@ -20,4 +21,13 @@ private Pypi(String value) { public String value() { return value; } + + public static Optional<Pypi> fromValue(String value) { + for (Pypi o: Pypi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Qdrant.java b/src/main/java/com/airbyte/api/models/shared/Qdrant.java index ade9bb5f9..5a162f843 100644 --- a/src/main/java/com/airbyte/api/models/shared/Qdrant.java +++ b/src/main/java/com/airbyte/api/models/shared/Qdrant.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Qdrant { QDRANT("qdrant"); @@ -20,4 +21,13 @@ private Qdrant(String value) { public String value() { return value; } + + public static Optional<Qdrant> fromValue(String value) { + for (Qdrant o: Qdrant.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Qualaroo.java b/src/main/java/com/airbyte/api/models/shared/Qualaroo.java index 5c2fcf9bf..493a1e24a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Qualaroo.java +++ b/src/main/java/com/airbyte/api/models/shared/Qualaroo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Qualaroo { QUALAROO("qualaroo"); @@ -20,4 +21,13 @@ private Qualaroo(String value) { public String value() { return value; } + + public static Optional<Qualaroo> fromValue(String value) { + for (Qualaroo o: Qualaroo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Queries.java b/src/main/java/com/airbyte/api/models/shared/Queries.java index c9c24706a..0dca2de30 100644 --- a/src/main/java/com/airbyte/api/models/shared/Queries.java +++ b/src/main/java/com/airbyte/api/models/shared/Queries.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class Queries { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Quickbooks.java b/src/main/java/com/airbyte/api/models/shared/Quickbooks.java index 4b1c1c98b..240577e25 100644 --- a/src/main/java/com/airbyte/api/models/shared/Quickbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/Quickbooks.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Quickbooks { QUICKBOOKS("quickbooks"); @@ -20,4 +21,13 @@ private Quickbooks(String value) { public String value() { return value; } + + public static Optional<Quickbooks> fromValue(String value) { + for (Quickbooks o: Quickbooks.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/RESTAPIStreams.java b/src/main/java/com/airbyte/api/models/shared/RESTAPIStreams.java new file mode 100644 index 000000000..b77c98d5f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RESTAPIStreams.java @@ -0,0 +1,188 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.Optional; + +public class RESTAPIStreams { + + /** + * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the Workday community docs to obtain access token. + */ + @JsonProperty("access_token") + private String accessToken; + + @JsonProperty("auth_type") + private Rest authType; + + /** + * Rows after this date will be synced, default 2 years ago. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start_date") + private Optional<OffsetDateTime> startDate; + + @JsonCreator + public RESTAPIStreams( + @JsonProperty("access_token") String accessToken, + @JsonProperty("start_date") Optional<OffsetDateTime> startDate) { + Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(startDate, "startDate"); + this.accessToken = accessToken; + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.startDate = startDate; + } + + public RESTAPIStreams( + String accessToken) { + this(accessToken, Optional.empty()); + } + + /** + * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the Workday community docs to obtain access token. + */ + @JsonIgnore + public String accessToken() { + return accessToken; + } + + @JsonIgnore + public Rest authType() { + return authType; + } + + /** + * Rows after this date will be synced, default 2 years ago. + */ + @JsonIgnore + public Optional<OffsetDateTime> startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the Workday community docs to obtain access token. + */ + public RESTAPIStreams withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * Rows after this date will be synced, default 2 years ago. + */ + public RESTAPIStreams withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + /** + * Rows after this date will be synced, default 2 years ago. + */ + public RESTAPIStreams withStartDate(Optional<OffsetDateTime> startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RESTAPIStreams other = (RESTAPIStreams) o; + return + Objects.deepEquals(this.accessToken, other.accessToken) && + Objects.deepEquals(this.authType, other.authType) && + Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Objects.hash( + accessToken, + authType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(RESTAPIStreams.class, + "accessToken", accessToken, + "authType", authType, + "startDate", startDate); + } + + public final static class Builder { + + private String accessToken; + + private Optional<OffsetDateTime> startDate = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the Workday community docs to obtain access token. + */ + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * Rows after this date will be synced, default 2 years ago. + */ + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + /** + * Rows after this date will be synced, default 2 years ago. + */ + public Builder startDate(Optional<OffsetDateTime> startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public RESTAPIStreams build() { + return new RESTAPIStreams( + accessToken, + startDate); + } + + private static final LazySingletonValue<Rest> _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"REST\"", + new TypeReference<Rest>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/RESTCatalog.java b/src/main/java/com/airbyte/api/models/shared/RESTCatalog.java index 099d4d5fa..2eb643543 100644 --- a/src/main/java/com/airbyte/api/models/shared/RESTCatalog.java +++ b/src/main/java/com/airbyte/api/models/shared/RESTCatalog.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * RESTCatalog - The RESTCatalog connects to a REST server at the specified URI */ diff --git a/src/main/java/com/airbyte/api/models/shared/Raas.java b/src/main/java/com/airbyte/api/models/shared/Raas.java new file mode 100644 index 000000000..f443fa64e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Raas.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Raas { + RAAS("RAAS"); + + @JsonValue + private final String value; + + private Raas(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Raas> fromValue(String value) { + for (Raas o: Raas.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Railz.java b/src/main/java/com/airbyte/api/models/shared/Railz.java index 81f4cae6f..9a5a3fe72 100644 --- a/src/main/java/com/airbyte/api/models/shared/Railz.java +++ b/src/main/java/com/airbyte/api/models/shared/Railz.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Railz { RAILZ("railz"); @@ -20,4 +21,13 @@ private Railz(String value) { public String value() { return value; } + + public static Optional<Railz> fromValue(String value) { + for (Railz o: Railz.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/RandomSampling.java b/src/main/java/com/airbyte/api/models/shared/RandomSampling.java index 81ca9ad54..8f52cf9ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/RandomSampling.java +++ b/src/main/java/com/airbyte/api/models/shared/RandomSampling.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; - /** * RandomSampling - For each stream, randomly log a percentage of the entries with a maximum cap. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Range.java b/src/main/java/com/airbyte/api/models/shared/Range.java index a6b90a2ab..6995c60ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/Range.java +++ b/src/main/java/com/airbyte/api/models/shared/Range.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Range - The range of prices to be queried. */ @@ -33,4 +34,13 @@ private Range(String value) { public String value() { return value; } + + public static Optional<Range> fromValue(String value) { + for (Range o: Range.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/RdStationMarketing.java b/src/main/java/com/airbyte/api/models/shared/RdStationMarketing.java index e2c6532e4..ca9ba635e 100644 --- a/src/main/java/com/airbyte/api/models/shared/RdStationMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/RdStationMarketing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class RdStationMarketing { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/RdStationMarketingAuthorization.java b/src/main/java/com/airbyte/api/models/shared/RdStationMarketingAuthorization.java index 48af59430..f2ea0e249 100644 --- a/src/main/java/com/airbyte/api/models/shared/RdStationMarketingAuthorization.java +++ b/src/main/java/com/airbyte/api/models/shared/RdStationMarketingAuthorization.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class RdStationMarketingAuthorization { /** diff --git a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java index 3e5e06e40..573fa49a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * ReadChangesUsingChangeDataCaptureCDC - <i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using the SQL Server's <a href="https://docs.airbyte.com/integrations/sources/mssql/#change-data-capture-cdc">change data capture feature</a>. This must be enabled on your database. */ diff --git a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingWriteAheadLogCDC.java b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingWriteAheadLogCDC.java index 4dfec976b..998058985 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingWriteAheadLogCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingWriteAheadLogCDC.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; - /** * ReadChangesUsingWriteAheadLogCDC - <i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using the Postgres <a href="https://docs.airbyte.com/integrations/sources/postgres/#cdc">write-ahead log (WAL)</a>. This needs to be configured on the source database itself. Recommended for tables of any size. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Recharge.java b/src/main/java/com/airbyte/api/models/shared/Recharge.java index 81aad59bc..31e913c7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recharge.java +++ b/src/main/java/com/airbyte/api/models/shared/Recharge.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Recharge { RECHARGE("recharge"); @@ -20,4 +21,13 @@ private Recharge(String value) { public String value() { return value; } + + public static Optional<Recharge> fromValue(String value) { + for (Recharge o: Recharge.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Recreation.java b/src/main/java/com/airbyte/api/models/shared/Recreation.java index c6a98a6a5..7c659c6ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recreation.java +++ b/src/main/java/com/airbyte/api/models/shared/Recreation.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Recreation { RECREATION("recreation"); @@ -20,4 +21,13 @@ private Recreation(String value) { public String value() { return value; } + + public static Optional<Recreation> fromValue(String value) { + for (Recreation o: Recreation.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Recruitee.java b/src/main/java/com/airbyte/api/models/shared/Recruitee.java index e4485f2e0..507e8b737 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recruitee.java +++ b/src/main/java/com/airbyte/api/models/shared/Recruitee.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Recruitee { RECRUITEE("recruitee"); @@ -20,4 +21,13 @@ private Recruitee(String value) { public String value() { return value; } + + public static Optional<Recruitee> fromValue(String value) { + for (Recruitee o: Recruitee.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Recurly.java b/src/main/java/com/airbyte/api/models/shared/Recurly.java index 5cf5f5126..10c077ff3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recurly.java +++ b/src/main/java/com/airbyte/api/models/shared/Recurly.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Recurly { RECURLY("recurly"); @@ -20,4 +21,13 @@ private Recurly(String value) { public String value() { return value; } + + public static Optional<Recurly> fromValue(String value) { + for (Recurly o: Recurly.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Reddit.java b/src/main/java/com/airbyte/api/models/shared/Reddit.java index 7ee204570..a98e78664 100644 --- a/src/main/java/com/airbyte/api/models/shared/Reddit.java +++ b/src/main/java/com/airbyte/api/models/shared/Reddit.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Reddit { REDDIT("reddit"); @@ -20,4 +21,13 @@ private Reddit(String value) { public String value() { return value; } + + public static Optional<Reddit> fromValue(String value) { + for (Reddit o: Reddit.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Redis.java b/src/main/java/com/airbyte/api/models/shared/Redis.java index cecca7dd0..c6626280d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Redis.java +++ b/src/main/java/com/airbyte/api/models/shared/Redis.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Redis { REDIS("redis"); @@ -20,4 +21,13 @@ private Redis(String value) { public String value() { return value; } + + public static Optional<Redis> fromValue(String value) { + for (Redis o: Redis.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Redshift.java b/src/main/java/com/airbyte/api/models/shared/Redshift.java index 3d4b2ce10..917a9ff5d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Redshift.java +++ b/src/main/java/com/airbyte/api/models/shared/Redshift.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Redshift { REDSHIFT("redshift"); @@ -20,4 +21,13 @@ private Redshift(String value) { public String value() { return value; } + + public static Optional<Redshift> fromValue(String value) { + for (Redshift o: Redshift.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Referralhero.java b/src/main/java/com/airbyte/api/models/shared/Referralhero.java index 51dae2b62..fdb3ce74d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Referralhero.java +++ b/src/main/java/com/airbyte/api/models/shared/Referralhero.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Referralhero { REFERRALHERO("referralhero"); @@ -20,4 +21,13 @@ private Referralhero(String value) { public String value() { return value; } + + public static Optional<Referralhero> fromValue(String value) { + for (Referralhero o: Referralhero.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Region.java b/src/main/java/com/airbyte/api/models/shared/Region.java index 2795b6d68..b02082f2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Region.java +++ b/src/main/java/com/airbyte/api/models/shared/Region.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Region - Region to pull data from (EU/NA/FE). See <a href="https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints">docs</a> for more details. */ @@ -25,4 +26,13 @@ private Region(String value) { public String value() { return value; } + + public static Optional<Region> fromValue(String value) { + for (Region o: Region.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Rentcast.java b/src/main/java/com/airbyte/api/models/shared/Rentcast.java index c944e2412..27143d64a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rentcast.java +++ b/src/main/java/com/airbyte/api/models/shared/Rentcast.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Rentcast { RENTCAST("rentcast"); @@ -20,4 +21,13 @@ private Rentcast(String value) { public String value() { return value; } + + public static Optional<Rentcast> fromValue(String value) { + for (Rentcast o: Rentcast.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Repairshopr.java b/src/main/java/com/airbyte/api/models/shared/Repairshopr.java index 42babac5a..cf65813fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Repairshopr.java +++ b/src/main/java/com/airbyte/api/models/shared/Repairshopr.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Repairshopr { REPAIRSHOPR("repairshopr"); @@ -20,4 +21,13 @@ private Repairshopr(String value) { public String value() { return value; } + + public static Optional<Repairshopr> fromValue(String value) { + for (Repairshopr o: Repairshopr.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ReplicaSet.java b/src/main/java/com/airbyte/api/models/shared/ReplicaSet.java index 58d93f889..ce98ecf05 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReplicaSet.java +++ b/src/main/java/com/airbyte/api/models/shared/ReplicaSet.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ReplicaSet { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/ReplicatePermissionsACL.java b/src/main/java/com/airbyte/api/models/shared/ReplicatePermissionsACL.java new file mode 100644 index 000000000..9733e07e4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/ReplicatePermissionsACL.java @@ -0,0 +1,220 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +/** + * ReplicatePermissionsACL - Sends one identity stream and one for more permissions (ACL) streams to the destination. This data can be used in downstream systems to recreate permission restrictions mirroring the original source. + */ + +public class ReplicatePermissionsACL { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_type") + private Optional<? extends SourceGoogleDriveSchemasDeliveryType> deliveryType; + + /** + * The Google domain of the identities. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("domain") + private Optional<String> domain; + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("include_identities_stream") + private Optional<Boolean> includeIdentitiesStream; + + @JsonCreator + public ReplicatePermissionsACL( + @JsonProperty("domain") Optional<String> domain, + @JsonProperty("include_identities_stream") Optional<Boolean> includeIdentitiesStream) { + Utils.checkNotNull(domain, "domain"); + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + this.domain = domain; + this.includeIdentitiesStream = includeIdentitiesStream; + } + + public ReplicatePermissionsACL() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<SourceGoogleDriveSchemasDeliveryType> deliveryType() { + return (Optional<SourceGoogleDriveSchemasDeliveryType>) deliveryType; + } + + /** + * The Google domain of the identities. + */ + @JsonIgnore + public Optional<String> domain() { + return domain; + } + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + */ + @JsonIgnore + public Optional<Boolean> includeIdentitiesStream() { + return includeIdentitiesStream; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The Google domain of the identities. + */ + public ReplicatePermissionsACL withDomain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + * The Google domain of the identities. + */ + public ReplicatePermissionsACL withDomain(Optional<String> domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + */ + public ReplicatePermissionsACL withIncludeIdentitiesStream(boolean includeIdentitiesStream) { + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.includeIdentitiesStream = Optional.ofNullable(includeIdentitiesStream); + return this; + } + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + */ + public ReplicatePermissionsACL withIncludeIdentitiesStream(Optional<Boolean> includeIdentitiesStream) { + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.includeIdentitiesStream = includeIdentitiesStream; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplicatePermissionsACL other = (ReplicatePermissionsACL) o; + return + Objects.deepEquals(this.deliveryType, other.deliveryType) && + Objects.deepEquals(this.domain, other.domain) && + Objects.deepEquals(this.includeIdentitiesStream, other.includeIdentitiesStream); + } + + @Override + public int hashCode() { + return Objects.hash( + deliveryType, + domain, + includeIdentitiesStream); + } + + @Override + public String toString() { + return Utils.toString(ReplicatePermissionsACL.class, + "deliveryType", deliveryType, + "domain", domain, + "includeIdentitiesStream", includeIdentitiesStream); + } + + public final static class Builder { + + private Optional<String> domain = Optional.empty(); + + private Optional<Boolean> includeIdentitiesStream; + + private Builder() { + // force use of static builder() method + } + + /** + * The Google domain of the identities. + */ + public Builder domain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + * The Google domain of the identities. + */ + public Builder domain(Optional<String> domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + */ + public Builder includeIdentitiesStream(boolean includeIdentitiesStream) { + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.includeIdentitiesStream = Optional.ofNullable(includeIdentitiesStream); + return this; + } + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + */ + public Builder includeIdentitiesStream(Optional<Boolean> includeIdentitiesStream) { + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.includeIdentitiesStream = includeIdentitiesStream; + return this; + } + + public ReplicatePermissionsACL build() { + if (includeIdentitiesStream == null) { + includeIdentitiesStream = _SINGLETON_VALUE_IncludeIdentitiesStream.value(); + } return new ReplicatePermissionsACL( + domain, + includeIdentitiesStream); + } + + private static final LazySingletonValue<Optional<? extends SourceGoogleDriveSchemasDeliveryType>> _SINGLETON_VALUE_DeliveryType = + new LazySingletonValue<>( + "delivery_type", + "\"use_permissions_transfer\"", + new TypeReference<Optional<? extends SourceGoogleDriveSchemasDeliveryType>>() {}); + + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_IncludeIdentitiesStream = + new LazySingletonValue<>( + "include_identities_stream", + "true", + new TypeReference<Optional<Boolean>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/ReplicateRecords.java b/src/main/java/com/airbyte/api/models/shared/ReplicateRecords.java index 61b27c1b4..5c299c741 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReplicateRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/ReplicateRecords.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * ReplicateRecords - Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. */ diff --git a/src/main/java/com/airbyte/api/models/shared/ReplyIo.java b/src/main/java/com/airbyte/api/models/shared/ReplyIo.java index aa67bd0df..a39dc52df 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReplyIo.java +++ b/src/main/java/com/airbyte/api/models/shared/ReplyIo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ReplyIo { REPLY_IO("reply-io"); @@ -20,4 +21,13 @@ private ReplyIo(String value) { public String value() { return value; } + + public static Optional<ReplyIo> fromValue(String value) { + for (ReplyIo o: ReplyIo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ReportBasedStreams.java b/src/main/java/com/airbyte/api/models/shared/ReportBasedStreams.java new file mode 100644 index 000000000..9d5a85116 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/ReportBasedStreams.java @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +public class ReportBasedStreams { + + @JsonProperty("auth_type") + private Raas authType; + + @JsonProperty("password") + private String password; + + /** + * Report IDs can be found by clicking the three dots on the right side of the report > Web Service > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. + */ + @JsonProperty("report_ids") + private List<Object> reportIds; + + @JsonProperty("username") + private String username; + + @JsonCreator + public ReportBasedStreams( + @JsonProperty("password") String password, + @JsonProperty("report_ids") List<Object> reportIds, + @JsonProperty("username") String username) { + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(reportIds, "reportIds"); + Utils.checkNotNull(username, "username"); + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.password = password; + this.reportIds = reportIds; + this.username = username; + } + + @JsonIgnore + public Raas authType() { + return authType; + } + + @JsonIgnore + public String password() { + return password; + } + + /** + * Report IDs can be found by clicking the three dots on the right side of the report > Web Service > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. + */ + @JsonIgnore + public List<Object> reportIds() { + return reportIds; + } + + @JsonIgnore + public String username() { + return username; + } + + public final static Builder builder() { + return new Builder(); + } + + public ReportBasedStreams withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + /** + * Report IDs can be found by clicking the three dots on the right side of the report > Web Service > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. + */ + public ReportBasedStreams withReportIds(List<Object> reportIds) { + Utils.checkNotNull(reportIds, "reportIds"); + this.reportIds = reportIds; + return this; + } + + public ReportBasedStreams 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; + } + ReportBasedStreams other = (ReportBasedStreams) o; + return + Objects.deepEquals(this.authType, other.authType) && + Objects.deepEquals(this.password, other.password) && + Objects.deepEquals(this.reportIds, other.reportIds) && + Objects.deepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return Objects.hash( + authType, + password, + reportIds, + username); + } + + @Override + public String toString() { + return Utils.toString(ReportBasedStreams.class, + "authType", authType, + "password", password, + "reportIds", reportIds, + "username", username); + } + + public final static class Builder { + + private String password; + + private List<Object> reportIds; + + private String username; + + private Builder() { + // force use of static builder() method + } + + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + /** + * Report IDs can be found by clicking the three dots on the right side of the report > Web Service > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. + */ + public Builder reportIds(List<Object> reportIds) { + Utils.checkNotNull(reportIds, "reportIds"); + this.reportIds = reportIds; + return this; + } + + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public ReportBasedStreams build() { + return new ReportBasedStreams( + password, + reportIds, + username); + } + + private static final LazySingletonValue<Raas> _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"RAAS\"", + new TypeReference<Raas>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/ReportConfig.java b/src/main/java/com/airbyte/api/models/shared/ReportConfig.java index 578838667..22a05b10a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * ReportConfig - Config for custom report */ diff --git a/src/main/java/com/airbyte/api/models/shared/ReportName.java b/src/main/java/com/airbyte/api/models/shared/ReportName.java index a9cc878f4..a515de8a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportName.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ReportName { GET_AFN_INVENTORY_DATA("GET_AFN_INVENTORY_DATA"), GET_AFN_INVENTORY_DATA_BY_COUNTRY("GET_AFN_INVENTORY_DATA_BY_COUNTRY"), @@ -44,15 +45,7 @@ public enum ReportName { 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_VENDOR_REAL_TIME_INVENTORY_REPORT("GET_VENDOR_REAL_TIME_INVENTORY_REPORT"), - GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT("GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT"), - GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT("GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT"), - GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT("GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT"), - GET_SALES_AND_TRAFFIC_REPORT("GET_SALES_AND_TRAFFIC_REPORT"), - GET_VENDOR_SALES_REPORT("GET_VENDOR_SALES_REPORT"), - GET_VENDOR_INVENTORY_REPORT("GET_VENDOR_INVENTORY_REPORT"), - GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT("GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT"), - GET_VENDOR_TRAFFIC_REPORT("GET_VENDOR_TRAFFIC_REPORT"); + GET_VENDOR_REAL_TIME_INVENTORY_REPORT("GET_VENDOR_REAL_TIME_INVENTORY_REPORT"); @JsonValue private final String value; @@ -64,4 +57,13 @@ private ReportName(String value) { public String value() { return value; } + + public static Optional<ReportName> fromValue(String value) { + for (ReportName o: ReportName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ReportOptions.java b/src/main/java/com/airbyte/api/models/shared/ReportOptions.java index 91831e4b7..1c586b23a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportOptions.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportOptions.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -14,7 +13,6 @@ import java.util.List; import java.util.Objects; - public class ReportOptions { /** diff --git a/src/main/java/com/airbyte/api/models/shared/ReportRecordTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/ReportRecordTypeEnum.java deleted file mode 100644 index af83ee081..000000000 --- a/src/main/java/com/airbyte/api/models/shared/ReportRecordTypeEnum.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * ReportRecordTypeEnum - An enumeration. - */ -public enum ReportRecordTypeEnum { - AD_GROUPS("adGroups"), - ASINS("asins"), - ASINS_KEYWORDS("asins_keywords"), - ASINS_TARGETS("asins_targets"), - CAMPAIGNS("campaigns"), - KEYWORDS("keywords"), - PRODUCT_ADS("productAds"), - TARGETS("targets"); - - @JsonValue - private final String value; - - private ReportRecordTypeEnum(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java b/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java index 8d8d1e253..99f6fa7f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ReportingDataObject - The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api docs - Reporting API - Reporting Data Objects. */ @@ -56,4 +57,13 @@ private ReportingDataObject(String value) { public String value() { return value; } + + public static Optional<ReportingDataObject> fromValue(String value) { + for (ReportingDataObject o: ReportingDataObject.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Require.java b/src/main/java/com/airbyte/api/models/shared/Require.java index 2e4862dfc..0c8d886f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Require.java +++ b/src/main/java/com/airbyte/api/models/shared/Require.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * Require - Require SSL mode. */ @@ -27,7 +25,7 @@ public class Require { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationPostgresSchemasSslModeMode> mode; + private Optional<? extends DestinationPostgresSchemasSSLModeSSLModesMode> mode; @JsonCreator public Require() { @@ -37,8 +35,8 @@ public Require() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationPostgresSchemasSslModeMode> mode() { - return (Optional<DestinationPostgresSchemasSslModeMode>) mode; + public Optional<DestinationPostgresSchemasSSLModeSSLModesMode> mode() { + return (Optional<DestinationPostgresSchemasSSLModeSSLModesMode>) mode; } public final static Builder builder() { @@ -81,11 +79,11 @@ public Require build() { ); } - private static final LazySingletonValue<Optional<? extends DestinationPostgresSchemasSslModeMode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationPostgresSchemasSSLModeSSLModesMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"require\"", - new TypeReference<Optional<? extends DestinationPostgresSchemasSslModeMode>>() {}); + new TypeReference<Optional<? extends DestinationPostgresSchemasSSLModeSSLModesMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Required.java b/src/main/java/com/airbyte/api/models/shared/Required.java index 8fad99b99..c211bc56b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Required.java +++ b/src/main/java/com/airbyte/api/models/shared/Required.java @@ -2,42 +2,91 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; - +import java.util.Optional; /** - * Required - Always connect with SSL. If the MySQL server doesn’t support SSL, the connection will not be established. Certificate Authority (CA) and Hostname are not verified. + * Required - To always require encryption. Note: The connection will fail if the source doesn't support encryption. */ public class Required { + @JsonIgnore + private Map<String, Object> additionalProperties; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private SourceMysqlSchemasMode mode; + private Optional<? extends SourceMysqlSchemasMode> mode; @JsonCreator + public Required( + @JsonProperty("mode") Optional<? extends SourceMysqlSchemasMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.additionalProperties = new HashMap<>(); + this.mode = mode; + } + public Required() { - - this.mode = Builder._SINGLETON_VALUE_Mode.value(); + this(Optional.empty()); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } + @SuppressWarnings("unchecked") @JsonIgnore - public SourceMysqlSchemasMode mode() { - return mode; + public Optional<SourceMysqlSchemasMode> mode() { + return (Optional<SourceMysqlSchemasMode>) mode; } public final static Builder builder() { return new Builder(); } + + @JsonAnySetter + public Required withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public Required withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Required withMode(SourceMysqlSchemasMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public Required withMode(Optional<? extends SourceMysqlSchemasMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -49,37 +98,75 @@ public boolean equals(java.lang.Object o) { } Required other = (Required) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.mode, other.mode); } @Override public int hashCode() { return Objects.hash( + additionalProperties, mode); } @Override public String toString() { return Utils.toString(Required.class, + "additionalProperties", additionalProperties, "mode", mode); } - public final static class Builder { + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<? extends SourceMysqlSchemasMode> mode; private Builder() { // force use of static builder() method } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Builder mode(SourceMysqlSchemasMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public Builder mode(Optional<? extends SourceMysqlSchemasMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } public Required build() { - return new Required( - ); + if (mode == null) { + mode = _SINGLETON_VALUE_Mode.value(); + } return new Required( + mode) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<SourceMysqlSchemasMode> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends SourceMysqlSchemasMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"required\"", - new TypeReference<SourceMysqlSchemasMode>() {}); + new TypeReference<Optional<? extends SourceMysqlSchemasMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Resolution.java b/src/main/java/com/airbyte/api/models/shared/Resolution.java new file mode 100644 index 000000000..385e1f325 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Resolution.java @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Resolution { + HOUR("hour"), + DAY("day"), + WEEK("week"); + + @JsonValue + private final String value; + + private Resolution(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Resolution> fromValue(String value) { + for (Resolution o: Resolution.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Rest.java b/src/main/java/com/airbyte/api/models/shared/Rest.java new file mode 100644 index 000000000..f1c6a626a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Rest.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Rest { + REST("REST"); + + @JsonValue + private final String value; + + private Rest(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Rest> fromValue(String value) { + for (Rest o: Rest.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/RetailexpressByMaropost.java b/src/main/java/com/airbyte/api/models/shared/RetailexpressByMaropost.java new file mode 100644 index 000000000..830911eac --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RetailexpressByMaropost.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum RetailexpressByMaropost { + RETAILEXPRESS_BY_MAROPOST("retailexpress-by-maropost"); + + @JsonValue + private final String value; + + private RetailexpressByMaropost(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<RetailexpressByMaropost> fromValue(String value) { + for (RetailexpressByMaropost o: RetailexpressByMaropost.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Retently.java b/src/main/java/com/airbyte/api/models/shared/Retently.java index 233075291..02a9eeeca 100644 --- a/src/main/java/com/airbyte/api/models/shared/Retently.java +++ b/src/main/java/com/airbyte/api/models/shared/Retently.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Retently { RETENTLY("retently"); @@ -20,4 +21,13 @@ private Retently(String value) { public String value() { return value; } + + public static Optional<Retently> fromValue(String value) { + for (Retently o: Retently.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Revenuecat.java b/src/main/java/com/airbyte/api/models/shared/Revenuecat.java index 2a60cfc46..3edb22cec 100644 --- a/src/main/java/com/airbyte/api/models/shared/Revenuecat.java +++ b/src/main/java/com/airbyte/api/models/shared/Revenuecat.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Revenuecat { REVENUECAT("revenuecat"); @@ -20,4 +21,13 @@ private Revenuecat(String value) { public String value() { return value; } + + public static Optional<Revenuecat> fromValue(String value) { + for (Revenuecat o: Revenuecat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java b/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java index 927c2dd48..8800f8e1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java +++ b/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum RevolutMerchant { REVOLUT_MERCHANT("revolut-merchant"); @@ -20,4 +21,13 @@ private RevolutMerchant(String value) { public String value() { return value; } + + public static Optional<RevolutMerchant> fromValue(String value) { + for (RevolutMerchant o: RevolutMerchant.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Ringcentral.java b/src/main/java/com/airbyte/api/models/shared/Ringcentral.java new file mode 100644 index 000000000..f49c43208 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Ringcentral.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Ringcentral { + RINGCENTRAL("ringcentral"); + + @JsonValue + private final String value; + + private Ringcentral(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Ringcentral> fromValue(String value) { + for (Ringcentral o: Ringcentral.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/RkiCovid.java b/src/main/java/com/airbyte/api/models/shared/RkiCovid.java index 6253ea5ee..373a56a4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/RkiCovid.java +++ b/src/main/java/com/airbyte/api/models/shared/RkiCovid.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum RkiCovid { RKI_COVID("rki-covid"); @@ -20,4 +21,13 @@ private RkiCovid(String value) { public String value() { return value; } + + public static Optional<RkiCovid> fromValue(String value) { + for (RkiCovid o: RkiCovid.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/RocketChat.java b/src/main/java/com/airbyte/api/models/shared/RocketChat.java new file mode 100644 index 000000000..4099ac09a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RocketChat.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum RocketChat { + ROCKET_CHAT("rocket-chat"); + + @JsonValue + private final String value; + + private RocketChat(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<RocketChat> fromValue(String value) { + for (RocketChat o: RocketChat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Rocketlane.java b/src/main/java/com/airbyte/api/models/shared/Rocketlane.java index eeecafcb0..4b5804628 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rocketlane.java +++ b/src/main/java/com/airbyte/api/models/shared/Rocketlane.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Rocketlane { ROCKETLANE("rocketlane"); @@ -20,4 +21,13 @@ private Rocketlane(String value) { public String value() { return value; } + + public static Optional<Rocketlane> fromValue(String value) { + for (Rocketlane o: Rocketlane.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/RoleBasedAuthentication.java b/src/main/java/com/airbyte/api/models/shared/RoleBasedAuthentication.java index 6b4d73f01..9872bae76 100644 --- a/src/main/java/com/airbyte/api/models/shared/RoleBasedAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/RoleBasedAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class RoleBasedAuthentication { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/Rollbar.java b/src/main/java/com/airbyte/api/models/shared/Rollbar.java index 49dcbf8c1..9d7f35d97 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rollbar.java +++ b/src/main/java/com/airbyte/api/models/shared/Rollbar.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Rollbar { ROLLBAR("rollbar"); @@ -20,4 +21,13 @@ private Rollbar(String value) { public String value() { return value; } + + public static Optional<Rollbar> fromValue(String value) { + for (Rollbar o: Rollbar.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Rootly.java b/src/main/java/com/airbyte/api/models/shared/Rootly.java index 4c2bd915f..02c2da42a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rootly.java +++ b/src/main/java/com/airbyte/api/models/shared/Rootly.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Rootly { ROOTLY("rootly"); @@ -20,4 +21,13 @@ private Rootly(String value) { public String value() { return value; } + + public static Optional<Rootly> fromValue(String value) { + for (Rootly o: Rootly.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/RowFiltering.java b/src/main/java/com/airbyte/api/models/shared/RowFiltering.java new file mode 100644 index 000000000..8371875c3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RowFiltering.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class RowFiltering { + + @JsonProperty("conditions") + private RowFilteringOperation conditions; + + @JsonCreator + public RowFiltering( + @JsonProperty("conditions") RowFilteringOperation conditions) { + Utils.checkNotNull(conditions, "conditions"); + this.conditions = conditions; + } + + @JsonIgnore + public RowFilteringOperation conditions() { + return conditions; + } + + public final static Builder builder() { + return new Builder(); + } + + public RowFiltering withConditions(RowFilteringOperation conditions) { + Utils.checkNotNull(conditions, "conditions"); + this.conditions = conditions; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RowFiltering other = (RowFiltering) o; + return + Objects.deepEquals(this.conditions, other.conditions); + } + + @Override + public int hashCode() { + return Objects.hash( + conditions); + } + + @Override + public String toString() { + return Utils.toString(RowFiltering.class, + "conditions", conditions); + } + + public final static class Builder { + + private RowFilteringOperation conditions; + + private Builder() { + // force use of static builder() method + } + + public Builder conditions(RowFilteringOperation conditions) { + Utils.checkNotNull(conditions, "conditions"); + this.conditions = conditions; + return this; + } + + public RowFiltering build() { + return new RowFiltering( + conditions); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/RowFilteringOperation.java b/src/main/java/com/airbyte/api/models/shared/RowFilteringOperation.java new file mode 100644 index 000000000..821207ef9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RowFilteringOperation.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonSubTypes.Type; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.lang.String; + +@JsonTypeInfo(use = Id.NAME, property = "type", include = As.EXISTING_PROPERTY, visible = true) +@JsonSubTypes({ + @Type(value = Equal.class, name="EQUAL"), + @Type(value = Not.class, name="NOT")}) +public interface RowFilteringOperation { + + String type(); + +} diff --git a/src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.java b/src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.java new file mode 100644 index 000000000..b4e6dcc95 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum RowFilteringOperationType { + EQUAL("EQUAL"), + NOT("NOT"); + + @JsonValue + private final String value; + + private RowFilteringOperationType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<RowFilteringOperationType> fromValue(String value) { + for (RowFilteringOperationType o: RowFilteringOperationType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Rss.java b/src/main/java/com/airbyte/api/models/shared/Rss.java index ab3f96bb8..0a46d72d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rss.java +++ b/src/main/java/com/airbyte/api/models/shared/Rss.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Rss { RSS("rss"); @@ -20,4 +21,13 @@ private Rss(String value) { public String value() { return value; } + + public static Optional<Rss> fromValue(String value) { + for (Rss o: Rss.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Ruddr.java b/src/main/java/com/airbyte/api/models/shared/Ruddr.java index 48642e7c4..f1fe3d85d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ruddr.java +++ b/src/main/java/com/airbyte/api/models/shared/Ruddr.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Ruddr { RUDDR("ruddr"); @@ -20,4 +21,13 @@ private Ruddr(String value) { public String value() { return value; } + + public static Optional<Ruddr> fromValue(String value) { + for (Ruddr o: Ruddr.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/S3.java b/src/main/java/com/airbyte/api/models/shared/S3.java index 852b21d52..c2323c071 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3.java +++ b/src/main/java/com/airbyte/api/models/shared/S3.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum S3 { S3("s3"); @@ -20,4 +21,13 @@ private S3(String value) { public String value() { return value; } + + public static Optional<S3> fromValue(String value) { + for (S3 o: S3.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/S3AmazonWebServices.java b/src/main/java/com/airbyte/api/models/shared/S3AmazonWebServices.java index 9d40dffe6..e9c9c0a54 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3AmazonWebServices.java +++ b/src/main/java/com/airbyte/api/models/shared/S3AmazonWebServices.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class S3AmazonWebServices { /** diff --git a/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java index f13bd6b43..e6805e41c 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * S3BucketRegion - The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. */ @@ -56,4 +57,13 @@ private S3BucketRegion(String value) { public String value() { return value; } + + public static Optional<S3BucketRegion> fromValue(String value) { + for (S3BucketRegion o: S3BucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/S3DataLake.java b/src/main/java/com/airbyte/api/models/shared/S3DataLake.java new file mode 100644 index 000000000..ed5db305d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/S3DataLake.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum S3DataLake { + S3_DATA_LAKE("s3-data-lake"); + + @JsonValue + private final String value; + + private S3DataLake(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<S3DataLake> fromValue(String value) { + for (S3DataLake o: S3DataLake.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/S3Glue.java b/src/main/java/com/airbyte/api/models/shared/S3Glue.java index 2cb643e28..ebf6a8096 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3Glue.java +++ b/src/main/java/com/airbyte/api/models/shared/S3Glue.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum S3Glue { S3_GLUE("s3-glue"); @@ -20,4 +21,13 @@ private S3Glue(String value) { public String value() { return value; } + + public static Optional<S3Glue> fromValue(String value) { + for (S3Glue o: S3Glue.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SCPSecureCopyProtocol.java b/src/main/java/com/airbyte/api/models/shared/SCPSecureCopyProtocol.java index 9589fc278..9ec5e679d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SCPSecureCopyProtocol.java +++ b/src/main/java/com/airbyte/api/models/shared/SCPSecureCopyProtocol.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SCPSecureCopyProtocol { @JsonProperty("host") diff --git a/src/main/java/com/airbyte/api/models/shared/SFTPSecureFileTransferProtocol.java b/src/main/java/com/airbyte/api/models/shared/SFTPSecureFileTransferProtocol.java index ac005a936..7c025b32b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SFTPSecureFileTransferProtocol.java +++ b/src/main/java/com/airbyte/api/models/shared/SFTPSecureFileTransferProtocol.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SFTPSecureFileTransferProtocol { @JsonProperty("host") diff --git a/src/main/java/com/airbyte/api/models/shared/SQLInserts.java b/src/main/java/com/airbyte/api/models/shared/SQLInserts.java index 5a10fdad2..f567eab72 100644 --- a/src/main/java/com/airbyte/api/models/shared/SQLInserts.java +++ b/src/main/java/com/airbyte/api/models/shared/SQLInserts.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SQLInserts { @JsonProperty("method") diff --git a/src/main/java/com/airbyte/api/models/shared/SSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SSHKeyAuthentication.java index 2024f6c33..638a4b8b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SSHSecureShell.java b/src/main/java/com/airbyte/api/models/shared/SSHSecureShell.java index 2e3d8cf6b..ffa7ece43 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSHSecureShell.java +++ b/src/main/java/com/airbyte/api/models/shared/SSHSecureShell.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SSHSecureShell { @JsonProperty("host") diff --git a/src/main/java/com/airbyte/api/models/shared/SSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SSHTunnelMethod.java index bfb33419c..d8c354828 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SSLMethod.java b/src/main/java/com/airbyte/api/models/shared/SSLMethod.java index d2ad5d23b..fbc0d2e33 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSLMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SSLMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SSLMethod - The encryption method which is used to communicate with the database. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SSLModes.java b/src/main/java/com/airbyte/api/models/shared/SSLModes.java index c3ca84d1f..e8a471f38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/SSLModes.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SSLModes - SSL connection modes. * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database diff --git a/src/main/java/com/airbyte/api/models/shared/Safetyculture.java b/src/main/java/com/airbyte/api/models/shared/Safetyculture.java index 68aa38898..0f874e0f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Safetyculture.java +++ b/src/main/java/com/airbyte/api/models/shared/Safetyculture.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Safetyculture { SAFETYCULTURE("safetyculture"); @@ -20,4 +21,13 @@ private Safetyculture(String value) { public String value() { return value; } + + public static Optional<Safetyculture> fromValue(String value) { + for (Safetyculture o: Safetyculture.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SageHr.java b/src/main/java/com/airbyte/api/models/shared/SageHr.java index dbca4f285..439e73d53 100644 --- a/src/main/java/com/airbyte/api/models/shared/SageHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SageHr.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SageHr { SAGE_HR("sage-hr"); @@ -20,4 +21,13 @@ private SageHr(String value) { public String value() { return value; } + + public static Optional<SageHr> fromValue(String value) { + for (SageHr o: SageHr.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Salesflare.java b/src/main/java/com/airbyte/api/models/shared/Salesflare.java index 4d48c555c..f3676d260 100644 --- a/src/main/java/com/airbyte/api/models/shared/Salesflare.java +++ b/src/main/java/com/airbyte/api/models/shared/Salesflare.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Salesflare { SALESFLARE("salesflare"); @@ -20,4 +21,13 @@ private Salesflare(String value) { public String value() { return value; } + + public static Optional<Salesflare> fromValue(String value) { + for (Salesflare o: Salesflare.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Salesforce.java b/src/main/java/com/airbyte/api/models/shared/Salesforce.java index b5f19f84c..3e182d7ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/Salesforce.java +++ b/src/main/java/com/airbyte/api/models/shared/Salesforce.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class Salesforce { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Salesloft.java b/src/main/java/com/airbyte/api/models/shared/Salesloft.java index 337858290..c7d0bd015 100644 --- a/src/main/java/com/airbyte/api/models/shared/Salesloft.java +++ b/src/main/java/com/airbyte/api/models/shared/Salesloft.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Salesloft { SALESLOFT("salesloft"); @@ -20,4 +21,13 @@ private Salesloft(String value) { public String value() { return value; } + + public static Optional<Salesloft> fromValue(String value) { + for (Salesloft o: Salesloft.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SandboxAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SandboxAccessToken.java index d445fbb5c..dc7e5ddb8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SandboxAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SandboxAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SandboxAccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java b/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java index 1e9305652..18ce62c72 100644 --- a/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java +++ b/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SapFieldglass { SAP_FIELDGLASS("sap-fieldglass"); @@ -20,4 +21,13 @@ private SapFieldglass(String value) { public String value() { return value; } + + public static Optional<SapFieldglass> fromValue(String value) { + for (SapFieldglass o: SapFieldglass.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Savvycal.java b/src/main/java/com/airbyte/api/models/shared/Savvycal.java index 43768e8c2..50cfca569 100644 --- a/src/main/java/com/airbyte/api/models/shared/Savvycal.java +++ b/src/main/java/com/airbyte/api/models/shared/Savvycal.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Savvycal { SAVVYCAL("savvycal"); @@ -20,4 +21,13 @@ private Savvycal(String value) { public String value() { return value; } + + public static Optional<Savvycal> fromValue(String value) { + for (Savvycal o: Savvycal.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/ScanChangesWithUserDefinedCursor.java index 7aa64738f..249839672 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScanChangesWithUserDefinedCursor.java +++ b/src/main/java/com/airbyte/api/models/shared/ScanChangesWithUserDefinedCursor.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * ScanChangesWithUserDefinedCursor - Incrementally detects new inserts and updates using the <a href="https://docs.airbyte.com/understanding-airbyte/connections/incremental-append/#user-defined-cursor">cursor column</a> chosen when configuring a connection (e.g. created_at, updated_at). */ diff --git a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java index 9e07bd8de..ebeefeddf 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ScheduleTypeEnum { MANUAL("manual"), CRON("cron"); @@ -21,4 +22,13 @@ private ScheduleTypeEnum(String value) { public String value() { return value; } + + public static Optional<ScheduleTypeEnum> fromValue(String value) { + for (ScheduleTypeEnum o: ScheduleTypeEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java index 8a1ce7e32..1c398876a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ScheduleTypeWithBasicEnum { MANUAL("manual"), CRON("cron"), @@ -22,4 +23,13 @@ private ScheduleTypeWithBasicEnum(String value) { public String value() { return value; } + + public static Optional<ScheduleTypeWithBasicEnum> fromValue(String value) { + for (ScheduleTypeWithBasicEnum o: ScheduleTypeWithBasicEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SchemeBasicAuth.java b/src/main/java/com/airbyte/api/models/shared/SchemeBasicAuth.java index 4549957dd..6a00d7d9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SchemeBasicAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SchemeBasicAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class SchemeBasicAuth { @SpeakeasyMetadata("security:name=password") diff --git a/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java b/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java index 1bc1b5a14..91cb4acf0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SchemeClientCredentials { @SpeakeasyMetadata("security:name=clientID") diff --git a/src/main/java/com/airbyte/api/models/shared/ScopeType.java b/src/main/java/com/airbyte/api/models/shared/ScopeType.java index 3b2468070..5c7bb88ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScopeType.java +++ b/src/main/java/com/airbyte/api/models/shared/ScopeType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ScopeType { PERSONAL("Personal"), GLOBAL("Global"); @@ -21,4 +22,13 @@ private ScopeType(String value) { public String value() { return value; } + + public static Optional<ScopeType> fromValue(String value) { + for (ScopeType o: ScopeType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Scryfall.java b/src/main/java/com/airbyte/api/models/shared/Scryfall.java index 133e2c022..e7061534a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Scryfall.java +++ b/src/main/java/com/airbyte/api/models/shared/Scryfall.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Scryfall { SCRYFALL("scryfall"); @@ -20,4 +21,13 @@ private Scryfall(String value) { public String value() { return value; } + + public static Optional<Scryfall> fromValue(String value) { + for (Scryfall o: Scryfall.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java b/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java index 6bb8c5c29..5970523bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java +++ b/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SearchCriteria { STARTS_WITH("starts with"), ENDS_WITH("ends with"), @@ -27,4 +28,13 @@ private SearchCriteria(String value) { public String value() { return value; } + + public static Optional<SearchCriteria> fromValue(String value) { + for (SearchCriteria o: SearchCriteria.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SearchIn.java b/src/main/java/com/airbyte/api/models/shared/SearchIn.java index 5d11fd96a..69f7af405 100644 --- a/src/main/java/com/airbyte/api/models/shared/SearchIn.java +++ b/src/main/java/com/airbyte/api/models/shared/SearchIn.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SearchIn { TITLE("title"), DESCRIPTION("description"), @@ -22,4 +23,13 @@ private SearchIn(String value) { public String value() { return value; } + + public static Optional<SearchIn> fromValue(String value) { + for (SearchIn o: SearchIn.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SearchScope.java b/src/main/java/com/airbyte/api/models/shared/SearchScope.java index e7cdadb59..acc6bca65 100644 --- a/src/main/java/com/airbyte/api/models/shared/SearchScope.java +++ b/src/main/java/com/airbyte/api/models/shared/SearchScope.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SearchScope - Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. */ @@ -25,4 +26,13 @@ private SearchScope(String value) { public String value() { return value; } + + public static Optional<SearchScope> fromValue(String value) { + for (SearchScope o: SearchScope.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Secoda.java b/src/main/java/com/airbyte/api/models/shared/Secoda.java index 12796f55d..eef9b44c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Secoda.java +++ b/src/main/java/com/airbyte/api/models/shared/Secoda.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Secoda { SECODA("secoda"); @@ -20,4 +21,13 @@ private Secoda(String value) { public String value() { return value; } + + public static Optional<Secoda> fromValue(String value) { + for (Secoda o: Secoda.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Security.java b/src/main/java/com/airbyte/api/models/shared/Security.java index 43713ca3e..91b6de90b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Security.java +++ b/src/main/java/com/airbyte/api/models/shared/Security.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.SpeakeasyMetadata; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.util.Objects; import java.util.Optional; - public class Security { @SpeakeasyMetadata("security:scheme=true,type=http,subtype=basic") diff --git a/src/main/java/com/airbyte/api/models/shared/Segment.java b/src/main/java/com/airbyte/api/models/shared/Segment.java index e77a46d65..7cb86118c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Segment.java +++ b/src/main/java/com/airbyte/api/models/shared/Segment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Segment { SEGMENT("segment"); @@ -20,4 +21,13 @@ private Segment(String value) { public String value() { return value; } + + public static Optional<Segment> fromValue(String value) { + for (Segment o: Segment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java b/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java index 953c2f868..72fb72efe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java +++ b/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * SelectedFieldInfo - Path to a field/column/property in a stream to be selected. For example, if the field to be selected is a database column called "foo", this will be ["foo"]. Use multiple path elements for nested schemas. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SelfManagedReplicaSet.java b/src/main/java/com/airbyte/api/models/shared/SelfManagedReplicaSet.java index a1bedd925..497b2df11 100644 --- a/src/main/java/com/airbyte/api/models/shared/SelfManagedReplicaSet.java +++ b/src/main/java/com/airbyte/api/models/shared/SelfManagedReplicaSet.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -23,7 +22,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; - /** * SelfManagedReplicaSet - MongoDB self-hosted cluster configured as a replica set */ @@ -41,7 +39,7 @@ public class SelfManagedReplicaSet { private Optional<String> authSource; @JsonProperty("cluster_type") - private SourceMongodbV2SchemasClusterType clusterType; + private SourceMongodbV2ClusterType clusterType; /** * The connection string of the cluster that you want to replicate. https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string for more information. @@ -120,7 +118,7 @@ public Optional<String> authSource() { } @JsonIgnore - public SourceMongodbV2SchemasClusterType clusterType() { + public SourceMongodbV2ClusterType clusterType() { return clusterType; } @@ -466,11 +464,11 @@ public SelfManagedReplicaSet build() { "\"admin\"", new TypeReference<Optional<String>>() {}); - private static final LazySingletonValue<SourceMongodbV2SchemasClusterType> _SINGLETON_VALUE_ClusterType = + private static final LazySingletonValue<SourceMongodbV2ClusterType> _SINGLETON_VALUE_ClusterType = new LazySingletonValue<>( "cluster_type", "\"SELF_MANAGED_REPLICA_SET\"", - new TypeReference<SourceMongodbV2SchemasClusterType>() {}); + new TypeReference<SourceMongodbV2ClusterType>() {}); private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_SchemaEnforced = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/Sendgrid.java b/src/main/java/com/airbyte/api/models/shared/Sendgrid.java index 5f52c2537..6efccc4f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendgrid.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendgrid.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Sendgrid { SENDGRID("sendgrid"); @@ -20,4 +21,13 @@ private Sendgrid(String value) { public String value() { return value; } + + public static Optional<Sendgrid> fromValue(String value) { + for (Sendgrid o: Sendgrid.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Sendinblue.java b/src/main/java/com/airbyte/api/models/shared/Sendinblue.java index 45d662a76..14b628029 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendinblue.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendinblue.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Sendinblue { SENDINBLUE("sendinblue"); @@ -20,4 +21,13 @@ private Sendinblue(String value) { public String value() { return value; } + + public static Optional<Sendinblue> fromValue(String value) { + for (Sendinblue o: Sendinblue.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Sendowl.java b/src/main/java/com/airbyte/api/models/shared/Sendowl.java index 50e8344bb..f6e6fab64 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendowl.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendowl.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Sendowl { SENDOWL("sendowl"); @@ -20,4 +21,13 @@ private Sendowl(String value) { public String value() { return value; } + + public static Optional<Sendowl> fromValue(String value) { + for (Sendowl o: Sendowl.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Sendpulse.java b/src/main/java/com/airbyte/api/models/shared/Sendpulse.java index 7aab9ed91..42140ad36 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendpulse.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendpulse.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Sendpulse { SENDPULSE("sendpulse"); @@ -20,4 +21,13 @@ private Sendpulse(String value) { public String value() { return value; } + + public static Optional<Sendpulse> fromValue(String value) { + for (Sendpulse o: Sendpulse.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Senseforce.java b/src/main/java/com/airbyte/api/models/shared/Senseforce.java index c6a04191c..1440d619e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Senseforce.java +++ b/src/main/java/com/airbyte/api/models/shared/Senseforce.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Senseforce { SENSEFORCE("senseforce"); @@ -20,4 +21,13 @@ private Senseforce(String value) { public String value() { return value; } + + public static Optional<Senseforce> fromValue(String value) { + for (Senseforce o: Senseforce.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Sentry.java b/src/main/java/com/airbyte/api/models/shared/Sentry.java index c17779264..58bf59076 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sentry.java +++ b/src/main/java/com/airbyte/api/models/shared/Sentry.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Sentry { SENTRY("sentry"); @@ -20,4 +21,13 @@ private Sentry(String value) { public String value() { return value; } + + public static Optional<Sentry> fromValue(String value) { + for (Sentry o: Sentry.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SerializationLibrary.java b/src/main/java/com/airbyte/api/models/shared/SerializationLibrary.java index 6b4348b7e..0da5ad046 100644 --- a/src/main/java/com/airbyte/api/models/shared/SerializationLibrary.java +++ b/src/main/java/com/airbyte/api/models/shared/SerializationLibrary.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SerializationLibrary - The library that your query engine will use for reading and writing data in your lake. */ @@ -24,4 +25,13 @@ private SerializationLibrary(String value) { public String value() { return value; } + + public static Optional<SerializationLibrary> fromValue(String value) { + for (SerializationLibrary o: SerializationLibrary.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Serpstat.java b/src/main/java/com/airbyte/api/models/shared/Serpstat.java new file mode 100644 index 000000000..fb8ce78f5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Serpstat.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Serpstat { + SERPSTAT("serpstat"); + + @JsonValue + private final String value; + + private Serpstat(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Serpstat> fromValue(String value) { + for (Serpstat o: Serpstat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/ServerManaged.java b/src/main/java/com/airbyte/api/models/shared/ServerManaged.java index 080eb4aa2..185bea95c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServerManaged.java +++ b/src/main/java/com/airbyte/api/models/shared/ServerManaged.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * ServerManaged - Server-managed object storage */ diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceAccount.java b/src/main/java/com/airbyte/api/models/shared/ServiceAccount.java index f0c61a319..d13106f33 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceAccount.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceAccount.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class ServiceAccount { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceAccountAuthentication.java b/src/main/java/com/airbyte/api/models/shared/ServiceAccountAuthentication.java index a5be4a588..e31c8d554 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceAccountAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceAccountAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ServiceAccountAuthentication { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceAccountKey.java b/src/main/java/com/airbyte/api/models/shared/ServiceAccountKey.java index f8fc174a8..13ceb5288 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceAccountKey.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceAccountKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * ServiceAccountKey - For these scenario user should obtain service account's credentials from the Google API Console and provide delegated email. */ 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 ec596f7f2..e8b0b4ea5 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class ServiceAccountKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/ServiceKeyAuthentication.java index c6cfe3a2e..a084fa000 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * ServiceKeyAuthentication - ServiceCredentials class for service key authentication. * This class is structured similarly to OAuthCredentials but for a different authentication method. diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceName.java b/src/main/java/com/airbyte/api/models/shared/ServiceName.java index 276008bd2..392070eb0 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceName.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceName.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * ServiceName - Use service name */ diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceNow.java b/src/main/java/com/airbyte/api/models/shared/ServiceNow.java new file mode 100644 index 000000000..211f03a50 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/ServiceNow.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum ServiceNow { + SERVICE_NOW("service-now"); + + @JsonValue + private final String value; + + private ServiceNow(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<ServiceNow> fromValue(String value) { + for (ServiceNow o: ServiceNow.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java b/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java index 09392a382..aab8d04c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java +++ b/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Sevenshifts { SEVENSHIFTS("7shifts"); @@ -20,4 +21,13 @@ private Sevenshifts(String value) { public String value() { return value; } + + public static Optional<Sevenshifts> fromValue(String value) { + for (Sevenshifts o: Sevenshifts.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Sftp.java b/src/main/java/com/airbyte/api/models/shared/Sftp.java index 46aacfd17..50c126711 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sftp.java +++ b/src/main/java/com/airbyte/api/models/shared/Sftp.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Sftp { SFTP("sftp"); @@ -20,4 +21,13 @@ private Sftp(String value) { public String value() { return value; } + + public static Optional<Sftp> fromValue(String value) { + for (Sftp o: Sftp.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SftpBulk.java b/src/main/java/com/airbyte/api/models/shared/SftpBulk.java index 7aa021ab7..dbfb89013 100644 --- a/src/main/java/com/airbyte/api/models/shared/SftpBulk.java +++ b/src/main/java/com/airbyte/api/models/shared/SftpBulk.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SftpBulk { SFTP_BULK("sftp-bulk"); @@ -20,4 +21,13 @@ private SftpBulk(String value) { public String value() { return value; } + + public static Optional<SftpBulk> fromValue(String value) { + for (SftpBulk o: SftpBulk.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SftpJson.java b/src/main/java/com/airbyte/api/models/shared/SftpJson.java index e3a1f0982..30dcbbc41 100644 --- a/src/main/java/com/airbyte/api/models/shared/SftpJson.java +++ b/src/main/java/com/airbyte/api/models/shared/SftpJson.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SftpJson { SFTP_JSON("sftp-json"); @@ -20,4 +21,13 @@ private SftpJson(String value) { public String value() { return value; } + + public static Optional<SftpJson> fromValue(String value) { + for (SftpJson o: SftpJson.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java b/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java index ed042ccb4..71009765b 100644 --- a/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java +++ b/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ShareTypeUsedForMostPopularSharedStream - Share Type */ @@ -23,4 +24,13 @@ private ShareTypeUsedForMostPopularSharedStream(String value) { public String value() { return value; } + + public static Optional<ShareTypeUsedForMostPopularSharedStream> fromValue(String value) { + for (ShareTypeUsedForMostPopularSharedStream o: ShareTypeUsedForMostPopularSharedStream.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Sharetribe.java b/src/main/java/com/airbyte/api/models/shared/Sharetribe.java index af0791e37..52971e4b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sharetribe.java +++ b/src/main/java/com/airbyte/api/models/shared/Sharetribe.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Sharetribe { SHARETRIBE("sharetribe"); @@ -20,4 +21,13 @@ private Sharetribe(String value) { public String value() { return value; } + + public static Optional<Sharetribe> fromValue(String value) { + for (Sharetribe o: Sharetribe.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Shippo.java b/src/main/java/com/airbyte/api/models/shared/Shippo.java index 703f25a9e..9d09520bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shippo.java +++ b/src/main/java/com/airbyte/api/models/shared/Shippo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Shippo { SHIPPO("shippo"); @@ -20,4 +21,13 @@ private Shippo(String value) { public String value() { return value; } + + public static Optional<Shippo> fromValue(String value) { + for (Shippo o: Shippo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Shipstation.java b/src/main/java/com/airbyte/api/models/shared/Shipstation.java new file mode 100644 index 000000000..40348886c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Shipstation.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Shipstation { + SHIPSTATION("shipstation"); + + @JsonValue + private final String value; + + private Shipstation(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Shipstation> fromValue(String value) { + for (Shipstation o: Shipstation.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Shopify.java b/src/main/java/com/airbyte/api/models/shared/Shopify.java index 9962ef384..aa0d0ce28 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shopify.java +++ b/src/main/java/com/airbyte/api/models/shared/Shopify.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Shopify { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/ShopifyAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/ShopifyAuthorizationMethod.java index f3a1908a2..93b4982f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/ShopifyAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/ShopifyAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * ShopifyAuthorizationMethod - The authorization method to use to retrieve data from Shopify */ diff --git a/src/main/java/com/airbyte/api/models/shared/ShopifyCredentials.java b/src/main/java/com/airbyte/api/models/shared/ShopifyCredentials.java index 82435bb1e..be99a7eae 100644 --- a/src/main/java/com/airbyte/api/models/shared/ShopifyCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/ShopifyCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class ShopifyCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Shortcut.java b/src/main/java/com/airbyte/api/models/shared/Shortcut.java index d0792a21e..8cedbe252 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shortcut.java +++ b/src/main/java/com/airbyte/api/models/shared/Shortcut.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Shortcut { SHORTCUT("shortcut"); @@ -20,4 +21,13 @@ private Shortcut(String value) { public String value() { return value; } + + public static Optional<Shortcut> fromValue(String value) { + for (Shortcut o: Shortcut.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Shortio.java b/src/main/java/com/airbyte/api/models/shared/Shortio.java index 9cbde9cfd..1be3a31be 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shortio.java +++ b/src/main/java/com/airbyte/api/models/shared/Shortio.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Shortio { SHORTIO("shortio"); @@ -20,4 +21,13 @@ private Shortio(String value) { public String value() { return value; } + + public static Optional<Shortio> fromValue(String value) { + for (Shortio o: Shortio.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java b/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java index c1d5e7cd9..d7e0a2c50 100644 --- a/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java +++ b/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SigmaComputing { SIGMA_COMPUTING("sigma-computing"); @@ -20,4 +21,13 @@ private SigmaComputing(String value) { public String value() { return value; } + + public static Optional<SigmaComputing> fromValue(String value) { + for (SigmaComputing o: SigmaComputing.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SignInViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/SignInViaGoogleOAuth.java index 724c76914..ddefdef91 100644 --- a/src/main/java/com/airbyte/api/models/shared/SignInViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SignInViaGoogleOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SignInViaGoogleOAuth - For these scenario user only needs to give permission to read Google Directory data. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SignInViaRDStationOAuth.java b/src/main/java/com/airbyte/api/models/shared/SignInViaRDStationOAuth.java index 53e905419..823700125 100644 --- a/src/main/java/com/airbyte/api/models/shared/SignInViaRDStationOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SignInViaRDStationOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SignInViaRDStationOAuth { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/SignInViaSlackOAuth.java b/src/main/java/com/airbyte/api/models/shared/SignInViaSlackOAuth.java index cf48441a9..2f17f4e7c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SignInViaSlackOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SignInViaSlackOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SignInViaSlackOAuth { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Silent.java b/src/main/java/com/airbyte/api/models/shared/Silent.java index 4d7e2864f..c233602da 100644 --- a/src/main/java/com/airbyte/api/models/shared/Silent.java +++ b/src/main/java/com/airbyte/api/models/shared/Silent.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class Silent { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/Simfin.java b/src/main/java/com/airbyte/api/models/shared/Simfin.java index 444ed70d5..03802963d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Simfin.java +++ b/src/main/java/com/airbyte/api/models/shared/Simfin.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Simfin { SIMFIN("simfin"); @@ -20,4 +21,13 @@ private Simfin(String value) { public String value() { return value; } + + public static Optional<Simfin> fromValue(String value) { + for (Simfin o: Simfin.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Simplecast.java b/src/main/java/com/airbyte/api/models/shared/Simplecast.java index 08873b83c..ba2c20e9f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Simplecast.java +++ b/src/main/java/com/airbyte/api/models/shared/Simplecast.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Simplecast { SIMPLECAST("simplecast"); @@ -20,4 +21,13 @@ private Simplecast(String value) { public String value() { return value; } + + public static Optional<Simplecast> fromValue(String value) { + for (Simplecast o: Simplecast.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Simplesat.java b/src/main/java/com/airbyte/api/models/shared/Simplesat.java index 0fc1138c9..2c606c147 100644 --- a/src/main/java/com/airbyte/api/models/shared/Simplesat.java +++ b/src/main/java/com/airbyte/api/models/shared/Simplesat.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Simplesat { SIMPLESAT("simplesat"); @@ -20,4 +21,13 @@ private Simplesat(String value) { public String value() { return value; } + + public static Optional<Simplesat> fromValue(String value) { + for (Simplesat o: Simplesat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SingleStoreAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SingleStoreAccessToken.java index 3579fd6e9..f21037711 100644 --- a/src/main/java/com/airbyte/api/models/shared/SingleStoreAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SingleStoreAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SingleStoreAccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Site.java b/src/main/java/com/airbyte/api/models/shared/Site.java index 5036b1a33..27b5216fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Site.java +++ b/src/main/java/com/airbyte/api/models/shared/Site.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Site - The site where Datadog data resides in. */ @@ -27,4 +28,13 @@ private Site(String value) { public String value() { return value; } + + public static Optional<Site> fromValue(String value) { + for (Site o: Site.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Slack.java b/src/main/java/com/airbyte/api/models/shared/Slack.java index d4b98487c..a9767ec7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Slack.java +++ b/src/main/java/com/airbyte/api/models/shared/Slack.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Slack { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SlackCredentials.java b/src/main/java/com/airbyte/api/models/shared/SlackCredentials.java index 25223b7b8..521d90f57 100644 --- a/src/main/java/com/airbyte/api/models/shared/SlackCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SlackCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class SlackCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Smaily.java b/src/main/java/com/airbyte/api/models/shared/Smaily.java index 6fd7b43af..c3b3ffccf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smaily.java +++ b/src/main/java/com/airbyte/api/models/shared/Smaily.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Smaily { SMAILY("smaily"); @@ -20,4 +21,13 @@ private Smaily(String value) { public String value() { return value; } + + public static Optional<Smaily> fromValue(String value) { + for (Smaily o: Smaily.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Smartengage.java b/src/main/java/com/airbyte/api/models/shared/Smartengage.java index 694197483..f69af9349 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartengage.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartengage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Smartengage { SMARTENGAGE("smartengage"); @@ -20,4 +21,13 @@ private Smartengage(String value) { public String value() { return value; } + + public static Optional<Smartengage> fromValue(String value) { + for (Smartengage o: Smartengage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Smartreach.java b/src/main/java/com/airbyte/api/models/shared/Smartreach.java index 6b58c1ac3..bf64c7cb9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartreach.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartreach.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Smartreach { SMARTREACH("smartreach"); @@ -20,4 +21,13 @@ private Smartreach(String value) { public String value() { return value; } + + public static Optional<Smartreach> fromValue(String value) { + for (Smartreach o: Smartreach.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Smartsheets.java b/src/main/java/com/airbyte/api/models/shared/Smartsheets.java index 776d36d18..b9dedf6ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartsheets.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartsheets.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Smartsheets { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SmartsheetsCredentials.java b/src/main/java/com/airbyte/api/models/shared/SmartsheetsCredentials.java index 10ece22f0..1c80e7455 100644 --- a/src/main/java/com/airbyte/api/models/shared/SmartsheetsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SmartsheetsCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class SmartsheetsCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java b/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java index 0d73ed4a0..feb4a2e47 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Smartwaiver { SMARTWAIVER("smartwaiver"); @@ -20,4 +21,13 @@ private Smartwaiver(String value) { public String value() { return value; } + + public static Optional<Smartwaiver> fromValue(String value) { + for (Smartwaiver o: Smartwaiver.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SnapchatMarketing.java b/src/main/java/com/airbyte/api/models/shared/SnapchatMarketing.java index bb8feaf8b..b167b9757 100644 --- a/src/main/java/com/airbyte/api/models/shared/SnapchatMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SnapchatMarketing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class SnapchatMarketing { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Snappy.java b/src/main/java/com/airbyte/api/models/shared/Snappy.java index 871be9547..492bf3083 100644 --- a/src/main/java/com/airbyte/api/models/shared/Snappy.java +++ b/src/main/java/com/airbyte/api/models/shared/Snappy.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class Snappy { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/Snowflake.java b/src/main/java/com/airbyte/api/models/shared/Snowflake.java index 08a040024..1aa6924a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Snowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/Snowflake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Snowflake { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java b/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java index 7ecb8e495..a445b37d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java +++ b/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * SnowflakeConnection - Snowflake can be used to store vector data and retrieve embeddings. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java b/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java index 31e719525..9cfc5db43 100644 --- a/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java +++ b/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SnowflakeCortex { SNOWFLAKE_CORTEX("snowflake-cortex"); @@ -20,4 +21,13 @@ private SnowflakeCortex(String value) { public String value() { return value; } + + public static Optional<SnowflakeCortex> fromValue(String value) { + for (SnowflakeCortex o: SnowflakeCortex.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SnowflakeCredentials.java b/src/main/java/com/airbyte/api/models/shared/SnowflakeCredentials.java index 2875544b3..163ac89d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SnowflakeCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SnowflakeCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class SnowflakeCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java b/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java index bbd11a1aa..b7a0c0fe3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SolarwindsServiceDesk { SOLARWINDS_SERVICE_DESK("solarwinds-service-desk"); @@ -20,4 +21,13 @@ private SolarwindsServiceDesk(String value) { public String value() { return value; } + + public static Optional<SolarwindsServiceDesk> fromValue(String value) { + for (SolarwindsServiceDesk o: SolarwindsServiceDesk.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SonarCloud.java b/src/main/java/com/airbyte/api/models/shared/SonarCloud.java index 8842631f2..ef173982c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SonarCloud.java +++ b/src/main/java/com/airbyte/api/models/shared/SonarCloud.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SonarCloud { SONAR_CLOUD("sonar-cloud"); @@ -20,4 +21,13 @@ private SonarCloud(String value) { public String value() { return value; } + + public static Optional<SonarCloud> fromValue(String value) { + for (SonarCloud o: SonarCloud.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SortBy.java b/src/main/java/com/airbyte/api/models/shared/SortBy.java index c07fde784..fd5eec963 100644 --- a/src/main/java/com/airbyte/api/models/shared/SortBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SortBy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SortBy - The order to sort the articles in. Possible options: relevancy, * popularity, publishedAt. @@ -27,4 +28,13 @@ private SortBy(String value) { public String value() { return value; } + + public static Optional<SortBy> fromValue(String value) { + for (SortBy o: SortBy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Source7shifts.java b/src/main/java/com/airbyte/api/models/shared/Source7shifts.java index a091a61c9..d6ce4195e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Source7shifts.java +++ b/src/main/java/com/airbyte/api/models/shared/Source7shifts.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class Source7shifts { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceActivecampaign.java b/src/main/java/com/airbyte/api/models/shared/SourceActivecampaign.java index 8bbf242f7..58aa49217 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceActivecampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceActivecampaign.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceActivecampaign { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAgilecrm.java b/src/main/java/com/airbyte/api/models/shared/SourceAgilecrm.java index c6b35fac4..c8cf269e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAgilecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAgilecrm.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceAgilecrm { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAha.java b/src/main/java/com/airbyte/api/models/shared/SourceAha.java index 69921a8bb..18b3facc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAha.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAha.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceAha { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java b/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java index de50b0ec6..29f592d77 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceAirbyte { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAircall.java b/src/main/java/com/airbyte/api/models/shared/SourceAircall.java index 5b0addfae..cc07e577b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAircall.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAircall.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceAircall { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtable.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtable.java index 5b9a4fc01..5c6163241 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAirtable { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java index da6a33b70..e2b97cb7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAirtableAirtable { AIRTABLE("airtable"); @@ -20,4 +21,13 @@ private SourceAirtableAirtable(String value) { public String value() { return value; } + + public static Optional<SourceAirtableAirtable> fromValue(String value) { + for (SourceAirtableAirtable o: SourceAirtableAirtable.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java index a7f231070..1a7e14ae2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAirtableAuthMethod { API_KEY("api_key"); @@ -20,4 +21,13 @@ private SourceAirtableAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceAirtableAuthMethod> fromValue(String value) { + for (SourceAirtableAuthMethod o: SourceAirtableAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java index eb0b64c2f..3c6b1f39c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceAirtableAuthentication._Deserializer.class) public class SourceAirtableAuthentication { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableOAuth20.java index f1c195109..d1d1f49d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAirtableOAuth20 { /** @@ -41,7 +39,7 @@ public class SourceAirtableOAuth20 { private String clientId; /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ @JsonProperty("client_secret") private String clientSecret; @@ -109,7 +107,7 @@ public String clientId() { } /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ @JsonIgnore public String clientSecret() { @@ -164,7 +162,7 @@ public SourceAirtableOAuth20 withClientId(String clientId) { } /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ public SourceAirtableOAuth20 withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -283,7 +281,7 @@ public Builder clientId(String clientId) { } /** - * The client secret the Airtable developer application. + * The client secret of the Airtable developer application. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java index d3ae05608..0d7622e74 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAirtablePersonalAccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java index 029df1f71..6a2699d48 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAirtableSchemasAuthMethod { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceAirtableSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceAirtableSchemasAuthMethod> fromValue(String value) { + for (SourceAirtableSchemasAuthMethod o: SourceAirtableSchemasAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAkeneo.java b/src/main/java/com/airbyte/api/models/shared/SourceAkeneo.java index 9e597065e..f8289aae6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAkeneo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAkeneo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAkeneo { @JsonProperty("api_username") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java b/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java index aaa9602b7..272569db6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAlgolia { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAlphaVantage.java b/src/main/java/com/airbyte/api/models/shared/SourceAlphaVantage.java new file mode 100644 index 000000000..5b7584b87 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceAlphaVantage.java @@ -0,0 +1,397 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +public class SourceAlphaVantage { + + /** + * Whether to return adjusted data. Only applicable to intraday endpoints. + * + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("adjusted") + private Optional<Boolean> adjusted; + + /** + * API Key + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * Time-series data point interval. Required for intraday endpoints. + * + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("interval") + private Optional<? extends Interval> interval; + + /** + * Whether to return full or compact data (the last 100 data points). + * + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("outputsize") + private Optional<? extends OutputSize> outputsize; + + @JsonProperty("sourceType") + private AlphaVantage sourceType; + + /** + * Stock symbol (with exchange code) + */ + @JsonProperty("symbol") + private String symbol; + + @JsonCreator + public SourceAlphaVantage( + @JsonProperty("adjusted") Optional<Boolean> adjusted, + @JsonProperty("api_key") String apiKey, + @JsonProperty("interval") Optional<? extends Interval> interval, + @JsonProperty("outputsize") Optional<? extends OutputSize> outputsize, + @JsonProperty("symbol") String symbol) { + Utils.checkNotNull(adjusted, "adjusted"); + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(interval, "interval"); + Utils.checkNotNull(outputsize, "outputsize"); + Utils.checkNotNull(symbol, "symbol"); + this.adjusted = adjusted; + this.apiKey = apiKey; + this.interval = interval; + this.outputsize = outputsize; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.symbol = symbol; + } + + public SourceAlphaVantage( + String apiKey, + String symbol) { + this(Optional.empty(), apiKey, Optional.empty(), Optional.empty(), symbol); + } + + /** + * Whether to return adjusted data. Only applicable to intraday endpoints. + * + */ + @JsonIgnore + public Optional<Boolean> adjusted() { + return adjusted; + } + + /** + * API Key + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Time-series data point interval. Required for intraday endpoints. + * + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<Interval> interval() { + return (Optional<Interval>) interval; + } + + /** + * Whether to return full or compact data (the last 100 data points). + * + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<OutputSize> outputsize() { + return (Optional<OutputSize>) outputsize; + } + + @JsonIgnore + public AlphaVantage sourceType() { + return sourceType; + } + + /** + * Stock symbol (with exchange code) + */ + @JsonIgnore + public String symbol() { + return symbol; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Whether to return adjusted data. Only applicable to intraday endpoints. + * + */ + public SourceAlphaVantage withAdjusted(boolean adjusted) { + Utils.checkNotNull(adjusted, "adjusted"); + this.adjusted = Optional.ofNullable(adjusted); + return this; + } + + /** + * Whether to return adjusted data. Only applicable to intraday endpoints. + * + */ + public SourceAlphaVantage withAdjusted(Optional<Boolean> adjusted) { + Utils.checkNotNull(adjusted, "adjusted"); + this.adjusted = adjusted; + return this; + } + + /** + * API Key + */ + public SourceAlphaVantage withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Time-series data point interval. Required for intraday endpoints. + * + */ + public SourceAlphaVantage withInterval(Interval interval) { + Utils.checkNotNull(interval, "interval"); + this.interval = Optional.ofNullable(interval); + return this; + } + + /** + * Time-series data point interval. Required for intraday endpoints. + * + */ + public SourceAlphaVantage withInterval(Optional<? extends Interval> interval) { + Utils.checkNotNull(interval, "interval"); + this.interval = interval; + return this; + } + + /** + * Whether to return full or compact data (the last 100 data points). + * + */ + public SourceAlphaVantage withOutputsize(OutputSize outputsize) { + Utils.checkNotNull(outputsize, "outputsize"); + this.outputsize = Optional.ofNullable(outputsize); + return this; + } + + /** + * Whether to return full or compact data (the last 100 data points). + * + */ + public SourceAlphaVantage withOutputsize(Optional<? extends OutputSize> outputsize) { + Utils.checkNotNull(outputsize, "outputsize"); + this.outputsize = outputsize; + return this; + } + + /** + * Stock symbol (with exchange code) + */ + public SourceAlphaVantage withSymbol(String symbol) { + Utils.checkNotNull(symbol, "symbol"); + this.symbol = symbol; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceAlphaVantage other = (SourceAlphaVantage) o; + return + Objects.deepEquals(this.adjusted, other.adjusted) && + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.interval, other.interval) && + Objects.deepEquals(this.outputsize, other.outputsize) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.symbol, other.symbol); + } + + @Override + public int hashCode() { + return Objects.hash( + adjusted, + apiKey, + interval, + outputsize, + sourceType, + symbol); + } + + @Override + public String toString() { + return Utils.toString(SourceAlphaVantage.class, + "adjusted", adjusted, + "apiKey", apiKey, + "interval", interval, + "outputsize", outputsize, + "sourceType", sourceType, + "symbol", symbol); + } + + public final static class Builder { + + private Optional<Boolean> adjusted; + + private String apiKey; + + private Optional<? extends Interval> interval; + + private Optional<? extends OutputSize> outputsize; + + private String symbol; + + private Builder() { + // force use of static builder() method + } + + /** + * Whether to return adjusted data. Only applicable to intraday endpoints. + * + */ + public Builder adjusted(boolean adjusted) { + Utils.checkNotNull(adjusted, "adjusted"); + this.adjusted = Optional.ofNullable(adjusted); + return this; + } + + /** + * Whether to return adjusted data. Only applicable to intraday endpoints. + * + */ + public Builder adjusted(Optional<Boolean> adjusted) { + Utils.checkNotNull(adjusted, "adjusted"); + this.adjusted = adjusted; + return this; + } + + /** + * API Key + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Time-series data point interval. Required for intraday endpoints. + * + */ + public Builder interval(Interval interval) { + Utils.checkNotNull(interval, "interval"); + this.interval = Optional.ofNullable(interval); + return this; + } + + /** + * Time-series data point interval. Required for intraday endpoints. + * + */ + public Builder interval(Optional<? extends Interval> interval) { + Utils.checkNotNull(interval, "interval"); + this.interval = interval; + return this; + } + + /** + * Whether to return full or compact data (the last 100 data points). + * + */ + public Builder outputsize(OutputSize outputsize) { + Utils.checkNotNull(outputsize, "outputsize"); + this.outputsize = Optional.ofNullable(outputsize); + return this; + } + + /** + * Whether to return full or compact data (the last 100 data points). + * + */ + public Builder outputsize(Optional<? extends OutputSize> outputsize) { + Utils.checkNotNull(outputsize, "outputsize"); + this.outputsize = outputsize; + return this; + } + + /** + * Stock symbol (with exchange code) + */ + public Builder symbol(String symbol) { + Utils.checkNotNull(symbol, "symbol"); + this.symbol = symbol; + return this; + } + + public SourceAlphaVantage build() { + if (adjusted == null) { + adjusted = _SINGLETON_VALUE_Adjusted.value(); + } + if (interval == null) { + interval = _SINGLETON_VALUE_Interval.value(); + } + if (outputsize == null) { + outputsize = _SINGLETON_VALUE_Outputsize.value(); + } return new SourceAlphaVantage( + adjusted, + apiKey, + interval, + outputsize, + symbol); + } + + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_Adjusted = + new LazySingletonValue<>( + "adjusted", + "false", + new TypeReference<Optional<Boolean>>() {}); + + private static final LazySingletonValue<Optional<? extends Interval>> _SINGLETON_VALUE_Interval = + new LazySingletonValue<>( + "interval", + "\"1min\"", + new TypeReference<Optional<? extends Interval>>() {}); + + private static final LazySingletonValue<Optional<? extends OutputSize>> _SINGLETON_VALUE_Outputsize = + new LazySingletonValue<>( + "outputsize", + "\"compact\"", + new TypeReference<Optional<? extends OutputSize>>() {}); + + private static final LazySingletonValue<AlphaVantage> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"alpha-vantage\"", + new TypeReference<AlphaVantage>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAds.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAds.java index 1af1fe8a0..161c3e810 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAmazonAds { @JsonInclude(Include.NON_ABSENT) @@ -75,13 +73,6 @@ public class SourceAmazonAds { @JsonProperty("region") private Optional<? extends Region> region; - /** - * Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See <a href="https://advertising.amazon.com/API/docs/en-us/reporting/v2/report-types">docs</a> for more details - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("report_record_types") - private Optional<? extends List<ReportRecordTypeEnum>> reportRecordTypes; - @JsonProperty("sourceType") private SourceAmazonAdsAmazonAds sourceType; @@ -92,13 +83,6 @@ public class SourceAmazonAds { @JsonProperty("start_date") private Optional<LocalDate> startDate; - /** - * Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state_filter") - private Optional<? extends List<StateFilterEnum>> stateFilter; - @JsonCreator public SourceAmazonAds( @JsonProperty("client_id") String clientId, @@ -108,9 +92,7 @@ public SourceAmazonAds( @JsonProperty("profiles") Optional<? extends List<Long>> profiles, @JsonProperty("refresh_token") String refreshToken, @JsonProperty("region") Optional<? extends Region> region, - @JsonProperty("report_record_types") Optional<? extends List<ReportRecordTypeEnum>> reportRecordTypes, - @JsonProperty("start_date") Optional<LocalDate> startDate, - @JsonProperty("state_filter") Optional<? extends List<StateFilterEnum>> stateFilter) { + @JsonProperty("start_date") Optional<LocalDate> startDate) { Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); Utils.checkNotNull(lookBackWindow, "lookBackWindow"); @@ -118,9 +100,7 @@ public SourceAmazonAds( Utils.checkNotNull(profiles, "profiles"); Utils.checkNotNull(refreshToken, "refreshToken"); Utils.checkNotNull(region, "region"); - Utils.checkNotNull(reportRecordTypes, "reportRecordTypes"); Utils.checkNotNull(startDate, "startDate"); - Utils.checkNotNull(stateFilter, "stateFilter"); this.authType = Builder._SINGLETON_VALUE_AuthType.value(); this.clientId = clientId; this.clientSecret = clientSecret; @@ -129,17 +109,15 @@ public SourceAmazonAds( this.profiles = profiles; this.refreshToken = refreshToken; this.region = region; - this.reportRecordTypes = reportRecordTypes; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; - this.stateFilter = stateFilter; } public SourceAmazonAds( String clientId, String clientSecret, String refreshToken) { - this(clientId, clientSecret, Optional.empty(), Optional.empty(), Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(clientId, clientSecret, Optional.empty(), Optional.empty(), Optional.empty(), refreshToken, Optional.empty(), Optional.empty()); } @SuppressWarnings("unchecked") @@ -207,15 +185,6 @@ public Optional<Region> region() { return (Optional<Region>) region; } - /** - * Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See <a href="https://advertising.amazon.com/API/docs/en-us/reporting/v2/report-types">docs</a> for more details - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional<List<ReportRecordTypeEnum>> reportRecordTypes() { - return (Optional<List<ReportRecordTypeEnum>>) reportRecordTypes; - } - @JsonIgnore public SourceAmazonAdsAmazonAds sourceType() { return sourceType; @@ -229,15 +198,6 @@ public Optional<LocalDate> startDate() { return startDate; } - /** - * Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional<List<StateFilterEnum>> stateFilter() { - return (Optional<List<StateFilterEnum>>) stateFilter; - } - public final static Builder builder() { return new Builder(); } @@ -341,24 +301,6 @@ public SourceAmazonAds withRegion(Optional<? extends Region> region) { return this; } - /** - * Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See <a href="https://advertising.amazon.com/API/docs/en-us/reporting/v2/report-types">docs</a> for more details - */ - public SourceAmazonAds withReportRecordTypes(List<ReportRecordTypeEnum> reportRecordTypes) { - Utils.checkNotNull(reportRecordTypes, "reportRecordTypes"); - this.reportRecordTypes = Optional.ofNullable(reportRecordTypes); - return this; - } - - /** - * Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See <a href="https://advertising.amazon.com/API/docs/en-us/reporting/v2/report-types">docs</a> for more details - */ - public SourceAmazonAds withReportRecordTypes(Optional<? extends List<ReportRecordTypeEnum>> reportRecordTypes) { - Utils.checkNotNull(reportRecordTypes, "reportRecordTypes"); - this.reportRecordTypes = reportRecordTypes; - return this; - } - /** * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format */ @@ -376,24 +318,6 @@ public SourceAmazonAds withStartDate(Optional<LocalDate> startDate) { this.startDate = startDate; return this; } - - /** - * Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely. - */ - public SourceAmazonAds withStateFilter(List<StateFilterEnum> stateFilter) { - Utils.checkNotNull(stateFilter, "stateFilter"); - this.stateFilter = Optional.ofNullable(stateFilter); - return this; - } - - /** - * Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely. - */ - public SourceAmazonAds withStateFilter(Optional<? extends List<StateFilterEnum>> stateFilter) { - Utils.checkNotNull(stateFilter, "stateFilter"); - this.stateFilter = stateFilter; - return this; - } @Override public boolean equals(java.lang.Object o) { @@ -413,10 +337,8 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.profiles, other.profiles) && Objects.deepEquals(this.refreshToken, other.refreshToken) && Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.reportRecordTypes, other.reportRecordTypes) && Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.stateFilter, other.stateFilter); + Objects.deepEquals(this.startDate, other.startDate); } @Override @@ -430,10 +352,8 @@ public int hashCode() { profiles, refreshToken, region, - reportRecordTypes, sourceType, - startDate, - stateFilter); + startDate); } @Override @@ -447,10 +367,8 @@ public String toString() { "profiles", profiles, "refreshToken", refreshToken, "region", region, - "reportRecordTypes", reportRecordTypes, "sourceType", sourceType, - "startDate", startDate, - "stateFilter", stateFilter); + "startDate", startDate); } public final static class Builder { @@ -469,11 +387,7 @@ public final static class Builder { private Optional<? extends Region> region; - private Optional<? extends List<ReportRecordTypeEnum>> reportRecordTypes = Optional.empty(); - - private Optional<LocalDate> startDate = Optional.empty(); - - private Optional<? extends List<StateFilterEnum>> stateFilter = Optional.empty(); + private Optional<LocalDate> startDate = Optional.empty(); private Builder() { // force use of static builder() method @@ -578,24 +492,6 @@ public Builder region(Optional<? extends Region> region) { return this; } - /** - * Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See <a href="https://advertising.amazon.com/API/docs/en-us/reporting/v2/report-types">docs</a> for more details - */ - public Builder reportRecordTypes(List<ReportRecordTypeEnum> reportRecordTypes) { - Utils.checkNotNull(reportRecordTypes, "reportRecordTypes"); - this.reportRecordTypes = Optional.ofNullable(reportRecordTypes); - return this; - } - - /** - * Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See <a href="https://advertising.amazon.com/API/docs/en-us/reporting/v2/report-types">docs</a> for more details - */ - public Builder reportRecordTypes(Optional<? extends List<ReportRecordTypeEnum>> reportRecordTypes) { - Utils.checkNotNull(reportRecordTypes, "reportRecordTypes"); - this.reportRecordTypes = reportRecordTypes; - return this; - } - /** * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format */ @@ -613,24 +509,6 @@ public Builder startDate(Optional<LocalDate> startDate) { this.startDate = startDate; return this; } - - /** - * Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely. - */ - public Builder stateFilter(List<StateFilterEnum> stateFilter) { - Utils.checkNotNull(stateFilter, "stateFilter"); - this.stateFilter = Optional.ofNullable(stateFilter); - return this; - } - - /** - * Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely. - */ - public Builder stateFilter(Optional<? extends List<StateFilterEnum>> stateFilter) { - Utils.checkNotNull(stateFilter, "stateFilter"); - this.stateFilter = stateFilter; - return this; - } public SourceAmazonAds build() { if (lookBackWindow == null) { @@ -646,9 +524,7 @@ public SourceAmazonAds build() { profiles, refreshToken, region, - reportRecordTypes, - startDate, - stateFilter); + startDate); } private static final LazySingletonValue<Optional<? extends SourceAmazonAdsAuthType>> _SINGLETON_VALUE_AuthType = diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java index c2dba19da..c0a942a76 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAmazonAdsAmazonAds { AMAZON_ADS("amazon-ads"); @@ -20,4 +21,13 @@ private SourceAmazonAdsAmazonAds(String value) { public String value() { return value; } + + public static Optional<SourceAmazonAdsAmazonAds> fromValue(String value) { + for (SourceAmazonAdsAmazonAds o: SourceAmazonAdsAmazonAds.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java index a16488b06..1e48fc2b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAmazonAdsAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceAmazonAdsAuthType(String value) { public String value() { return value; } + + public static Optional<SourceAmazonAdsAuthType> fromValue(String value) { + for (SourceAmazonAdsAuthType o: SourceAmazonAdsAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java index d7c809ff2..ae05437d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,7 +22,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAmazonSellerPartner { /** @@ -33,6 +31,13 @@ public class SourceAmazonSellerPartner { @JsonProperty("account_type") private Optional<? extends AWSSellerPartnerAccountType> accountType; + /** + * Your Amazon Application ID. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("app_id") + private Optional<String> appId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional<? extends SourceAmazonSellerPartnerAuthType> authType; @@ -110,6 +115,7 @@ public class SourceAmazonSellerPartner { @JsonCreator public SourceAmazonSellerPartner( @JsonProperty("account_type") Optional<? extends AWSSellerPartnerAccountType> accountType, + @JsonProperty("app_id") Optional<String> appId, @JsonProperty("aws_environment") Optional<? extends AWSEnvironment> awsEnvironment, @JsonProperty("lwa_app_id") String lwaAppId, @JsonProperty("lwa_client_secret") String lwaClientSecret, @@ -121,6 +127,7 @@ public SourceAmazonSellerPartner( @JsonProperty("report_options_list") Optional<? extends List<ReportOptions>> reportOptionsList, @JsonProperty("wait_to_avoid_fatal_errors") Optional<Boolean> waitToAvoidFatalErrors) { Utils.checkNotNull(accountType, "accountType"); + Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(awsEnvironment, "awsEnvironment"); Utils.checkNotNull(lwaAppId, "lwaAppId"); Utils.checkNotNull(lwaClientSecret, "lwaClientSecret"); @@ -132,6 +139,7 @@ public SourceAmazonSellerPartner( Utils.checkNotNull(reportOptionsList, "reportOptionsList"); Utils.checkNotNull(waitToAvoidFatalErrors, "waitToAvoidFatalErrors"); this.accountType = accountType; + this.appId = appId; this.authType = Builder._SINGLETON_VALUE_AuthType.value(); this.awsEnvironment = awsEnvironment; this.lwaAppId = lwaAppId; @@ -150,7 +158,7 @@ public SourceAmazonSellerPartner( String lwaAppId, String lwaClientSecret, String refreshToken) { - this(Optional.empty(), Optional.empty(), lwaAppId, lwaClientSecret, Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), lwaAppId, lwaClientSecret, Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -162,6 +170,14 @@ public Optional<AWSSellerPartnerAccountType> accountType() { return (Optional<AWSSellerPartnerAccountType>) accountType; } + /** + * Your Amazon Application ID. + */ + @JsonIgnore + public Optional<String> appId() { + return appId; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional<SourceAmazonSellerPartnerAuthType> authType() { @@ -278,6 +294,24 @@ public SourceAmazonSellerPartner withAccountType(Optional<? extends AWSSellerPar return this; } + /** + * Your Amazon Application ID. + */ + public SourceAmazonSellerPartner withAppId(String appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + * Your Amazon Application ID. + */ + public SourceAmazonSellerPartner withAppId(Optional<String> appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = appId; + return this; + } + /** * Select the AWS Environment. */ @@ -442,6 +476,7 @@ public boolean equals(java.lang.Object o) { SourceAmazonSellerPartner other = (SourceAmazonSellerPartner) o; return Objects.deepEquals(this.accountType, other.accountType) && + Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.authType, other.authType) && Objects.deepEquals(this.awsEnvironment, other.awsEnvironment) && Objects.deepEquals(this.lwaAppId, other.lwaAppId) && @@ -460,6 +495,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( accountType, + appId, authType, awsEnvironment, lwaAppId, @@ -478,6 +514,7 @@ public int hashCode() { public String toString() { return Utils.toString(SourceAmazonSellerPartner.class, "accountType", accountType, + "appId", appId, "authType", authType, "awsEnvironment", awsEnvironment, "lwaAppId", lwaAppId, @@ -496,6 +533,8 @@ public final static class Builder { private Optional<? extends AWSSellerPartnerAccountType> accountType; + private Optional<String> appId = Optional.empty(); + private Optional<? extends AWSEnvironment> awsEnvironment; private String lwaAppId; @@ -538,6 +577,24 @@ public Builder accountType(Optional<? extends AWSSellerPartnerAccountType> accou return this; } + /** + * Your Amazon Application ID. + */ + public Builder appId(String appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + * Your Amazon Application ID. + */ + public Builder appId(Optional<String> appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = appId; + return this; + } + /** * Select the AWS Environment. */ @@ -708,6 +765,7 @@ public SourceAmazonSellerPartner build() { waitToAvoidFatalErrors = _SINGLETON_VALUE_WaitToAvoidFatalErrors.value(); } return new SourceAmazonSellerPartner( accountType, + appId, awsEnvironment, lwaAppId, lwaClientSecret, diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java index 689333787..39e1a9563 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAmazonSellerPartnerAmazonSellerPartner { AMAZON_SELLER_PARTNER("amazon-seller-partner"); @@ -20,4 +21,13 @@ private SourceAmazonSellerPartnerAmazonSellerPartner(String value) { public String value() { return value; } + + public static Optional<SourceAmazonSellerPartnerAmazonSellerPartner> fromValue(String value) { + for (SourceAmazonSellerPartnerAmazonSellerPartner o: SourceAmazonSellerPartnerAmazonSellerPartner.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java index cc574625f..09634b8b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAmazonSellerPartnerAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceAmazonSellerPartnerAuthType(String value) { public String value() { return value; } + + public static Optional<SourceAmazonSellerPartnerAuthType> fromValue(String value) { + for (SourceAmazonSellerPartnerAuthType o: SourceAmazonSellerPartnerAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqs.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqs.java index c682efec7..3eecb55a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqs.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqs.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,22 +12,20 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; import java.lang.Long; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - public class SourceAmazonSqs { /** * The Access Key ID of the AWS IAM Role to use for pulling messages */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("access_key") - private Optional<String> accessKey; + private String accessKey; /** * Comma separated list of Mesage Attribute names to return @@ -37,13 +34,6 @@ public class SourceAmazonSqs { @JsonProperty("attributes_to_return") private Optional<String> attributesToReturn; - /** - * If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("delete_messages") - private Optional<Boolean> deleteMessages; - /** * Max amount of messages to get in one batch (10 max) */ @@ -67,19 +57,26 @@ public class SourceAmazonSqs { /** * AWS Region of the SQS Queue */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("region") - private SourceAmazonSqsAWSRegion region; + private Optional<? extends SourceAmazonSqsAWSRegion> region; /** * The Secret Key of the AWS IAM Role to use for pulling messages */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("secret_key") - private Optional<String> secretKey; + private String secretKey; @JsonProperty("sourceType") private AmazonSqs sourceType; + /** + * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("target") + private Optional<? extends TheTargetedActionResourceForTheFetch> target; + /** * Modify the Visibility Timeout of the individual message from the Queue's default (seconds). */ @@ -89,47 +86,48 @@ public class SourceAmazonSqs { @JsonCreator public SourceAmazonSqs( - @JsonProperty("access_key") Optional<String> accessKey, + @JsonProperty("access_key") String accessKey, @JsonProperty("attributes_to_return") Optional<String> attributesToReturn, - @JsonProperty("delete_messages") Optional<Boolean> deleteMessages, @JsonProperty("max_batch_size") Optional<Long> maxBatchSize, @JsonProperty("max_wait_time") Optional<Long> maxWaitTime, @JsonProperty("queue_url") String queueUrl, - @JsonProperty("region") SourceAmazonSqsAWSRegion region, - @JsonProperty("secret_key") Optional<String> secretKey, + @JsonProperty("region") Optional<? extends SourceAmazonSqsAWSRegion> region, + @JsonProperty("secret_key") String secretKey, + @JsonProperty("target") Optional<? extends TheTargetedActionResourceForTheFetch> target, @JsonProperty("visibility_timeout") Optional<Long> visibilityTimeout) { Utils.checkNotNull(accessKey, "accessKey"); Utils.checkNotNull(attributesToReturn, "attributesToReturn"); - Utils.checkNotNull(deleteMessages, "deleteMessages"); Utils.checkNotNull(maxBatchSize, "maxBatchSize"); Utils.checkNotNull(maxWaitTime, "maxWaitTime"); Utils.checkNotNull(queueUrl, "queueUrl"); Utils.checkNotNull(region, "region"); Utils.checkNotNull(secretKey, "secretKey"); + Utils.checkNotNull(target, "target"); Utils.checkNotNull(visibilityTimeout, "visibilityTimeout"); this.accessKey = accessKey; this.attributesToReturn = attributesToReturn; - this.deleteMessages = deleteMessages; this.maxBatchSize = maxBatchSize; this.maxWaitTime = maxWaitTime; this.queueUrl = queueUrl; this.region = region; this.secretKey = secretKey; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.target = target; this.visibilityTimeout = visibilityTimeout; } public SourceAmazonSqs( + String accessKey, String queueUrl, - SourceAmazonSqsAWSRegion region) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), queueUrl, region, Optional.empty(), Optional.empty()); + String secretKey) { + this(accessKey, Optional.empty(), Optional.empty(), Optional.empty(), queueUrl, Optional.empty(), secretKey, Optional.empty(), Optional.empty()); } /** * The Access Key ID of the AWS IAM Role to use for pulling messages */ @JsonIgnore - public Optional<String> accessKey() { + public String accessKey() { return accessKey; } @@ -141,14 +139,6 @@ public Optional<String> attributesToReturn() { return attributesToReturn; } - /** - * If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail. - */ - @JsonIgnore - public Optional<Boolean> deleteMessages() { - return deleteMessages; - } - /** * Max amount of messages to get in one batch (10 max) */ @@ -176,16 +166,17 @@ public String queueUrl() { /** * AWS Region of the SQS Queue */ + @SuppressWarnings("unchecked") @JsonIgnore - public SourceAmazonSqsAWSRegion region() { - return region; + public Optional<SourceAmazonSqsAWSRegion> region() { + return (Optional<SourceAmazonSqsAWSRegion>) region; } /** * The Secret Key of the AWS IAM Role to use for pulling messages */ @JsonIgnore - public Optional<String> secretKey() { + public String secretKey() { return secretKey; } @@ -194,6 +185,15 @@ public AmazonSqs sourceType() { return sourceType; } + /** + * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<TheTargetedActionResourceForTheFetch> target() { + return (Optional<TheTargetedActionResourceForTheFetch>) target; + } + /** * Modify the Visibility Timeout of the individual message from the Queue's default (seconds). */ @@ -210,15 +210,6 @@ public final static Builder builder() { * The Access Key ID of the AWS IAM Role to use for pulling messages */ public SourceAmazonSqs withAccessKey(String accessKey) { - Utils.checkNotNull(accessKey, "accessKey"); - this.accessKey = Optional.ofNullable(accessKey); - return this; - } - - /** - * The Access Key ID of the AWS IAM Role to use for pulling messages - */ - public SourceAmazonSqs withAccessKey(Optional<String> accessKey) { Utils.checkNotNull(accessKey, "accessKey"); this.accessKey = accessKey; return this; @@ -242,24 +233,6 @@ public SourceAmazonSqs withAttributesToReturn(Optional<String> attributesToRetur return this; } - /** - * If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail. - */ - public SourceAmazonSqs withDeleteMessages(boolean deleteMessages) { - Utils.checkNotNull(deleteMessages, "deleteMessages"); - this.deleteMessages = Optional.ofNullable(deleteMessages); - return this; - } - - /** - * If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail. - */ - public SourceAmazonSqs withDeleteMessages(Optional<Boolean> deleteMessages) { - Utils.checkNotNull(deleteMessages, "deleteMessages"); - this.deleteMessages = deleteMessages; - return this; - } - /** * Max amount of messages to get in one batch (10 max) */ @@ -309,6 +282,15 @@ public SourceAmazonSqs withQueueUrl(String queueUrl) { * AWS Region of the SQS Queue */ public SourceAmazonSqs withRegion(SourceAmazonSqsAWSRegion region) { + Utils.checkNotNull(region, "region"); + this.region = Optional.ofNullable(region); + return this; + } + + /** + * AWS Region of the SQS Queue + */ + public SourceAmazonSqs withRegion(Optional<? extends SourceAmazonSqsAWSRegion> region) { Utils.checkNotNull(region, "region"); this.region = region; return this; @@ -319,16 +301,25 @@ public SourceAmazonSqs withRegion(SourceAmazonSqsAWSRegion region) { */ public SourceAmazonSqs withSecretKey(String secretKey) { Utils.checkNotNull(secretKey, "secretKey"); - this.secretKey = Optional.ofNullable(secretKey); + this.secretKey = secretKey; return this; } /** - * The Secret Key of the AWS IAM Role to use for pulling messages + * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html */ - public SourceAmazonSqs withSecretKey(Optional<String> secretKey) { - Utils.checkNotNull(secretKey, "secretKey"); - this.secretKey = secretKey; + public SourceAmazonSqs withTarget(TheTargetedActionResourceForTheFetch target) { + Utils.checkNotNull(target, "target"); + this.target = Optional.ofNullable(target); + return this; + } + + /** + * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + */ + public SourceAmazonSqs withTarget(Optional<? extends TheTargetedActionResourceForTheFetch> target) { + Utils.checkNotNull(target, "target"); + this.target = target; return this; } @@ -362,13 +353,13 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.accessKey, other.accessKey) && Objects.deepEquals(this.attributesToReturn, other.attributesToReturn) && - Objects.deepEquals(this.deleteMessages, other.deleteMessages) && Objects.deepEquals(this.maxBatchSize, other.maxBatchSize) && Objects.deepEquals(this.maxWaitTime, other.maxWaitTime) && Objects.deepEquals(this.queueUrl, other.queueUrl) && Objects.deepEquals(this.region, other.region) && Objects.deepEquals(this.secretKey, other.secretKey) && Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.target, other.target) && Objects.deepEquals(this.visibilityTimeout, other.visibilityTimeout); } @@ -377,13 +368,13 @@ public int hashCode() { return Objects.hash( accessKey, attributesToReturn, - deleteMessages, maxBatchSize, maxWaitTime, queueUrl, region, secretKey, sourceType, + target, visibilityTimeout); } @@ -392,35 +383,35 @@ public String toString() { return Utils.toString(SourceAmazonSqs.class, "accessKey", accessKey, "attributesToReturn", attributesToReturn, - "deleteMessages", deleteMessages, "maxBatchSize", maxBatchSize, "maxWaitTime", maxWaitTime, "queueUrl", queueUrl, "region", region, "secretKey", secretKey, "sourceType", sourceType, + "target", target, "visibilityTimeout", visibilityTimeout); } public final static class Builder { - private Optional<String> accessKey = Optional.empty(); - - private Optional<String> attributesToReturn = Optional.empty(); + private String accessKey; - private Optional<Boolean> deleteMessages; + private Optional<String> attributesToReturn; - private Optional<Long> maxBatchSize = Optional.empty(); + private Optional<Long> maxBatchSize; - private Optional<Long> maxWaitTime = Optional.empty(); + private Optional<Long> maxWaitTime; private String queueUrl; - private SourceAmazonSqsAWSRegion region; + private Optional<? extends SourceAmazonSqsAWSRegion> region; - private Optional<String> secretKey = Optional.empty(); + private String secretKey; - private Optional<Long> visibilityTimeout = Optional.empty(); + private Optional<? extends TheTargetedActionResourceForTheFetch> target; + + private Optional<Long> visibilityTimeout; private Builder() { // force use of static builder() method @@ -430,15 +421,6 @@ private Builder() { * The Access Key ID of the AWS IAM Role to use for pulling messages */ public Builder accessKey(String accessKey) { - Utils.checkNotNull(accessKey, "accessKey"); - this.accessKey = Optional.ofNullable(accessKey); - return this; - } - - /** - * The Access Key ID of the AWS IAM Role to use for pulling messages - */ - public Builder accessKey(Optional<String> accessKey) { Utils.checkNotNull(accessKey, "accessKey"); this.accessKey = accessKey; return this; @@ -462,24 +444,6 @@ public Builder attributesToReturn(Optional<String> attributesToReturn) { return this; } - /** - * If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail. - */ - public Builder deleteMessages(boolean deleteMessages) { - Utils.checkNotNull(deleteMessages, "deleteMessages"); - this.deleteMessages = Optional.ofNullable(deleteMessages); - return this; - } - - /** - * If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail. - */ - public Builder deleteMessages(Optional<Boolean> deleteMessages) { - Utils.checkNotNull(deleteMessages, "deleteMessages"); - this.deleteMessages = deleteMessages; - return this; - } - /** * Max amount of messages to get in one batch (10 max) */ @@ -529,6 +493,15 @@ public Builder queueUrl(String queueUrl) { * AWS Region of the SQS Queue */ public Builder region(SourceAmazonSqsAWSRegion region) { + Utils.checkNotNull(region, "region"); + this.region = Optional.ofNullable(region); + return this; + } + + /** + * AWS Region of the SQS Queue + */ + public Builder region(Optional<? extends SourceAmazonSqsAWSRegion> region) { Utils.checkNotNull(region, "region"); this.region = region; return this; @@ -539,16 +512,25 @@ public Builder region(SourceAmazonSqsAWSRegion region) { */ public Builder secretKey(String secretKey) { Utils.checkNotNull(secretKey, "secretKey"); - this.secretKey = Optional.ofNullable(secretKey); + this.secretKey = secretKey; return this; } /** - * The Secret Key of the AWS IAM Role to use for pulling messages + * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html */ - public Builder secretKey(Optional<String> secretKey) { - Utils.checkNotNull(secretKey, "secretKey"); - this.secretKey = secretKey; + public Builder target(TheTargetedActionResourceForTheFetch target) { + Utils.checkNotNull(target, "target"); + this.target = Optional.ofNullable(target); + return this; + } + + /** + * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + */ + public Builder target(Optional<? extends TheTargetedActionResourceForTheFetch> target) { + Utils.checkNotNull(target, "target"); + this.target = target; return this; } @@ -571,31 +553,76 @@ public Builder visibilityTimeout(Optional<Long> visibilityTimeout) { } public SourceAmazonSqs build() { - if (deleteMessages == null) { - deleteMessages = _SINGLETON_VALUE_DeleteMessages.value(); + if (attributesToReturn == null) { + attributesToReturn = _SINGLETON_VALUE_AttributesToReturn.value(); + } + if (maxBatchSize == null) { + maxBatchSize = _SINGLETON_VALUE_MaxBatchSize.value(); + } + if (maxWaitTime == null) { + maxWaitTime = _SINGLETON_VALUE_MaxWaitTime.value(); + } + if (region == null) { + region = _SINGLETON_VALUE_Region.value(); + } + if (target == null) { + target = _SINGLETON_VALUE_Target.value(); + } + if (visibilityTimeout == null) { + visibilityTimeout = _SINGLETON_VALUE_VisibilityTimeout.value(); } return new SourceAmazonSqs( accessKey, attributesToReturn, - deleteMessages, maxBatchSize, maxWaitTime, queueUrl, region, secretKey, + target, visibilityTimeout); } - private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_DeleteMessages = + private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_AttributesToReturn = + new LazySingletonValue<>( + "attributes_to_return", + "\"All\"", + new TypeReference<Optional<String>>() {}); + + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_MaxBatchSize = + new LazySingletonValue<>( + "max_batch_size", + "10", + new TypeReference<Optional<Long>>() {}); + + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_MaxWaitTime = new LazySingletonValue<>( - "delete_messages", - "false", - new TypeReference<Optional<Boolean>>() {}); + "max_wait_time", + "20", + new TypeReference<Optional<Long>>() {}); + + private static final LazySingletonValue<Optional<? extends SourceAmazonSqsAWSRegion>> _SINGLETON_VALUE_Region = + new LazySingletonValue<>( + "region", + "\"us-east-1\"", + new TypeReference<Optional<? extends SourceAmazonSqsAWSRegion>>() {}); private static final LazySingletonValue<AmazonSqs> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"amazon-sqs\"", new TypeReference<AmazonSqs>() {}); + + private static final LazySingletonValue<Optional<? extends TheTargetedActionResourceForTheFetch>> _SINGLETON_VALUE_Target = + new LazySingletonValue<>( + "target", + "\"ReceiveMessage\"", + new TypeReference<Optional<? extends TheTargetedActionResourceForTheFetch>>() {}); + + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_VisibilityTimeout = + new LazySingletonValue<>( + "visibility_timeout", + "20", + new TypeReference<Optional<Long>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java index 0c5977673..9ea720d04 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceAmazonSqsAWSRegion - AWS Region of the SQS Queue */ @@ -55,4 +56,13 @@ private SourceAmazonSqsAWSRegion(String value) { public String value() { return value; } + + public static Optional<SourceAmazonSqsAWSRegion> fromValue(String value) { + for (SourceAmazonSqsAWSRegion o: SourceAmazonSqsAWSRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmplitude.java b/src/main/java/com/airbyte/api/models/shared/SourceAmplitude.java index 2b7dbc26d..208bcd1d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmplitude.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmplitude.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,11 +21,11 @@ import java.util.Objects; import java.util.Optional; - public class SourceAmplitude { /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Considerations</a> the grouping by `Country` is optional, if you're facing issues fetching the stream, or checking the connection please set this to `False` instead. + * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("active_users_group_by_country") @@ -46,7 +45,8 @@ public class SourceAmplitude { private Optional<? extends DataRegion> dataRegion; /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too big time range in request can cause a timeout error. In this case, set shorter time interval in hours. + * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("request_time_range") @@ -98,7 +98,8 @@ public SourceAmplitude( } /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Considerations</a> the grouping by `Country` is optional, if you're facing issues fetching the stream, or checking the connection please set this to `False` instead. + * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * */ @JsonIgnore public Optional<Boolean> activeUsersGroupByCountry() { @@ -123,7 +124,8 @@ public Optional<DataRegion> dataRegion() { } /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too big time range in request can cause a timeout error. In this case, set shorter time interval in hours. + * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * */ @JsonIgnore public Optional<Long> requestTimeRange() { @@ -156,7 +158,8 @@ public final static Builder builder() { } /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Considerations</a> the grouping by `Country` is optional, if you're facing issues fetching the stream, or checking the connection please set this to `False` instead. + * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * */ public SourceAmplitude withActiveUsersGroupByCountry(boolean activeUsersGroupByCountry) { Utils.checkNotNull(activeUsersGroupByCountry, "activeUsersGroupByCountry"); @@ -165,7 +168,8 @@ public SourceAmplitude withActiveUsersGroupByCountry(boolean activeUsersGroupByC } /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Considerations</a> the grouping by `Country` is optional, if you're facing issues fetching the stream, or checking the connection please set this to `False` instead. + * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * */ public SourceAmplitude withActiveUsersGroupByCountry(Optional<Boolean> activeUsersGroupByCountry) { Utils.checkNotNull(activeUsersGroupByCountry, "activeUsersGroupByCountry"); @@ -201,7 +205,8 @@ public SourceAmplitude withDataRegion(Optional<? extends DataRegion> dataRegion) } /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too big time range in request can cause a timeout error. In this case, set shorter time interval in hours. + * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * */ public SourceAmplitude withRequestTimeRange(long requestTimeRange) { Utils.checkNotNull(requestTimeRange, "requestTimeRange"); @@ -210,7 +215,8 @@ public SourceAmplitude withRequestTimeRange(long requestTimeRange) { } /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too big time range in request can cause a timeout error. In this case, set shorter time interval in hours. + * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * */ public SourceAmplitude withRequestTimeRange(Optional<Long> requestTimeRange) { Utils.checkNotNull(requestTimeRange, "requestTimeRange"); @@ -298,7 +304,8 @@ private Builder() { } /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Considerations</a> the grouping by `Country` is optional, if you're facing issues fetching the stream, or checking the connection please set this to `False` instead. + * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * */ public Builder activeUsersGroupByCountry(boolean activeUsersGroupByCountry) { Utils.checkNotNull(activeUsersGroupByCountry, "activeUsersGroupByCountry"); @@ -307,7 +314,8 @@ public Builder activeUsersGroupByCountry(boolean activeUsersGroupByCountry) { } /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Considerations</a> the grouping by `Country` is optional, if you're facing issues fetching the stream, or checking the connection please set this to `False` instead. + * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * */ public Builder activeUsersGroupByCountry(Optional<Boolean> activeUsersGroupByCountry) { Utils.checkNotNull(activeUsersGroupByCountry, "activeUsersGroupByCountry"); @@ -343,7 +351,8 @@ public Builder dataRegion(Optional<? extends DataRegion> dataRegion) { } /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too big time range in request can cause a timeout error. In this case, set shorter time interval in hours. + * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * */ public Builder requestTimeRange(long requestTimeRange) { Utils.checkNotNull(requestTimeRange, "requestTimeRange"); @@ -352,7 +361,8 @@ public Builder requestTimeRange(long requestTimeRange) { } /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too big time range in request can cause a timeout error. In this case, set shorter time interval in hours. + * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * */ public Builder requestTimeRange(Optional<Long> requestTimeRange) { Utils.checkNotNull(requestTimeRange, "requestTimeRange"); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceApifyDataset.java b/src/main/java/com/airbyte/api/models/shared/SourceApifyDataset.java index a49190aab..2f7dabdda 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceApifyDataset.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceApifyDataset.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceApifyDataset { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAppcues.java b/src/main/java/com/airbyte/api/models/shared/SourceAppcues.java index 9e4b6295a..8cf2bc03e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAppcues.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAppcues.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAppcues { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAppfigures.java b/src/main/java/com/airbyte/api/models/shared/SourceAppfigures.java index 8d875829a..8a21b14b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAppfigures.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAppfigures.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAppfigures { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAppfollow.java b/src/main/java/com/airbyte/api/models/shared/SourceAppfollow.java index aafbd484e..07a829bad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAppfollow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAppfollow.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAppfollow { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAppleSearchAds.java b/src/main/java/com/airbyte/api/models/shared/SourceAppleSearchAds.java index c35bf81a1..c6976c9a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAppleSearchAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAppleSearchAds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,9 +18,15 @@ import java.util.Objects; import java.util.Optional; - public class SourceAppleSearchAds { + /** + * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("backoff_factor") + private Optional<Long> backoffFactor; + /** * A user identifier for the token request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> */ @@ -41,6 +46,13 @@ public class SourceAppleSearchAds { @JsonProperty("end_date") private Optional<String> endDate; + /** + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lookback_window") + private Optional<Long> lookbackWindow; + /** * The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. */ @@ -58,19 +70,25 @@ public class SourceAppleSearchAds { @JsonCreator public SourceAppleSearchAds( + @JsonProperty("backoff_factor") Optional<Long> backoffFactor, @JsonProperty("client_id") String clientId, @JsonProperty("client_secret") String clientSecret, @JsonProperty("end_date") Optional<String> endDate, + @JsonProperty("lookback_window") Optional<Long> lookbackWindow, @JsonProperty("org_id") long orgId, @JsonProperty("start_date") String startDate) { + Utils.checkNotNull(backoffFactor, "backoffFactor"); Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(lookbackWindow, "lookbackWindow"); Utils.checkNotNull(orgId, "orgId"); Utils.checkNotNull(startDate, "startDate"); + this.backoffFactor = backoffFactor; this.clientId = clientId; this.clientSecret = clientSecret; this.endDate = endDate; + this.lookbackWindow = lookbackWindow; this.orgId = orgId; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; @@ -81,7 +99,15 @@ public SourceAppleSearchAds( String clientSecret, long orgId, String startDate) { - this(clientId, clientSecret, Optional.empty(), orgId, startDate); + this(Optional.empty(), clientId, clientSecret, Optional.empty(), Optional.empty(), orgId, startDate); + } + + /** + * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + */ + @JsonIgnore + public Optional<Long> backoffFactor() { + return backoffFactor; } /** @@ -108,6 +134,14 @@ public Optional<String> endDate() { return endDate; } + /** + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + */ + @JsonIgnore + public Optional<Long> lookbackWindow() { + return lookbackWindow; + } + /** * The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. */ @@ -133,6 +167,24 @@ public final static Builder builder() { return new Builder(); } + /** + * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + */ + public SourceAppleSearchAds withBackoffFactor(long backoffFactor) { + Utils.checkNotNull(backoffFactor, "backoffFactor"); + this.backoffFactor = Optional.ofNullable(backoffFactor); + return this; + } + + /** + * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + */ + public SourceAppleSearchAds withBackoffFactor(Optional<Long> backoffFactor) { + Utils.checkNotNull(backoffFactor, "backoffFactor"); + this.backoffFactor = backoffFactor; + return this; + } + /** * A user identifier for the token request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> */ @@ -169,6 +221,24 @@ public SourceAppleSearchAds withEndDate(Optional<String> endDate) { return this; } + /** + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + */ + public SourceAppleSearchAds withLookbackWindow(long lookbackWindow) { + Utils.checkNotNull(lookbackWindow, "lookbackWindow"); + this.lookbackWindow = Optional.ofNullable(lookbackWindow); + return this; + } + + /** + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + */ + public SourceAppleSearchAds withLookbackWindow(Optional<Long> lookbackWindow) { + Utils.checkNotNull(lookbackWindow, "lookbackWindow"); + this.lookbackWindow = lookbackWindow; + return this; + } + /** * The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. */ @@ -197,9 +267,11 @@ public boolean equals(java.lang.Object o) { } SourceAppleSearchAds other = (SourceAppleSearchAds) o; return + Objects.deepEquals(this.backoffFactor, other.backoffFactor) && Objects.deepEquals(this.clientId, other.clientId) && Objects.deepEquals(this.clientSecret, other.clientSecret) && Objects.deepEquals(this.endDate, other.endDate) && + Objects.deepEquals(this.lookbackWindow, other.lookbackWindow) && Objects.deepEquals(this.orgId, other.orgId) && Objects.deepEquals(this.sourceType, other.sourceType) && Objects.deepEquals(this.startDate, other.startDate); @@ -208,9 +280,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + backoffFactor, clientId, clientSecret, endDate, + lookbackWindow, orgId, sourceType, startDate); @@ -219,9 +293,11 @@ public int hashCode() { @Override public String toString() { return Utils.toString(SourceAppleSearchAds.class, + "backoffFactor", backoffFactor, "clientId", clientId, "clientSecret", clientSecret, "endDate", endDate, + "lookbackWindow", lookbackWindow, "orgId", orgId, "sourceType", sourceType, "startDate", startDate); @@ -229,12 +305,16 @@ public String toString() { public final static class Builder { + private Optional<Long> backoffFactor; + private String clientId; private String clientSecret; private Optional<String> endDate = Optional.empty(); + private Optional<Long> lookbackWindow; + private Long orgId; private String startDate; @@ -243,6 +323,24 @@ private Builder() { // force use of static builder() method } + /** + * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + */ + public Builder backoffFactor(long backoffFactor) { + Utils.checkNotNull(backoffFactor, "backoffFactor"); + this.backoffFactor = Optional.ofNullable(backoffFactor); + return this; + } + + /** + * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + */ + public Builder backoffFactor(Optional<Long> backoffFactor) { + Utils.checkNotNull(backoffFactor, "backoffFactor"); + this.backoffFactor = backoffFactor; + return this; + } + /** * A user identifier for the token request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> */ @@ -279,6 +377,24 @@ public Builder endDate(Optional<String> endDate) { return this; } + /** + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + */ + public Builder lookbackWindow(long lookbackWindow) { + Utils.checkNotNull(lookbackWindow, "lookbackWindow"); + this.lookbackWindow = Optional.ofNullable(lookbackWindow); + return this; + } + + /** + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + */ + public Builder lookbackWindow(Optional<Long> lookbackWindow) { + Utils.checkNotNull(lookbackWindow, "lookbackWindow"); + this.lookbackWindow = lookbackWindow; + return this; + } + /** * The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. */ @@ -298,14 +414,33 @@ public Builder startDate(String startDate) { } public SourceAppleSearchAds build() { - return new SourceAppleSearchAds( + if (backoffFactor == null) { + backoffFactor = _SINGLETON_VALUE_BackoffFactor.value(); + } + if (lookbackWindow == null) { + lookbackWindow = _SINGLETON_VALUE_LookbackWindow.value(); + } return new SourceAppleSearchAds( + backoffFactor, clientId, clientSecret, endDate, + lookbackWindow, orgId, startDate); } + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_BackoffFactor = + new LazySingletonValue<>( + "backoff_factor", + "5", + new TypeReference<Optional<Long>>() {}); + + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_LookbackWindow = + new LazySingletonValue<>( + "lookback_window", + "30", + new TypeReference<Optional<Long>>() {}); + private static final LazySingletonValue<AppleSearchAds> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceApptivo.java b/src/main/java/com/airbyte/api/models/shared/SourceApptivo.java index fb29186ba..6e71df9d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceApptivo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceApptivo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceApptivo { @JsonProperty("access_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAsana.java b/src/main/java/com/airbyte/api/models/shared/SourceAsana.java index a5102517d..93ddf5a1a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsana.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsana.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; import java.lang.Object; import java.lang.Override; import java.lang.String; @@ -21,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAsana { /** @@ -31,6 +30,13 @@ public class SourceAsana { @JsonProperty("credentials") private Optional<? extends AuthenticationMechanism> credentials; + /** + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("num_workers") + private Optional<Long> numWorkers; + /** * Globally unique identifiers for the organization exports */ @@ -45,16 +51,19 @@ public class SourceAsana { @JsonCreator public SourceAsana( @JsonProperty("credentials") Optional<? extends AuthenticationMechanism> credentials, + @JsonProperty("num_workers") Optional<Long> numWorkers, @JsonProperty("organization_export_ids") Optional<? extends List<Object>> organizationExportIds) { Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(numWorkers, "numWorkers"); Utils.checkNotNull(organizationExportIds, "organizationExportIds"); this.credentials = credentials; + this.numWorkers = numWorkers; this.organizationExportIds = organizationExportIds; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); } public SourceAsana() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -66,6 +75,14 @@ public Optional<AuthenticationMechanism> credentials() { return (Optional<AuthenticationMechanism>) credentials; } + /** + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + */ + @JsonIgnore + public Optional<Long> numWorkers() { + return numWorkers; + } + /** * Globally unique identifiers for the organization exports */ @@ -103,6 +120,24 @@ public SourceAsana withCredentials(Optional<? extends AuthenticationMechanism> c return this; } + /** + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + */ + public SourceAsana withNumWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + /** + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + */ + public SourceAsana withNumWorkers(Optional<Long> numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + /** * Globally unique identifiers for the organization exports */ @@ -132,6 +167,7 @@ public boolean equals(java.lang.Object o) { SourceAsana other = (SourceAsana) o; return Objects.deepEquals(this.credentials, other.credentials) && + Objects.deepEquals(this.numWorkers, other.numWorkers) && Objects.deepEquals(this.organizationExportIds, other.organizationExportIds) && Objects.deepEquals(this.sourceType, other.sourceType); } @@ -140,6 +176,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( credentials, + numWorkers, organizationExportIds, sourceType); } @@ -148,6 +185,7 @@ public int hashCode() { public String toString() { return Utils.toString(SourceAsana.class, "credentials", credentials, + "numWorkers", numWorkers, "organizationExportIds", organizationExportIds, "sourceType", sourceType); } @@ -156,6 +194,8 @@ public final static class Builder { private Optional<? extends AuthenticationMechanism> credentials = Optional.empty(); + private Optional<Long> numWorkers; + private Optional<? extends List<Object>> organizationExportIds = Optional.empty(); private Builder() { @@ -180,6 +220,24 @@ public Builder credentials(Optional<? extends AuthenticationMechanism> credentia return this; } + /** + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + */ + public Builder numWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + /** + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + */ + public Builder numWorkers(Optional<Long> numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + /** * Globally unique identifiers for the organization exports */ @@ -199,11 +257,20 @@ public Builder organizationExportIds(Optional<? extends List<Object>> organizati } public SourceAsana build() { - return new SourceAsana( + if (numWorkers == null) { + numWorkers = _SINGLETON_VALUE_NumWorkers.value(); + } return new SourceAsana( credentials, + numWorkers, organizationExportIds); } + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_NumWorkers = + new LazySingletonValue<>( + "num_workers", + "10", + new TypeReference<Optional<Long>>() {}); + private static final LazySingletonValue<Optional<? extends SourceAsanaAsana>> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java b/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java index 3277c330d..74ab7604e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAsanaAsana { ASANA("asana"); @@ -20,4 +21,13 @@ private SourceAsanaAsana(String value) { public String value() { return value; } + + public static Optional<SourceAsanaAsana> fromValue(String value) { + for (SourceAsanaAsana o: SourceAsanaAsana.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java index 006360bdd..5357c55ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceAsanaCredentialsTitle - OAuth Credentials */ @@ -23,4 +24,13 @@ private SourceAsanaCredentialsTitle(String value) { public String value() { return value; } + + public static Optional<SourceAsanaCredentialsTitle> fromValue(String value) { + for (SourceAsanaCredentialsTitle o: SourceAsanaCredentialsTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java index 5858cf341..68d302bea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceAsanaSchemasCredentialsTitle - PAT Credentials */ @@ -23,4 +24,13 @@ private SourceAsanaSchemasCredentialsTitle(String value) { public String value() { return value; } + + public static Optional<SourceAsanaSchemasCredentialsTitle> fromValue(String value) { + for (SourceAsanaSchemasCredentialsTitle o: SourceAsanaSchemasCredentialsTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAshby.java b/src/main/java/com/airbyte/api/models/shared/SourceAshby.java index a0987fbb6..abc406f21 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAshby.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAshby.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceAshby { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAuth0.java b/src/main/java/com/airbyte/api/models/shared/SourceAuth0.java index 5e270c716..02542e4d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAuth0 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAuth0AuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAuth0AuthenticationMethod.java index 6b14b35de..a195b24d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0AuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0AuthenticationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceAuth0AuthenticationMethod._Deserializer.class) public class SourceAuth0AuthenticationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java index 0977eb4c1..706cbf67a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAuth0SchemasAuthenticationMethod { - OAUTH2_CONFIDENTIAL_APPLICATION("oauth2_confidential_application"); + OAUTH2_ACCESS_TOKEN("oauth2_access_token"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceAuth0SchemasAuthenticationMethod(String value) { public String value() { return value; } + + public static Optional<SourceAuth0SchemasAuthenticationMethod> fromValue(String value) { + for (SourceAuth0SchemasAuthenticationMethod o: SourceAuth0SchemasAuthenticationMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java index 390d06ffe..fb9842cec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAuth0SchemasCredentialsAuthenticationMethod { - OAUTH2_ACCESS_TOKEN("oauth2_access_token"); + OAUTH2_CONFIDENTIAL_APPLICATION("oauth2_confidential_application"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceAuth0SchemasCredentialsAuthenticationMethod(String value) { public String value() { return value; } + + public static Optional<SourceAuth0SchemasCredentialsAuthenticationMethod> fromValue(String value) { + for (SourceAuth0SchemasCredentialsAuthenticationMethod o: SourceAuth0SchemasCredentialsAuthenticationMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java b/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java index 4c508867b..3a94c4a3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAwsCloudtrail { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorage.java index f3bb27151..8c366e7a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * SourceAzureBlobStorage - NOTE: When this Spec is changed, legacy_config_transformer.py must also be modified to uptake the changes * because it is responsible for converting legacy Azure Blob Storage v0 configs into v1 configs using the File-Based CDK. diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java index 6e7c520bb..a1dd1f41b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageAuthType { OAUTH2("oauth2"); @@ -20,4 +21,13 @@ private SourceAzureBlobStorageAuthType(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageAuthType> fromValue(String value) { + for (SourceAzureBlobStorageAuthType o: SourceAzureBlobStorageAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthentication.java index fe0bd31a9..f7da8ba3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceAzureBlobStorageAuthentication - Credentials for connecting to the Azure Blob Storage */ @@ -37,6 +35,11 @@ public static SourceAzureBlobStorageAuthentication of(AuthenticateViaOauth2 valu return new SourceAzureBlobStorageAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<AuthenticateViaOauth2>(){})); } + public static SourceAzureBlobStorageAuthentication of(AuthenticateViaClientCredentials value) { + Utils.checkNotNull(value, "value"); + return new SourceAzureBlobStorageAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<AuthenticateViaClientCredentials>(){})); + } + public static SourceAzureBlobStorageAuthentication of(AuthenticateViaStorageAccountKey value) { Utils.checkNotNull(value, "value"); return new SourceAzureBlobStorageAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<AuthenticateViaStorageAccountKey>(){})); @@ -46,6 +49,7 @@ public static SourceAzureBlobStorageAuthentication of(AuthenticateViaStorageAcco * Returns an instance of one of these types: * <ul> * <li>{@code com.airbyte.api.models.shared.AuthenticateViaOauth2}</li> + * <li>{@code com.airbyte.api.models.shared.AuthenticateViaClientCredentials}</li> * <li>{@code com.airbyte.api.models.shared.AuthenticateViaStorageAccountKey}</li> * </ul> * @@ -87,6 +91,7 @@ public static final class _Deserializer extends OneOfDeserializer<SourceAzureBlo public _Deserializer() { super(SourceAzureBlobStorageAuthentication.class, false, TypeReferenceWithShape.of(new TypeReference<AuthenticateViaOauth2>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<AuthenticateViaClientCredentials>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<AuthenticateViaStorageAccountKey>() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java index 3f7111a69..e2cb30bc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageAzureBlobStorage { AZURE_BLOB_STORAGE("azure-blob-storage"); @@ -20,4 +21,13 @@ private SourceAzureBlobStorageAzureBlobStorage(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageAzureBlobStorage> fromValue(String value) { + for (SourceAzureBlobStorageAzureBlobStorage o: SourceAzureBlobStorageAzureBlobStorage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java index 1954f1af6..65d5a84ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageFiletype { CSV("csv"); @@ -20,4 +21,13 @@ private SourceAzureBlobStorageFiletype(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageFiletype> fromValue(String value) { + for (SourceAzureBlobStorageFiletype o: SourceAzureBlobStorageFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java index 83b6ab0b2..041666e38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageHeaderDefinitionType { AUTOGENERATED("Autogenerated"); @@ -20,4 +21,13 @@ private SourceAzureBlobStorageHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageHeaderDefinitionType> fromValue(String value) { + for (SourceAzureBlobStorageHeaderDefinitionType o: SourceAzureBlobStorageHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java index fb7f7be10..42209c3ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageMode { LOCAL("local"); @@ -20,4 +21,13 @@ private SourceAzureBlobStorageMode(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageMode> fromValue(String value) { + for (SourceAzureBlobStorageMode o: SourceAzureBlobStorageMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java index 6e39ffb77..1c578e2fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageSchemasAuthType { - STORAGE_ACCOUNT_KEY("storage_account_key"); + CLIENT_CREDENTIALS("client_credentials"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceAzureBlobStorageSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageSchemasAuthType> fromValue(String value) { + for (SourceAzureBlobStorageSchemasAuthType o: SourceAzureBlobStorageSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.java new file mode 100644 index 000000000..d667adc92 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceAzureBlobStorageSchemasCredentialsAuthType { + STORAGE_ACCOUNT_KEY("storage_account_key"); + + @JsonValue + private final String value; + + private SourceAzureBlobStorageSchemasCredentialsAuthType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceAzureBlobStorageSchemasCredentialsAuthType> fromValue(String value) { + for (SourceAzureBlobStorageSchemasCredentialsAuthType o: SourceAzureBlobStorageSchemasCredentialsAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java index 0d587ee7d..7bda5efb9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageSchemasFiletype { JSONL("jsonl"); @@ -20,4 +21,13 @@ private SourceAzureBlobStorageSchemasFiletype(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageSchemasFiletype> fromValue(String value) { + for (SourceAzureBlobStorageSchemasFiletype o: SourceAzureBlobStorageSchemasFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java index 174d8b910..81410f4c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageSchemasHeaderDefinitionType { USER_PROVIDED("User Provided"); @@ -20,4 +21,13 @@ private SourceAzureBlobStorageSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageSchemasHeaderDefinitionType> fromValue(String value) { + for (SourceAzureBlobStorageSchemasHeaderDefinitionType o: SourceAzureBlobStorageSchemasHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java index 6dc74af90..92513fc50 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageSchemasStreamsFiletype { PARQUET("parquet"); @@ -20,4 +21,13 @@ private SourceAzureBlobStorageSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageSchemasStreamsFiletype> fromValue(String value) { + for (SourceAzureBlobStorageSchemasStreamsFiletype o: SourceAzureBlobStorageSchemasStreamsFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java index f1900afce..8b536b1f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceAzureBlobStorageSchemasStreamsFormatFiletype { UNSTRUCTURED("unstructured"); @@ -20,4 +21,13 @@ private SourceAzureBlobStorageSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceAzureBlobStorageSchemasStreamsFormatFiletype> fromValue(String value) { + for (SourceAzureBlobStorageSchemasStreamsFormatFiletype o: SourceAzureBlobStorageSchemasStreamsFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java index 5087d0107..43854e611 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceAzureTable { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBabelforce.java b/src/main/java/com/airbyte/api/models/shared/SourceBabelforce.java new file mode 100644 index 000000000..aba6f062f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceBabelforce.java @@ -0,0 +1,360 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +public class SourceBabelforce { + + /** + * The Babelforce access key ID + */ + @JsonProperty("access_key_id") + private String accessKeyId; + + /** + * The Babelforce access token + */ + @JsonProperty("access_token") + private String accessToken; + + /** + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("date_created_from") + private Optional<Long> dateCreatedFrom; + + /** + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("date_created_to") + private Optional<Long> dateCreatedTo; + + /** + * Babelforce region + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("region") + private Optional<? extends SourceBabelforceRegion> region; + + @JsonProperty("sourceType") + private Babelforce sourceType; + + @JsonCreator + public SourceBabelforce( + @JsonProperty("access_key_id") String accessKeyId, + @JsonProperty("access_token") String accessToken, + @JsonProperty("date_created_from") Optional<Long> dateCreatedFrom, + @JsonProperty("date_created_to") Optional<Long> dateCreatedTo, + @JsonProperty("region") Optional<? extends SourceBabelforceRegion> region) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(dateCreatedFrom, "dateCreatedFrom"); + Utils.checkNotNull(dateCreatedTo, "dateCreatedTo"); + Utils.checkNotNull(region, "region"); + this.accessKeyId = accessKeyId; + this.accessToken = accessToken; + this.dateCreatedFrom = dateCreatedFrom; + this.dateCreatedTo = dateCreatedTo; + this.region = region; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + public SourceBabelforce( + String accessKeyId, + String accessToken) { + this(accessKeyId, accessToken, Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * The Babelforce access key ID + */ + @JsonIgnore + public String accessKeyId() { + return accessKeyId; + } + + /** + * The Babelforce access token + */ + @JsonIgnore + public String accessToken() { + return accessToken; + } + + /** + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + @JsonIgnore + public Optional<Long> dateCreatedFrom() { + return dateCreatedFrom; + } + + /** + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + @JsonIgnore + public Optional<Long> dateCreatedTo() { + return dateCreatedTo; + } + + /** + * Babelforce region + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<SourceBabelforceRegion> region() { + return (Optional<SourceBabelforceRegion>) region; + } + + @JsonIgnore + public Babelforce sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The Babelforce access key ID + */ + public SourceBabelforce withAccessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + /** + * The Babelforce access token + */ + public SourceBabelforce withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + public SourceBabelforce withDateCreatedFrom(long dateCreatedFrom) { + Utils.checkNotNull(dateCreatedFrom, "dateCreatedFrom"); + this.dateCreatedFrom = Optional.ofNullable(dateCreatedFrom); + return this; + } + + /** + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + public SourceBabelforce withDateCreatedFrom(Optional<Long> dateCreatedFrom) { + Utils.checkNotNull(dateCreatedFrom, "dateCreatedFrom"); + this.dateCreatedFrom = dateCreatedFrom; + return this; + } + + /** + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + public SourceBabelforce withDateCreatedTo(long dateCreatedTo) { + Utils.checkNotNull(dateCreatedTo, "dateCreatedTo"); + this.dateCreatedTo = Optional.ofNullable(dateCreatedTo); + return this; + } + + /** + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + public SourceBabelforce withDateCreatedTo(Optional<Long> dateCreatedTo) { + Utils.checkNotNull(dateCreatedTo, "dateCreatedTo"); + this.dateCreatedTo = dateCreatedTo; + return this; + } + + /** + * Babelforce region + */ + public SourceBabelforce withRegion(SourceBabelforceRegion region) { + Utils.checkNotNull(region, "region"); + this.region = Optional.ofNullable(region); + return this; + } + + /** + * Babelforce region + */ + public SourceBabelforce withRegion(Optional<? extends SourceBabelforceRegion> region) { + Utils.checkNotNull(region, "region"); + this.region = region; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceBabelforce other = (SourceBabelforce) o; + return + Objects.deepEquals(this.accessKeyId, other.accessKeyId) && + Objects.deepEquals(this.accessToken, other.accessToken) && + Objects.deepEquals(this.dateCreatedFrom, other.dateCreatedFrom) && + Objects.deepEquals(this.dateCreatedTo, other.dateCreatedTo) && + Objects.deepEquals(this.region, other.region) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + accessKeyId, + accessToken, + dateCreatedFrom, + dateCreatedTo, + region, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceBabelforce.class, + "accessKeyId", accessKeyId, + "accessToken", accessToken, + "dateCreatedFrom", dateCreatedFrom, + "dateCreatedTo", dateCreatedTo, + "region", region, + "sourceType", sourceType); + } + + public final static class Builder { + + private String accessKeyId; + + private String accessToken; + + private Optional<Long> dateCreatedFrom = Optional.empty(); + + private Optional<Long> dateCreatedTo = Optional.empty(); + + private Optional<? extends SourceBabelforceRegion> region; + + private Builder() { + // force use of static builder() method + } + + /** + * The Babelforce access key ID + */ + public Builder accessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + /** + * The Babelforce access token + */ + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + public Builder dateCreatedFrom(long dateCreatedFrom) { + Utils.checkNotNull(dateCreatedFrom, "dateCreatedFrom"); + this.dateCreatedFrom = Optional.ofNullable(dateCreatedFrom); + return this; + } + + /** + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + public Builder dateCreatedFrom(Optional<Long> dateCreatedFrom) { + Utils.checkNotNull(dateCreatedFrom, "dateCreatedFrom"); + this.dateCreatedFrom = dateCreatedFrom; + return this; + } + + /** + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + public Builder dateCreatedTo(long dateCreatedTo) { + Utils.checkNotNull(dateCreatedTo, "dateCreatedTo"); + this.dateCreatedTo = Optional.ofNullable(dateCreatedTo); + return this; + } + + /** + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + */ + public Builder dateCreatedTo(Optional<Long> dateCreatedTo) { + Utils.checkNotNull(dateCreatedTo, "dateCreatedTo"); + this.dateCreatedTo = dateCreatedTo; + return this; + } + + /** + * Babelforce region + */ + public Builder region(SourceBabelforceRegion region) { + Utils.checkNotNull(region, "region"); + this.region = Optional.ofNullable(region); + return this; + } + + /** + * Babelforce region + */ + public Builder region(Optional<? extends SourceBabelforceRegion> region) { + Utils.checkNotNull(region, "region"); + this.region = region; + return this; + } + + public SourceBabelforce build() { + if (region == null) { + region = _SINGLETON_VALUE_Region.value(); + } return new SourceBabelforce( + accessKeyId, + accessToken, + dateCreatedFrom, + dateCreatedTo, + region); + } + + private static final LazySingletonValue<Optional<? extends SourceBabelforceRegion>> _SINGLETON_VALUE_Region = + new LazySingletonValue<>( + "region", + "\"services\"", + new TypeReference<Optional<? extends SourceBabelforceRegion>>() {}); + + private static final LazySingletonValue<Babelforce> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"babelforce\"", + new TypeReference<Babelforce>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBabelforceRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceBabelforceRegion.java new file mode 100644 index 000000000..50e4b5ce4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceBabelforceRegion.java @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * SourceBabelforceRegion - Babelforce region + */ +public enum SourceBabelforceRegion { + SERVICES("services"), + US_EAST("us-east"), + AP_SOUTHEAST("ap-southeast"); + + @JsonValue + private final String value; + + private SourceBabelforceRegion(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceBabelforceRegion> fromValue(String value) { + for (SourceBabelforceRegion o: SourceBabelforceRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java b/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java index 00afa3369..e08d7b68c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceBambooHr { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java b/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java index 19dac6ae3..642b9c6b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,7 +16,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceBasecamp { @JsonProperty("account_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java b/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java index 288990b7a..d5c88c866 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceBeamer { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBigmailer.java b/src/main/java/com/airbyte/api/models/shared/SourceBigmailer.java index 20ed3eb95..ce0241cf3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBigmailer.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBigmailer.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceBigmailer { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBigquery.java b/src/main/java/com/airbyte/api/models/shared/SourceBigquery.java index a56e082ee..415856ef7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBigquery.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceBigquery { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java b/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java index a6d43190a..6427ab874 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceBigqueryBigquery { BIGQUERY("bigquery"); @@ -20,4 +21,13 @@ private SourceBigqueryBigquery(String value) { public String value() { return value; } + + public static Optional<SourceBigqueryBigquery> fromValue(String value) { + for (SourceBigqueryBigquery o: SourceBigqueryBigquery.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBingAds.java b/src/main/java/com/airbyte/api/models/shared/SourceBingAds.java index ea4c5706f..5fc09593d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBingAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBingAds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceBingAds { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java b/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java index ae74be7eb..bf2cd0f9f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceBingAdsBingAds { BING_ADS("bing-ads"); @@ -20,4 +21,13 @@ private SourceBingAdsBingAds(String value) { public String value() { return value; } + + public static Optional<SourceBingAdsBingAds> fromValue(String value) { + for (SourceBingAdsBingAds o: SourceBingAdsBingAds.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBitly.java b/src/main/java/com/airbyte/api/models/shared/SourceBitly.java index 3a0c8fa82..e91b64b7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBitly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBitly.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceBitly { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBlogger.java b/src/main/java/com/airbyte/api/models/shared/SourceBlogger.java index 3647e7f0a..cae8287a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBlogger.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBlogger.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceBlogger { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBox.java b/src/main/java/com/airbyte/api/models/shared/SourceBox.java index 0a57a4cdb..b5ad79d60 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBox.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBox.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceBox { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBraintree.java b/src/main/java/com/airbyte/api/models/shared/SourceBraintree.java index 468567818..4769ff86e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBraintree.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBraintree.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceBraintree { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java index e37ed23cd..8fe729063 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceBraintreeEnvironment - Environment specifies where the data will come from. */ @@ -26,4 +27,13 @@ private SourceBraintreeEnvironment(String value) { public String value() { return value; } + + public static Optional<SourceBraintreeEnvironment> fromValue(String value) { + for (SourceBraintreeEnvironment o: SourceBraintreeEnvironment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBraze.java b/src/main/java/com/airbyte/api/models/shared/SourceBraze.java index 44cf7cb71..6c3e7dce8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBraze.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBraze.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.LocalDate; import java.util.Objects; - public class SourceBraze { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBreezometer.java b/src/main/java/com/airbyte/api/models/shared/SourceBreezometer.java new file mode 100644 index 000000000..1e58bc3cb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceBreezometer.java @@ -0,0 +1,452 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public class SourceBreezometer { + + /** + * Your API Access Key. See <a href="https://docs.breezometer.com/api-documentation/introduction/#authentication/">here</a>. + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * Number of days to forecast. Minimum 1, maximum 3. Valid for Polen and Weather Forecast streams. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("days_to_forecast") + private Optional<Long> daysToForecast; + + /** + * Number of hours retireve from Air Quality History stream. Minimum 1, maximum 720. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("historic_hours") + private Optional<Long> historicHours; + + /** + * Number of hours to forecast. Minimum 1, maximum 96. Valid for Air Quality Forecast stream. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hours_to_forecast") + private Optional<Long> hoursToForecast; + + /** + * Latitude of the monitored location. + */ + @JsonProperty("latitude") + private String latitude; + + /** + * Longitude of the monitored location. + */ + @JsonProperty("longitude") + private String longitude; + + /** + * Desired radius from the location provided. Minimum 5, maximum 100. Valid for Wildfires streams. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("radius") + private Optional<Long> radius; + + @JsonProperty("sourceType") + private Breezometer sourceType; + + @JsonCreator + public SourceBreezometer( + @JsonProperty("api_key") String apiKey, + @JsonProperty("days_to_forecast") Optional<Long> daysToForecast, + @JsonProperty("historic_hours") Optional<Long> historicHours, + @JsonProperty("hours_to_forecast") Optional<Long> hoursToForecast, + @JsonProperty("latitude") String latitude, + @JsonProperty("longitude") String longitude, + @JsonProperty("radius") Optional<Long> radius) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(daysToForecast, "daysToForecast"); + Utils.checkNotNull(historicHours, "historicHours"); + Utils.checkNotNull(hoursToForecast, "hoursToForecast"); + Utils.checkNotNull(latitude, "latitude"); + Utils.checkNotNull(longitude, "longitude"); + Utils.checkNotNull(radius, "radius"); + this.apiKey = apiKey; + this.daysToForecast = daysToForecast; + this.historicHours = historicHours; + this.hoursToForecast = hoursToForecast; + this.latitude = latitude; + this.longitude = longitude; + this.radius = radius; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + public SourceBreezometer( + String apiKey, + String latitude, + String longitude) { + this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), latitude, longitude, Optional.empty()); + } + + /** + * Your API Access Key. See <a href="https://docs.breezometer.com/api-documentation/introduction/#authentication/">here</a>. + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Number of days to forecast. Minimum 1, maximum 3. Valid for Polen and Weather Forecast streams. + */ + @JsonIgnore + public Optional<Long> daysToForecast() { + return daysToForecast; + } + + /** + * Number of hours retireve from Air Quality History stream. Minimum 1, maximum 720. + */ + @JsonIgnore + public Optional<Long> historicHours() { + return historicHours; + } + + /** + * Number of hours to forecast. Minimum 1, maximum 96. Valid for Air Quality Forecast stream. + */ + @JsonIgnore + public Optional<Long> hoursToForecast() { + return hoursToForecast; + } + + /** + * Latitude of the monitored location. + */ + @JsonIgnore + public String latitude() { + return latitude; + } + + /** + * Longitude of the monitored location. + */ + @JsonIgnore + public String longitude() { + return longitude; + } + + /** + * Desired radius from the location provided. Minimum 5, maximum 100. Valid for Wildfires streams. + */ + @JsonIgnore + public Optional<Long> radius() { + return radius; + } + + @JsonIgnore + public Breezometer sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Your API Access Key. See <a href="https://docs.breezometer.com/api-documentation/introduction/#authentication/">here</a>. + */ + public SourceBreezometer withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Number of days to forecast. Minimum 1, maximum 3. Valid for Polen and Weather Forecast streams. + */ + public SourceBreezometer withDaysToForecast(long daysToForecast) { + Utils.checkNotNull(daysToForecast, "daysToForecast"); + this.daysToForecast = Optional.ofNullable(daysToForecast); + return this; + } + + /** + * Number of days to forecast. Minimum 1, maximum 3. Valid for Polen and Weather Forecast streams. + */ + public SourceBreezometer withDaysToForecast(Optional<Long> daysToForecast) { + Utils.checkNotNull(daysToForecast, "daysToForecast"); + this.daysToForecast = daysToForecast; + return this; + } + + /** + * Number of hours retireve from Air Quality History stream. Minimum 1, maximum 720. + */ + public SourceBreezometer withHistoricHours(long historicHours) { + Utils.checkNotNull(historicHours, "historicHours"); + this.historicHours = Optional.ofNullable(historicHours); + return this; + } + + /** + * Number of hours retireve from Air Quality History stream. Minimum 1, maximum 720. + */ + public SourceBreezometer withHistoricHours(Optional<Long> historicHours) { + Utils.checkNotNull(historicHours, "historicHours"); + this.historicHours = historicHours; + return this; + } + + /** + * Number of hours to forecast. Minimum 1, maximum 96. Valid for Air Quality Forecast stream. + */ + public SourceBreezometer withHoursToForecast(long hoursToForecast) { + Utils.checkNotNull(hoursToForecast, "hoursToForecast"); + this.hoursToForecast = Optional.ofNullable(hoursToForecast); + return this; + } + + /** + * Number of hours to forecast. Minimum 1, maximum 96. Valid for Air Quality Forecast stream. + */ + public SourceBreezometer withHoursToForecast(Optional<Long> hoursToForecast) { + Utils.checkNotNull(hoursToForecast, "hoursToForecast"); + this.hoursToForecast = hoursToForecast; + return this; + } + + /** + * Latitude of the monitored location. + */ + public SourceBreezometer withLatitude(String latitude) { + Utils.checkNotNull(latitude, "latitude"); + this.latitude = latitude; + return this; + } + + /** + * Longitude of the monitored location. + */ + public SourceBreezometer withLongitude(String longitude) { + Utils.checkNotNull(longitude, "longitude"); + this.longitude = longitude; + return this; + } + + /** + * Desired radius from the location provided. Minimum 5, maximum 100. Valid for Wildfires streams. + */ + public SourceBreezometer withRadius(long radius) { + Utils.checkNotNull(radius, "radius"); + this.radius = Optional.ofNullable(radius); + return this; + } + + /** + * Desired radius from the location provided. Minimum 5, maximum 100. Valid for Wildfires streams. + */ + public SourceBreezometer withRadius(Optional<Long> radius) { + Utils.checkNotNull(radius, "radius"); + this.radius = radius; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceBreezometer other = (SourceBreezometer) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.daysToForecast, other.daysToForecast) && + Objects.deepEquals(this.historicHours, other.historicHours) && + Objects.deepEquals(this.hoursToForecast, other.hoursToForecast) && + Objects.deepEquals(this.latitude, other.latitude) && + Objects.deepEquals(this.longitude, other.longitude) && + Objects.deepEquals(this.radius, other.radius) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + daysToForecast, + historicHours, + hoursToForecast, + latitude, + longitude, + radius, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceBreezometer.class, + "apiKey", apiKey, + "daysToForecast", daysToForecast, + "historicHours", historicHours, + "hoursToForecast", hoursToForecast, + "latitude", latitude, + "longitude", longitude, + "radius", radius, + "sourceType", sourceType); + } + + public final static class Builder { + + private String apiKey; + + private Optional<Long> daysToForecast = Optional.empty(); + + private Optional<Long> historicHours = Optional.empty(); + + private Optional<Long> hoursToForecast = Optional.empty(); + + private String latitude; + + private String longitude; + + private Optional<Long> radius = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * Your API Access Key. See <a href="https://docs.breezometer.com/api-documentation/introduction/#authentication/">here</a>. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Number of days to forecast. Minimum 1, maximum 3. Valid for Polen and Weather Forecast streams. + */ + public Builder daysToForecast(long daysToForecast) { + Utils.checkNotNull(daysToForecast, "daysToForecast"); + this.daysToForecast = Optional.ofNullable(daysToForecast); + return this; + } + + /** + * Number of days to forecast. Minimum 1, maximum 3. Valid for Polen and Weather Forecast streams. + */ + public Builder daysToForecast(Optional<Long> daysToForecast) { + Utils.checkNotNull(daysToForecast, "daysToForecast"); + this.daysToForecast = daysToForecast; + return this; + } + + /** + * Number of hours retireve from Air Quality History stream. Minimum 1, maximum 720. + */ + public Builder historicHours(long historicHours) { + Utils.checkNotNull(historicHours, "historicHours"); + this.historicHours = Optional.ofNullable(historicHours); + return this; + } + + /** + * Number of hours retireve from Air Quality History stream. Minimum 1, maximum 720. + */ + public Builder historicHours(Optional<Long> historicHours) { + Utils.checkNotNull(historicHours, "historicHours"); + this.historicHours = historicHours; + return this; + } + + /** + * Number of hours to forecast. Minimum 1, maximum 96. Valid for Air Quality Forecast stream. + */ + public Builder hoursToForecast(long hoursToForecast) { + Utils.checkNotNull(hoursToForecast, "hoursToForecast"); + this.hoursToForecast = Optional.ofNullable(hoursToForecast); + return this; + } + + /** + * Number of hours to forecast. Minimum 1, maximum 96. Valid for Air Quality Forecast stream. + */ + public Builder hoursToForecast(Optional<Long> hoursToForecast) { + Utils.checkNotNull(hoursToForecast, "hoursToForecast"); + this.hoursToForecast = hoursToForecast; + return this; + } + + /** + * Latitude of the monitored location. + */ + public Builder latitude(String latitude) { + Utils.checkNotNull(latitude, "latitude"); + this.latitude = latitude; + return this; + } + + /** + * Longitude of the monitored location. + */ + public Builder longitude(String longitude) { + Utils.checkNotNull(longitude, "longitude"); + this.longitude = longitude; + return this; + } + + /** + * Desired radius from the location provided. Minimum 5, maximum 100. Valid for Wildfires streams. + */ + public Builder radius(long radius) { + Utils.checkNotNull(radius, "radius"); + this.radius = Optional.ofNullable(radius); + return this; + } + + /** + * Desired radius from the location provided. Minimum 5, maximum 100. Valid for Wildfires streams. + */ + public Builder radius(Optional<Long> radius) { + Utils.checkNotNull(radius, "radius"); + this.radius = radius; + return this; + } + + public SourceBreezometer build() { + return new SourceBreezometer( + apiKey, + daysToForecast, + historicHours, + hoursToForecast, + latitude, + longitude, + radius); + } + + private static final LazySingletonValue<Breezometer> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"breezometer\"", + new TypeReference<Breezometer>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java b/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java index 818fcc834..040b39fd8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceBreezyHr { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBrevo.java b/src/main/java/com/airbyte/api/models/shared/SourceBrevo.java index 0184e4618..e5d7ee3b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBrevo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBrevo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceBrevo { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBrex.java b/src/main/java/com/airbyte/api/models/shared/SourceBrex.java index 9dc644010..2b669da8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBrex.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBrex.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceBrex { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBugsnag.java b/src/main/java/com/airbyte/api/models/shared/SourceBugsnag.java index e5ecedbc4..78b8204e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBugsnag.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBugsnag.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceBugsnag { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBuildkite.java b/src/main/java/com/airbyte/api/models/shared/SourceBuildkite.java index 36c67607a..fe5576b0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBuildkite.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBuildkite.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceBuildkite { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBunnyInc.java b/src/main/java/com/airbyte/api/models/shared/SourceBunnyInc.java index 1518fd4e0..ac408c870 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBunnyInc.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBunnyInc.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceBunnyInc { @JsonProperty("apikey") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBuzzsprout.java b/src/main/java/com/airbyte/api/models/shared/SourceBuzzsprout.java index 93b5b08e6..180e09afd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBuzzsprout.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBuzzsprout.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceBuzzsprout { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCalCom.java b/src/main/java/com/airbyte/api/models/shared/SourceCalCom.java index 714797925..e8c441800 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCalCom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCalCom.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCalCom { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java b/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java index 9ae8cfc56..389adc37e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceCalendly { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCallrail.java b/src/main/java/com/airbyte/api/models/shared/SourceCallrail.java index c27e7ce4d..c716eda9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCallrail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCallrail.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCallrail { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCampaignMonitor.java b/src/main/java/com/airbyte/api/models/shared/SourceCampaignMonitor.java index b139a4c12..11f76b77c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCampaignMonitor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCampaignMonitor.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceCampaignMonitor { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCampayn.java b/src/main/java/com/airbyte/api/models/shared/SourceCampayn.java index dd3db8e79..743afa842 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCampayn.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCampayn.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCampayn { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCanny.java b/src/main/java/com/airbyte/api/models/shared/SourceCanny.java index 0c959f87d..0b0925cf1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCanny.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCanny.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCanny { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCapsuleCrm.java b/src/main/java/com/airbyte/api/models/shared/SourceCapsuleCrm.java index c6468a1b2..cb02e0b6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCapsuleCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCapsuleCrm.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceCapsuleCrm { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCaptainData.java b/src/main/java/com/airbyte/api/models/shared/SourceCaptainData.java new file mode 100644 index 000000000..74f3e4966 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceCaptainData.java @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceCaptainData { + + /** + * Your Captain Data project API key. + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * Your Captain Data project uuid. + */ + @JsonProperty("project_uid") + private String projectUid; + + @JsonProperty("sourceType") + private CaptainData sourceType; + + @JsonCreator + public SourceCaptainData( + @JsonProperty("api_key") String apiKey, + @JsonProperty("project_uid") String projectUid) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(projectUid, "projectUid"); + this.apiKey = apiKey; + this.projectUid = projectUid; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * Your Captain Data project API key. + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Your Captain Data project uuid. + */ + @JsonIgnore + public String projectUid() { + return projectUid; + } + + @JsonIgnore + public CaptainData sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Your Captain Data project API key. + */ + public SourceCaptainData withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Your Captain Data project uuid. + */ + public SourceCaptainData withProjectUid(String projectUid) { + Utils.checkNotNull(projectUid, "projectUid"); + this.projectUid = projectUid; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceCaptainData other = (SourceCaptainData) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.projectUid, other.projectUid) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + projectUid, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceCaptainData.class, + "apiKey", apiKey, + "projectUid", projectUid, + "sourceType", sourceType); + } + + public final static class Builder { + + private String apiKey; + + private String projectUid; + + private Builder() { + // force use of static builder() method + } + + /** + * Your Captain Data project API key. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Your Captain Data project uuid. + */ + public Builder projectUid(String projectUid) { + Utils.checkNotNull(projectUid, "projectUid"); + this.projectUid = projectUid; + return this; + } + + public SourceCaptainData build() { + return new SourceCaptainData( + apiKey, + projectUid); + } + + private static final LazySingletonValue<CaptainData> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"captain-data\"", + new TypeReference<CaptainData>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCareQualityCommission.java b/src/main/java/com/airbyte/api/models/shared/SourceCareQualityCommission.java index 38bfdef52..6d0f30d4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCareQualityCommission.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCareQualityCommission.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCareQualityCommission { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCart.java b/src/main/java/com/airbyte/api/models/shared/SourceCart.java index 67fb1c502..ce19b407b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCart.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCart.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceCart { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java index aa5eafe58..44ba4292d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceCartAuthType { CENTRAL_API_ROUTER("CENTRAL_API_ROUTER"); @@ -20,4 +21,13 @@ private SourceCartAuthType(String value) { public String value() { return value; } + + public static Optional<SourceCartAuthType> fromValue(String value) { + for (SourceCartAuthType o: SourceCartAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCartAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthorizationMethod.java index 8727d0901..fff582d8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCartAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceCartAuthorizationMethod._Deserializer.class) public class SourceCartAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java index 09e209b53..d4834eaee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceCartSchemasAuthType { SINGLE_STORE_ACCESS_TOKEN("SINGLE_STORE_ACCESS_TOKEN"); @@ -20,4 +21,13 @@ private SourceCartSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceCartSchemasAuthType> fromValue(String value) { + for (SourceCartSchemasAuthType o: SourceCartSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCastorEdc.java b/src/main/java/com/airbyte/api/models/shared/SourceCastorEdc.java index ff69b0a1b..8fe085a36 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCastorEdc.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCastorEdc.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceCastorEdc { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChameleon.java b/src/main/java/com/airbyte/api/models/shared/SourceChameleon.java index 0b0ffc8bd..4577d2dcf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChameleon.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChameleon.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceChameleon { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChargebee.java b/src/main/java/com/airbyte/api/models/shared/SourceChargebee.java index 2f883f175..5e7c9515b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChargebee.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChargebee.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceChargebee { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChargedesk.java b/src/main/java/com/airbyte/api/models/shared/SourceChargedesk.java index 6373f966a..85fa7082e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChargedesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChargedesk.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceChargedesk { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChargify.java b/src/main/java/com/airbyte/api/models/shared/SourceChargify.java index d63deaf81..6fdb624cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChargify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChargify.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceChargify { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java b/src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java index e1909a3c5..f162b0f74 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceChartmogul { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCimis.java b/src/main/java/com/airbyte/api/models/shared/SourceCimis.java index 28d851bce..4ab84d6b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCimis.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCimis.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceCimis { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCin7.java b/src/main/java/com/airbyte/api/models/shared/SourceCin7.java index de8f9efb1..0b37a5330 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCin7.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCin7.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCin7 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCirca.java b/src/main/java/com/airbyte/api/models/shared/SourceCirca.java index be4174616..b7abbc829 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCirca.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCirca.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceCirca { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCircleci.java b/src/main/java/com/airbyte/api/models/shared/SourceCircleci.java index 6ceabe551..da747128b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCircleci.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCircleci.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,27 +12,22 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; +import java.util.List; import java.util.Objects; import java.util.Optional; - public class SourceCircleci { @JsonProperty("api_key") private String apiKey; /** - * Job ID for fetching information - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("job_id") - private Optional<String> jobId; - - /** - * Job Number of the workflow + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("job_number") @@ -46,7 +40,7 @@ public class SourceCircleci { private String orgId; /** - * Project ID found in the project settings + * Project ID found in the project settings, Visit `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` */ @JsonProperty("project_id") private String projectId; @@ -58,46 +52,33 @@ public class SourceCircleci { private OffsetDateTime startDate; /** - * workflow ID of a project pipeline + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("workflow_id") - private Optional<String> workflowId; - - /** - * Workflow name for fetching information - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("workflow_name") - private Optional<String> workflowName; + private Optional<? extends List<Object>> workflowId; @JsonCreator public SourceCircleci( @JsonProperty("api_key") String apiKey, - @JsonProperty("job_id") Optional<String> jobId, @JsonProperty("job_number") Optional<String> jobNumber, @JsonProperty("org_id") String orgId, @JsonProperty("project_id") String projectId, @JsonProperty("start_date") OffsetDateTime startDate, - @JsonProperty("workflow_id") Optional<String> workflowId, - @JsonProperty("workflow_name") Optional<String> workflowName) { + @JsonProperty("workflow_id") Optional<? extends List<Object>> workflowId) { Utils.checkNotNull(apiKey, "apiKey"); - Utils.checkNotNull(jobId, "jobId"); Utils.checkNotNull(jobNumber, "jobNumber"); Utils.checkNotNull(orgId, "orgId"); Utils.checkNotNull(projectId, "projectId"); Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(workflowId, "workflowId"); - Utils.checkNotNull(workflowName, "workflowName"); this.apiKey = apiKey; - this.jobId = jobId; this.jobNumber = jobNumber; this.orgId = orgId; this.projectId = projectId; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; this.workflowId = workflowId; - this.workflowName = workflowName; } public SourceCircleci( @@ -105,7 +86,7 @@ public SourceCircleci( String orgId, String projectId, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), orgId, projectId, startDate, Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), orgId, projectId, startDate, Optional.empty()); } @JsonIgnore @@ -114,15 +95,7 @@ public String apiKey() { } /** - * Job ID for fetching information - */ - @JsonIgnore - public Optional<String> jobId() { - return jobId; - } - - /** - * Job Number of the workflow + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured */ @JsonIgnore public Optional<String> jobNumber() { @@ -138,7 +111,7 @@ public String orgId() { } /** - * Project ID found in the project settings + * Project ID found in the project settings, Visit `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` */ @JsonIgnore public String projectId() { @@ -156,19 +129,12 @@ public OffsetDateTime startDate() { } /** - * workflow ID of a project pipeline + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ + @SuppressWarnings("unchecked") @JsonIgnore - public Optional<String> workflowId() { - return workflowId; - } - - /** - * Workflow name for fetching information - */ - @JsonIgnore - public Optional<String> workflowName() { - return workflowName; + public Optional<List<Object>> workflowId() { + return (Optional<List<Object>>) workflowId; } public final static Builder builder() { @@ -182,25 +148,7 @@ public SourceCircleci withApiKey(String apiKey) { } /** - * Job ID for fetching information - */ - public SourceCircleci withJobId(String jobId) { - Utils.checkNotNull(jobId, "jobId"); - this.jobId = Optional.ofNullable(jobId); - return this; - } - - /** - * Job ID for fetching information - */ - public SourceCircleci withJobId(Optional<String> jobId) { - Utils.checkNotNull(jobId, "jobId"); - this.jobId = jobId; - return this; - } - - /** - * Job Number of the workflow + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured */ public SourceCircleci withJobNumber(String jobNumber) { Utils.checkNotNull(jobNumber, "jobNumber"); @@ -209,7 +157,7 @@ public SourceCircleci withJobNumber(String jobNumber) { } /** - * Job Number of the workflow + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured */ public SourceCircleci withJobNumber(Optional<String> jobNumber) { Utils.checkNotNull(jobNumber, "jobNumber"); @@ -227,7 +175,7 @@ public SourceCircleci withOrgId(String orgId) { } /** - * Project ID found in the project settings + * Project ID found in the project settings, Visit `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` */ public SourceCircleci withProjectId(String projectId) { Utils.checkNotNull(projectId, "projectId"); @@ -242,40 +190,22 @@ public SourceCircleci withStartDate(OffsetDateTime startDate) { } /** - * workflow ID of a project pipeline + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ - public SourceCircleci withWorkflowId(String workflowId) { + public SourceCircleci withWorkflowId(List<Object> workflowId) { Utils.checkNotNull(workflowId, "workflowId"); this.workflowId = Optional.ofNullable(workflowId); return this; } /** - * workflow ID of a project pipeline + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ - public SourceCircleci withWorkflowId(Optional<String> workflowId) { + public SourceCircleci withWorkflowId(Optional<? extends List<Object>> workflowId) { Utils.checkNotNull(workflowId, "workflowId"); this.workflowId = workflowId; return this; } - - /** - * Workflow name for fetching information - */ - public SourceCircleci withWorkflowName(String workflowName) { - Utils.checkNotNull(workflowName, "workflowName"); - this.workflowName = Optional.ofNullable(workflowName); - return this; - } - - /** - * Workflow name for fetching information - */ - public SourceCircleci withWorkflowName(Optional<String> workflowName) { - Utils.checkNotNull(workflowName, "workflowName"); - this.workflowName = workflowName; - return this; - } @Override public boolean equals(java.lang.Object o) { @@ -288,50 +218,42 @@ public boolean equals(java.lang.Object o) { SourceCircleci other = (SourceCircleci) o; return Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.jobId, other.jobId) && Objects.deepEquals(this.jobNumber, other.jobNumber) && Objects.deepEquals(this.orgId, other.orgId) && Objects.deepEquals(this.projectId, other.projectId) && Objects.deepEquals(this.sourceType, other.sourceType) && Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.workflowId, other.workflowId) && - Objects.deepEquals(this.workflowName, other.workflowName); + Objects.deepEquals(this.workflowId, other.workflowId); } @Override public int hashCode() { return Objects.hash( apiKey, - jobId, jobNumber, orgId, projectId, sourceType, startDate, - workflowId, - workflowName); + workflowId); } @Override public String toString() { return Utils.toString(SourceCircleci.class, "apiKey", apiKey, - "jobId", jobId, "jobNumber", jobNumber, "orgId", orgId, "projectId", projectId, "sourceType", sourceType, "startDate", startDate, - "workflowId", workflowId, - "workflowName", workflowName); + "workflowId", workflowId); } public final static class Builder { private String apiKey; - private Optional<String> jobId = Optional.empty(); - private Optional<String> jobNumber; private String orgId; @@ -340,9 +262,7 @@ public final static class Builder { private OffsetDateTime startDate; - private Optional<String> workflowId = Optional.empty(); - - private Optional<String> workflowName; + private Optional<? extends List<Object>> workflowId = Optional.empty(); private Builder() { // force use of static builder() method @@ -355,25 +275,7 @@ public Builder apiKey(String apiKey) { } /** - * Job ID for fetching information - */ - public Builder jobId(String jobId) { - Utils.checkNotNull(jobId, "jobId"); - this.jobId = Optional.ofNullable(jobId); - return this; - } - - /** - * Job ID for fetching information - */ - public Builder jobId(Optional<String> jobId) { - Utils.checkNotNull(jobId, "jobId"); - this.jobId = jobId; - return this; - } - - /** - * Job Number of the workflow + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured */ public Builder jobNumber(String jobNumber) { Utils.checkNotNull(jobNumber, "jobNumber"); @@ -382,7 +284,7 @@ public Builder jobNumber(String jobNumber) { } /** - * Job Number of the workflow + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured */ public Builder jobNumber(Optional<String> jobNumber) { Utils.checkNotNull(jobNumber, "jobNumber"); @@ -400,7 +302,7 @@ public Builder orgId(String orgId) { } /** - * Project ID found in the project settings + * Project ID found in the project settings, Visit `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` */ public Builder projectId(String projectId) { Utils.checkNotNull(projectId, "projectId"); @@ -415,56 +317,33 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * workflow ID of a project pipeline + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ - public Builder workflowId(String workflowId) { + public Builder workflowId(List<Object> workflowId) { Utils.checkNotNull(workflowId, "workflowId"); this.workflowId = Optional.ofNullable(workflowId); return this; } /** - * workflow ID of a project pipeline + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ - public Builder workflowId(Optional<String> workflowId) { + public Builder workflowId(Optional<? extends List<Object>> workflowId) { Utils.checkNotNull(workflowId, "workflowId"); this.workflowId = workflowId; return this; } - - /** - * Workflow name for fetching information - */ - public Builder workflowName(String workflowName) { - Utils.checkNotNull(workflowName, "workflowName"); - this.workflowName = Optional.ofNullable(workflowName); - return this; - } - - /** - * Workflow name for fetching information - */ - public Builder workflowName(Optional<String> workflowName) { - Utils.checkNotNull(workflowName, "workflowName"); - this.workflowName = workflowName; - return this; - } public SourceCircleci build() { if (jobNumber == null) { jobNumber = _SINGLETON_VALUE_JobNumber.value(); - } - if (workflowName == null) { - workflowName = _SINGLETON_VALUE_WorkflowName.value(); } return new SourceCircleci( apiKey, - jobId, jobNumber, orgId, projectId, startDate, - workflowId, - workflowName); + workflowId); } private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_JobNumber = @@ -478,12 +357,6 @@ public SourceCircleci build() { "sourceType", "\"circleci\"", new TypeReference<Circleci>() {}); - - private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_WorkflowName = - new LazySingletonValue<>( - "workflow_name", - "\"build-and-test\"", - new TypeReference<Optional<String>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClarifAi.java b/src/main/java/com/airbyte/api/models/shared/SourceClarifAi.java index 57f111395..6cb68136a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClarifAi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClarifAi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceClarifAi { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClazar.java b/src/main/java/com/airbyte/api/models/shared/SourceClazar.java index 6e6f0f28a..340757481 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClazar.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClazar.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceClazar { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouse.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouse.java index 5e0a6e87d..802f8c496 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceClickhouse { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java index 3cebf8ee9..8d507855d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceClickhouseClickhouse { CLICKHOUSE("clickhouse"); @@ -20,4 +21,13 @@ private SourceClickhouseClickhouse(String value) { public String value() { return value; } + + public static Optional<SourceClickhouseClickhouse> fromValue(String value) { + for (SourceClickhouseClickhouse o: SourceClickhouseClickhouse.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseNoTunnel.java index 6a3129f19..0501ad4ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceClickhouseNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhousePasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhousePasswordAuthentication.java index 70682e59b..3ec9db20f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhousePasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhousePasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceClickhousePasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHKeyAuthentication.java index ecaf2da35..e5bef5f57 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceClickhouseSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHTunnelMethod.java index f583b44ca..e6eea0769 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceClickhouseSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java index 1ab0b4027..1a1b12903 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceClickhouseSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private SourceClickhouseSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceClickhouseSchemasTunnelMethod> fromValue(String value) { + for (SourceClickhouseSchemasTunnelMethod o: SourceClickhouseSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java index 0a76e4081..e4a2ddb99 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceClickhouseSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private SourceClickhouseSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceClickhouseSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (SourceClickhouseSchemasTunnelMethodTunnelMethod o: SourceClickhouseSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java index f8b9a09ab..a5abfa5cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceClickhouseTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private SourceClickhouseTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceClickhouseTunnelMethod> fromValue(String value) { + for (SourceClickhouseTunnelMethod o: SourceClickhouseTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java b/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java index 722d53194..6efdea696 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceClickupApi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClockify.java b/src/main/java/com/airbyte/api/models/shared/SourceClockify.java index d693b210d..f2bfa206b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClockify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClockify.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceClockify { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClockodo.java b/src/main/java/com/airbyte/api/models/shared/SourceClockodo.java index 4c8dc7bd5..8676851c0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClockodo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClockodo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceClockodo { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCloseCom.java b/src/main/java/com/airbyte/api/models/shared/SourceCloseCom.java index 5816a6fbf..741787885 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCloseCom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCloseCom.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceCloseCom { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCloudbeds.java b/src/main/java/com/airbyte/api/models/shared/SourceCloudbeds.java index a96bddb5e..0bae5fe73 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCloudbeds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCloudbeds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCloudbeds { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoassemble.java b/src/main/java/com/airbyte/api/models/shared/SourceCoassemble.java index 0b2b5a13c..a7e448517 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCoassemble.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoassemble.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCoassemble { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoda.java b/src/main/java/com/airbyte/api/models/shared/SourceCoda.java index d4c2e6e6c..5fda4fbb8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCoda.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoda.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCoda { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCodefresh.java b/src/main/java/com/airbyte/api/models/shared/SourceCodefresh.java index f897a8e66..a4fb8793c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCodefresh.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCodefresh.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceCodefresh { @JsonProperty("account_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoinApi.java b/src/main/java/com/airbyte/api/models/shared/SourceCoinApi.java index 1d92d655f..901dac154 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCoinApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoinApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceCoinApi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoingeckoCoins.java b/src/main/java/com/airbyte/api/models/shared/SourceCoingeckoCoins.java new file mode 100644 index 000000000..ee80f2302 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoingeckoCoins.java @@ -0,0 +1,430 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.LocalDate; +import java.util.Objects; +import java.util.Optional; + +public class SourceCoingeckoCoins { + + /** + * API Key (for pro users) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("api_key") + private Optional<String> apiKey; + + /** + * CoinGecko coin ID (e.g. bitcoin). Can be retrieved from the + * `/coins/list` endpoint. + * + */ + @JsonProperty("coin_id") + private String coinId; + + /** + * The number of days of data for market chart. + * + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("days") + private Optional<? extends Days> days; + + /** + * The end date for the historical data stream in dd-mm-yyyy format. + * + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("end_date") + private Optional<LocalDate> endDate; + + @JsonProperty("sourceType") + private CoingeckoCoins sourceType; + + /** + * The start date for the historical data stream in dd-mm-yyyy format. + * + */ + @JsonProperty("start_date") + private LocalDate startDate; + + /** + * The target currency of market data (e.g. usd, eur, jpy, etc.) + * + */ + @JsonProperty("vs_currency") + private String vsCurrency; + + @JsonCreator + public SourceCoingeckoCoins( + @JsonProperty("api_key") Optional<String> apiKey, + @JsonProperty("coin_id") String coinId, + @JsonProperty("days") Optional<? extends Days> days, + @JsonProperty("end_date") Optional<LocalDate> endDate, + @JsonProperty("start_date") LocalDate startDate, + @JsonProperty("vs_currency") String vsCurrency) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(coinId, "coinId"); + Utils.checkNotNull(days, "days"); + Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(vsCurrency, "vsCurrency"); + this.apiKey = apiKey; + this.coinId = coinId; + this.days = days; + this.endDate = endDate; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + this.vsCurrency = vsCurrency; + } + + public SourceCoingeckoCoins( + String coinId, + LocalDate startDate, + String vsCurrency) { + this(Optional.empty(), coinId, Optional.empty(), Optional.empty(), startDate, vsCurrency); + } + + /** + * API Key (for pro users) + */ + @JsonIgnore + public Optional<String> apiKey() { + return apiKey; + } + + /** + * CoinGecko coin ID (e.g. bitcoin). Can be retrieved from the + * `/coins/list` endpoint. + * + */ + @JsonIgnore + public String coinId() { + return coinId; + } + + /** + * The number of days of data for market chart. + * + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<Days> days() { + return (Optional<Days>) days; + } + + /** + * The end date for the historical data stream in dd-mm-yyyy format. + * + */ + @JsonIgnore + public Optional<LocalDate> endDate() { + return endDate; + } + + @JsonIgnore + public CoingeckoCoins sourceType() { + return sourceType; + } + + /** + * The start date for the historical data stream in dd-mm-yyyy format. + * + */ + @JsonIgnore + public LocalDate startDate() { + return startDate; + } + + /** + * The target currency of market data (e.g. usd, eur, jpy, etc.) + * + */ + @JsonIgnore + public String vsCurrency() { + return vsCurrency; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * API Key (for pro users) + */ + public SourceCoingeckoCoins withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = Optional.ofNullable(apiKey); + return this; + } + + /** + * API Key (for pro users) + */ + public SourceCoingeckoCoins withApiKey(Optional<String> apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * CoinGecko coin ID (e.g. bitcoin). Can be retrieved from the + * `/coins/list` endpoint. + * + */ + public SourceCoingeckoCoins withCoinId(String coinId) { + Utils.checkNotNull(coinId, "coinId"); + this.coinId = coinId; + return this; + } + + /** + * The number of days of data for market chart. + * + */ + public SourceCoingeckoCoins withDays(Days days) { + Utils.checkNotNull(days, "days"); + this.days = Optional.ofNullable(days); + return this; + } + + /** + * The number of days of data for market chart. + * + */ + public SourceCoingeckoCoins withDays(Optional<? extends Days> days) { + Utils.checkNotNull(days, "days"); + this.days = days; + return this; + } + + /** + * The end date for the historical data stream in dd-mm-yyyy format. + * + */ + public SourceCoingeckoCoins withEndDate(LocalDate endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = Optional.ofNullable(endDate); + return this; + } + + /** + * The end date for the historical data stream in dd-mm-yyyy format. + * + */ + public SourceCoingeckoCoins withEndDate(Optional<LocalDate> endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + /** + * The start date for the historical data stream in dd-mm-yyyy format. + * + */ + public SourceCoingeckoCoins withStartDate(LocalDate startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * The target currency of market data (e.g. usd, eur, jpy, etc.) + * + */ + public SourceCoingeckoCoins withVsCurrency(String vsCurrency) { + Utils.checkNotNull(vsCurrency, "vsCurrency"); + this.vsCurrency = vsCurrency; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceCoingeckoCoins other = (SourceCoingeckoCoins) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.coinId, other.coinId) && + Objects.deepEquals(this.days, other.days) && + Objects.deepEquals(this.endDate, other.endDate) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.startDate, other.startDate) && + Objects.deepEquals(this.vsCurrency, other.vsCurrency); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + coinId, + days, + endDate, + sourceType, + startDate, + vsCurrency); + } + + @Override + public String toString() { + return Utils.toString(SourceCoingeckoCoins.class, + "apiKey", apiKey, + "coinId", coinId, + "days", days, + "endDate", endDate, + "sourceType", sourceType, + "startDate", startDate, + "vsCurrency", vsCurrency); + } + + public final static class Builder { + + private Optional<String> apiKey = Optional.empty(); + + private String coinId; + + private Optional<? extends Days> days; + + private Optional<LocalDate> endDate = Optional.empty(); + + private LocalDate startDate; + + private String vsCurrency; + + private Builder() { + // force use of static builder() method + } + + /** + * API Key (for pro users) + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = Optional.ofNullable(apiKey); + return this; + } + + /** + * API Key (for pro users) + */ + public Builder apiKey(Optional<String> apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * CoinGecko coin ID (e.g. bitcoin). Can be retrieved from the + * `/coins/list` endpoint. + * + */ + public Builder coinId(String coinId) { + Utils.checkNotNull(coinId, "coinId"); + this.coinId = coinId; + return this; + } + + /** + * The number of days of data for market chart. + * + */ + public Builder days(Days days) { + Utils.checkNotNull(days, "days"); + this.days = Optional.ofNullable(days); + return this; + } + + /** + * The number of days of data for market chart. + * + */ + public Builder days(Optional<? extends Days> days) { + Utils.checkNotNull(days, "days"); + this.days = days; + return this; + } + + /** + * The end date for the historical data stream in dd-mm-yyyy format. + * + */ + public Builder endDate(LocalDate endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = Optional.ofNullable(endDate); + return this; + } + + /** + * The end date for the historical data stream in dd-mm-yyyy format. + * + */ + public Builder endDate(Optional<LocalDate> endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + /** + * The start date for the historical data stream in dd-mm-yyyy format. + * + */ + public Builder startDate(LocalDate startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * The target currency of market data (e.g. usd, eur, jpy, etc.) + * + */ + public Builder vsCurrency(String vsCurrency) { + Utils.checkNotNull(vsCurrency, "vsCurrency"); + this.vsCurrency = vsCurrency; + return this; + } + + public SourceCoingeckoCoins build() { + if (days == null) { + days = _SINGLETON_VALUE_Days.value(); + } return new SourceCoingeckoCoins( + apiKey, + coinId, + days, + endDate, + startDate, + vsCurrency); + } + + private static final LazySingletonValue<Optional<? extends Days>> _SINGLETON_VALUE_Days = + new LazySingletonValue<>( + "days", + "\"30\"", + new TypeReference<Optional<? extends Days>>() {}); + + private static final LazySingletonValue<CoingeckoCoins> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"coingecko-coins\"", + new TypeReference<CoingeckoCoins>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoinmarketcap.java b/src/main/java/com/airbyte/api/models/shared/SourceCoinmarketcap.java index b095d36f5..659cc2461 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCoinmarketcap.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoinmarketcap.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceCoinmarketcap { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConcord.java b/src/main/java/com/airbyte/api/models/shared/SourceConcord.java index 854c9682b..25618ddae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConcord.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConcord.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceConcord { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java index 9bd45eb49..1c14b15fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceConcordEnvironment - The environment from where you want to access the API. */ @@ -24,4 +25,13 @@ private SourceConcordEnvironment(String value) { public String value() { return value; } + + public static Optional<SourceConcordEnvironment> fromValue(String value) { + for (SourceConcordEnvironment o: SourceConcordEnvironment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConfigcat.java b/src/main/java/com/airbyte/api/models/shared/SourceConfigcat.java index a12bea23e..f0d80dc8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfigcat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfigcat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceConfigcat { /** 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 ed87858e0..060bd23ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceConfiguration - The values required to configure the source. */ @@ -77,6 +75,11 @@ public static SourceConfiguration of(SourceAlgolia value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceAlgolia>(){})); } + public static SourceConfiguration of(SourceAlphaVantage value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceAlphaVantage>(){})); + } + public static SourceConfiguration of(SourceAmazonAds value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceAmazonAds>(){})); @@ -157,6 +160,11 @@ public static SourceConfiguration of(SourceAzureTable value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceAzureTable>(){})); } + public static SourceConfiguration of(SourceBabelforce value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceBabelforce>(){})); + } + public static SourceConfiguration of(SourceBambooHr value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceBambooHr>(){})); @@ -212,6 +220,11 @@ public static SourceConfiguration of(SourceBraze value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceBraze>(){})); } + public static SourceConfiguration of(SourceBreezometer value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceBreezometer>(){})); + } + public static SourceConfiguration of(SourceBreezyHr value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceBreezyHr>(){})); @@ -282,6 +295,11 @@ public static SourceConfiguration of(SourceCapsuleCrm value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceCapsuleCrm>(){})); } + public static SourceConfiguration of(SourceCaptainData value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceCaptainData>(){})); + } + public static SourceConfiguration of(SourceCareQualityCommission value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceCareQualityCommission>(){})); @@ -402,6 +420,11 @@ public static SourceConfiguration of(SourceCoinApi value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceCoinApi>(){})); } + public static SourceConfiguration of(SourceCoingeckoCoins value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceCoingeckoCoins>(){})); + } + public static SourceConfiguration of(SourceCoinmarketcap value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceCoinmarketcap>(){})); @@ -557,6 +580,11 @@ public static SourceConfiguration of(SourceEventzilla value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceEventzilla>(){})); } + public static SourceConfiguration of(SourceEverhour value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceEverhour>(){})); + } + public static SourceConfiguration of(SourceExchangeRates value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceExchangeRates>(){})); @@ -582,6 +610,11 @@ public static SourceConfiguration of(SourceFaker value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceFaker>(){})); } + public static SourceConfiguration of(SourceFastbill value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceFastbill>(){})); + } + public static SourceConfiguration of(SourceFauna value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceFauna>(){})); @@ -707,6 +740,11 @@ public static SourceConfiguration of(SourceFulcrum value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceFulcrum>(){})); } + public static SourceConfiguration of(SourceFullstory value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceFullstory>(){})); + } + public static SourceConfiguration of(SourceGainsightPx value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceGainsightPx>(){})); @@ -842,6 +880,11 @@ public static SourceConfiguration of(SourceGreenhouse value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceGreenhouse>(){})); } + public static SourceConfiguration of(SourceGreythr value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceGreythr>(){})); + } + public static SourceConfiguration of(SourceGridly value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceGridly>(){})); @@ -872,6 +915,16 @@ public static SourceConfiguration of(SourceHeight value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHeight>(){})); } + public static SourceConfiguration of(SourceHellobaton value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHellobaton>(){})); + } + + public static SourceConfiguration of(SourceHelpScout value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHelpScout>(){})); + } + public static SourceConfiguration of(SourceHibob value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHibob>(){})); @@ -882,6 +935,11 @@ public static SourceConfiguration of(SourceHighLevel value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHighLevel>(){})); } + public static SourceConfiguration of(SourceHoorayhr value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHoorayhr>(){})); + } + public static SourceConfiguration of(SourceHubplanner value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHubplanner>(){})); @@ -892,11 +950,21 @@ public static SourceConfiguration of(SourceHubspot value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHubspot>(){})); } + public static SourceConfiguration of(SourceHuggingFaceDatasets value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHuggingFaceDatasets>(){})); + } + public static SourceConfiguration of(SourceHumanitix value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHumanitix>(){})); } + public static SourceConfiguration of(SourceHuntr value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceHuntr>(){})); + } + public static SourceConfiguration of(SourceIlluminaBasespace value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceIlluminaBasespace>(){})); @@ -932,6 +1000,11 @@ public static SourceConfiguration of(SourceIntercom value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceIntercom>(){})); } + public static SourceConfiguration of(SourceIntruder value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceIntruder>(){})); + } + public static SourceConfiguration of(SourceInvoiced value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceInvoiced>(){})); @@ -987,6 +1060,11 @@ public static SourceConfiguration of(SourceKatana value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceKatana>(){})); } + public static SourceConfiguration of(SourceKeka value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceKeka>(){})); + } + public static SourceConfiguration of(SourceKisi value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceKisi>(){})); @@ -1092,6 +1170,11 @@ public static SourceConfiguration of(SourceMailerlite value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMailerlite>(){})); } + public static SourceConfiguration of(SourceMailersend value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMailersend>(){})); + } + public static SourceConfiguration of(SourceMailgun value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMailgun>(){})); @@ -1132,6 +1215,11 @@ public static SourceConfiguration of(SourceMention value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMention>(){})); } + public static SourceConfiguration of(SourceMerge value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMerge>(){})); + } + public static SourceConfiguration of(SourceMetabase value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMetabase>(){})); @@ -1232,6 +1320,11 @@ public static SourceConfiguration of(SourceNasa value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceNasa>(){})); } + public static SourceConfiguration of(SourceNavan value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceNavan>(){})); + } + public static SourceConfiguration of(SourceNetsuite value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceNetsuite>(){})); @@ -1242,6 +1335,11 @@ public static SourceConfiguration of(SourceNewsApi value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceNewsApi>(){})); } + public static SourceConfiguration of(SourceNewsdata value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceNewsdata>(){})); + } + public static SourceConfiguration of(SourceNewsdataIo value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceNewsdataIo>(){})); @@ -1347,11 +1445,6 @@ public static SourceConfiguration of(SourceOrb value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceOrb>(){})); } - public static SourceConfiguration of(SourceOrbit value) { - Utils.checkNotNull(value, "value"); - return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceOrbit>(){})); - } - public static SourceConfiguration of(SourceOura value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceOura>(){})); @@ -1397,6 +1490,11 @@ public static SourceConfiguration of(SourcePardot value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourcePardot>(){})); } + public static SourceConfiguration of(SourcePayfit value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourcePayfit>(){})); + } + public static SourceConfiguration of(SourcePaypalTransaction value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourcePaypalTransaction>(){})); @@ -1437,6 +1535,11 @@ public static SourceConfiguration of(SourcePicqer value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourcePicqer>(){})); } + public static SourceConfiguration of(SourcePingdom value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourcePingdom>(){})); + } + public static SourceConfiguration of(SourcePinterest value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourcePinterest>(){})); @@ -1607,6 +1710,11 @@ public static SourceConfiguration of(SourceReplyIo value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceReplyIo>(){})); } + public static SourceConfiguration of(SourceRetailexpressByMaropost value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceRetailexpressByMaropost>(){})); + } + public static SourceConfiguration of(SourceRetently value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceRetently>(){})); @@ -1622,11 +1730,21 @@ public static SourceConfiguration of(SourceRevolutMerchant value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceRevolutMerchant>(){})); } + public static SourceConfiguration of(SourceRingcentral value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceRingcentral>(){})); + } + public static SourceConfiguration of(SourceRkiCovid value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceRkiCovid>(){})); } + public static SourceConfiguration of(SourceRocketChat value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceRocketChat>(){})); + } + public static SourceConfiguration of(SourceRocketlane value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceRocketlane>(){})); @@ -1737,6 +1855,16 @@ public static SourceConfiguration of(SourceSentry value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceSentry>(){})); } + public static SourceConfiguration of(SourceSerpstat value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceSerpstat>(){})); + } + + public static SourceConfiguration of(SourceServiceNow value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceServiceNow>(){})); + } + public static SourceConfiguration of(SourceSftp value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceSftp>(){})); @@ -1757,6 +1885,11 @@ public static SourceConfiguration of(SourceShippo value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceShippo>(){})); } + public static SourceConfiguration of(SourceShipstation value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceShipstation>(){})); + } + public static SourceConfiguration of(SourceShopify value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceShopify>(){})); @@ -1977,11 +2110,21 @@ public static SourceConfiguration of(SourceTinyemail value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceTinyemail>(){})); } + public static SourceConfiguration of(SourceTmdb value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceTmdb>(){})); + } + public static SourceConfiguration of(SourceTodoist value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceTodoist>(){})); } + public static SourceConfiguration of(SourceToggl value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceToggl>(){})); + } + public static SourceConfiguration of(SourceTrackPms value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceTrackPms>(){})); @@ -2027,6 +2170,11 @@ public static SourceConfiguration of(SourceTwitter value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceTwitter>(){})); } + public static SourceConfiguration of(SourceTyntecSms value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceTyntecSms>(){})); + } + public static SourceConfiguration of(SourceTypeform value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceTypeform>(){})); @@ -2142,6 +2290,11 @@ public static SourceConfiguration of(SourceWorkable value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceWorkable>(){})); } + public static SourceConfiguration of(SourceWorkday value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceWorkday>(){})); + } + public static SourceConfiguration of(SourceWorkflowmax value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceWorkflowmax>(){})); @@ -2192,6 +2345,11 @@ public static SourceConfiguration of(SourceYouNeedABudgetYnab value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceYouNeedABudgetYnab>(){})); } + public static SourceConfiguration of(SourceYounium value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceYounium>(){})); + } + public static SourceConfiguration of(SourceYoutubeAnalytics value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceYoutubeAnalytics>(){})); @@ -2309,6 +2467,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceAirtable}</li> * <li>{@code com.airbyte.api.models.shared.SourceAkeneo}</li> * <li>{@code com.airbyte.api.models.shared.SourceAlgolia}</li> + * <li>{@code com.airbyte.api.models.shared.SourceAlphaVantage}</li> * <li>{@code com.airbyte.api.models.shared.SourceAmazonAds}</li> * <li>{@code com.airbyte.api.models.shared.SourceAmazonSellerPartner}</li> * <li>{@code com.airbyte.api.models.shared.SourceAmazonSqs}</li> @@ -2325,6 +2484,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceAwsCloudtrail}</li> * <li>{@code com.airbyte.api.models.shared.SourceAzureBlobStorage}</li> * <li>{@code com.airbyte.api.models.shared.SourceAzureTable}</li> + * <li>{@code com.airbyte.api.models.shared.SourceBabelforce}</li> * <li>{@code com.airbyte.api.models.shared.SourceBambooHr}</li> * <li>{@code com.airbyte.api.models.shared.SourceBasecamp}</li> * <li>{@code com.airbyte.api.models.shared.SourceBeamer}</li> @@ -2336,6 +2496,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceBox}</li> * <li>{@code com.airbyte.api.models.shared.SourceBraintree}</li> * <li>{@code com.airbyte.api.models.shared.SourceBraze}</li> + * <li>{@code com.airbyte.api.models.shared.SourceBreezometer}</li> * <li>{@code com.airbyte.api.models.shared.SourceBreezyHr}</li> * <li>{@code com.airbyte.api.models.shared.SourceBrevo}</li> * <li>{@code com.airbyte.api.models.shared.SourceBrex}</li> @@ -2350,6 +2511,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceCampayn}</li> * <li>{@code com.airbyte.api.models.shared.SourceCanny}</li> * <li>{@code com.airbyte.api.models.shared.SourceCapsuleCrm}</li> + * <li>{@code com.airbyte.api.models.shared.SourceCaptainData}</li> * <li>{@code com.airbyte.api.models.shared.SourceCareQualityCommission}</li> * <li>{@code com.airbyte.api.models.shared.SourceCart}</li> * <li>{@code com.airbyte.api.models.shared.SourceCastorEdc}</li> @@ -2374,6 +2536,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceCoda}</li> * <li>{@code com.airbyte.api.models.shared.SourceCodefresh}</li> * <li>{@code com.airbyte.api.models.shared.SourceCoinApi}</li> + * <li>{@code com.airbyte.api.models.shared.SourceCoingeckoCoins}</li> * <li>{@code com.airbyte.api.models.shared.SourceCoinmarketcap}</li> * <li>{@code com.airbyte.api.models.shared.SourceConcord}</li> * <li>{@code com.airbyte.api.models.shared.SourceConfigcat}</li> @@ -2405,11 +2568,13 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceEventbrite}</li> * <li>{@code com.airbyte.api.models.shared.SourceEventee}</li> * <li>{@code com.airbyte.api.models.shared.SourceEventzilla}</li> + * <li>{@code com.airbyte.api.models.shared.SourceEverhour}</li> * <li>{@code com.airbyte.api.models.shared.SourceExchangeRates}</li> * <li>{@code com.airbyte.api.models.shared.SourceEzofficeinventory}</li> * <li>{@code com.airbyte.api.models.shared.SourceFacebookMarketing}</li> * <li>{@code com.airbyte.api.models.shared.SourceFactorial}</li> * <li>{@code com.airbyte.api.models.shared.SourceFaker}</li> + * <li>{@code com.airbyte.api.models.shared.SourceFastbill}</li> * <li>{@code com.airbyte.api.models.shared.SourceFauna}</li> * <li>{@code com.airbyte.api.models.shared.SourceFile}</li> * <li>{@code com.airbyte.api.models.shared.SourceFillout}</li> @@ -2435,6 +2600,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceFreshservice}</li> * <li>{@code com.airbyte.api.models.shared.SourceFront}</li> * <li>{@code com.airbyte.api.models.shared.SourceFulcrum}</li> + * <li>{@code com.airbyte.api.models.shared.SourceFullstory}</li> * <li>{@code com.airbyte.api.models.shared.SourceGainsightPx}</li> * <li>{@code com.airbyte.api.models.shared.SourceGcs}</li> * <li>{@code com.airbyte.api.models.shared.SourceGetgist}</li> @@ -2462,17 +2628,23 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceGoogleWebfonts}</li> * <li>{@code com.airbyte.api.models.shared.SourceGorgias}</li> * <li>{@code com.airbyte.api.models.shared.SourceGreenhouse}</li> + * <li>{@code com.airbyte.api.models.shared.SourceGreythr}</li> * <li>{@code com.airbyte.api.models.shared.SourceGridly}</li> * <li>{@code com.airbyte.api.models.shared.SourceGuru}</li> * <li>{@code com.airbyte.api.models.shared.SourceGutendex}</li> * <li>{@code com.airbyte.api.models.shared.SourceHardcodedRecords}</li> * <li>{@code com.airbyte.api.models.shared.SourceHarvest}</li> * <li>{@code com.airbyte.api.models.shared.SourceHeight}</li> + * <li>{@code com.airbyte.api.models.shared.SourceHellobaton}</li> + * <li>{@code com.airbyte.api.models.shared.SourceHelpScout}</li> * <li>{@code com.airbyte.api.models.shared.SourceHibob}</li> * <li>{@code com.airbyte.api.models.shared.SourceHighLevel}</li> + * <li>{@code com.airbyte.api.models.shared.SourceHoorayhr}</li> * <li>{@code com.airbyte.api.models.shared.SourceHubplanner}</li> * <li>{@code com.airbyte.api.models.shared.SourceHubspot}</li> + * <li>{@code com.airbyte.api.models.shared.SourceHuggingFaceDatasets}</li> * <li>{@code com.airbyte.api.models.shared.SourceHumanitix}</li> + * <li>{@code com.airbyte.api.models.shared.SourceHuntr}</li> * <li>{@code com.airbyte.api.models.shared.SourceIlluminaBasespace}</li> * <li>{@code com.airbyte.api.models.shared.SourceIncidentIo}</li> * <li>{@code com.airbyte.api.models.shared.SourceInflowinventory}</li> @@ -2480,6 +2652,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceInstagram}</li> * <li>{@code com.airbyte.api.models.shared.SourceInstatus}</li> * <li>{@code com.airbyte.api.models.shared.SourceIntercom}</li> + * <li>{@code com.airbyte.api.models.shared.SourceIntruder}</li> * <li>{@code com.airbyte.api.models.shared.SourceInvoiced}</li> * <li>{@code com.airbyte.api.models.shared.SourceInvoiceninja}</li> * <li>{@code com.airbyte.api.models.shared.SourceIp2whois}</li> @@ -2491,6 +2664,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceJustcall}</li> * <li>{@code com.airbyte.api.models.shared.SourceK6Cloud}</li> * <li>{@code com.airbyte.api.models.shared.SourceKatana}</li> + * <li>{@code com.airbyte.api.models.shared.SourceKeka}</li> * <li>{@code com.airbyte.api.models.shared.SourceKisi}</li> * <li>{@code com.airbyte.api.models.shared.SourceKissmetrics}</li> * <li>{@code com.airbyte.api.models.shared.SourceKlarna}</li> @@ -2512,6 +2686,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceLuma}</li> * <li>{@code com.airbyte.api.models.shared.SourceMailchimp}</li> * <li>{@code com.airbyte.api.models.shared.SourceMailerlite}</li> + * <li>{@code com.airbyte.api.models.shared.SourceMailersend}</li> * <li>{@code com.airbyte.api.models.shared.SourceMailgun}</li> * <li>{@code com.airbyte.api.models.shared.SourceMailjetMail}</li> * <li>{@code com.airbyte.api.models.shared.SourceMailjetSms}</li> @@ -2520,6 +2695,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceMarketo}</li> * <li>{@code com.airbyte.api.models.shared.SourceMarketstack}</li> * <li>{@code com.airbyte.api.models.shared.SourceMention}</li> + * <li>{@code com.airbyte.api.models.shared.SourceMerge}</li> * <li>{@code com.airbyte.api.models.shared.SourceMetabase}</li> * <li>{@code com.airbyte.api.models.shared.SourceMicrosoftDataverse}</li> * <li>{@code com.airbyte.api.models.shared.SourceMicrosoftEntraId}</li> @@ -2540,8 +2716,10 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceMysql}</li> * <li>{@code com.airbyte.api.models.shared.SourceN8n}</li> * <li>{@code com.airbyte.api.models.shared.SourceNasa}</li> + * <li>{@code com.airbyte.api.models.shared.SourceNavan}</li> * <li>{@code com.airbyte.api.models.shared.SourceNetsuite}</li> * <li>{@code com.airbyte.api.models.shared.SourceNewsApi}</li> + * <li>{@code com.airbyte.api.models.shared.SourceNewsdata}</li> * <li>{@code com.airbyte.api.models.shared.SourceNewsdataIo}</li> * <li>{@code com.airbyte.api.models.shared.SourceNocrm}</li> * <li>{@code com.airbyte.api.models.shared.SourceNorthpassLms}</li> @@ -2563,7 +2741,6 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceOpsgenie}</li> * <li>{@code com.airbyte.api.models.shared.SourceOracle}</li> * <li>{@code com.airbyte.api.models.shared.SourceOrb}</li> - * <li>{@code com.airbyte.api.models.shared.SourceOrbit}</li> * <li>{@code com.airbyte.api.models.shared.SourceOura}</li> * <li>{@code com.airbyte.api.models.shared.SourceOutbrainAmplify}</li> * <li>{@code com.airbyte.api.models.shared.SourceOutreach}</li> @@ -2573,6 +2750,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourcePaperform}</li> * <li>{@code com.airbyte.api.models.shared.SourcePapersign}</li> * <li>{@code com.airbyte.api.models.shared.SourcePardot}</li> + * <li>{@code com.airbyte.api.models.shared.SourcePayfit}</li> * <li>{@code com.airbyte.api.models.shared.SourcePaypalTransaction}</li> * <li>{@code com.airbyte.api.models.shared.SourcePaystack}</li> * <li>{@code com.airbyte.api.models.shared.SourcePendo}</li> @@ -2581,6 +2759,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourcePersona}</li> * <li>{@code com.airbyte.api.models.shared.SourcePexelsApi}</li> * <li>{@code com.airbyte.api.models.shared.SourcePicqer}</li> + * <li>{@code com.airbyte.api.models.shared.SourcePingdom}</li> * <li>{@code com.airbyte.api.models.shared.SourcePinterest}</li> * <li>{@code com.airbyte.api.models.shared.SourcePipedrive}</li> * <li>{@code com.airbyte.api.models.shared.SourcePipeliner}</li> @@ -2615,10 +2794,13 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceRentcast}</li> * <li>{@code com.airbyte.api.models.shared.SourceRepairshopr}</li> * <li>{@code com.airbyte.api.models.shared.SourceReplyIo}</li> + * <li>{@code com.airbyte.api.models.shared.SourceRetailexpressByMaropost}</li> * <li>{@code com.airbyte.api.models.shared.SourceRetently}</li> * <li>{@code com.airbyte.api.models.shared.SourceRevenuecat}</li> * <li>{@code com.airbyte.api.models.shared.SourceRevolutMerchant}</li> + * <li>{@code com.airbyte.api.models.shared.SourceRingcentral}</li> * <li>{@code com.airbyte.api.models.shared.SourceRkiCovid}</li> + * <li>{@code com.airbyte.api.models.shared.SourceRocketChat}</li> * <li>{@code com.airbyte.api.models.shared.SourceRocketlane}</li> * <li>{@code com.airbyte.api.models.shared.SourceRollbar}</li> * <li>{@code com.airbyte.api.models.shared.SourceRootly}</li> @@ -2641,10 +2823,13 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceSendpulse}</li> * <li>{@code com.airbyte.api.models.shared.SourceSenseforce}</li> * <li>{@code com.airbyte.api.models.shared.SourceSentry}</li> + * <li>{@code com.airbyte.api.models.shared.SourceSerpstat}</li> + * <li>{@code com.airbyte.api.models.shared.SourceServiceNow}</li> * <li>{@code com.airbyte.api.models.shared.SourceSftp}</li> * <li>{@code com.airbyte.api.models.shared.SourceSftpBulk}</li> * <li>{@code com.airbyte.api.models.shared.SourceSharetribe}</li> * <li>{@code com.airbyte.api.models.shared.SourceShippo}</li> + * <li>{@code com.airbyte.api.models.shared.SourceShipstation}</li> * <li>{@code com.airbyte.api.models.shared.SourceShopify}</li> * <li>{@code com.airbyte.api.models.shared.SourceShortcut}</li> * <li>{@code com.airbyte.api.models.shared.SourceShortio}</li> @@ -2689,7 +2874,9 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceTiktokMarketing}</li> * <li>{@code com.airbyte.api.models.shared.SourceTimely}</li> * <li>{@code com.airbyte.api.models.shared.SourceTinyemail}</li> + * <li>{@code com.airbyte.api.models.shared.SourceTmdb}</li> * <li>{@code com.airbyte.api.models.shared.SourceTodoist}</li> + * <li>{@code com.airbyte.api.models.shared.SourceToggl}</li> * <li>{@code com.airbyte.api.models.shared.SourceTrackPms}</li> * <li>{@code com.airbyte.api.models.shared.SourceTrello}</li> * <li>{@code com.airbyte.api.models.shared.SourceTremendous}</li> @@ -2699,6 +2886,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceTwilio}</li> * <li>{@code com.airbyte.api.models.shared.SourceTwilioTaskrouter}</li> * <li>{@code com.airbyte.api.models.shared.SourceTwitter}</li> + * <li>{@code com.airbyte.api.models.shared.SourceTyntecSms}</li> * <li>{@code com.airbyte.api.models.shared.SourceTypeform}</li> * <li>{@code com.airbyte.api.models.shared.SourceUbidots}</li> * <li>{@code com.airbyte.api.models.shared.SourceUnleash}</li> @@ -2722,6 +2910,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceWoocommerce}</li> * <li>{@code com.airbyte.api.models.shared.SourceWordpress}</li> * <li>{@code com.airbyte.api.models.shared.SourceWorkable}</li> + * <li>{@code com.airbyte.api.models.shared.SourceWorkday}</li> * <li>{@code com.airbyte.api.models.shared.SourceWorkflowmax}</li> * <li>{@code com.airbyte.api.models.shared.SourceWorkramp}</li> * <li>{@code com.airbyte.api.models.shared.SourceWrike}</li> @@ -2732,6 +2921,7 @@ public static SourceConfiguration of(SourceZoom value) { * <li>{@code com.airbyte.api.models.shared.SourceYandexMetrica}</li> * <li>{@code com.airbyte.api.models.shared.SourceYotpo}</li> * <li>{@code com.airbyte.api.models.shared.SourceYouNeedABudgetYnab}</li> + * <li>{@code com.airbyte.api.models.shared.SourceYounium}</li> * <li>{@code com.airbyte.api.models.shared.SourceYoutubeAnalytics}</li> * <li>{@code com.airbyte.api.models.shared.SourceYoutubeData}</li> * <li>{@code com.airbyte.api.models.shared.SourceZapierSupportedStorage}</li> @@ -2793,457 +2983,489 @@ public static final class _Deserializer extends OneOfDeserializer<SourceConfigur public _Deserializer() { super(SourceConfiguration.class, false, TypeReferenceWithShape.of(new TypeReference<SourceRentcast>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFacebookMarketing>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceAmazonSellerPartner>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFacebookMarketing>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMysql>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceNewsApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePocket>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGnews>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAmazonAds>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePostgres>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBingAds>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMysql>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePocket>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceMssql>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSnapchatMarketing>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSerpstat>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBingAds>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePostgres>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceOracle>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePolygonStockApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMixpanel>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceSalesforce>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceS3>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceAmazonSqs>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAmazonAds>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMixpanel>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceS3>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceQuickbooks>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePaypalTransaction>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceDatadog>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceNetsuite>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceClickhouse>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFreshbooks>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceOrb>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFinage>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSftpBulk>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGoogleAnalyticsDataApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCircleci>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceShopify>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceCimis>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceNewsdataIo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFinnworlds>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFinage>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceJira>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceShopify>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFreshbooks>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSnapchatMarketing>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceClickhouse>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceNetsuite>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceDatadog>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFinnworlds>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSftpBulk>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceNewsdataIo>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceZohoCrm>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBreezometer>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceWikipediaPageviews>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleAds>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAppleSearchAds>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRedshift>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceReddit>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMongodbV2>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceStripe>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceSftp>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSnowflake>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGutendex>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceCoinApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRedshift>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleAds>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSnowflake>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceStripe>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMongodbV2>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePardot>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCircleci>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceOpenweather>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceIntercom>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleSearchConsole>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTheGuardianApi>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceNewsdata>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCoingeckoCoins>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceNasa>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceStrava>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftSharepoint>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceAzureBlobStorage>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftOnedrive>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftLists>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAmplitude>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceIntercom>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleSearchConsole>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceSigmaComputing>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFinancialModelling>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePardot>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTheGuardianApi>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSlack>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAmplitude>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFirebolt>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceStrava>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGithub>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePexelsApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFirebolt>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSlack>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftOnedrive>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAkeneo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFreeAgentConnector>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTwelveData>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFreshcaller>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFreshdesk>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFaker>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZohoInvoice>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFinancialModelling>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleDrive>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePlaid>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBasecamp>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTiktokMarketing>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceDynamodb>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceLinkedinAds>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceClockodo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceToggl>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBraintree>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGitlab>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFinnhub>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZohoInventory>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBambooHr>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCodefresh>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBabelforce>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceZohoDesk>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOutreach>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOutbrainAmplify>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceZohoBooks>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZohoBigin>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFile>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZohoAnalyticsMetadataApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceNytimes>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAlgolia>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceLinkedinAds>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceDynamodb>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceChargebee>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAppleSearchAds>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceAwsCloudtrail>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBambooHr>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBasecamp>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftSharepoint>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBraintree>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftDataverse>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSonarCloud>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGuru>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSentry>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftDataverse>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOutreach>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceStockdata>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCodefresh>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceClockodo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceKeka>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFinnhub>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTwelveData>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFreshdesk>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAlgolia>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOutbrainAmplify>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceNytimes>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFreshcaller>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSonarCloud>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceChameleon>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSharetribe>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTiktokMarketing>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFaker>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZohoInventory>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFreeAgentConnector>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZohoInvoice>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFauna>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceKlausApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceKlaviyo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceKlarna>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWoocommerce>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceLinkedinPages>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceLinnworks>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAlphaVantage>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceChargebee>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZohoBigin>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSentry>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSharetribe>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFile>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAkeneo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZohoAnalyticsMetadataApi>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceWordpress>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceLooker>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceJotform>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTwilio>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWoocommerce>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMyHours>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZoom>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceChargify>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCastorEdc>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceElasticemail>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMarketo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMention>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMetabase>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGorgias>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftEntraId>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleWebfonts>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePosthog>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleSheets>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMissive>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceExchangeRates>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTvmazeSchedule>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGooglePagespeedInsights>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceYandexMetrica>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTwitter>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZohoBilling>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTyntecSms>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceMux>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMyHours>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceYotpo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleForms>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAppfigures>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAppcues>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZendeskSupport>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleDrive>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePlausible>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceInstagram>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTvmazeSchedule>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSmartsheets>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMissive>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceNylas>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRevolutMerchant>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleCalendar>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceJotform>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZendeskSupport>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAppcues>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAppfigures>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCastorEdc>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceOnesignal>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZenloop>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZohoExpense>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSquare>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceExchangeRates>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftEntraId>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTrello>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMetabase>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGreythr>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGorgias>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceSurveymonkey>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMention>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceKlarna>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleWebfonts>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRevolutMerchant>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGcs>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceVitally>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZenloop>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMarketo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceKlausApi>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceUnleash>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZohoBilling>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGocardless>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZohoCampaign>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTwitter>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceTeamwork>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGmail>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZohoExpense>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceKlaviyo>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceTestrail>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleSheets>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGmail>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceYounium>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceYandexMetrica>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGocardless>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePicqer>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePinterest>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePingdom>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceQualaroo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePinterest>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceElasticemail>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceYotpo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceLooker>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceLinnworks>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGooglePagespeedInsights>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePipeliner>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTwilio>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePlausible>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGcs>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTrello>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZoom>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSquare>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePosthog>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceLinkedinPages>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTmdb>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZohoCampaign>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleForms>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceSenseforce>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePrestashop>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAgilecrm>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAirbyte>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAircall>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZendeskTalk>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZendeskSunshine>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZendeskChat>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleCalendar>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceClockify>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePiwik>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAuth0>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceYahooFinancePrice>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAzureTable>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceQuickbooks>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRailz>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBigquery>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWrike>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceBitly>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleClassroom>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePrestashop>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGong>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceUservoice>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRailz>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRecharge>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceBlogger>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceBox>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRecurly>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceUsCensus>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePaystack>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRecharge>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAzureTable>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleTasks>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRingcentral>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceBraze>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBunnyInc>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBuzzsprout>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCallrail>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCampaignMonitor>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCapsuleCrm>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWorkflowmax>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRecurly>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRocketChat>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRollbar>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCoinmarketcap>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAuth0>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFront>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAsana>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceOura>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOrbit>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWorkable>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceChargedesk>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWaiteraid>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceYahooFinancePrice>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceOpsgenie>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWebflow>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceClarifAi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWeatherstack>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceClockify>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOpenDataDc>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCoinmarketcap>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceConfluence>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceDixa>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceEmploymentHero>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceEzofficeinventory>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOkta>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFactorial>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceUservoice>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceUsCensus>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTypeform>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTrustpilot>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTrackPms>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFreshchat>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRollbar>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTimely>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFreshservice>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFront>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTaboola>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGong>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSurveySparrow>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleClassroom>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceStatsig>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleTasks>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMode>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSparkpost>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSmartwaiver>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWeatherstack>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceHarvest>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceHeight>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceHelpScout>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOpenDataDc>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceHibob>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTypeform>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceHighLevel>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceHubspot>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceHuggingFaceDatasets>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOkta>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFreshchat>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceSegment>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceIlluminaBasespace>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSmartsheets>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceClarifAi>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceSendowl>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSmaily>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSimplesat>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceKyve>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceLeverHiring>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceIlluminaBasespace>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceConfluence>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceServiceNow>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWebflow>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZendeskChat>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBunnyInc>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceNavan>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZendeskSunshine>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceChargedesk>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceShortcut>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceShortio>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSimplesat>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWorkable>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWorkday>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBuzzsprout>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMode>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWorkflowmax>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSmaily>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSmartwaiver>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTrustpilot>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFactorial>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSparkpost>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWrike>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceEzofficeinventory>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceStatsig>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTrackPms>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSurveySparrow>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMerge>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZendeskTalk>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAircall>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTaboola>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceEmploymentHero>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAirbyte>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceMailjetSms>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceShortcut>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceKyve>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceMailgun>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMailersend>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCallrail>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCapsuleCrm>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCampaignMonitor>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAgilecrm>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceLeverHiring>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceLob>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWaiteraid>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<Source7shifts>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceShippo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTimely>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceDixa>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBigquery>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceHeight>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceLokalise>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceActivecampaign>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMailjetMail>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMailosaur>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePrimetric>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceLightspeedRetail>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZonkaFeedback>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceLessAnnoyingCrm>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceProductboard>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCampayn>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceLeadfeeder>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceProductive>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAha>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceApifyDataset>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMailchimp>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMailjetMail>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMailosaur>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCalendly>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceMarketstack>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSendpulse>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceKissmetrics>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceYoutubeData>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCaptainData>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCart>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWufoo>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceKatana>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceApptivo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWorkramp>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceJustcall>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAsana>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAshby>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePypi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSmartreach>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftTeams>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCalCom>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMixmax>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceN8n>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceIterable>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceIp2whois>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWhenIWork>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceChartmogul>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBuildkite>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceXsolla>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePipedrive>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWufoo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBeamer>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceInstagram>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCin7>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceNocrm>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceInsightly>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceInflowinventory>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRdStationMarketing>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSendgrid>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePennylane>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWorkramp>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRecreation>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBreezyHr>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftTeams>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBrevo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBrex>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCirca>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceBugsnag>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMixmax>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSolarwindsServiceDesk>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceNotion>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceNutshell>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBrex>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOncehub>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceClazar>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceHoorayhr>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOnepagecrm>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOnfleet>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOpenaq>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceHellobaton>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceDremio>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBrevo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBreezyHr>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWasabiStatsApi>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOveit>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGridly>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBuildkite>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSpacexApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCalCom>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCalendly>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSplitIo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePandadoc>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSquarespace>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSalesloft>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePabblySubscriptionsBilling>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCampayn>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOveit>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceDrift>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSurvicate>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMailchimp>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceClickupApi>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePandadoc>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceVwo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePayfit>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePennylane>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceVismaEconomic>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePipedrive>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceVercel>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceVeeqo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBeamer>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePostmarkapp>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePrimetric>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceProductboard>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceProductive>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePypi>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCloseCom>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRdStationMarketing>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRecreation>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceRecruitee>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCoassemble>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceUppromote>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceRepairshopr>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWhenIWork>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTeamtailor>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceChartmogul>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCin7>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceThinkific>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCirca>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGitbook>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGetlago>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceClazar>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceClickupApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOpenaq>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWasabiStatsApi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceN8n>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCloseCom>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceFreshsales>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRetailexpressByMaropost>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRevenuecat>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceRootly>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCoassemble>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePostmarkapp>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceVwo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFullstory>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceConcord>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAshby>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceApptivo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFreshsales>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSageHr>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSalesloft>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceApifyDataset>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceYoutubeData>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFreightview>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceNocrm>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOnfleet>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSendgrid>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceConfigcat>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFlowlu>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFloat>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFlexport>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFlexmail>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFleetio>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceConcord>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTremendous>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceConfigcat>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTwilioTaskrouter>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceNotion>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSendpulse>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceConvex>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTwilioTaskrouter>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceShippo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAha>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceShipstation>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFillout>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceUppromote>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceNutshell>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZonkaFeedback>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSmartreach>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceFastbill>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTremendous>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSolarwindsServiceDesk>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSpacexApi>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSplitIo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSquarespace>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceCopper>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRevenuecat>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceVitally>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSurvicate>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceDatascope>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceVeeqo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceEventbrite>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceDbt>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTeamtailor>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceDelighted>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceEventbrite>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceThinkific>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceDeputy>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOncehub>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOnepagecrm>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceVercel>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceDremio>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceEasypost>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceEConomic>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceVismaEconomic>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceActivecampaign>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceDropboxSign>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSageHr>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCart>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<Source7shifts>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceDrift>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceLightspeedRetail>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceKissmetrics>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceDrip>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceEasypromos>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceDockerhub>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceEmailoctopus>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceEncharge>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceEventee>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceEventzilla>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOmnisend>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceVantage>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceCustomerIo>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceCountercyclical>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRkiCovid>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceUbidots>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceEverhour>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZapierSupportedStorage>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceConvertkit>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRetently>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceNorthpassLms>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFirehydrant>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFormbricks>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTodoist>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTinyemail>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCoda>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRocketlane>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCloudbeds>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRss>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceFulcrum>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGainsightPx>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTickettailor>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceZenefits>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGetgist>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceReplyIo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceWebScrapper>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTicketmaster>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceYoutubeAnalytics>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCoda>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGlassfrog>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOpinionStage>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceTempo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceRuddr>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCloudbeds>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGoldcast>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceReferralhero>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSafetyculture>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSysteme>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCareQualityCommission>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSalesflare>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceCanny>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceYouNeedABudgetYnab>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGoogleDirectory>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceStatuspage>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSpotlercrm>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMonday>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSapFieldglass>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePaperform>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePapersign>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGreenhouse>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceHardcodedRecords>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSavvycal>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMiro>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceHubplanner>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSecoda>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePendo>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceHumanitix>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePersistiq>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePersona>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceHuntr>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceIncidentIo>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceBigmailer>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceInstatus>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSendinblue>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceXkcd>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceIntruder>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceInvoiced>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceInvoiceninja>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceXkcd>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceJobnimbus>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePivotalTracker>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSmartengage>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceJustSift>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceK6Cloud>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceYouNeedABudgetYnab>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAppfollow>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceYoutubeAnalytics>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceKisi>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSimplecast>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZapierSupportedStorage>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCareQualityCommission>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTodoist>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceLaunchdarkly>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourcePlanhat>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceCanny>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceLemlist>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceZenefits>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceLuma>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMailerlite>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceMailtrap>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceAirtable>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceSimfin>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMiro>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMonday>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceWebScrapper>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceNorthpassLms>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOmnisend>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOpinionStage>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePaperform>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePapersign>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePendo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePersistiq>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePersona>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePivotalTracker>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourcePlanhat>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePokeapi>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceBigmailer>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceVantage>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourcePretix>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMailerlite>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceLuma>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceDrip>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceOpenfda>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceReferralhero>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceReplyIo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRetently>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRkiCovid>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRocketlane>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRss>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceRuddr>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceUbidots>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSafetyculture>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSalesflare>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAppfollow>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSapFieldglass>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSavvycal>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSecoda>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSendinblue>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSimfin>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSimplecast>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSmartengage>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSpotlercrm>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceStatuspage>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceAirtable>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceSysteme>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTempo>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTicketmaster>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTickettailor>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceTinyemail>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceDockerhub>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceWhiskyHunter>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceOpenfda>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceScryfall>() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConfluence.java b/src/main/java/com/airbyte/api/models/shared/SourceConfluence.java index 9917f35fc..a99dacde3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfluence.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfluence.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceConfluence { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvertkit.java b/src/main/java/com/airbyte/api/models/shared/SourceConvertkit.java index 34534cd1a..d10a0ca66 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConvertkit.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvertkit.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceConvertkit { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvex.java b/src/main/java/com/airbyte/api/models/shared/SourceConvex.java index df7c0e052..bec150128 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConvex.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvex.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceConvex { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java b/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java index bb90d3047..ab31f6f0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceConvexConvex { CONVEX("convex"); @@ -20,4 +21,13 @@ private SourceConvexConvex(String value) { public String value() { return value; } + + public static Optional<SourceConvexConvex> fromValue(String value) { + for (SourceConvexConvex o: SourceConvexConvex.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCopper.java b/src/main/java/com/airbyte/api/models/shared/SourceCopper.java index 1c6905e90..0a4961565 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCopper.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCopper.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCopper { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCountercyclical.java b/src/main/java/com/airbyte/api/models/shared/SourceCountercyclical.java index 0eff95f16..d0b61f8b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCountercyclical.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCountercyclical.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCountercyclical { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/SourceCreateRequest.java index 2a1f427d3..b4e5a6cca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCreateRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceCreateRequest { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java b/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java index 173c1c8d9..55ae30045 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceCustomerIo { @JsonProperty("app_api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java b/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java index c2d57287b..6c244a9de 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceDatadog { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDatascope.java b/src/main/java/com/airbyte/api/models/shared/SourceDatascope.java index 3c0b44b5a..d38ada395 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDatascope.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDatascope.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceDatascope { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDbt.java b/src/main/java/com/airbyte/api/models/shared/SourceDbt.java index 1332c4c41..68702d3ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDbt.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDbt.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceDbt { @JsonProperty("account_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDelighted.java b/src/main/java/com/airbyte/api/models/shared/SourceDelighted.java index 74cdd400a..8f30b4ac8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDelighted.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDelighted.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceDelighted { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDeputy.java b/src/main/java/com/airbyte/api/models/shared/SourceDeputy.java index 4b5b6ddd3..9da11511d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDeputy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDeputy.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceDeputy { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDixa.java b/src/main/java/com/airbyte/api/models/shared/SourceDixa.java index e95c81cad..434a84bd2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDixa.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDixa.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceDixa { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java b/src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java index 41315ea3b..3111835e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceDockerhub { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDremio.java b/src/main/java/com/airbyte/api/models/shared/SourceDremio.java index da14461c1..9bb8f6140 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDremio.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDremio.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceDremio { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDrift.java b/src/main/java/com/airbyte/api/models/shared/SourceDrift.java index 44b9e3847..1e874471b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDrift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDrift.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceDrift { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftAuthorizationMethod.java index 7edf0947e..5b7730971 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceDriftAuthorizationMethod._Deserializer.class) public class SourceDriftAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java index bd1f4dd1d..dca5ceefb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceDriftCredentials { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceDriftCredentials(String value) { public String value() { return value; } + + public static Optional<SourceDriftCredentials> fromValue(String value) { + for (SourceDriftCredentials o: SourceDriftCredentials.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java index cc4a82aa7..3f26a2ad3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceDriftDrift { DRIFT("drift"); @@ -20,4 +21,13 @@ private SourceDriftDrift(String value) { public String value() { return value; } + + public static Optional<SourceDriftDrift> fromValue(String value) { + for (SourceDriftDrift o: SourceDriftDrift.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftOAuth20.java index 6f6dfd956..a8fcb1331 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceDriftOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java index 7ecf59371..82036b914 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceDriftSchemasCredentials { ACCESS_TOKEN("access_token"); @@ -20,4 +21,13 @@ private SourceDriftSchemasCredentials(String value) { public String value() { return value; } + + public static Optional<SourceDriftSchemasCredentials> fromValue(String value) { + for (SourceDriftSchemasCredentials o: SourceDriftSchemasCredentials.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDrip.java b/src/main/java/com/airbyte/api/models/shared/SourceDrip.java index b4e1b5ce6..a5f56e7c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDrip.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDrip.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceDrip { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java b/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java index 265ee71bd..848c11545 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceDropboxSign { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodb.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodb.java index f32732c0f..7412a101e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodb.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; - public class SourceDynamodb { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java index e4efa29ad..03db0c274 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceDynamodbAuthType { USER("User"); @@ -20,4 +21,13 @@ private SourceDynamodbAuthType(String value) { public String value() { return value; } + + public static Optional<SourceDynamodbAuthType> fromValue(String value) { + for (SourceDynamodbAuthType o: SourceDynamodbAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbCredentials.java index e8371adbb..9e3ea5e9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceDynamodbCredentials - Credentials for the service */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java index b326e3038..8cb37e400 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceDynamodbDynamodb { DYNAMODB("dynamodb"); @@ -20,4 +21,13 @@ private SourceDynamodbDynamodb(String value) { public String value() { return value; } + + public static Optional<SourceDynamodbDynamodb> fromValue(String value) { + for (SourceDynamodbDynamodb o: SourceDynamodbDynamodb.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java index 562e18971..b41a2a521 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceDynamodbDynamodbRegion - The region of the Dynamodb database */ @@ -56,4 +57,13 @@ private SourceDynamodbDynamodbRegion(String value) { public String value() { return value; } + + public static Optional<SourceDynamodbDynamodbRegion> fromValue(String value) { + for (SourceDynamodbDynamodbRegion o: SourceDynamodbDynamodbRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java index de7e6dfb3..369233892 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceDynamodbSchemasAuthType { ROLE("Role"); @@ -20,4 +21,13 @@ private SourceDynamodbSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceDynamodbSchemasAuthType> fromValue(String value) { + for (SourceDynamodbSchemasAuthType o: SourceDynamodbSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEConomic.java b/src/main/java/com/airbyte/api/models/shared/SourceEConomic.java index cfa93a305..4e370b4b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEConomic.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEConomic.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceEConomic { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEasypost.java b/src/main/java/com/airbyte/api/models/shared/SourceEasypost.java index 64082eba8..f3ef2337d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEasypost.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEasypost.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceEasypost { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEasypromos.java b/src/main/java/com/airbyte/api/models/shared/SourceEasypromos.java index 96ddc8276..09f161acb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEasypromos.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEasypromos.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceEasypromos { @JsonProperty("bearer_token") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticemail.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticemail.java index 15c4af403..7efa09e99 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceElasticemail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticemail.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceElasticemail { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java b/src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java index cbe54b3d9..b21a67948 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceEmailoctopus { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEmploymentHero.java b/src/main/java/com/airbyte/api/models/shared/SourceEmploymentHero.java index d38d7f402..b5f5055b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEmploymentHero.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEmploymentHero.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceEmploymentHero { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEncharge.java b/src/main/java/com/airbyte/api/models/shared/SourceEncharge.java index f14cd0e82..a646df942 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEncharge.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEncharge.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceEncharge { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java b/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java index 3b8f7b221..69c7a2f8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceEventbrite { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEventee.java b/src/main/java/com/airbyte/api/models/shared/SourceEventee.java index dc0e93b0f..c45c12823 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEventee.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEventee.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceEventee { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEventzilla.java b/src/main/java/com/airbyte/api/models/shared/SourceEventzilla.java index 9b96b8b41..2d550bf80 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEventzilla.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEventzilla.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceEventzilla { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEverhour.java b/src/main/java/com/airbyte/api/models/shared/SourceEverhour.java new file mode 100644 index 000000000..248f3b5f3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceEverhour.java @@ -0,0 +1,119 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceEverhour { + + /** + * Everhour API Key. See the <a href="https://everhour.docs.apiary.io/#introduction/authentication">docs</a> for information on how to generate this key. + */ + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Everhour sourceType; + + @JsonCreator + public SourceEverhour( + @JsonProperty("api_key") String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * Everhour API Key. See the <a href="https://everhour.docs.apiary.io/#introduction/authentication">docs</a> for information on how to generate this key. + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Everhour sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Everhour API Key. See the <a href="https://everhour.docs.apiary.io/#introduction/authentication">docs</a> for information on how to generate this key. + */ + public SourceEverhour 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; + } + SourceEverhour other = (SourceEverhour) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceEverhour.class, + "apiKey", apiKey, + "sourceType", sourceType); + } + + public final static class Builder { + + private String apiKey; + + private Builder() { + // force use of static builder() method + } + + /** + * Everhour API Key. See the <a href="https://everhour.docs.apiary.io/#introduction/authentication">docs</a> for information on how to generate this key. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceEverhour build() { + return new SourceEverhour( + apiKey); + } + + private static final LazySingletonValue<Everhour> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"everhour\"", + new TypeReference<Everhour>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java b/src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java index bbac342d3..fd9e05f67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceExchangeRates { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java b/src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java index 6512527cc..35bd45bdf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceEzofficeinventory { /** 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 fdef11212..8b3dcfa8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,7 +22,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFacebookMarketing { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java index bb82e9dc4..910155806 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceFacebookMarketingActionReportTime - Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. */ @@ -25,4 +26,13 @@ private SourceFacebookMarketingActionReportTime(String value) { public String value() { return value; } + + public static Optional<SourceFacebookMarketingActionReportTime> fromValue(String value) { + for (SourceFacebookMarketingActionReportTime o: SourceFacebookMarketingActionReportTime.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java index 81a165e58..84f9be245 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFacebookMarketingAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceFacebookMarketingAuthType(String value) { public String value() { return value; } + + public static Optional<SourceFacebookMarketingAuthType> fromValue(String value) { + for (SourceFacebookMarketingAuthType o: SourceFacebookMarketingAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java index 62e15ee61..5860cae89 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceFacebookMarketingAuthentication - Credentials for connecting to the Facebook Marketing API */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java index 889504558..42eade49e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFacebookMarketingFacebookMarketing { FACEBOOK_MARKETING("facebook-marketing"); @@ -20,4 +21,13 @@ private SourceFacebookMarketingFacebookMarketing(String value) { public String value() { return value; } + + public static Optional<SourceFacebookMarketingFacebookMarketing> fromValue(String value) { + for (SourceFacebookMarketingFacebookMarketing o: SourceFacebookMarketingFacebookMarketing.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java index 99edcf5d5..f24c04b49 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFacebookMarketingSchemasAuthType { SERVICE("Service"); @@ -20,4 +21,13 @@ private SourceFacebookMarketingSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceFacebookMarketingSchemasAuthType> fromValue(String value) { + for (SourceFacebookMarketingSchemasAuthType o: SourceFacebookMarketingSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java index d4137cde9..633bbd7f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceFacebookMarketingValidEnums - An enumeration. */ @@ -28,6 +29,7 @@ public enum SourceFacebookMarketingValidEnums { AUCTION_BID("auction_bid"), AUCTION_COMPETITIVENESS("auction_competitiveness"), AUCTION_MAX_COMPETITOR_BID("auction_max_competitor_bid"), + AVERAGE_PURCHASES_CONVERSION_VALUE("average_purchases_conversion_value"), BUYING_TYPE("buying_type"), CAMPAIGN_ID("campaign_id"), CAMPAIGN_NAME("campaign_name"), @@ -95,9 +97,17 @@ public enum SourceFacebookMarketingValidEnums { LOCATION("location"), MARKETING_MESSAGES_COST_PER_DELIVERED("marketing_messages_cost_per_delivered"), MARKETING_MESSAGES_COST_PER_LINK_BTN_CLICK("marketing_messages_cost_per_link_btn_click"), + MARKETING_MESSAGES_DELIVERY_RATE("marketing_messages_delivery_rate"), + MARKETING_MESSAGES_LINK_BTN_CLICK_RATE("marketing_messages_link_btn_click_rate"), + MARKETING_MESSAGES_MEDIA_VIEW_RATE("marketing_messages_media_view_rate"), + MARKETING_MESSAGES_PHONE_CALL_BTN_CLICK_RATE("marketing_messages_phone_call_btn_click_rate"), + MARKETING_MESSAGES_QUICK_REPLY_BTN_CLICK_RATE("marketing_messages_quick_reply_btn_click_rate"), + MARKETING_MESSAGES_READ_RATE("marketing_messages_read_rate"), MARKETING_MESSAGES_SPEND("marketing_messages_spend"), + MARKETING_MESSAGES_WEBSITE_PURCHASE_VALUES("marketing_messages_website_purchase_values"), MOBILE_APP_PURCHASE_ROAS("mobile_app_purchase_roas"), OBJECTIVE("objective"), + ONSITE_CONVERSION_MESSAGING_DETECTED_PURCHASE_DEDUPED("onsite_conversion_messaging_detected_purchase_deduped"), OPTIMIZATION_GOAL("optimization_goal"), OUTBOUND_CLICKS("outbound_clicks"), OUTBOUND_CLICKS_CTR("outbound_clicks_ctr"), @@ -106,6 +116,7 @@ public enum SourceFacebookMarketingValidEnums { QUALIFYING_QUESTION_QUALIFY_ANSWER_RATE("qualifying_question_qualify_answer_rate"), QUALITY_RANKING("quality_ranking"), REACH("reach"), + SHOPS_ASSISTED_PURCHASES("shops_assisted_purchases"), SOCIAL_SPEND("social_spend"), SPEND("spend"), TOTAL_POSTBACKS("total_postbacks"), @@ -153,4 +164,13 @@ private SourceFacebookMarketingValidEnums(String value) { public String value() { return value; } + + public static Optional<SourceFacebookMarketingValidEnums> fromValue(String value) { + for (SourceFacebookMarketingValidEnums o: SourceFacebookMarketingValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFactorial.java b/src/main/java/com/airbyte/api/models/shared/SourceFactorial.java index b26981d8b..f76604f43 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFactorial.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFactorial.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFactorial { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFaker.java b/src/main/java/com/airbyte/api/models/shared/SourceFaker.java index 335497495..a9952c40b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFaker.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFaker.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFaker { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFastbill.java b/src/main/java/com/airbyte/api/models/shared/SourceFastbill.java new file mode 100644 index 000000000..b2bc12916 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceFastbill.java @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceFastbill { + + /** + * Fastbill API key + */ + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Fastbill sourceType; + + /** + * Username for Fastbill account + */ + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceFastbill( + @JsonProperty("api_key") String apiKey, + @JsonProperty("username") String username) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(username, "username"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.username = username; + } + + /** + * Fastbill API key + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Fastbill sourceType() { + return sourceType; + } + + /** + * Username for Fastbill account + */ + @JsonIgnore + public String username() { + return username; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Fastbill API key + */ + public SourceFastbill withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Username for Fastbill account + */ + public SourceFastbill 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; + } + SourceFastbill other = (SourceFastbill) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + sourceType, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceFastbill.class, + "apiKey", apiKey, + "sourceType", sourceType, + "username", username); + } + + public final static class Builder { + + private String apiKey; + + private String username; + + private Builder() { + // force use of static builder() method + } + + /** + * Fastbill API key + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Username for Fastbill account + */ + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceFastbill build() { + return new SourceFastbill( + apiKey, + username); + } + + private static final LazySingletonValue<Fastbill> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"fastbill\"", + new TypeReference<Fastbill>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFauna.java b/src/main/java/com/airbyte/api/models/shared/SourceFauna.java index d382940de..1da7e8eca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFauna.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFauna.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFauna { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java b/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java index 36ec284a7..91a2618ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFaunaDeletionMode { - IGNORE("ignore"); + DELETED_FIELD("deleted_field"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceFaunaDeletionMode(String value) { public String value() { return value; } + + public static Optional<SourceFaunaDeletionMode> fromValue(String value) { + for (SourceFaunaDeletionMode o: SourceFaunaDeletionMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java b/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java index 507ece8a4..b6909e483 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFaunaSchemasDeletionMode { - DELETED_FIELD("deleted_field"); + IGNORE("ignore"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceFaunaSchemasDeletionMode(String value) { public String value() { return value; } + + public static Optional<SourceFaunaSchemasDeletionMode> fromValue(String value) { + for (SourceFaunaSchemasDeletionMode o: SourceFaunaSchemasDeletionMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFile.java b/src/main/java/com/airbyte/api/models/shared/SourceFile.java index d4bc9b6ec..18cfd2f00 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFile.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFile.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFile { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java index 2507c58bc..3714f4312 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceFileFileFormat - The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). */ @@ -31,4 +32,13 @@ private SourceFileFileFormat(String value) { public String value() { return value; } + + public static Optional<SourceFileFileFormat> fromValue(String value) { + for (SourceFileFileFormat o: SourceFileFileFormat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java index 934442023..40d149bf2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFileSchemasProviderStorage { AZ_BLOB("AzBlob"); @@ -20,4 +21,13 @@ private SourceFileSchemasProviderStorage(String value) { public String value() { return value; } + + public static Optional<SourceFileSchemasProviderStorage> fromValue(String value) { + for (SourceFileSchemasProviderStorage o: SourceFileSchemasProviderStorage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java index 43c3734cb..877f17547 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFileSchemasProviderStorageProvider6Storage { SCP("SCP"); @@ -20,4 +21,13 @@ private SourceFileSchemasProviderStorageProvider6Storage(String value) { public String value() { return value; } + + public static Optional<SourceFileSchemasProviderStorageProvider6Storage> fromValue(String value) { + for (SourceFileSchemasProviderStorageProvider6Storage o: SourceFileSchemasProviderStorageProvider6Storage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java index 629a10c35..dd4ff4db0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFileSchemasProviderStorageProvider7Storage { SFTP("SFTP"); @@ -20,4 +21,13 @@ private SourceFileSchemasProviderStorageProvider7Storage(String value) { public String value() { return value; } + + public static Optional<SourceFileSchemasProviderStorageProvider7Storage> fromValue(String value) { + for (SourceFileSchemasProviderStorageProvider7Storage o: SourceFileSchemasProviderStorageProvider7Storage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java index 7d6530edb..5212642e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceFileSchemasProviderStorageProvider8Storage - WARNING: Note that the local storage URL available for reading must start with the local mount "/local/" at the moment until we implement more advanced docker mounting options. */ @@ -23,4 +24,13 @@ private SourceFileSchemasProviderStorageProvider8Storage(String value) { public String value() { return value; } + + public static Optional<SourceFileSchemasProviderStorageProvider8Storage> fromValue(String value) { + for (SourceFileSchemasProviderStorageProvider8Storage o: SourceFileSchemasProviderStorageProvider8Storage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java index f73d553e1..6f0f639a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFileSchemasProviderStorageProviderStorage { SSH("SSH"); @@ -20,4 +21,13 @@ private SourceFileSchemasProviderStorageProviderStorage(String value) { public String value() { return value; } + + public static Optional<SourceFileSchemasProviderStorageProviderStorage> fromValue(String value) { + for (SourceFileSchemasProviderStorageProviderStorage o: SourceFileSchemasProviderStorageProviderStorage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java index 9374d0ce1..086d0b5ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFileSchemasStorage { S3("S3"); @@ -20,4 +21,13 @@ private SourceFileSchemasStorage(String value) { public String value() { return value; } + + public static Optional<SourceFileSchemasStorage> fromValue(String value) { + for (SourceFileSchemasStorage o: SourceFileSchemasStorage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java index ea7222339..f9c70eaf6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFileStorage { GCS("GCS"); @@ -20,4 +21,13 @@ private SourceFileStorage(String value) { public String value() { return value; } + + public static Optional<SourceFileStorage> fromValue(String value) { + for (SourceFileStorage o: SourceFileStorage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFillout.java b/src/main/java/com/airbyte/api/models/shared/SourceFillout.java index e1bb3aa0f..224c3d869 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFillout.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFillout.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceFillout { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFinage.java b/src/main/java/com/airbyte/api/models/shared/SourceFinage.java index dc088364b..ef40e4589 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFinage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFinage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFinage { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFinancialModelling.java b/src/main/java/com/airbyte/api/models/shared/SourceFinancialModelling.java index 87ac6c2c1..bb38d3357 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFinancialModelling.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFinancialModelling.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFinancialModelling { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFinnhub.java b/src/main/java/com/airbyte/api/models/shared/SourceFinnhub.java index fcffd7935..578158199 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFinnhub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFinnhub.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFinnhub { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFinnworlds.java b/src/main/java/com/airbyte/api/models/shared/SourceFinnworlds.java index 6a9eeba37..8f8395039 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFinnworlds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFinnworlds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFinnworlds { /** 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 a90672713..2c6dd92be 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFirebolt { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java b/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java index e30e6f420..5f8a19660 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceFireboltFirebolt { FIREBOLT("firebolt"); @@ -20,4 +21,13 @@ private SourceFireboltFirebolt(String value) { public String value() { return value; } + + public static Optional<SourceFireboltFirebolt> fromValue(String value) { + for (SourceFireboltFirebolt o: SourceFireboltFirebolt.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFirehydrant.java b/src/main/java/com/airbyte/api/models/shared/SourceFirehydrant.java index 35e58304d..2cd03d3ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFirehydrant.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFirehydrant.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceFirehydrant { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java b/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java index 55a9161a1..871914e45 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceFleetio { @JsonProperty("account_token") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFlexmail.java b/src/main/java/com/airbyte/api/models/shared/SourceFlexmail.java index 94f0fba1f..1117032a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFlexmail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFlexmail.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceFlexmail { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFlexport.java b/src/main/java/com/airbyte/api/models/shared/SourceFlexport.java index 67fbe6a88..804f06278 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFlexport.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFlexport.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceFlexport { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFloat.java b/src/main/java/com/airbyte/api/models/shared/SourceFloat.java index aefc491e2..20a5b8e79 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFloat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFloat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceFloat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFlowlu.java b/src/main/java/com/airbyte/api/models/shared/SourceFlowlu.java index a77722000..301efc6d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFlowlu.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFlowlu.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceFlowlu { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFormbricks.java b/src/main/java/com/airbyte/api/models/shared/SourceFormbricks.java index 7a4b300f8..2a64a7519 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFormbricks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFormbricks.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceFormbricks { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreeAgentConnector.java b/src/main/java/com/airbyte/api/models/shared/SourceFreeAgentConnector.java index 5e7128120..20d6775ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreeAgentConnector.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreeAgentConnector.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFreeAgentConnector { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreightview.java b/src/main/java/com/airbyte/api/models/shared/SourceFreightview.java index b72bba875..1b647a40a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreightview.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreightview.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceFreightview { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshbooks.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshbooks.java index 913ddf370..fc71727ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshbooks.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFreshbooks { @JsonProperty("account_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshcaller.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshcaller.java index 16a4962d7..e0b03bb50 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshcaller.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshcaller.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFreshcaller { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java index 737d60887..a4b4639d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceFreshchat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshdesk.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshdesk.java index bbf582bf4..c66d91491 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshdesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshdesk.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFreshdesk { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshsales.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshsales.java index 66b7e6eed..559cc996f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshsales.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshsales.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceFreshsales { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshservice.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshservice.java index 2bfa55ac3..a5bf627eb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshservice.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshservice.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceFreshservice { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFront.java b/src/main/java/com/airbyte/api/models/shared/SourceFront.java index 1f2541deb..67970f4bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFront.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFront.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceFront { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFulcrum.java b/src/main/java/com/airbyte/api/models/shared/SourceFulcrum.java index 61a2f60b5..ce7100356 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFulcrum.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFulcrum.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceFulcrum { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFullstory.java b/src/main/java/com/airbyte/api/models/shared/SourceFullstory.java new file mode 100644 index 000000000..22a39900f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceFullstory.java @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceFullstory { + + /** + * API Key for the fullstory.com API. + */ + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Fullstory sourceType; + + /** + * User ID for the fullstory.com API. + */ + @JsonProperty("uid") + private String uid; + + @JsonCreator + public SourceFullstory( + @JsonProperty("api_key") String apiKey, + @JsonProperty("uid") String uid) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(uid, "uid"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.uid = uid; + } + + /** + * API Key for the fullstory.com API. + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Fullstory sourceType() { + return sourceType; + } + + /** + * User ID for the fullstory.com API. + */ + @JsonIgnore + public String uid() { + return uid; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * API Key for the fullstory.com API. + */ + public SourceFullstory withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * User ID for the fullstory.com API. + */ + public SourceFullstory withUid(String uid) { + Utils.checkNotNull(uid, "uid"); + this.uid = uid; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceFullstory other = (SourceFullstory) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.uid, other.uid); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + sourceType, + uid); + } + + @Override + public String toString() { + return Utils.toString(SourceFullstory.class, + "apiKey", apiKey, + "sourceType", sourceType, + "uid", uid); + } + + public final static class Builder { + + private String apiKey; + + private String uid; + + private Builder() { + // force use of static builder() method + } + + /** + * API Key for the fullstory.com API. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * User ID for the fullstory.com API. + */ + public Builder uid(String uid) { + Utils.checkNotNull(uid, "uid"); + this.uid = uid; + return this; + } + + public SourceFullstory build() { + return new SourceFullstory( + apiKey, + uid); + } + + private static final LazySingletonValue<Fullstory> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"fullstory\"", + new TypeReference<Fullstory>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java b/src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java index e7bb930e0..a7988369c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGainsightPx { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcs.java b/src/main/java/com/airbyte/api/models/shared/SourceGcs.java index 7824c9905..9e3d55286 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcs.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * SourceGcs - NOTE: When this Spec is changed, legacy_config_transformer.py must also be * modified to uptake the changes because it is responsible for converting diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java index 7798d1d3c..66ade6759 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceGcsAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGcsAuthType> fromValue(String value) { + for (SourceGcsAuthType o: SourceGcsAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthentication.java index 9476d3276..ce80b2e71 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGcsAuthentication - Credentials for connecting to the Google Cloud Storage API */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAutogenerated.java index 448d35615..d20f0bff2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAutogenerated.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGcsAutogenerated { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java index 15d199b00..c1987bcb0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGcsAvroFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java index 256c0d059..e350e1673 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGcsCSVFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVHeaderDefinition.java index 2b6a63ba7..3e83f3e6a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVHeaderDefinition.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGcsCSVHeaderDefinition - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java index 9b0a4892c..1a0aea018 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGcsFileBasedStreamConfig { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java index 2ffd61253..34ba30168 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsFiletype { AVRO("avro"); @@ -20,4 +21,13 @@ private SourceGcsFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGcsFiletype> fromValue(String value) { + for (SourceGcsFiletype o: SourceGcsFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java index cfc2734ae..699ee4172 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGcsFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFromCSV.java index b92e08c37..a9a270f2a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFromCSV.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGcsFromCSV { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java index 1cbc0585d..bcdf685fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsGcs { GCS("gcs"); @@ -20,4 +21,13 @@ private SourceGcsGcs(String value) { public String value() { return value; } + + public static Optional<SourceGcsGcs> fromValue(String value) { + for (SourceGcsGcs o: SourceGcsGcs.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java index 2891a71f3..96ca19a24 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsHeaderDefinitionType { FROM_CSV("From CSV"); @@ -20,4 +21,13 @@ private SourceGcsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceGcsHeaderDefinitionType> fromValue(String value) { + for (SourceGcsHeaderDefinitionType o: SourceGcsHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java index b85787fc8..3fa36d3e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGcsJsonlFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java index fee86c5ef..8a242d1fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceGcsLocal - Process files locally, supporting `fast` and `ocr` modes. This is the default option. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java index 7c78b2ff4..201efe325 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsMode { LOCAL("local"); @@ -20,4 +21,13 @@ private SourceGcsMode(String value) { public String value() { return value; } + + public static Optional<SourceGcsMode> fromValue(String value) { + for (SourceGcsMode o: SourceGcsMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java index d990c0779..749062253 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGcsParquetFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java index 0bdd0e99f..b39d38f23 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGcsParsingStrategy - The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @@ -26,4 +27,13 @@ private SourceGcsParsingStrategy(String value) { public String value() { return value; } + + public static Optional<SourceGcsParsingStrategy> fromValue(String value) { + for (SourceGcsParsingStrategy o: SourceGcsParsingStrategy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java index 1eca6ee5b..acfb70631 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGcsProcessing - Processing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java index 8670767e8..ead9bb8a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsSchemasAuthType { SERVICE("Service"); @@ -20,4 +21,13 @@ private SourceGcsSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGcsSchemasAuthType> fromValue(String value) { + for (SourceGcsSchemasAuthType o: SourceGcsSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java index 78d5bd1d7..df1d06d6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsSchemasFiletype { CSV("csv"); @@ -20,4 +21,13 @@ private SourceGcsSchemasFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGcsSchemasFiletype> fromValue(String value) { + for (SourceGcsSchemasFiletype o: SourceGcsSchemasFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java index a90dc05a0..e04607769 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsSchemasHeaderDefinitionType { AUTOGENERATED("Autogenerated"); @@ -20,4 +21,13 @@ private SourceGcsSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceGcsSchemasHeaderDefinitionType> fromValue(String value) { + for (SourceGcsSchemasHeaderDefinitionType o: SourceGcsSchemasHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java index c37721bc5..dd251fc9d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsSchemasMode { API("api"); @@ -20,4 +21,13 @@ private SourceGcsSchemasMode(String value) { public String value() { return value; } + + public static Optional<SourceGcsSchemasMode> fromValue(String value) { + for (SourceGcsSchemasMode o: SourceGcsSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java index 5329948c5..f9f22136d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsSchemasStreamsFiletype { JSONL("jsonl"); @@ -20,4 +21,13 @@ private SourceGcsSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGcsSchemasStreamsFiletype> fromValue(String value) { + for (SourceGcsSchemasStreamsFiletype o: SourceGcsSchemasStreamsFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java index b9f68e77a..f260850e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsSchemasStreamsFormatFiletype { PARQUET("parquet"); @@ -20,4 +21,13 @@ private SourceGcsSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGcsSchemasStreamsFormatFiletype> fromValue(String value) { + for (SourceGcsSchemasStreamsFormatFiletype o: SourceGcsSchemasStreamsFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java index b90a69cfb..6f26922db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsSchemasStreamsFormatFormat6Filetype { EXCEL("excel"); @@ -20,4 +21,13 @@ private SourceGcsSchemasStreamsFormatFormat6Filetype(String value) { public String value() { return value; } + + public static Optional<SourceGcsSchemasStreamsFormatFormat6Filetype> fromValue(String value) { + for (SourceGcsSchemasStreamsFormatFormat6Filetype o: SourceGcsSchemasStreamsFormatFormat6Filetype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java index ee6a08555..7e4fe0532 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsSchemasStreamsFormatFormatFiletype { UNSTRUCTURED("unstructured"); @@ -20,4 +21,13 @@ private SourceGcsSchemasStreamsFormatFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGcsSchemasStreamsFormatFormatFiletype> fromValue(String value) { + for (SourceGcsSchemasStreamsFormatFormatFiletype o: SourceGcsSchemasStreamsFormatFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java index 71b3cbf3d..48a831778 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGcsSchemasStreamsHeaderDefinitionType { USER_PROVIDED("User Provided"); @@ -20,4 +21,13 @@ private SourceGcsSchemasStreamsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceGcsSchemasStreamsHeaderDefinitionType> fromValue(String value) { + for (SourceGcsSchemasStreamsHeaderDefinitionType o: SourceGcsSchemasStreamsHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsUserProvided.java index ad50beb52..d3b402488 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsUserProvided.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGcsUserProvided { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java index 69b044292..8f0301058 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGcsValidationPolicy - The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. */ @@ -25,4 +26,13 @@ private SourceGcsValidationPolicy(String value) { public String value() { return value; } + + public static Optional<SourceGcsValidationPolicy> fromValue(String value) { + for (SourceGcsValidationPolicy o: SourceGcsValidationPolicy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGetgist.java b/src/main/java/com/airbyte/api/models/shared/SourceGetgist.java index 7e663275d..29341dd58 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGetgist.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGetgist.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGetgist { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGetlago.java b/src/main/java/com/airbyte/api/models/shared/SourceGetlago.java index c8751d32c..720ffe691 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGetlago.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGetlago.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGetlago { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitbook.java b/src/main/java/com/airbyte/api/models/shared/SourceGitbook.java index dcbbaf680..c7aa124cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitbook.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitbook.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGitbook { /** 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 6a9be63ed..b5cabc9f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithub.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGithub { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithubAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubAuthentication.java index bbb439a1d..fbfb395f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGithubAuthentication - Choose how to authenticate to GitHub */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java index f5e9afb4c..f01f0b651 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGithubGithub { GITHUB("github"); @@ -20,4 +21,13 @@ private SourceGithubGithub(String value) { public String value() { return value; } + + public static Optional<SourceGithubGithub> fromValue(String value) { + for (SourceGithubGithub o: SourceGithubGithub.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java index beab5d013..12874bedf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGithubOptionTitle { PAT_CREDENTIALS("PAT Credentials"); @@ -20,4 +21,13 @@ private SourceGithubOptionTitle(String value) { public String value() { return value; } + + public static Optional<SourceGithubOptionTitle> fromValue(String value) { + for (SourceGithubOptionTitle o: SourceGithubOptionTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithubPersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubPersonalAccessToken.java index d7e1629e1..eaaa8c799 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubPersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubPersonalAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGithubPersonalAccessToken { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlab.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlab.java index f87c021cb..ba8b1e48b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlab.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlab.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGitlab { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java index 0cbba6eea..5a1300dcf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGitlabAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceGitlabAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGitlabAuthType> fromValue(String value) { + for (SourceGitlabAuthType o: SourceGitlabAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthorizationMethod.java index 936d1af8c..8bf733f67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGitlabAuthorizationMethod._Deserializer.class) public class SourceGitlabAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java index 82fa5b868..22c601bb5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGitlabGitlab { GITLAB("gitlab"); @@ -20,4 +21,13 @@ private SourceGitlabGitlab(String value) { public String value() { return value; } + + public static Optional<SourceGitlabGitlab> fromValue(String value) { + for (SourceGitlabGitlab o: SourceGitlabGitlab.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabOAuth20.java index f5d460c99..4c64bb9dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGitlabOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java index 55d29eb7c..3bce3858b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGitlabSchemasAuthType { ACCESS_TOKEN("access_token"); @@ -20,4 +21,13 @@ private SourceGitlabSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGitlabSchemasAuthType> fromValue(String value) { + for (SourceGitlabSchemasAuthType o: SourceGitlabSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGlassfrog.java b/src/main/java/com/airbyte/api/models/shared/SourceGlassfrog.java index 49b76e859..e9adaaabe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGlassfrog.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGlassfrog.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGlassfrog { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGmail.java b/src/main/java/com/airbyte/api/models/shared/SourceGmail.java index 4f8f38c7b..8cbeaf930 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGmail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGmail.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGmail { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGnews.java b/src/main/java/com/airbyte/api/models/shared/SourceGnews.java index 5d2c8a666..c43cd4872 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnews.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnews.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGnews { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java b/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java index faf676fb8..bbe92e016 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGnewsCountry - This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. */ @@ -52,4 +53,13 @@ private SourceGnewsCountry(String value) { public String value() { return value; } + + public static Optional<SourceGnewsCountry> fromValue(String value) { + for (SourceGnewsCountry o: SourceGnewsCountry.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java b/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java index a82a7b07c..6ea2f4cfb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGnewsLanguage { AR("ar"), ZH("zh"), @@ -41,4 +42,13 @@ private SourceGnewsLanguage(String value) { public String value() { return value; } + + public static Optional<SourceGnewsLanguage> fromValue(String value) { + for (SourceGnewsLanguage o: SourceGnewsLanguage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java b/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java index 9b5df3208..1214a361d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGnewsSortBy - This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible: * - publishedAt = sort by publication date, the articles with the most recent @@ -28,4 +29,13 @@ private SourceGnewsSortBy(String value) { public String value() { return value; } + + public static Optional<SourceGnewsSortBy> fromValue(String value) { + for (SourceGnewsSortBy o: SourceGnewsSortBy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGocardless.java b/src/main/java/com/airbyte/api/models/shared/SourceGocardless.java index 5c9baaa6d..dafba550a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGocardless.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGocardless.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGocardless { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java b/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java index 3118f2b66..7236b0b7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoldcast { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGong.java b/src/main/java/com/airbyte/api/models/shared/SourceGong.java index f9e6bd2d4..e973f14b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGong.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGong.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGong { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAds.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAds.java index 57076d8c6..787d2138c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAds { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java index 187f43c0a..706b1745e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAdsGoogleAds { GOOGLE_ADS("google-ads"); @@ -20,4 +21,13 @@ private SourceGoogleAdsGoogleAds(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAdsGoogleAds> fromValue(String value) { + for (SourceGoogleAdsGoogleAds o: SourceGoogleAdsGoogleAds.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java index 21b669a06..45cfcf135 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,7 +22,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAndGroup.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAndGroup.java index 6afdd3c62..021aac8bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAndGroup.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAndGroup.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.List; import java.util.Objects; - /** * SourceGoogleAnalyticsDataApiAndGroup - The FilterExpressions in andGroup have an AND relationship. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java index c9e2da88d..d00e5e2bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiAuthType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiAuthType o: SourceGoogleAnalyticsDataApiAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth.java index a1bf76e99..b9371d9ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiBetweenFilter.java index 50b54fa52..2992344c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiBetweenFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiBetweenFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java index a738f635a..dc39416f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGoogleAnalyticsDataApiCredentials - Credentials for the service */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.java index 761d75bbe..945d737e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiCustomReportConfig { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDisabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDisabled.java index f25cc8d2d..63a2afcd8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDisabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDisabled.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiDisabled { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDoubleValue.java index 08b405755..742f538d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java index 832a6b2b8..0f6d1b368 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiEnabled { FALSE("false"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiEnabled(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiEnabled> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiEnabled o: SourceGoogleAnalyticsDataApiEnabled.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiExpression.java index 63525ebb4..28bcd1a64 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiExpression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiExpression { @JsonProperty("field_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilter.java index f80a4d126..7f9deb068 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceGoogleAnalyticsDataApiFilter - A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java index 88bc6dd6a..cff3f438c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiFilterName { IN_LIST_FILTER("inListFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiFilterName(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiFilterName o: SourceGoogleAnalyticsDataApiFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java index cf3e7cd6c..b785cb3e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiFilterType { OR_GROUP("orGroup"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiFilterType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiFilterType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiFilterType o: SourceGoogleAnalyticsDataApiFilterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFromValue.java index d8c58a60c..9fdc5f2d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFromValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiFromValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java index 70848fbe7..110215f57 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi { GOOGLE_ANALYTICS_DATA_API("google-analytics-data-api"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi o: SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java index 99e08ea58..57439bff0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGoogleAnalyticsDataApiGranularity - The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report. */ @@ -26,4 +27,13 @@ private SourceGoogleAnalyticsDataApiGranularity(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiGranularity> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiGranularity o: SourceGoogleAnalyticsDataApiGranularity.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInListFilter.java index 38c6cfe97..46cb9e796 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInListFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiInListFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInt64Value.java index f3adf03a3..e0763fded 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNotExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNotExpression.java index 6ed2099bc..bdfdbb075 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNotExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNotExpression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceGoogleAnalyticsDataApiNotExpression - The FilterExpression is NOT of notExpression. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNumericFilter.java index 3ba9f7d88..14a638392 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNumericFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.List; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiNumericFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiOrGroup.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiOrGroup.java index a51492492..a30a37437 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiOrGroup.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiOrGroup.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.List; import java.util.Objects; - /** * SourceGoogleAnalyticsDataApiOrGroup - The FilterExpressions in orGroup have an OR relationship. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java index 1b5aa44fe..f84f0f954 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasAuthType { SERVICE("Service"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasAuthType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasAuthType o: SourceGoogleAnalyticsDataApiSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasBetweenFilter.java index afd32f0c2..526acbe97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasBetweenFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasBetweenFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter.java index 399b41475..f4063ac11 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter.java index 130837b00..53e475120 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue.java index 7f62479ac..028089ecb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue.java index 7b76fe601..87547841f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue.java index a7e0347e3..006091219 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java index 537e767f0..c206d38dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java index aff0d862b..541a5656e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java index c148f64f7..b4700df08 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName { BETWEEN_FILTER("betweenFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java index 36c40a60a..d54be9d9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName { NUMERIC_FILTER("numericFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java index 3fb7b6f98..6cef168f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value.java index 894a2e59c..68c9a25c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java index 3385d5416..f3c1eab36 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName { IN_LIST_FILTER("inListFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java index a0ad1569e..52bc23a63 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value.java index b325ab210..e7c099045 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java index e81bc4a2c..91c7a8799 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums { OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), EQUAL("EQUAL"), @@ -25,4 +26,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java index 8421a151e..d9b739fb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java index c627de5da..1424f7710 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName { STRING_FILTER("stringFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value.java index ae7248729..e2a3ec0a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java index f7a830cc2..3a9b961a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums { MATCH_TYPE_UNSPECIFIED("MATCH_TYPE_UNSPECIFIED"), EXACT("EXACT"), @@ -26,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java index e8795986e..19027dfd2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue.java index 6d3812389..371631642 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java index a6ec666e7..e4d09f60b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java index 7cc595368..933b65f21 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java index 2ae974b48..60731cf68 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java index ba53329ca..717c902bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName { BETWEEN_FILTER("betweenFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java index bf4bf4bca..ca4aad998 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java index d10580ce2..fe0328f96 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java index 8aeb3a4be..3bf97a71e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName { NUMERIC_FILTER("numericFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value.java index 1decd857a..744e9dbdd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java index 36a08001c..17392affb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums { MATCH_TYPE_UNSPECIFIED("MATCH_TYPE_UNSPECIFIED"), EXACT("EXACT"), @@ -26,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java index 933843e45..3a8578072 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue.java index 2083a3c7b..9021bec80 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue.java index 28c81de9e..e0892598a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue.java index 199de58d3..cfe287632 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java index 38cc9953e..b9480761e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java index b5e15ffad..36e68b07b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java index 1fe83524e..ddfa9c440 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName { BETWEEN_FILTER("betweenFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java index c318864fd..b7fb01093 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName { NUMERIC_FILTER("numericFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java index 2619e8e32..941a16d87 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value.java index 800a7819c..7606fcd7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java index 789215345..27a49c0c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName { IN_LIST_FILTER("inListFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java index 269635216..4cd99d28d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value.java index daa90d186..d7076104c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java index e6cb11c6c..c9d3f8b01 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter.java index d08984253..2417658c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java index e5c283709..c00ce6f62 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName { STRING_FILTER("stringFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value.java index 9a4f31af7..29244a4e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java index 6b123369d..6b8f13c0e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums { OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), EQUAL("EQUAL"), @@ -25,4 +26,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java index 1f4159f3b..f9b56d9f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue.java index b8bea7a9d..3a41f986f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter.java index 35d044c17..1075e94fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java index 8e377ea07..a7bb78717 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName { IN_LIST_FILTER("inListFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value.java index 29de3abea..c5d545267 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java index 724e82245..1d374a88d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums { MATCH_TYPE_UNSPECIFIED("MATCH_TYPE_UNSPECIFIED"), EXACT("EXACT"), @@ -26,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java index 00612c201..5aa2c8462 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue.java index 63dcb063b..896b8a88b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter.java index 96d04f0a1..4f872b43b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java index eb8c0b562..f3e8be061 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName { STRING_FILTER("stringFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilt public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue.java index 977536b95..f472f55b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter.java index 9c3f3c473..230d6f070 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value.java index ffc4d392e..2a49a5c72 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter.java index 0c4368f6e..3cc5923d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.List; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter.java index aa6183e94..68b344429 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue.java index 6aaf19724..5d936a601 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java index 233af4a47..f00a6b8a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums { OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), EQUAL("EQUAL"), @@ -25,4 +26,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterVali public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue.java index fb9ad69df..86d3df7b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java index 77c00d35d..20d215465 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValu public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue.java index 57274f184..d25b0112c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java index d748f436a..545de69ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled { TRUE("true"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled(String valu public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression.java index b9b5ab282..e479601ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression { @JsonProperty("field_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter.java index 4eae690bd..145648c4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java index 6a13a6c86..ea295da8d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName { BETWEEN_FILTER("betweenFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName(String v public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java index c83cddb3d..8a448f3bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType { FILTER("filter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType(String v public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue.java index ae6694927..5cf75028f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter.java index 0ffda16d7..3d6b5ba90 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value.java index 04d17201c..60e9f083d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter.java index f642ee443..11f9e0560 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue.java index e891bbfca..9467419a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression.java index 8974a054f..16ecbd536 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression { @JsonProperty("field_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter.java index da39b17c4..f9add3b23 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java index 0b38e09c9..8fc214fe1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName { STRING_FILTER("stringFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterN public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java index 1c5b2d0f6..7f4c2df8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType { AND_GROUP("andGroup"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterT public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue.java index 9e322d287..7fa4e1d87 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter.java index 74c03ba83..4de9a1d8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value.java index b258821ba..eb33a77f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue.java index 7ead11bcc..22be54cc9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue.java index 749588781..307fde5ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue.java index 946939d16..09b27a1c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java index 44baf6dc8..eb000cbd0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java index 42dd859f0..8d96fdcf9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java index 98796c6fc..e95bc3d7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName { IN_LIST_FILTER("inListFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java index 27a781881..0603ef3c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName { STRING_FILTER("stringFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java index 78f0e022f..6ac55a0ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value.java index b5241526f..1d6515a7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java index e65e12438..f9f1a7408 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName { BETWEEN_FILTER("betweenFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java index d754bfffb..580d048b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value.java index 0685faec4..f68fc1e7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java index 5603524e7..f00c1a961 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter.java index 25cde3ba5..d6ee5737f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java index 25ca8ff67..1e9d62b27 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName { NUMERIC_FILTER("numericFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value.java index fac9ff33d..9fd5d100f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java index 2d73eb863..c5b4508d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums { MATCH_TYPE_UNSPECIFIED("MATCH_TYPE_UNSPECIFIED"), EXACT("EXACT"), @@ -26,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java index 7529f1f84..7b19f08db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue.java index c47fd30bb..b2d8aafb0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue.java index 74da95ead..b6bbed597 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue.java index a045ed54a..9bdfadad4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java index 96267a9d1..86bb5e687 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java index 540b71d1a..bf616d09f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java index 15862379a..08027bb69 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName { BETWEEN_FILTER("betweenFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java index 9c69e6e82..0aa5f5bc6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName { NUMERIC_FILTER("numericFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java index 2c28e6a15..88fe84fb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value.java index a2379e0a6..9d5fc755c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java index b23c85598..0cdb01b95 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName { IN_LIST_FILTER("inListFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java index 84cb430be..8b2e4621d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value.java index 6d4984442..6734c513b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java index 220887cfb..269094607 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums { OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), EQUAL("EQUAL"), @@ -25,4 +26,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java index c600fc345..4ee6abc4b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java index 819599fe1..ad36c3e14 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName { STRING_FILTER("stringFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value.java index 3def6e5cc..c52e05401 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java index d55b263df..45b0d1237 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums { MATCH_TYPE_UNSPECIFIED("MATCH_TYPE_UNSPECIFIED"), EXACT("EXACT"), @@ -26,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java index 0844c292d..dbe2a11de 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter.java index 58c0a70cd..701003b71 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue.java index a6a4f342d..5a77fecc3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue.java index b2b6a9780..a37672acb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue.java index 115bb70aa..71d480aa9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java index 183482f34..51ee7f12e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java index 88d0a0fa3..d33e614c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java index 8d66a62f8..d2ef4090d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName { BETWEEN_FILTER("betweenFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java index a61833c96..721182b5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName { NUMERIC_FILTER("numericFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java index a35ccbbdc..9460755e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value.java index 6a0bfe226..3b6724cca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java index c018c57a9..1d011bf1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName { IN_LIST_FILTER("inListFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java index 33e1dde89..1fa760faa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value.java index dc8f961b4..bb3db61a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java index ee1ed4ba0..39686529f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums { OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), EQUAL("EQUAL"), @@ -25,4 +26,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java index 68246c48e..e20e4e811 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter.java index 9d1d5bbc2..683a7395e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java index ee8fb18fe..1d6366e3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName { STRING_FILTER("stringFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java index e1c5b86b6..e7b87b99c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType { NOT_EXPRESSION("notExpression"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue.java index 2e17bc013..a5e525c25 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter.java index e755cc7e7..d58374634 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value.java index 2ae421512..bff84028e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter.java index 0f357eab4..5ab44a4b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.List; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter.java index 0cb9f5536..e83c4887b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue.java index 7af4c8eb8..79c31504d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java index 84110d776..230c43480 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums { MATCH_TYPE_UNSPECIFIED("MATCH_TYPE_UNSPECIFIED"), EXACT("EXACT"), @@ -26,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value.java index 75e1bb26c..5e4c2ed97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java index c2118d302..7e97bbcef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java index ab90dbf46..c4ac277b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java index d889482a7..1a28c98ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName { BETWEEN_FILTER("betweenFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java index 3ff17c141..621ef650a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java index 0e7da62dd..93f050cfa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName { NUMERIC_FILTER("numericFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java index 12a9d65d5..ad0b95a96 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType { FILTER("filter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java index e3fd802b9..a4bc8ee50 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java index 381ee541f..30da6cff8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter.java index a51ed06c5..590355ac3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue.java index 199f7beaf..540e02a77 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression.java index 9970ed744..7fb41e5a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression { @JsonProperty("field_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter.java index 6bfe9414e..8fd63786f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java index da9bc5ba6..499be20b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName { IN_LIST_FILTER("inListFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java index 81f9cd3e9..5a8250686 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType { OR_GROUP("orGroup"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue.java index 328a10390..6f2aee588 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter.java index 68fcf7a79..2113ef617 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value.java index caf4577a0..48c382b7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter.java index 4fa9d4660..0782843f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.List; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter.java index 3b534e702..bf56ff267 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue.java index a9e54c2f3..81f07bbc8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java index 3a0aaba6a..3de066572 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums { OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), EQUAL("EQUAL"), @@ -25,4 +26,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue.java index 6a4a744e6..824496c66 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java index a86efa4c5..93824fe54 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter.java index 708b9cae7..cec3881e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.List; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter.java index c39fb1280..a220efa06 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue.java index 65889816d..30dd573ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java index 6204651f8..e8fbde550 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums { OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), EQUAL("EQUAL"), @@ -25,4 +26,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEn public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue.java index fb85859aa..3674d3e7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java index e95c58f5b..0e026899d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueTy public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter.java index 469093276..a9e819b99 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.List; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter.java index e35aa6225..2bf2d3fef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue.java index c9fa02e61..b629b73c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java index 3ddb910fe..10757cd59 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums { MATCH_TYPE_UNSPECIFIED("MATCH_TYPE_UNSPECIFIED"), EXACT("EXACT"), @@ -26,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums(String v public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue.java index 73ee57b6e..3f2b587b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java index 16d0781b9..a956ffda1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType(String va public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType o: SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasDoubleValue.java index b5da58dfa..ff2623009 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasDoubleValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasDoubleValue { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasEnabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasEnabled.java index dfe9c0c28..81f720840 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasEnabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasEnabled.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasEnabled { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasExpression.java index d5c6c94ff..bfc442d00 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasExpression.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasExpression { @JsonProperty("field_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilter.java index 83d9c085d..869a0fe70 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceGoogleAnalyticsDataApiSchemasFilter - A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all metrics. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java index cda4fa98b..9919ba913 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasFilterName { NUMERIC_FILTER("numericFilter"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasFilterName(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasFilterName> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasFilterName o: SourceGoogleAnalyticsDataApiSchemasFilterName.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java index 413cc5caa..bf6f958db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasFilterType { NOT_EXPRESSION("notExpression"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasFilterType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasFilterType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasFilterType o: SourceGoogleAnalyticsDataApiSchemasFilterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFromValue.java index cd3ce0140..c15c33454 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFromValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasFromValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInListFilter.java index c67ea41a2..b85fd3d45 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInListFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasInListFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInt64Value.java index 9393c4520..411826eb0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInt64Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasInt64Value { @JsonProperty("value") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasNumericFilter.java index 3e584f05f..1d2542446 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasNumericFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.List; import java.util.Objects; - public class SourceGoogleAnalyticsDataApiSchemasNumericFilter { @JsonProperty("filter_name") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasStringFilter.java index 24fd5a045..5772d8b6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasStringFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiSchemasStringFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasToValue.java index 2abe8c68b..0743f61ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasToValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasToValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java index e1fee3f70..81759ffaf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasValidEnums { OPERATION_UNSPECIFIED("OPERATION_UNSPECIFIED"), EQUAL("EQUAL"), @@ -25,4 +26,13 @@ private SourceGoogleAnalyticsDataApiSchemasValidEnums(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasValidEnums o: SourceGoogleAnalyticsDataApiSchemasValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValue.java index 8c8d76a73..78713b558 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java index 0d38de6c0..825d839e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiSchemasValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiSchemasValueType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiSchemasValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiSchemasValueType o: SourceGoogleAnalyticsDataApiSchemasValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java index a87227330..44f9caf7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiStringFilter.java index 6501f2486..1d199ee74 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiStringFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleAnalyticsDataApiStringFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiToValue.java index b0cd80782..2477c0c35 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiToValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiToValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java index 260df2512..1919ae2a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiValidEnums { MATCH_TYPE_UNSPECIFIED("MATCH_TYPE_UNSPECIFIED"), EXACT("EXACT"), @@ -26,4 +27,13 @@ private SourceGoogleAnalyticsDataApiValidEnums(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiValidEnums> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiValidEnums o: SourceGoogleAnalyticsDataApiValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValue.java index 460f37a7e..1fb939da3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceGoogleAnalyticsDataApiValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiValue { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java index 43407ac99..49446dff7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleAnalyticsDataApiValueType { DOUBLE_VALUE("doubleValue"); @@ -20,4 +21,13 @@ private SourceGoogleAnalyticsDataApiValueType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleAnalyticsDataApiValueType> fromValue(String value) { + for (SourceGoogleAnalyticsDataApiValueType o: SourceGoogleAnalyticsDataApiValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleCalendar.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleCalendar.java index 6185a0164..fdb723fff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleCalendar.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleCalendar.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleCalendar { @JsonProperty("calendarid") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleClassroom.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleClassroom.java index a1af0a118..601a26b65 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleClassroom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleClassroom.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleClassroom { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectory.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectory.java index 3b1da92e4..f4acec120 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectory.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDirectory { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java index 3198278c0..f45f7d081 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGoogleDirectoryCredentialsTitle - Authentication Scenario */ @@ -23,4 +24,13 @@ private SourceGoogleDirectoryCredentialsTitle(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDirectoryCredentialsTitle> fromValue(String value) { + for (SourceGoogleDirectoryCredentialsTitle o: SourceGoogleDirectoryCredentialsTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryGoogleCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryGoogleCredentials.java index eee917738..3ae941d72 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryGoogleCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryGoogleCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGoogleDirectoryGoogleCredentials - Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports <a href="https://developers.google.com/identity/protocols/oauth2#webserver" target="_blank">Web server application</a> and <a href="https://developers.google.com/identity/protocols/oauth2#serviceaccount" target="_blank">Service accounts</a> scenarios. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java index 6e19c74cf..d39df3f09 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGoogleDirectorySchemasCredentialsTitle - Authentication Scenario */ @@ -23,4 +24,13 @@ private SourceGoogleDirectorySchemasCredentialsTitle(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDirectorySchemasCredentialsTitle> fromValue(String value) { + for (SourceGoogleDirectorySchemasCredentialsTitle o: SourceGoogleDirectorySchemasCredentialsTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDrive.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDrive.java index e2d0841c1..96ab04a9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDrive.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,11 +14,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; import java.util.Objects; import java.util.Optional; - /** * SourceGoogleDrive - Used during spec; allows the developer to configure the cloud provider specific options * that are needed when users configure a file-based source. @@ -33,6 +32,10 @@ public class SourceGoogleDrive { @JsonProperty("credentials") private SourceGoogleDriveAuthentication credentials; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_method") + private Optional<? extends DeliveryMethod> deliveryMethod; + /** * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to only sync a subset of all files located in the folder. */ @@ -58,14 +61,17 @@ public class SourceGoogleDrive { @JsonCreator public SourceGoogleDrive( @JsonProperty("credentials") SourceGoogleDriveAuthentication credentials, + @JsonProperty("delivery_method") Optional<? extends DeliveryMethod> deliveryMethod, @JsonProperty("folder_url") String folderUrl, @JsonProperty("start_date") Optional<OffsetDateTime> startDate, @JsonProperty("streams") List<SourceGoogleDriveFileBasedStreamConfig> streams) { Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); Utils.checkNotNull(folderUrl, "folderUrl"); Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(streams, "streams"); this.credentials = credentials; + this.deliveryMethod = deliveryMethod; this.folderUrl = folderUrl; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; @@ -76,7 +82,7 @@ public SourceGoogleDrive( SourceGoogleDriveAuthentication credentials, String folderUrl, List<SourceGoogleDriveFileBasedStreamConfig> streams) { - this(credentials, folderUrl, Optional.empty(), streams); + this(credentials, Optional.empty(), folderUrl, Optional.empty(), streams); } /** @@ -87,6 +93,12 @@ public SourceGoogleDriveAuthentication credentials() { return credentials; } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<DeliveryMethod> deliveryMethod() { + return (Optional<DeliveryMethod>) deliveryMethod; + } + /** * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to only sync a subset of all files located in the folder. */ @@ -129,6 +141,18 @@ public SourceGoogleDrive withCredentials(SourceGoogleDriveAuthentication credent return this; } + public SourceGoogleDrive withDeliveryMethod(DeliveryMethod deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = Optional.ofNullable(deliveryMethod); + return this; + } + + public SourceGoogleDrive withDeliveryMethod(Optional<? extends DeliveryMethod> deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = deliveryMethod; + return this; + } + /** * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to only sync a subset of all files located in the folder. */ @@ -176,6 +200,7 @@ public boolean equals(java.lang.Object o) { SourceGoogleDrive other = (SourceGoogleDrive) o; return Objects.deepEquals(this.credentials, other.credentials) && + Objects.deepEquals(this.deliveryMethod, other.deliveryMethod) && Objects.deepEquals(this.folderUrl, other.folderUrl) && Objects.deepEquals(this.sourceType, other.sourceType) && Objects.deepEquals(this.startDate, other.startDate) && @@ -186,6 +211,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( credentials, + deliveryMethod, folderUrl, sourceType, startDate, @@ -196,6 +222,7 @@ public int hashCode() { public String toString() { return Utils.toString(SourceGoogleDrive.class, "credentials", credentials, + "deliveryMethod", deliveryMethod, "folderUrl", folderUrl, "sourceType", sourceType, "startDate", startDate, @@ -206,6 +233,8 @@ public final static class Builder { private SourceGoogleDriveAuthentication credentials; + private Optional<? extends DeliveryMethod> deliveryMethod = Optional.empty(); + private String folderUrl; private Optional<OffsetDateTime> startDate = Optional.empty(); @@ -225,6 +254,18 @@ public Builder credentials(SourceGoogleDriveAuthentication credentials) { return this; } + public Builder deliveryMethod(DeliveryMethod deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = Optional.ofNullable(deliveryMethod); + return this; + } + + public Builder deliveryMethod(Optional<? extends DeliveryMethod> deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = deliveryMethod; + return this; + } + /** * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to only sync a subset of all files located in the folder. */ @@ -264,6 +305,7 @@ public Builder streams(List<SourceGoogleDriveFileBasedStreamConfig> streams) { public SourceGoogleDrive build() { return new SourceGoogleDrive( credentials, + deliveryMethod, folderUrl, startDate, streams); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java index 6cacdf92f..1d942ffbb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceGoogleDriveAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveAuthType> fromValue(String value) { + for (SourceGoogleDriveAuthType o: SourceGoogleDriveAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthenticateViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthenticateViaGoogleOAuth.java index b2a2c1b36..4b2a8940d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthenticateViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthenticateViaGoogleOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveAuthenticateViaGoogleOAuth { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthentication.java index e80162e1a..d4f79c78f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGoogleDriveAuthentication - Credentials for connecting to the Google Drive API */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAutogenerated.java index c247afb82..c17bdf232 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAutogenerated.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveAutogenerated { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAvroFormat.java index dcbddf233..b72505ac1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAvroFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveAvroFormat { /** 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 3e4588f08..aa681e72e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveCSVFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVHeaderDefinition.java index d496dced0..85345976b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVHeaderDefinition.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGoogleDriveCSVHeaderDefinition - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDeliveryType.java new file mode 100644 index 000000000..1a000001e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDeliveryType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceGoogleDriveDeliveryType { + USE_FILE_TRANSFER("use_file_transfer"); + + @JsonValue + private final String value; + + private SourceGoogleDriveDeliveryType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceGoogleDriveDeliveryType> fromValue(String value) { + for (SourceGoogleDriveDeliveryType o: SourceGoogleDriveDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveExcelFormat.java new file mode 100644 index 000000000..8f904e7c2 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveExcelFormat.java @@ -0,0 +1,86 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +public class SourceGoogleDriveExcelFormat { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional<? extends SourceGoogleDriveSchemasStreamsFormatFormat6Filetype> filetype; + + @JsonCreator + public SourceGoogleDriveExcelFormat() { + + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<SourceGoogleDriveSchemasStreamsFormatFormat6Filetype> filetype() { + return (Optional<SourceGoogleDriveSchemasStreamsFormatFormat6Filetype>) filetype; + } + + public final static Builder builder() { + return new Builder(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceGoogleDriveExcelFormat other = (SourceGoogleDriveExcelFormat) o; + return + Objects.deepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return Objects.hash( + filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceGoogleDriveExcelFormat.class, + "filetype", filetype); + } + + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SourceGoogleDriveExcelFormat build() { + return new SourceGoogleDriveExcelFormat( + ); + } + + private static final LazySingletonValue<Optional<? extends SourceGoogleDriveSchemasStreamsFormatFormat6Filetype>> _SINGLETON_VALUE_Filetype = + new LazySingletonValue<>( + "filetype", + "\"excel\"", + new TypeReference<Optional<? extends SourceGoogleDriveSchemasStreamsFormatFormat6Filetype>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFileBasedStreamConfig.java index 35a38db61..0994e972c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFileBasedStreamConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveFileBasedStreamConfig { /** @@ -58,6 +56,13 @@ public class SourceGoogleDriveFileBasedStreamConfig { @JsonProperty("name") private String name; + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("recent_n_files_to_read_for_schema_discovery") + private Optional<Long> recentNFilesToReadForSchemaDiscovery; + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -79,6 +84,7 @@ public SourceGoogleDriveFileBasedStreamConfig( @JsonProperty("globs") Optional<? extends List<String>> globs, @JsonProperty("input_schema") Optional<String> inputSchema, @JsonProperty("name") String name, + @JsonProperty("recent_n_files_to_read_for_schema_discovery") Optional<Long> recentNFilesToReadForSchemaDiscovery, @JsonProperty("schemaless") Optional<Boolean> schemaless, @JsonProperty("validation_policy") Optional<? extends SourceGoogleDriveValidationPolicy> validationPolicy) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -86,6 +92,7 @@ public SourceGoogleDriveFileBasedStreamConfig( Utils.checkNotNull(globs, "globs"); Utils.checkNotNull(inputSchema, "inputSchema"); Utils.checkNotNull(name, "name"); + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); Utils.checkNotNull(schemaless, "schemaless"); Utils.checkNotNull(validationPolicy, "validationPolicy"); this.daysToSyncIfHistoryIsFull = daysToSyncIfHistoryIsFull; @@ -93,6 +100,7 @@ public SourceGoogleDriveFileBasedStreamConfig( this.globs = globs; this.inputSchema = inputSchema; this.name = name; + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; this.schemaless = schemaless; this.validationPolicy = validationPolicy; } @@ -100,7 +108,7 @@ public SourceGoogleDriveFileBasedStreamConfig( public SourceGoogleDriveFileBasedStreamConfig( SourceGoogleDriveFormat format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -144,6 +152,14 @@ public String name() { return name; } + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + @JsonIgnore + public Optional<Long> recentNFilesToReadForSchemaDiscovery() { + return recentNFilesToReadForSchemaDiscovery; + } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -237,6 +253,24 @@ public SourceGoogleDriveFileBasedStreamConfig withName(String name) { return this; } + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public SourceGoogleDriveFileBasedStreamConfig withRecentNFilesToReadForSchemaDiscovery(long recentNFilesToReadForSchemaDiscovery) { + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); + this.recentNFilesToReadForSchemaDiscovery = Optional.ofNullable(recentNFilesToReadForSchemaDiscovery); + return this; + } + + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public SourceGoogleDriveFileBasedStreamConfig withRecentNFilesToReadForSchemaDiscovery(Optional<Long> recentNFilesToReadForSchemaDiscovery) { + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; + return this; + } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -288,6 +322,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.globs, other.globs) && Objects.deepEquals(this.inputSchema, other.inputSchema) && Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.recentNFilesToReadForSchemaDiscovery, other.recentNFilesToReadForSchemaDiscovery) && Objects.deepEquals(this.schemaless, other.schemaless) && Objects.deepEquals(this.validationPolicy, other.validationPolicy); } @@ -300,6 +335,7 @@ public int hashCode() { globs, inputSchema, name, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } @@ -312,6 +348,7 @@ public String toString() { "globs", globs, "inputSchema", inputSchema, "name", name, + "recentNFilesToReadForSchemaDiscovery", recentNFilesToReadForSchemaDiscovery, "schemaless", schemaless, "validationPolicy", validationPolicy); } @@ -328,6 +365,8 @@ public final static class Builder { private String name; + private Optional<Long> recentNFilesToReadForSchemaDiscovery = Optional.empty(); + private Optional<Boolean> schemaless; private Optional<? extends SourceGoogleDriveValidationPolicy> validationPolicy; @@ -408,6 +447,24 @@ public Builder name(String name) { return this; } + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public Builder recentNFilesToReadForSchemaDiscovery(long recentNFilesToReadForSchemaDiscovery) { + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); + this.recentNFilesToReadForSchemaDiscovery = Optional.ofNullable(recentNFilesToReadForSchemaDiscovery); + return this; + } + + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public Builder recentNFilesToReadForSchemaDiscovery(Optional<Long> recentNFilesToReadForSchemaDiscovery) { + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; + return this; + } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -459,6 +516,7 @@ public SourceGoogleDriveFileBasedStreamConfig build() { globs, inputSchema, name, + recentNFilesToReadForSchemaDiscovery, schemaless, validationPolicy); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java index 69dc2964c..89b0095c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveFiletype { AVRO("avro"); @@ -20,4 +21,13 @@ private SourceGoogleDriveFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveFiletype> fromValue(String value) { + for (SourceGoogleDriveFiletype o: SourceGoogleDriveFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFormat.java index 79a2e1984..74bc7806c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGoogleDriveFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. */ @@ -52,9 +50,14 @@ public static SourceGoogleDriveFormat of(SourceGoogleDriveParquetFormat value) { return new SourceGoogleDriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceGoogleDriveParquetFormat>(){})); } - public static SourceGoogleDriveFormat of(SourceGoogleDriveDocumentFileTypeFormatExperimental value) { + public static SourceGoogleDriveFormat of(SourceGoogleDriveUnstructuredDocumentFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceGoogleDriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceGoogleDriveUnstructuredDocumentFormat>(){})); + } + + public static SourceGoogleDriveFormat of(SourceGoogleDriveExcelFormat value) { Utils.checkNotNull(value, "value"); - return new SourceGoogleDriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceGoogleDriveDocumentFileTypeFormatExperimental>(){})); + return new SourceGoogleDriveFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceGoogleDriveExcelFormat>(){})); } /** @@ -64,7 +67,8 @@ public static SourceGoogleDriveFormat of(SourceGoogleDriveDocumentFileTypeFormat * <li>{@code com.airbyte.api.models.shared.SourceGoogleDriveCSVFormat}</li> * <li>{@code com.airbyte.api.models.shared.SourceGoogleDriveJsonlFormat}</li> * <li>{@code com.airbyte.api.models.shared.SourceGoogleDriveParquetFormat}</li> - * <li>{@code com.airbyte.api.models.shared.SourceGoogleDriveDocumentFileTypeFormatExperimental}</li> + * <li>{@code com.airbyte.api.models.shared.SourceGoogleDriveUnstructuredDocumentFormat}</li> + * <li>{@code com.airbyte.api.models.shared.SourceGoogleDriveExcelFormat}</li> * </ul> * * <p>Use {@code instanceof} to determine what type is returned. For example: @@ -105,9 +109,10 @@ public static final class _Deserializer extends OneOfDeserializer<SourceGoogleDr public _Deserializer() { super(SourceGoogleDriveFormat.class, false, TypeReferenceWithShape.of(new TypeReference<SourceGoogleDriveCSVFormat>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceGoogleDriveDocumentFileTypeFormatExperimental>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleDriveUnstructuredDocumentFormat>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGoogleDriveParquetFormat>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGoogleDriveAvroFormat>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceGoogleDriveExcelFormat>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceGoogleDriveJsonlFormat>() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFromCSV.java index 4185e79f4..0cc88b912 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFromCSV.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveFromCSV { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java index af97824c2..75a76cf6b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveGoogleDrive { GOOGLE_DRIVE("google-drive"); @@ -20,4 +21,13 @@ private SourceGoogleDriveGoogleDrive(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveGoogleDrive> fromValue(String value) { + for (SourceGoogleDriveGoogleDrive o: SourceGoogleDriveGoogleDrive.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java index 053008499..001820c13 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveHeaderDefinitionType { FROM_CSV("From CSV"); @@ -20,4 +21,13 @@ private SourceGoogleDriveHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveHeaderDefinitionType> fromValue(String value) { + for (SourceGoogleDriveHeaderDefinitionType o: SourceGoogleDriveHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveJsonlFormat.java index 8dc026c48..c13e355b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveJsonlFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveJsonlFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveLocal.java index 56034aa78..3d5b63a9f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveLocal.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceGoogleDriveLocal - Process files locally, supporting `fast` and `ocr` modes. This is the default option. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java index 32dd640bc..b97039945 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveMode { LOCAL("local"); @@ -20,4 +21,13 @@ private SourceGoogleDriveMode(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveMode> fromValue(String value) { + for (SourceGoogleDriveMode o: SourceGoogleDriveMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParquetFormat.java index 32f054a0c..1bcad17bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParquetFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveParquetFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java index cc3bfb622..c3c6cd209 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGoogleDriveParsingStrategy - The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @@ -26,4 +27,13 @@ private SourceGoogleDriveParsingStrategy(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveParsingStrategy> fromValue(String value) { + for (SourceGoogleDriveParsingStrategy o: SourceGoogleDriveParsingStrategy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveProcessing.java index 588ea0f6c..4ff8b3958 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveProcessing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGoogleDriveProcessing - Processing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java index 16ef00d33..fc688899f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveSchemasAuthType { SERVICE("Service"); @@ -20,4 +21,13 @@ private SourceGoogleDriveSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveSchemasAuthType> fromValue(String value) { + for (SourceGoogleDriveSchemasAuthType o: SourceGoogleDriveSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasDeliveryType.java new file mode 100644 index 000000000..afee84ec5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasDeliveryType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceGoogleDriveSchemasDeliveryType { + USE_PERMISSIONS_TRANSFER("use_permissions_transfer"); + + @JsonValue + private final String value; + + private SourceGoogleDriveSchemasDeliveryType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceGoogleDriveSchemasDeliveryType> fromValue(String value) { + for (SourceGoogleDriveSchemasDeliveryType o: SourceGoogleDriveSchemasDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java index f82af6f8b..9c2208c0e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveSchemasFiletype { CSV("csv"); @@ -20,4 +21,13 @@ private SourceGoogleDriveSchemasFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveSchemasFiletype> fromValue(String value) { + for (SourceGoogleDriveSchemasFiletype o: SourceGoogleDriveSchemasFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java index c14aeb7fc..7a281e1a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveSchemasHeaderDefinitionType { AUTOGENERATED("Autogenerated"); @@ -20,4 +21,13 @@ private SourceGoogleDriveSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveSchemasHeaderDefinitionType> fromValue(String value) { + for (SourceGoogleDriveSchemasHeaderDefinitionType o: SourceGoogleDriveSchemasHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java index 6a8af0f76..dac0c339a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveSchemasStreamsFiletype { JSONL("jsonl"); @@ -20,4 +21,13 @@ private SourceGoogleDriveSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveSchemasStreamsFiletype> fromValue(String value) { + for (SourceGoogleDriveSchemasStreamsFiletype o: SourceGoogleDriveSchemasStreamsFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java index 6375a6009..d7cb00ef5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveSchemasStreamsFormatFiletype { PARQUET("parquet"); @@ -20,4 +21,13 @@ private SourceGoogleDriveSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveSchemasStreamsFormatFiletype> fromValue(String value) { + for (SourceGoogleDriveSchemasStreamsFormatFiletype o: SourceGoogleDriveSchemasStreamsFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.java new file mode 100644 index 000000000..b153fa888 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceGoogleDriveSchemasStreamsFormatFormat6Filetype { + EXCEL("excel"); + + @JsonValue + private final String value; + + private SourceGoogleDriveSchemasStreamsFormatFormat6Filetype(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceGoogleDriveSchemasStreamsFormatFormat6Filetype> fromValue(String value) { + for (SourceGoogleDriveSchemasStreamsFormatFormat6Filetype o: SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java index 67eb3ec1b..c69062b26 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveSchemasStreamsFormatFormatFiletype { UNSTRUCTURED("unstructured"); @@ -20,4 +21,13 @@ private SourceGoogleDriveSchemasStreamsFormatFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveSchemasStreamsFormatFormatFiletype> fromValue(String value) { + for (SourceGoogleDriveSchemasStreamsFormatFormatFiletype o: SourceGoogleDriveSchemasStreamsFormatFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java index fe6b2dcdb..9a552b777 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleDriveSchemasStreamsHeaderDefinitionType { USER_PROVIDED("User Provided"); @@ -20,4 +21,13 @@ private SourceGoogleDriveSchemasStreamsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveSchemasStreamsHeaderDefinitionType> fromValue(String value) { + for (SourceGoogleDriveSchemasStreamsHeaderDefinitionType o: SourceGoogleDriveSchemasStreamsHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.java index 2b216a16a..d48dfca11 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveServiceAccountKeyAuthentication { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDocumentFileTypeFormatExperimental.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.java similarity index 88% rename from src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDocumentFileTypeFormatExperimental.java rename to src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.java index 5db635f80..0ba0849f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDocumentFileTypeFormatExperimental.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,12 +18,11 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** - * SourceGoogleDriveDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. + * SourceGoogleDriveUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ -public class SourceGoogleDriveDocumentFileTypeFormatExperimental { +public class SourceGoogleDriveUnstructuredDocumentFormat { @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") @@ -52,7 +50,7 @@ public class SourceGoogleDriveDocumentFileTypeFormatExperimental { private Optional<? extends SourceGoogleDriveParsingStrategy> strategy; @JsonCreator - public SourceGoogleDriveDocumentFileTypeFormatExperimental( + public SourceGoogleDriveUnstructuredDocumentFormat( @JsonProperty("processing") Optional<? extends SourceGoogleDriveProcessing> processing, @JsonProperty("skip_unprocessable_files") Optional<Boolean> skipUnprocessableFiles, @JsonProperty("strategy") Optional<? extends SourceGoogleDriveParsingStrategy> strategy) { @@ -65,7 +63,7 @@ public SourceGoogleDriveDocumentFileTypeFormatExperimental( this.strategy = strategy; } - public SourceGoogleDriveDocumentFileTypeFormatExperimental() { + public SourceGoogleDriveUnstructuredDocumentFormat() { this(Optional.empty(), Optional.empty(), Optional.empty()); } @@ -108,7 +106,7 @@ public final static Builder builder() { /** * Processing configuration */ - public SourceGoogleDriveDocumentFileTypeFormatExperimental withProcessing(SourceGoogleDriveProcessing processing) { + public SourceGoogleDriveUnstructuredDocumentFormat withProcessing(SourceGoogleDriveProcessing processing) { Utils.checkNotNull(processing, "processing"); this.processing = Optional.ofNullable(processing); return this; @@ -117,7 +115,7 @@ public SourceGoogleDriveDocumentFileTypeFormatExperimental withProcessing(Source /** * Processing configuration */ - public SourceGoogleDriveDocumentFileTypeFormatExperimental withProcessing(Optional<? extends SourceGoogleDriveProcessing> processing) { + public SourceGoogleDriveUnstructuredDocumentFormat withProcessing(Optional<? extends SourceGoogleDriveProcessing> processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; @@ -126,7 +124,7 @@ public SourceGoogleDriveDocumentFileTypeFormatExperimental withProcessing(Option /** * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. */ - public SourceGoogleDriveDocumentFileTypeFormatExperimental withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { + public SourceGoogleDriveUnstructuredDocumentFormat withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); this.skipUnprocessableFiles = Optional.ofNullable(skipUnprocessableFiles); return this; @@ -135,7 +133,7 @@ public SourceGoogleDriveDocumentFileTypeFormatExperimental withSkipUnprocessable /** * 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 SourceGoogleDriveDocumentFileTypeFormatExperimental withSkipUnprocessableFiles(Optional<Boolean> skipUnprocessableFiles) { + public SourceGoogleDriveUnstructuredDocumentFormat withSkipUnprocessableFiles(Optional<Boolean> skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); this.skipUnprocessableFiles = skipUnprocessableFiles; return this; @@ -144,7 +142,7 @@ public SourceGoogleDriveDocumentFileTypeFormatExperimental withSkipUnprocessable /** * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ - public SourceGoogleDriveDocumentFileTypeFormatExperimental withStrategy(SourceGoogleDriveParsingStrategy strategy) { + public SourceGoogleDriveUnstructuredDocumentFormat withStrategy(SourceGoogleDriveParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = Optional.ofNullable(strategy); return this; @@ -153,7 +151,7 @@ public SourceGoogleDriveDocumentFileTypeFormatExperimental withStrategy(SourceGo /** * 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 SourceGoogleDriveDocumentFileTypeFormatExperimental withStrategy(Optional<? extends SourceGoogleDriveParsingStrategy> strategy) { + public SourceGoogleDriveUnstructuredDocumentFormat withStrategy(Optional<? extends SourceGoogleDriveParsingStrategy> strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; @@ -167,7 +165,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceGoogleDriveDocumentFileTypeFormatExperimental other = (SourceGoogleDriveDocumentFileTypeFormatExperimental) o; + SourceGoogleDriveUnstructuredDocumentFormat other = (SourceGoogleDriveUnstructuredDocumentFormat) o; return Objects.deepEquals(this.filetype, other.filetype) && Objects.deepEquals(this.processing, other.processing) && @@ -186,7 +184,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SourceGoogleDriveDocumentFileTypeFormatExperimental.class, + return Utils.toString(SourceGoogleDriveUnstructuredDocumentFormat.class, "filetype", filetype, "processing", processing, "skipUnprocessableFiles", skipUnprocessableFiles, @@ -259,13 +257,13 @@ public Builder strategy(Optional<? extends SourceGoogleDriveParsingStrategy> str return this; } - public SourceGoogleDriveDocumentFileTypeFormatExperimental build() { + public SourceGoogleDriveUnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); } if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); - } return new SourceGoogleDriveDocumentFileTypeFormatExperimental( + } return new SourceGoogleDriveUnstructuredDocumentFormat( processing, skipUnprocessableFiles, strategy); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUserProvided.java index 03b4c3f99..4af1a8f23 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUserProvided.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleDriveUserProvided { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java index 17f4255d5..90c54874e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGoogleDriveValidationPolicy - The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. */ @@ -25,4 +26,13 @@ private SourceGoogleDriveValidationPolicy(String value) { public String value() { return value; } + + public static Optional<SourceGoogleDriveValidationPolicy> fromValue(String value) { + for (SourceGoogleDriveValidationPolicy o: SourceGoogleDriveValidationPolicy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleForms.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleForms.java index 035240e20..1f94b5fcb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleForms.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleForms.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,7 +16,6 @@ import java.util.List; import java.util.Objects; - public class SourceGoogleForms { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGooglePagespeedInsights.java b/src/main/java/com/airbyte/api/models/shared/SourceGooglePagespeedInsights.java index a4b45f33d..81f03a90a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGooglePagespeedInsights.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGooglePagespeedInsights.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGooglePagespeedInsights { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsole.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsole.java index 2c1657675..ce27c96e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsole.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsole.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleSearchConsole { @JsonProperty("authorization") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java index 5cb03b843..a870632dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleSearchConsoleAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceGoogleSearchConsoleAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleSearchConsoleAuthType> fromValue(String value) { + for (SourceGoogleSearchConsoleAuthType o: SourceGoogleSearchConsoleAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleCustomReportConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleCustomReportConfig.java index 4b0cafc4b..b6255aa32 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleCustomReportConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleCustomReportConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -14,7 +13,6 @@ import java.util.List; import java.util.Objects; - public class SourceGoogleSearchConsoleCustomReportConfig { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java index bc5914a89..b201d4357 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleSearchConsoleGoogleSearchConsole { GOOGLE_SEARCH_CONSOLE("google-search-console"); @@ -20,4 +21,13 @@ private SourceGoogleSearchConsoleGoogleSearchConsole(String value) { public String value() { return value; } + + public static Optional<SourceGoogleSearchConsoleGoogleSearchConsole> fromValue(String value) { + for (SourceGoogleSearchConsoleGoogleSearchConsole o: SourceGoogleSearchConsoleGoogleSearchConsole.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleOAuth.java index 081a6cc63..29d5853a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleSearchConsoleOAuth { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java index 676dd1669..7094db070 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleSearchConsoleSchemasAuthType { SERVICE("Service"); @@ -20,4 +21,13 @@ private SourceGoogleSearchConsoleSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleSearchConsoleSchemasAuthType> fromValue(String value) { + for (SourceGoogleSearchConsoleSchemasAuthType o: SourceGoogleSearchConsoleSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleServiceAccountKeyAuthentication.java index cfdbdfb13..284ac28ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleServiceAccountKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleSearchConsoleServiceAccountKeyAuthentication { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java index a2aa9b215..34698de90 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceGoogleSearchConsoleValidEnums - An enumeration of dimensions. */ @@ -27,4 +28,13 @@ private SourceGoogleSearchConsoleValidEnums(String value) { public String value() { return value; } + + public static Optional<SourceGoogleSearchConsoleValidEnums> fromValue(String value) { + for (SourceGoogleSearchConsoleValidEnums o: SourceGoogleSearchConsoleValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheets.java index 4ebbe5802..6c05c7aeb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheets.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,11 +19,10 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleSheets { /** - * Default value is 200. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 200 would process rows 1-201, then 201-401 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. Default value should cover most of the cases, but if a google sheet has over 100,000 records or more, consider increasing batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("batch_size") @@ -76,7 +74,7 @@ public SourceGoogleSheets( } /** - * Default value is 200. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 200 would process rows 1-201, then 201-401 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. Default value should cover most of the cases, but if a google sheet has over 100,000 records or more, consider increasing batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. */ @JsonIgnore public Optional<Long> batchSize() { @@ -117,7 +115,7 @@ public final static Builder builder() { } /** - * Default value is 200. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 200 would process rows 1-201, then 201-401 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. Default value should cover most of the cases, but if a google sheet has over 100,000 records or more, consider increasing batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. */ public SourceGoogleSheets withBatchSize(long batchSize) { Utils.checkNotNull(batchSize, "batchSize"); @@ -126,7 +124,7 @@ public SourceGoogleSheets withBatchSize(long batchSize) { } /** - * Default value is 200. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 200 would process rows 1-201, then 201-401 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. Default value should cover most of the cases, but if a google sheet has over 100,000 records or more, consider increasing batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. */ public SourceGoogleSheets withBatchSize(Optional<Long> batchSize) { Utils.checkNotNull(batchSize, "batchSize"); @@ -222,7 +220,7 @@ private Builder() { } /** - * Default value is 200. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 200 would process rows 1-201, then 201-401 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. Default value should cover most of the cases, but if a google sheet has over 100,000 records or more, consider increasing batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. */ public Builder batchSize(long batchSize) { Utils.checkNotNull(batchSize, "batchSize"); @@ -231,7 +229,7 @@ public Builder batchSize(long batchSize) { } /** - * Default value is 200. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 200 would process rows 1-201, then 201-401 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. Default value should cover most of the cases, but if a google sheet has over 100,000 records or more, consider increasing batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. */ public Builder batchSize(Optional<Long> batchSize) { Utils.checkNotNull(batchSize, "batchSize"); @@ -291,7 +289,7 @@ public SourceGoogleSheets build() { private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_BatchSize = new LazySingletonValue<>( "batch_size", - "200", + "1000000", new TypeReference<Optional<Long>>() {}); private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_NamesConversion = diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java index 263d605e8..24a0d82f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleSheetsAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceGoogleSheetsAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleSheetsAuthType> fromValue(String value) { + for (SourceGoogleSheetsAuthType o: SourceGoogleSheetsAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthenticateViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthenticateViaGoogleOAuth.java index ed53aaac8..a5ba8c826 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthenticateViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthenticateViaGoogleOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleSheetsAuthenticateViaGoogleOAuth { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthentication.java index 0e74efc81..a27239a2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceGoogleSheetsAuthentication - Credentials for connecting to the Google Sheets API */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java index 2f948cf2e..7d3899a00 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleSheetsGoogleSheets { GOOGLE_SHEETS("google-sheets"); @@ -20,4 +21,13 @@ private SourceGoogleSheetsGoogleSheets(String value) { public String value() { return value; } + + public static Optional<SourceGoogleSheetsGoogleSheets> fromValue(String value) { + for (SourceGoogleSheetsGoogleSheets o: SourceGoogleSheetsGoogleSheets.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java index 0d8b05aea..fa6b1b588 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceGoogleSheetsSchemasAuthType { SERVICE("Service"); @@ -20,4 +21,13 @@ private SourceGoogleSheetsSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceGoogleSheetsSchemasAuthType> fromValue(String value) { + for (SourceGoogleSheetsSchemasAuthType o: SourceGoogleSheetsSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsServiceAccountKeyAuthentication.java index 0c7568226..a47b9ea45 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsServiceAccountKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGoogleSheetsServiceAccountKeyAuthentication { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleTasks.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleTasks.java index 6663b2af1..46737073a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleTasks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleTasks.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleTasks { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleWebfonts.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleWebfonts.java index e9defb1be..e54ac1ba4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleWebfonts.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleWebfonts.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGoogleWebfonts { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGorgias.java b/src/main/java/com/airbyte/api/models/shared/SourceGorgias.java index f35531e54..71f978c98 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGorgias.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGorgias.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGorgias { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java b/src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java index b35b4cb3f..5dfa80c2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGreenhouse { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGreythr.java b/src/main/java/com/airbyte/api/models/shared/SourceGreythr.java new file mode 100644 index 000000000..87e369f4c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGreythr.java @@ -0,0 +1,241 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public class SourceGreythr { + + /** + * https://api.greythr.com + */ + @JsonProperty("base_url") + private String baseUrl; + + /** + * Your GreytHR Host URL + */ + @JsonProperty("domain") + private String domain; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("password") + private Optional<String> password; + + @JsonProperty("sourceType") + private Greythr sourceType; + + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceGreythr( + @JsonProperty("base_url") String baseUrl, + @JsonProperty("domain") String domain, + @JsonProperty("password") Optional<String> password, + @JsonProperty("username") String username) { + Utils.checkNotNull(baseUrl, "baseUrl"); + Utils.checkNotNull(domain, "domain"); + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(username, "username"); + this.baseUrl = baseUrl; + this.domain = domain; + this.password = password; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.username = username; + } + + public SourceGreythr( + String baseUrl, + String domain, + String username) { + this(baseUrl, domain, Optional.empty(), username); + } + + /** + * https://api.greythr.com + */ + @JsonIgnore + public String baseUrl() { + return baseUrl; + } + + /** + * Your GreytHR Host URL + */ + @JsonIgnore + public String domain() { + return domain; + } + + @JsonIgnore + public Optional<String> password() { + return password; + } + + @JsonIgnore + public Greythr sourceType() { + return sourceType; + } + + @JsonIgnore + public String username() { + return username; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * https://api.greythr.com + */ + public SourceGreythr withBaseUrl(String baseUrl) { + Utils.checkNotNull(baseUrl, "baseUrl"); + this.baseUrl = baseUrl; + return this; + } + + /** + * Your GreytHR Host URL + */ + public SourceGreythr withDomain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + public SourceGreythr withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + public SourceGreythr withPassword(Optional<String> password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public SourceGreythr 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; + } + SourceGreythr other = (SourceGreythr) o; + return + Objects.deepEquals(this.baseUrl, other.baseUrl) && + Objects.deepEquals(this.domain, other.domain) && + Objects.deepEquals(this.password, other.password) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return Objects.hash( + baseUrl, + domain, + password, + sourceType, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceGreythr.class, + "baseUrl", baseUrl, + "domain", domain, + "password", password, + "sourceType", sourceType, + "username", username); + } + + public final static class Builder { + + private String baseUrl; + + private String domain; + + private Optional<String> password = Optional.empty(); + + private String username; + + private Builder() { + // force use of static builder() method + } + + /** + * https://api.greythr.com + */ + public Builder baseUrl(String baseUrl) { + Utils.checkNotNull(baseUrl, "baseUrl"); + this.baseUrl = baseUrl; + return this; + } + + /** + * Your GreytHR Host URL + */ + public Builder domain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + public Builder password(Optional<String> password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceGreythr build() { + return new SourceGreythr( + baseUrl, + domain, + password, + username); + } + + private static final LazySingletonValue<Greythr> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"greythr\"", + new TypeReference<Greythr>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGridly.java b/src/main/java/com/airbyte/api/models/shared/SourceGridly.java index a591c68de..5e0df5f0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGridly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGridly.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceGridly { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGuru.java b/src/main/java/com/airbyte/api/models/shared/SourceGuru.java index 18a03296a..e86431989 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGuru.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGuru.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGuru { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGutendex.java b/src/main/java/com/airbyte/api/models/shared/SourceGutendex.java index 295fd1a47..36f2625c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGutendex.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGutendex.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceGutendex { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java index ce95f4b2e..1238be039 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceHardcodedRecords { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvest.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvest.java index bb6cfce5e..dbc39bb5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceHarvest { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java index f2524adea..7184819f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceHarvestAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceHarvestAuthType(String value) { public String value() { return value; } + + public static Optional<SourceHarvestAuthType> fromValue(String value) { + for (SourceHarvestAuthType o: SourceHarvestAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticateWithPersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticateWithPersonalAccessToken.java index 182911674..93df7daea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticateWithPersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticateWithPersonalAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceHarvestAuthenticateWithPersonalAccessToken { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticationMechanism.java index bfd17ca23..d6a0a6fb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticationMechanism.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceHarvestAuthenticationMechanism - Choose how to authenticate to Harvest. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java index 3653df84f..0a5a6248b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceHarvestSchemasAuthType { TOKEN("Token"); @@ -20,4 +21,13 @@ private SourceHarvestSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceHarvestSchemasAuthType> fromValue(String value) { + for (SourceHarvestSchemasAuthType o: SourceHarvestSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHeight.java b/src/main/java/com/airbyte/api/models/shared/SourceHeight.java index 82935a9e6..6f2fafc0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHeight.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHeight.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceHeight { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHellobaton.java b/src/main/java/com/airbyte/api/models/shared/SourceHellobaton.java new file mode 100644 index 000000000..276bfc0fe --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceHellobaton.java @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceHellobaton { + + /** + * authentication key required to access the api endpoints + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * Company name that generates your base api url + */ + @JsonProperty("company") + private String company; + + @JsonProperty("sourceType") + private Hellobaton sourceType; + + @JsonCreator + public SourceHellobaton( + @JsonProperty("api_key") String apiKey, + @JsonProperty("company") String company) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(company, "company"); + this.apiKey = apiKey; + this.company = company; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * authentication key required to access the api endpoints + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Company name that generates your base api url + */ + @JsonIgnore + public String company() { + return company; + } + + @JsonIgnore + public Hellobaton sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * authentication key required to access the api endpoints + */ + public SourceHellobaton withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Company name that generates your base api url + */ + public SourceHellobaton withCompany(String company) { + Utils.checkNotNull(company, "company"); + this.company = company; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceHellobaton other = (SourceHellobaton) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.company, other.company) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + company, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceHellobaton.class, + "apiKey", apiKey, + "company", company, + "sourceType", sourceType); + } + + public final static class Builder { + + private String apiKey; + + private String company; + + private Builder() { + // force use of static builder() method + } + + /** + * authentication key required to access the api endpoints + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Company name that generates your base api url + */ + public Builder company(String company) { + Utils.checkNotNull(company, "company"); + this.company = company; + return this; + } + + public SourceHellobaton build() { + return new SourceHellobaton( + apiKey, + company); + } + + private static final LazySingletonValue<Hellobaton> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"hellobaton\"", + new TypeReference<Hellobaton>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHelpScout.java b/src/main/java/com/airbyte/api/models/shared/SourceHelpScout.java new file mode 100644 index 000000000..a37ce6351 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceHelpScout.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Objects; + +public class SourceHelpScout { + + @JsonProperty("client_id") + private String clientId; + + @JsonProperty("client_secret") + private String clientSecret; + + @JsonProperty("sourceType") + private HelpScout sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceHelpScout( + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(startDate, "startDate"); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public String clientId() { + return clientId; + } + + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + @JsonIgnore + public HelpScout sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceHelpScout withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public SourceHelpScout withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public SourceHelpScout withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceHelpScout other = (SourceHelpScout) o; + return + Objects.deepEquals(this.clientId, other.clientId) && + Objects.deepEquals(this.clientSecret, other.clientSecret) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Objects.hash( + clientId, + clientSecret, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceHelpScout.class, + "clientId", clientId, + "clientSecret", clientSecret, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String clientId; + + private String clientSecret; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceHelpScout build() { + return new SourceHelpScout( + clientId, + clientSecret, + startDate); + } + + private static final LazySingletonValue<HelpScout> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"help-scout\"", + new TypeReference<HelpScout>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHibob.java b/src/main/java/com/airbyte/api/models/shared/SourceHibob.java index 8f00afdf6..15d12e7a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHibob.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHibob.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceHibob { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java b/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java index f11649724..b3e3235ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceHighLevel { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHoorayhr.java b/src/main/java/com/airbyte/api/models/shared/SourceHoorayhr.java new file mode 100644 index 000000000..274d273ac --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceHoorayhr.java @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceHoorayhr { + + @JsonProperty("hoorayhrpassword") + private String hoorayhrpassword; + + @JsonProperty("hoorayhrusername") + private String hoorayhrusername; + + @JsonProperty("sourceType") + private Hoorayhr sourceType; + + @JsonCreator + public SourceHoorayhr( + @JsonProperty("hoorayhrpassword") String hoorayhrpassword, + @JsonProperty("hoorayhrusername") String hoorayhrusername) { + Utils.checkNotNull(hoorayhrpassword, "hoorayhrpassword"); + Utils.checkNotNull(hoorayhrusername, "hoorayhrusername"); + this.hoorayhrpassword = hoorayhrpassword; + this.hoorayhrusername = hoorayhrusername; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String hoorayhrpassword() { + return hoorayhrpassword; + } + + @JsonIgnore + public String hoorayhrusername() { + return hoorayhrusername; + } + + @JsonIgnore + public Hoorayhr sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceHoorayhr withHoorayhrpassword(String hoorayhrpassword) { + Utils.checkNotNull(hoorayhrpassword, "hoorayhrpassword"); + this.hoorayhrpassword = hoorayhrpassword; + return this; + } + + public SourceHoorayhr withHoorayhrusername(String hoorayhrusername) { + Utils.checkNotNull(hoorayhrusername, "hoorayhrusername"); + this.hoorayhrusername = hoorayhrusername; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceHoorayhr other = (SourceHoorayhr) o; + return + Objects.deepEquals(this.hoorayhrpassword, other.hoorayhrpassword) && + Objects.deepEquals(this.hoorayhrusername, other.hoorayhrusername) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + hoorayhrpassword, + hoorayhrusername, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceHoorayhr.class, + "hoorayhrpassword", hoorayhrpassword, + "hoorayhrusername", hoorayhrusername, + "sourceType", sourceType); + } + + public final static class Builder { + + private String hoorayhrpassword; + + private String hoorayhrusername; + + private Builder() { + // force use of static builder() method + } + + public Builder hoorayhrpassword(String hoorayhrpassword) { + Utils.checkNotNull(hoorayhrpassword, "hoorayhrpassword"); + this.hoorayhrpassword = hoorayhrpassword; + return this; + } + + public Builder hoorayhrusername(String hoorayhrusername) { + Utils.checkNotNull(hoorayhrusername, "hoorayhrusername"); + this.hoorayhrusername = hoorayhrusername; + return this; + } + + public SourceHoorayhr build() { + return new SourceHoorayhr( + hoorayhrpassword, + hoorayhrusername); + } + + private static final LazySingletonValue<Hoorayhr> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"hoorayhr\"", + new TypeReference<Hoorayhr>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java b/src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java index b8c28bac4..643a9e823 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceHubplanner { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspot.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspot.java index 8a92c0ecc..d2db5975b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspot.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspot.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceHubspot { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java index b95d34c91..4846abe29 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceHubspotAuthType - Name of the credentials */ @@ -23,4 +24,13 @@ private SourceHubspotAuthType(String value) { public String value() { return value; } + + public static Optional<SourceHubspotAuthType> fromValue(String value) { + for (SourceHubspotAuthType o: SourceHubspotAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthentication.java index d050c29e2..3d4840882 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceHubspotAuthentication - Choose how to authenticate to HubSpot. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java index 8c73399e5..e87e37cd4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceHubspotHubspot { HUBSPOT("hubspot"); @@ -20,4 +21,13 @@ private SourceHubspotHubspot(String value) { public String value() { return value; } + + public static Optional<SourceHubspotHubspot> fromValue(String value) { + for (SourceHubspotHubspot o: SourceHubspotHubspot.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotOAuth.java index a887942ac..34d671676 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceHubspotOAuth { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java index a8c966fe1..1e7650cb7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceHubspotSchemasAuthType - Name of the credentials set */ @@ -23,4 +24,13 @@ private SourceHubspotSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceHubspotSchemasAuthType> fromValue(String value) { + for (SourceHubspotSchemasAuthType o: SourceHubspotSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.java b/src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.java new file mode 100644 index 000000000..5b7f89719 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.java @@ -0,0 +1,240 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +public class SourceHuggingFaceDatasets { + + @JsonProperty("dataset_name") + private String datasetName; + + /** + * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("dataset_splits") + private Optional<? extends List<Object>> datasetSplits; + + /** + * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("dataset_subsets") + private Optional<? extends List<Object>> datasetSubsets; + + @JsonProperty("sourceType") + private HuggingFaceDatasets sourceType; + + @JsonCreator + public SourceHuggingFaceDatasets( + @JsonProperty("dataset_name") String datasetName, + @JsonProperty("dataset_splits") Optional<? extends List<Object>> datasetSplits, + @JsonProperty("dataset_subsets") Optional<? extends List<Object>> datasetSubsets) { + Utils.checkNotNull(datasetName, "datasetName"); + Utils.checkNotNull(datasetSplits, "datasetSplits"); + Utils.checkNotNull(datasetSubsets, "datasetSubsets"); + this.datasetName = datasetName; + this.datasetSplits = datasetSplits; + this.datasetSubsets = datasetSubsets; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + public SourceHuggingFaceDatasets( + String datasetName) { + this(datasetName, Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public String datasetName() { + return datasetName; + } + + /** + * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<Object>> datasetSplits() { + return (Optional<List<Object>>) datasetSplits; + } + + /** + * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<Object>> datasetSubsets() { + return (Optional<List<Object>>) datasetSubsets; + } + + @JsonIgnore + public HuggingFaceDatasets sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceHuggingFaceDatasets withDatasetName(String datasetName) { + Utils.checkNotNull(datasetName, "datasetName"); + this.datasetName = datasetName; + return this; + } + + /** + * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + public SourceHuggingFaceDatasets withDatasetSplits(List<Object> datasetSplits) { + Utils.checkNotNull(datasetSplits, "datasetSplits"); + this.datasetSplits = Optional.ofNullable(datasetSplits); + return this; + } + + /** + * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + public SourceHuggingFaceDatasets withDatasetSplits(Optional<? extends List<Object>> datasetSplits) { + Utils.checkNotNull(datasetSplits, "datasetSplits"); + this.datasetSplits = datasetSplits; + return this; + } + + /** + * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + public SourceHuggingFaceDatasets withDatasetSubsets(List<Object> datasetSubsets) { + Utils.checkNotNull(datasetSubsets, "datasetSubsets"); + this.datasetSubsets = Optional.ofNullable(datasetSubsets); + return this; + } + + /** + * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + public SourceHuggingFaceDatasets withDatasetSubsets(Optional<? extends List<Object>> datasetSubsets) { + Utils.checkNotNull(datasetSubsets, "datasetSubsets"); + this.datasetSubsets = datasetSubsets; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceHuggingFaceDatasets other = (SourceHuggingFaceDatasets) o; + return + Objects.deepEquals(this.datasetName, other.datasetName) && + Objects.deepEquals(this.datasetSplits, other.datasetSplits) && + Objects.deepEquals(this.datasetSubsets, other.datasetSubsets) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + datasetName, + datasetSplits, + datasetSubsets, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceHuggingFaceDatasets.class, + "datasetName", datasetName, + "datasetSplits", datasetSplits, + "datasetSubsets", datasetSubsets, + "sourceType", sourceType); + } + + public final static class Builder { + + private String datasetName; + + private Optional<? extends List<Object>> datasetSplits = Optional.empty(); + + private Optional<? extends List<Object>> datasetSubsets = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder datasetName(String datasetName) { + Utils.checkNotNull(datasetName, "datasetName"); + this.datasetName = datasetName; + return this; + } + + /** + * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + public Builder datasetSplits(List<Object> datasetSplits) { + Utils.checkNotNull(datasetSplits, "datasetSplits"); + this.datasetSplits = Optional.ofNullable(datasetSplits); + return this; + } + + /** + * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + public Builder datasetSplits(Optional<? extends List<Object>> datasetSplits) { + Utils.checkNotNull(datasetSplits, "datasetSplits"); + this.datasetSplits = datasetSplits; + return this; + } + + /** + * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + public Builder datasetSubsets(List<Object> datasetSubsets) { + Utils.checkNotNull(datasetSubsets, "datasetSubsets"); + this.datasetSubsets = Optional.ofNullable(datasetSubsets); + return this; + } + + /** + * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + public Builder datasetSubsets(Optional<? extends List<Object>> datasetSubsets) { + Utils.checkNotNull(datasetSubsets, "datasetSubsets"); + this.datasetSubsets = datasetSubsets; + return this; + } + + public SourceHuggingFaceDatasets build() { + return new SourceHuggingFaceDatasets( + datasetName, + datasetSplits, + datasetSubsets); + } + + private static final LazySingletonValue<HuggingFaceDatasets> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"hugging-face-datasets\"", + new TypeReference<HuggingFaceDatasets>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHumanitix.java b/src/main/java/com/airbyte/api/models/shared/SourceHumanitix.java index 4b51ef021..9dbb0ba40 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHumanitix.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHumanitix.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceHumanitix { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHuntr.java b/src/main/java/com/airbyte/api/models/shared/SourceHuntr.java new file mode 100644 index 000000000..d21fdfb73 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceHuntr.java @@ -0,0 +1,107 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceHuntr { + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private Huntr sourceType; + + @JsonCreator + public SourceHuntr( + @JsonProperty("api_key") String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Huntr sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceHuntr 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; + } + SourceHuntr other = (SourceHuntr) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceHuntr.class, + "apiKey", apiKey, + "sourceType", sourceType); + } + + public final static class Builder { + + private String apiKey; + + private Builder() { + // force use of static builder() method + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceHuntr build() { + return new SourceHuntr( + apiKey); + } + + private static final LazySingletonValue<Huntr> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"huntr\"", + new TypeReference<Huntr>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIlluminaBasespace.java b/src/main/java/com/airbyte/api/models/shared/SourceIlluminaBasespace.java index d3bc1e3c0..3af702e8e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIlluminaBasespace.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIlluminaBasespace.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceIlluminaBasespace { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java b/src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java index ae3675254..d5dcdb3f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceIncidentIo { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInflowinventory.java b/src/main/java/com/airbyte/api/models/shared/SourceInflowinventory.java index 7943b40ea..22602199d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInflowinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInflowinventory.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceInflowinventory { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInsightly.java b/src/main/java/com/airbyte/api/models/shared/SourceInsightly.java index 2edb36009..82f41b1dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInsightly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInsightly.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceInsightly { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInstagram.java b/src/main/java/com/airbyte/api/models/shared/SourceInstagram.java index d59e8de68..442fa866a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInstagram.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInstagram.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceInstagram { /** @@ -28,6 +26,20 @@ public class SourceInstagram { @JsonProperty("access_token") private String accessToken; + /** + * The Client ID for your Oauth application + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("client_id") + private Optional<String> clientId; + + /** + * The Client Secret for your Oauth application + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("client_secret") + private Optional<String> clientSecret; + @JsonProperty("sourceType") private SourceInstagramInstagram sourceType; @@ -41,17 +53,23 @@ public class SourceInstagram { @JsonCreator public SourceInstagram( @JsonProperty("access_token") String accessToken, + @JsonProperty("client_id") Optional<String> clientId, + @JsonProperty("client_secret") Optional<String> clientSecret, @JsonProperty("start_date") Optional<OffsetDateTime> startDate) { Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); Utils.checkNotNull(startDate, "startDate"); this.accessToken = accessToken; + this.clientId = clientId; + this.clientSecret = clientSecret; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; } public SourceInstagram( String accessToken) { - this(accessToken, Optional.empty()); + this(accessToken, Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -62,6 +80,22 @@ public String accessToken() { return accessToken; } + /** + * The Client ID for your Oauth application + */ + @JsonIgnore + public Optional<String> clientId() { + return clientId; + } + + /** + * The Client Secret for your Oauth application + */ + @JsonIgnore + public Optional<String> clientSecret() { + return clientSecret; + } + @JsonIgnore public SourceInstagramInstagram sourceType() { return sourceType; @@ -88,6 +122,42 @@ public SourceInstagram withAccessToken(String accessToken) { return this; } + /** + * The Client ID for your Oauth application + */ + public SourceInstagram withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = Optional.ofNullable(clientId); + return this; + } + + /** + * The Client ID for your Oauth application + */ + public SourceInstagram withClientId(Optional<String> clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The Client Secret for your Oauth application + */ + public SourceInstagram withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = Optional.ofNullable(clientSecret); + return this; + } + + /** + * The Client Secret for your Oauth application + */ + public SourceInstagram withClientSecret(Optional<String> clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + /** * The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. */ @@ -117,6 +187,8 @@ public boolean equals(java.lang.Object o) { SourceInstagram other = (SourceInstagram) o; return Objects.deepEquals(this.accessToken, other.accessToken) && + Objects.deepEquals(this.clientId, other.clientId) && + Objects.deepEquals(this.clientSecret, other.clientSecret) && Objects.deepEquals(this.sourceType, other.sourceType) && Objects.deepEquals(this.startDate, other.startDate); } @@ -125,6 +197,8 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( accessToken, + clientId, + clientSecret, sourceType, startDate); } @@ -133,6 +207,8 @@ public int hashCode() { public String toString() { return Utils.toString(SourceInstagram.class, "accessToken", accessToken, + "clientId", clientId, + "clientSecret", clientSecret, "sourceType", sourceType, "startDate", startDate); } @@ -141,6 +217,10 @@ public final static class Builder { private String accessToken; + private Optional<String> clientId = Optional.empty(); + + private Optional<String> clientSecret = Optional.empty(); + private Optional<OffsetDateTime> startDate = Optional.empty(); private Builder() { @@ -156,6 +236,42 @@ public Builder accessToken(String accessToken) { return this; } + /** + * The Client ID for your Oauth application + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = Optional.ofNullable(clientId); + return this; + } + + /** + * The Client ID for your Oauth application + */ + public Builder clientId(Optional<String> clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The Client Secret for your Oauth application + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = Optional.ofNullable(clientSecret); + return this; + } + + /** + * The Client Secret for your Oauth application + */ + public Builder clientSecret(Optional<String> clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + /** * The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. */ @@ -177,6 +293,8 @@ public Builder startDate(Optional<OffsetDateTime> startDate) { public SourceInstagram build() { return new SourceInstagram( accessToken, + clientId, + clientSecret, startDate); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java b/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java index 71ca807ba..60da58bfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceInstagramInstagram { INSTAGRAM("instagram"); @@ -20,4 +21,13 @@ private SourceInstagramInstagram(String value) { public String value() { return value; } + + public static Optional<SourceInstagramInstagram> fromValue(String value) { + for (SourceInstagramInstagram o: SourceInstagramInstagram.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInstatus.java b/src/main/java/com/airbyte/api/models/shared/SourceInstatus.java index c28641a83..5007bdbf1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInstatus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInstatus.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceInstatus { /** 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 e0f8ec9c6..bb0e43090 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceIntercom { /** @@ -58,7 +56,7 @@ public class SourceIntercom { private Optional<Long> lookbackWindow; @JsonProperty("sourceType") - private SourceIntercomIntercom sourceType; + private Intercom sourceType; /** * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. @@ -136,7 +134,7 @@ public Optional<Long> lookbackWindow() { } @JsonIgnore - public SourceIntercomIntercom sourceType() { + public Intercom sourceType() { return sourceType; } @@ -420,11 +418,11 @@ public SourceIntercom build() { "0", new TypeReference<Optional<Long>>() {}); - private static final LazySingletonValue<SourceIntercomIntercom> _SINGLETON_VALUE_SourceType = + private static final LazySingletonValue<Intercom> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"intercom\"", - new TypeReference<SourceIntercomIntercom>() {}); + new TypeReference<Intercom>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIntercomIntercom.java b/src/main/java/com/airbyte/api/models/shared/SourceIntercomIntercom.java deleted file mode 100644 index 032878818..000000000 --- a/src/main/java/com/airbyte/api/models/shared/SourceIntercomIntercom.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum SourceIntercomIntercom { - INTERCOM("intercom"); - - @JsonValue - private final String value; - - private SourceIntercomIntercom(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIntruder.java b/src/main/java/com/airbyte/api/models/shared/SourceIntruder.java new file mode 100644 index 000000000..7b6942a3e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceIntruder.java @@ -0,0 +1,119 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceIntruder { + + /** + * Your API Access token. See <a href="https://developers.intruder.io/docs/authentication">here</a>. + */ + @JsonProperty("access_token") + private String accessToken; + + @JsonProperty("sourceType") + private Intruder sourceType; + + @JsonCreator + public SourceIntruder( + @JsonProperty("access_token") String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * Your API Access token. See <a href="https://developers.intruder.io/docs/authentication">here</a>. + */ + @JsonIgnore + public String accessToken() { + return accessToken; + } + + @JsonIgnore + public Intruder sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Your API Access token. See <a href="https://developers.intruder.io/docs/authentication">here</a>. + */ + public SourceIntruder withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceIntruder other = (SourceIntruder) o; + return + Objects.deepEquals(this.accessToken, other.accessToken) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + accessToken, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceIntruder.class, + "accessToken", accessToken, + "sourceType", sourceType); + } + + public final static class Builder { + + private String accessToken; + + private Builder() { + // force use of static builder() method + } + + /** + * Your API Access token. See <a href="https://developers.intruder.io/docs/authentication">here</a>. + */ + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + public SourceIntruder build() { + return new SourceIntruder( + accessToken); + } + + private static final LazySingletonValue<Intruder> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"intruder\"", + new TypeReference<Intruder>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInvoiced.java b/src/main/java/com/airbyte/api/models/shared/SourceInvoiced.java index 2c5fea3b8..be7d485ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInvoiced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInvoiced.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceInvoiced { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInvoiceninja.java b/src/main/java/com/airbyte/api/models/shared/SourceInvoiceninja.java index daa19b646..11080bf0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInvoiceninja.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInvoiceninja.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceInvoiceninja { @JsonProperty("api_key") 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 cead6a4de..8a396a4d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceIp2whois { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIterable.java b/src/main/java/com/airbyte/api/models/shared/SourceIterable.java index a72a1a452..0f04d51b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIterable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIterable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceIterable { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJira.java b/src/main/java/com/airbyte/api/models/shared/SourceJira.java index d6a7bf7d8..dface050e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJira.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJira.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,7 +22,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceJira { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJobnimbus.java b/src/main/java/com/airbyte/api/models/shared/SourceJobnimbus.java index 03e5562cf..962b2e8b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJobnimbus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJobnimbus.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceJobnimbus { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJotform.java b/src/main/java/com/airbyte/api/models/shared/SourceJotform.java index a42c5b54c..cf33713c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJotform.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJotform.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceJotform { @JsonProperty("api_endpoint") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java b/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java index 189ae3c60..e632e7830 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceJotformApiEndpoint { - BASIC("basic"); + ENTERPRISE("enterprise"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceJotformApiEndpoint(String value) { public String value() { return value; } + + public static Optional<SourceJotformApiEndpoint> fromValue(String value) { + for (SourceJotformApiEndpoint o: SourceJotformApiEndpoint.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java b/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java index 10bfb7450..0f3165d04 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceJotformSchemasApiEndpoint { - ENTERPRISE("enterprise"); + BASIC("basic"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceJotformSchemasApiEndpoint(String value) { public String value() { return value; } + + public static Optional<SourceJotformSchemasApiEndpoint> fromValue(String value) { + for (SourceJotformSchemasApiEndpoint o: SourceJotformSchemasApiEndpoint.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJustSift.java b/src/main/java/com/airbyte/api/models/shared/SourceJustSift.java index 5859e3a4b..75ebf47f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJustSift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJustSift.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceJustSift { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJustcall.java b/src/main/java/com/airbyte/api/models/shared/SourceJustcall.java index e2d3158ac..01799f4d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJustcall.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJustcall.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceJustcall { @JsonProperty("api_key_2") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java b/src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java index 80d49b72c..c7229f822 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceK6Cloud { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKatana.java b/src/main/java/com/airbyte/api/models/shared/SourceKatana.java index 802c8b8b5..6f048cb5b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKatana.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKatana.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceKatana { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKeka.java b/src/main/java/com/airbyte/api/models/shared/SourceKeka.java new file mode 100644 index 000000000..60bf42e91 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceKeka.java @@ -0,0 +1,247 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceKeka { + + @JsonProperty("api_key") + private String apiKey; + + /** + * Your client identifier for authentication. + */ + @JsonProperty("client_id") + private String clientId; + + /** + * Your client secret for secure authentication. + */ + @JsonProperty("client_secret") + private String clientSecret; + + @JsonProperty("grant_type") + private String grantType; + + @JsonProperty("scope") + private String scope; + + @JsonProperty("sourceType") + private Keka sourceType; + + @JsonCreator + public SourceKeka( + @JsonProperty("api_key") String apiKey, + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("grant_type") String grantType, + @JsonProperty("scope") String scope) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(grantType, "grantType"); + Utils.checkNotNull(scope, "scope"); + this.apiKey = apiKey; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.grantType = grantType; + this.scope = scope; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Your client identifier for authentication. + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * Your client secret for secure authentication. + */ + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + @JsonIgnore + public String grantType() { + return grantType; + } + + @JsonIgnore + public String scope() { + return scope; + } + + @JsonIgnore + public Keka sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceKeka withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Your client identifier for authentication. + */ + public SourceKeka withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Your client secret for secure authentication. + */ + public SourceKeka withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public SourceKeka withGrantType(String grantType) { + Utils.checkNotNull(grantType, "grantType"); + this.grantType = grantType; + return this; + } + + public SourceKeka withScope(String scope) { + Utils.checkNotNull(scope, "scope"); + this.scope = scope; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceKeka other = (SourceKeka) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.clientId, other.clientId) && + Objects.deepEquals(this.clientSecret, other.clientSecret) && + Objects.deepEquals(this.grantType, other.grantType) && + Objects.deepEquals(this.scope, other.scope) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + clientId, + clientSecret, + grantType, + scope, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceKeka.class, + "apiKey", apiKey, + "clientId", clientId, + "clientSecret", clientSecret, + "grantType", grantType, + "scope", scope, + "sourceType", sourceType); + } + + public final static class Builder { + + private String apiKey; + + private String clientId; + + private String clientSecret; + + private String grantType; + + private String scope; + + private Builder() { + // force use of static builder() method + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Your client identifier for authentication. + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Your client secret for secure authentication. + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public Builder grantType(String grantType) { + Utils.checkNotNull(grantType, "grantType"); + this.grantType = grantType; + return this; + } + + public Builder scope(String scope) { + Utils.checkNotNull(scope, "scope"); + this.scope = scope; + return this; + } + + public SourceKeka build() { + return new SourceKeka( + apiKey, + clientId, + clientSecret, + grantType, + scope); + } + + private static final LazySingletonValue<Keka> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"keka\"", + new TypeReference<Keka>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKisi.java b/src/main/java/com/airbyte/api/models/shared/SourceKisi.java index 2e292ee0c..b8a266f64 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKisi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKisi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceKisi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java b/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java index 879fc7504..dda151ff4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceKissmetrics { @JsonInclude(Include.NON_ABSENT) 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 19c5e6733..565b3b509 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceKlarna { /** 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 2f854c84a..46a74c81e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceKlarnaRegion - Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ @@ -25,4 +26,13 @@ private SourceKlarnaRegion(String value) { public String value() { return value; } + + public static Optional<SourceKlarnaRegion> fromValue(String value) { + for (SourceKlarnaRegion o: SourceKlarnaRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKlausApi.java b/src/main/java/com/airbyte/api/models/shared/SourceKlausApi.java index e851a9658..7767537f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlausApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlausApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceKlausApi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java b/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java index 24481e06d..23a082cf4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceKlaviyo { /** @@ -38,7 +36,7 @@ public class SourceKlaviyo { private Optional<Boolean> disableFetchingPredictiveAnalytics; /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("num_workers") @@ -93,7 +91,7 @@ public Optional<Boolean> disableFetchingPredictiveAnalytics() { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. */ @JsonIgnore public Optional<Long> numWorkers() { @@ -145,7 +143,7 @@ public SourceKlaviyo withDisableFetchingPredictiveAnalytics(Optional<Boolean> di } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. */ public SourceKlaviyo withNumWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -154,7 +152,7 @@ public SourceKlaviyo withNumWorkers(long numWorkers) { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. */ public SourceKlaviyo withNumWorkers(Optional<Long> numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -259,7 +257,7 @@ public Builder disableFetchingPredictiveAnalytics(Optional<Boolean> disableFetch } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. */ public Builder numWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -268,7 +266,7 @@ public Builder numWorkers(long numWorkers) { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. */ public Builder numWorkers(Optional<Long> numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKyve.java b/src/main/java/com/airbyte/api/models/shared/SourceKyve.java index ae0ec260b..6658caa7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKyve.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKyve.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceKyve { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLaunchdarkly.java b/src/main/java/com/airbyte/api/models/shared/SourceLaunchdarkly.java index 85e66ad58..d1e40495d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLaunchdarkly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLaunchdarkly.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceLaunchdarkly { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java b/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java index 2a30d541b..5acbdd0c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceLeadfeeder { @JsonProperty("api_token") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLemlist.java b/src/main/java/com/airbyte/api/models/shared/SourceLemlist.java index eb3f1eac9..eefad3049 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLemlist.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLemlist.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceLemlist { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLessAnnoyingCrm.java b/src/main/java/com/airbyte/api/models/shared/SourceLessAnnoyingCrm.java index 78efe758f..dbef61dda 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLessAnnoyingCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLessAnnoyingCrm.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceLessAnnoyingCrm { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiring.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiring.java index 26f0095bf..dab867401 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiring.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiring.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceLeverHiring { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java index b84efa151..5682b81c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceLeverHiringAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceLeverHiringAuthType(String value) { public String value() { return value; } + + public static Optional<SourceLeverHiringAuthType> fromValue(String value) { + for (SourceLeverHiringAuthType o: SourceLeverHiringAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthenticationMechanism.java index 9d9c8f9a8..68aab6a00 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthenticationMechanism.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceLeverHiringAuthenticationMechanism - Choose how to authenticate to Lever Hiring. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java index de7e859b3..fe28773ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceLeverHiringEnvironment - The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use. */ @@ -24,4 +25,13 @@ private SourceLeverHiringEnvironment(String value) { public String value() { return value; } + + public static Optional<SourceLeverHiringEnvironment> fromValue(String value) { + for (SourceLeverHiringEnvironment o: SourceLeverHiringEnvironment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java index ebbbef95d..2b34f8c0f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceLeverHiringLeverHiring { LEVER_HIRING("lever-hiring"); @@ -20,4 +21,13 @@ private SourceLeverHiringLeverHiring(String value) { public String value() { return value; } + + public static Optional<SourceLeverHiringLeverHiring> fromValue(String value) { + for (SourceLeverHiringLeverHiring o: SourceLeverHiringLeverHiring.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java index 037d5f608..b028d5a8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceLeverHiringSchemasAuthType { API_KEY("Api Key"); @@ -20,4 +21,13 @@ private SourceLeverHiringSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceLeverHiringSchemasAuthType> fromValue(String value) { + for (SourceLeverHiringSchemasAuthType o: SourceLeverHiringSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLightspeedRetail.java b/src/main/java/com/airbyte/api/models/shared/SourceLightspeedRetail.java index 189e1b9bd..a38f289e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLightspeedRetail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLightspeedRetail.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceLightspeedRetail { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAds.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAds.java index a4f8d07d9..0afdb0517 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAds.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceLinkedinAds { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAccessToken.java index f5412bfe6..339ec4a27 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceLinkedinAdsAccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java index b108aea0b..0a1052185 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceLinkedinAdsAuthMethod { O_AUTH20("oAuth2.0"); @@ -20,4 +21,13 @@ private SourceLinkedinAdsAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceLinkedinAdsAuthMethod> fromValue(String value) { + for (SourceLinkedinAdsAuthMethod o: SourceLinkedinAdsAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthentication.java index bd27b10ab..be01a07d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceLinkedinAdsAuthentication._Deserializer.class) public class SourceLinkedinAdsAuthentication { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java index 97b9dd64c..36bd937de 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceLinkedinAdsLinkedinAds { LINKEDIN_ADS("linkedin-ads"); @@ -20,4 +21,13 @@ private SourceLinkedinAdsLinkedinAds(String value) { public String value() { return value; } + + public static Optional<SourceLinkedinAdsLinkedinAds> fromValue(String value) { + for (SourceLinkedinAdsLinkedinAds o: SourceLinkedinAdsLinkedinAds.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsOAuth20.java index d0ccb8279..3a797455b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceLinkedinAdsOAuth20 { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java index 604d5e627..c930af71e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceLinkedinAdsSchemasAuthMethod { ACCESS_TOKEN("access_token"); @@ -20,4 +21,13 @@ private SourceLinkedinAdsSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceLinkedinAdsSchemasAuthMethod> fromValue(String value) { + for (SourceLinkedinAdsSchemasAuthMethod o: SourceLinkedinAdsSchemasAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java index c5e97bb1b..355e74740 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceLinkedinPages { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAccessToken.java index a2be73487..a401054bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceLinkedinPagesAccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java index 34290c9ec..76ef72a51 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceLinkedinPagesAuthMethod { O_AUTH20("oAuth2.0"); @@ -20,4 +21,13 @@ private SourceLinkedinPagesAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceLinkedinPagesAuthMethod> fromValue(String value) { + for (SourceLinkedinPagesAuthMethod o: SourceLinkedinPagesAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthentication.java index 8c7d79e3d..4206cecc4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceLinkedinPagesAuthentication._Deserializer.class) public class SourceLinkedinPagesAuthentication { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesOAuth20.java index 982d593d4..ede73d050 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceLinkedinPagesOAuth20 { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java index fe83d23b4..f5e6c805c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceLinkedinPagesSchemasAuthMethod { ACCESS_TOKEN("access_token"); @@ -20,4 +21,13 @@ private SourceLinkedinPagesSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceLinkedinPagesSchemasAuthMethod> fromValue(String value) { + for (SourceLinkedinPagesSchemasAuthMethod o: SourceLinkedinPagesSchemasAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java b/src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java index 423d40fb3..62c779f6b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceLinnworks { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLob.java b/src/main/java/com/airbyte/api/models/shared/SourceLob.java index e07386a36..5acb65a20 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLob.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLob.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceLob { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLokalise.java b/src/main/java/com/airbyte/api/models/shared/SourceLokalise.java index 6c7d443b9..4b15ed7d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLokalise.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLokalise.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceLokalise { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLooker.java b/src/main/java/com/airbyte/api/models/shared/SourceLooker.java index 8362016ff..57493fc95 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLooker.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLooker.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceLooker { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLuma.java b/src/main/java/com/airbyte/api/models/shared/SourceLuma.java index f143160dd..066461f32 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLuma.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLuma.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceLuma { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java index b19f04100..91553f722 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMailchimp { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java index 163a83431..04e0d0a69 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMailchimpAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceMailchimpAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMailchimpAuthType> fromValue(String value) { + for (SourceMailchimpAuthType o: SourceMailchimpAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java index 577a1ff0e..76e649a8d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceMailchimpAuthentication._Deserializer.class) public class SourceMailchimpAuthentication { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java index c0344f2a7..d22842608 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMailchimpMailchimp { MAILCHIMP("mailchimp"); @@ -20,4 +21,13 @@ private SourceMailchimpMailchimp(String value) { public String value() { return value; } + + public static Optional<SourceMailchimpMailchimp> fromValue(String value) { + for (SourceMailchimpMailchimp o: SourceMailchimpMailchimp.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpOAuth20.java index 1bef590ad..763473aaf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMailchimpOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java index 50a673e93..e57e846c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMailchimpSchemasAuthType { APIKEY("apikey"); @@ -20,4 +21,13 @@ private SourceMailchimpSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMailchimpSchemasAuthType> fromValue(String value) { + for (SourceMailchimpSchemasAuthType o: SourceMailchimpSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailerlite.java b/src/main/java/com/airbyte/api/models/shared/SourceMailerlite.java index dcb4ecc99..55cd330dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailerlite.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailerlite.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceMailerlite { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOrbit.java b/src/main/java/com/airbyte/api/models/shared/SourceMailersend.java similarity index 52% rename from src/main/java/com/airbyte/api/models/shared/SourceOrbit.java rename to src/main/java/com/airbyte/api/models/shared/SourceMailersend.java index 19a2d3bfb..5eafc1d3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOrbit.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailersend.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,83 +12,83 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Double; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; - -public class SourceOrbit { +public class SourceMailersend { /** - * Authorizes you to work with Orbit workspaces associated with the token. + * Your API Token. See <a href="https://www.mailersend.com/help/managing-api-tokens">here</a>. */ @JsonProperty("api_token") private String apiToken; + /** + * The domain entity in mailersend + */ + @JsonProperty("domain_id") + private String domainId; + @JsonProperty("sourceType") - private Orbit sourceType; + private Mailersend sourceType; /** - * Date in the format 2022-06-26. Only load members whose last activities are after this date. + * Timestamp is assumed to be UTC. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") - private Optional<String> startDate; - - /** - * The unique name of the workspace that your API token is associated with. - */ - @JsonProperty("workspace") - private String workspace; + private Optional<Double> startDate; @JsonCreator - public SourceOrbit( + public SourceMailersend( @JsonProperty("api_token") String apiToken, - @JsonProperty("start_date") Optional<String> startDate, - @JsonProperty("workspace") String workspace) { + @JsonProperty("domain_id") String domainId, + @JsonProperty("start_date") Optional<Double> startDate) { Utils.checkNotNull(apiToken, "apiToken"); + Utils.checkNotNull(domainId, "domainId"); Utils.checkNotNull(startDate, "startDate"); - Utils.checkNotNull(workspace, "workspace"); this.apiToken = apiToken; + this.domainId = domainId; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; - this.workspace = workspace; } - public SourceOrbit( + public SourceMailersend( String apiToken, - String workspace) { - this(apiToken, Optional.empty(), workspace); + String domainId) { + this(apiToken, domainId, Optional.empty()); } /** - * Authorizes you to work with Orbit workspaces associated with the token. + * Your API Token. See <a href="https://www.mailersend.com/help/managing-api-tokens">here</a>. */ @JsonIgnore public String apiToken() { return apiToken; } + /** + * The domain entity in mailersend + */ @JsonIgnore - public Orbit sourceType() { - return sourceType; + public String domainId() { + return domainId; } - /** - * Date in the format 2022-06-26. Only load members whose last activities are after this date. - */ @JsonIgnore - public Optional<String> startDate() { - return startDate; + public Mailersend sourceType() { + return sourceType; } /** - * The unique name of the workspace that your API token is associated with. + * Timestamp is assumed to be UTC. */ @JsonIgnore - public String workspace() { - return workspace; + public Optional<Double> startDate() { + return startDate; } public final static Builder builder() { @@ -97,38 +96,38 @@ public final static Builder builder() { } /** - * Authorizes you to work with Orbit workspaces associated with the token. + * Your API Token. See <a href="https://www.mailersend.com/help/managing-api-tokens">here</a>. */ - public SourceOrbit withApiToken(String apiToken) { + public SourceMailersend withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } /** - * Date in the format 2022-06-26. Only load members whose last activities are after this date. + * The domain entity in mailersend */ - public SourceOrbit withStartDate(String startDate) { - Utils.checkNotNull(startDate, "startDate"); - this.startDate = Optional.ofNullable(startDate); + public SourceMailersend withDomainId(String domainId) { + Utils.checkNotNull(domainId, "domainId"); + this.domainId = domainId; return this; } /** - * Date in the format 2022-06-26. Only load members whose last activities are after this date. + * Timestamp is assumed to be UTC. */ - public SourceOrbit withStartDate(Optional<String> startDate) { + public SourceMailersend withStartDate(double startDate) { Utils.checkNotNull(startDate, "startDate"); - this.startDate = startDate; + this.startDate = Optional.ofNullable(startDate); return this; } /** - * The unique name of the workspace that your API token is associated with. + * Timestamp is assumed to be UTC. */ - public SourceOrbit withWorkspace(String workspace) { - Utils.checkNotNull(workspace, "workspace"); - this.workspace = workspace; + public SourceMailersend withStartDate(Optional<Double> startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; return this; } @@ -140,46 +139,46 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceOrbit other = (SourceOrbit) o; + SourceMailersend other = (SourceMailersend) o; return Objects.deepEquals(this.apiToken, other.apiToken) && + Objects.deepEquals(this.domainId, other.domainId) && Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.workspace, other.workspace); + Objects.deepEquals(this.startDate, other.startDate); } @Override public int hashCode() { return Objects.hash( apiToken, + domainId, sourceType, - startDate, - workspace); + startDate); } @Override public String toString() { - return Utils.toString(SourceOrbit.class, + return Utils.toString(SourceMailersend.class, "apiToken", apiToken, + "domainId", domainId, "sourceType", sourceType, - "startDate", startDate, - "workspace", workspace); + "startDate", startDate); } public final static class Builder { private String apiToken; - private Optional<String> startDate = Optional.empty(); + private String domainId; - private String workspace; + private Optional<Double> startDate = Optional.empty(); private Builder() { // force use of static builder() method } /** - * Authorizes you to work with Orbit workspaces associated with the token. + * Your API Token. See <a href="https://www.mailersend.com/help/managing-api-tokens">here</a>. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -188,44 +187,44 @@ public Builder apiToken(String apiToken) { } /** - * Date in the format 2022-06-26. Only load members whose last activities are after this date. + * The domain entity in mailersend */ - public Builder startDate(String startDate) { - Utils.checkNotNull(startDate, "startDate"); - this.startDate = Optional.ofNullable(startDate); + public Builder domainId(String domainId) { + Utils.checkNotNull(domainId, "domainId"); + this.domainId = domainId; return this; } /** - * Date in the format 2022-06-26. Only load members whose last activities are after this date. + * Timestamp is assumed to be UTC. */ - public Builder startDate(Optional<String> startDate) { + public Builder startDate(double startDate) { Utils.checkNotNull(startDate, "startDate"); - this.startDate = startDate; + this.startDate = Optional.ofNullable(startDate); return this; } /** - * The unique name of the workspace that your API token is associated with. + * Timestamp is assumed to be UTC. */ - public Builder workspace(String workspace) { - Utils.checkNotNull(workspace, "workspace"); - this.workspace = workspace; + public Builder startDate(Optional<Double> startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; return this; } - public SourceOrbit build() { - return new SourceOrbit( + public SourceMailersend build() { + return new SourceMailersend( apiToken, - startDate, - workspace); + domainId, + startDate); } - private static final LazySingletonValue<Orbit> _SINGLETON_VALUE_SourceType = + private static final LazySingletonValue<Mailersend> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", - "\"orbit\"", - new TypeReference<Orbit>() {}); + "\"mailersend\"", + new TypeReference<Mailersend>() {}); } } 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 b00738ea7..2146ead4f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMailgun { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailjetMail.java b/src/main/java/com/airbyte/api/models/shared/SourceMailjetMail.java index 31d2a6260..41ff193cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailjetMail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailjetMail.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceMailjetMail { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailjetSms.java b/src/main/java/com/airbyte/api/models/shared/SourceMailjetSms.java index 4711415d9..b4a87e822 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailjetSms.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailjetSms.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMailjetSms { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailosaur.java b/src/main/java/com/airbyte/api/models/shared/SourceMailosaur.java index be85e1a27..1e5297891 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailosaur.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailosaur.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMailosaur { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailtrap.java b/src/main/java/com/airbyte/api/models/shared/SourceMailtrap.java index 3557aacee..1a14bbd5a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailtrap.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailtrap.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceMailtrap { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMarketo.java b/src/main/java/com/airbyte/api/models/shared/SourceMarketo.java index 59b90a69d..b253e5af0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMarketo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMarketo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceMarketo { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java b/src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java index e17d74925..5c759ce6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceMarketstack { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMention.java b/src/main/java/com/airbyte/api/models/shared/SourceMention.java index 457485323..41cae208b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMention.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMention.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMention { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMerge.java b/src/main/java/com/airbyte/api/models/shared/SourceMerge.java new file mode 100644 index 000000000..b4a731a7e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMerge.java @@ -0,0 +1,202 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Objects; + +public class SourceMerge { + + /** + * Link your other integrations with account credentials on accounts section to get account token (ref - https://app.merge.dev/linked-accounts/accounts) + */ + @JsonProperty("account_token") + private String accountToken; + + /** + * API token can be seen at https://app.merge.dev/keys + */ + @JsonProperty("api_token") + private String apiToken; + + @JsonProperty("sourceType") + private Merge sourceType; + + /** + * Date time filter for incremental filter, Specify which date to extract from. + */ + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceMerge( + @JsonProperty("account_token") String accountToken, + @JsonProperty("api_token") String apiToken, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(accountToken, "accountToken"); + Utils.checkNotNull(apiToken, "apiToken"); + Utils.checkNotNull(startDate, "startDate"); + this.accountToken = accountToken; + this.apiToken = apiToken; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + /** + * Link your other integrations with account credentials on accounts section to get account token (ref - https://app.merge.dev/linked-accounts/accounts) + */ + @JsonIgnore + public String accountToken() { + return accountToken; + } + + /** + * API token can be seen at https://app.merge.dev/keys + */ + @JsonIgnore + public String apiToken() { + return apiToken; + } + + @JsonIgnore + public Merge sourceType() { + return sourceType; + } + + /** + * Date time filter for incremental filter, Specify which date to extract from. + */ + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Link your other integrations with account credentials on accounts section to get account token (ref - https://app.merge.dev/linked-accounts/accounts) + */ + public SourceMerge withAccountToken(String accountToken) { + Utils.checkNotNull(accountToken, "accountToken"); + this.accountToken = accountToken; + return this; + } + + /** + * API token can be seen at https://app.merge.dev/keys + */ + public SourceMerge withApiToken(String apiToken) { + Utils.checkNotNull(apiToken, "apiToken"); + this.apiToken = apiToken; + return this; + } + + /** + * Date time filter for incremental filter, Specify which date to extract from. + */ + public SourceMerge withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceMerge other = (SourceMerge) o; + return + Objects.deepEquals(this.accountToken, other.accountToken) && + Objects.deepEquals(this.apiToken, other.apiToken) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Objects.hash( + accountToken, + apiToken, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceMerge.class, + "accountToken", accountToken, + "apiToken", apiToken, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String accountToken; + + private String apiToken; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + /** + * Link your other integrations with account credentials on accounts section to get account token (ref - https://app.merge.dev/linked-accounts/accounts) + */ + public Builder accountToken(String accountToken) { + Utils.checkNotNull(accountToken, "accountToken"); + this.accountToken = accountToken; + return this; + } + + /** + * API token can be seen at https://app.merge.dev/keys + */ + public Builder apiToken(String apiToken) { + Utils.checkNotNull(apiToken, "apiToken"); + this.apiToken = apiToken; + return this; + } + + /** + * Date time filter for incremental filter, Specify which date to extract from. + */ + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceMerge build() { + return new SourceMerge( + accountToken, + apiToken, + startDate); + } + + private static final LazySingletonValue<Merge> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"merge\"", + new TypeReference<Merge>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java b/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java index a1cb1d5d1..73a3b725f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMetabase { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java index bbde684b9..9e9321617 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftDataverse { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftEntraId.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftEntraId.java index 47ba5f6d3..3dca46c02 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftEntraId.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftEntraId.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceMicrosoftEntraId { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftLists.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftLists.java index a99a5fdec..8a5ff2fa3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftLists.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftLists.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceMicrosoftLists { @JsonProperty("application_id_uri") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedrive.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedrive.java index 9498c0973..8556cc730 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedrive.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * SourceMicrosoftOnedrive - SourceMicrosoftOneDriveSpec class for Microsoft OneDrive Source Specification. * This class combines the authentication details with additional configuration for the OneDrive API. diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java index 619c97acc..ec5cfdd2e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveAuthType> fromValue(String value) { + for (SourceMicrosoftOnedriveAuthType o: SourceMicrosoftOnedriveAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthentication.java index b50ce6dba..057541249 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMicrosoftOnedriveAuthentication - Credentials for connecting to the One Drive API */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAutogenerated.java index 22f1f4168..f767fb715 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAutogenerated.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftOnedriveAutogenerated { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAvroFormat.java index 97804ebac..904c8ad2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAvroFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftOnedriveAvroFormat { /** 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 458c81e63..fb0a13241 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftOnedriveCSVFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVHeaderDefinition.java index 4f4e69074..a93b6f481 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVHeaderDefinition.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMicrosoftOnedriveCSVHeaderDefinition - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFileBasedStreamConfig.java index 05c4b32ca..7fe932c28 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFileBasedStreamConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftOnedriveFileBasedStreamConfig { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java index 853f1223d..006d3046c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveFiletype { AVRO("avro"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveFiletype(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveFiletype> fromValue(String value) { + for (SourceMicrosoftOnedriveFiletype o: SourceMicrosoftOnedriveFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java index cf8e4a010..131962a02 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMicrosoftOnedriveFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFromCSV.java index 88449768b..7ffd8d192 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFromCSV.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftOnedriveFromCSV { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java index 75c0f6ce8..142a1a7cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveHeaderDefinitionType { FROM_CSV("From CSV"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveHeaderDefinitionType> fromValue(String value) { + for (SourceMicrosoftOnedriveHeaderDefinitionType o: SourceMicrosoftOnedriveHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveJsonlFormat.java index 89aa40d99..a3b5f4db6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveJsonlFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftOnedriveJsonlFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java index 4ba0e436d..a0f0c48ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceMicrosoftOnedriveLocal - Process files locally, supporting `fast` and `ocr` modes. This is the default option. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java index d7b04702d..9f3f94b67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveMicrosoftOnedrive { MICROSOFT_ONEDRIVE("microsoft-onedrive"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveMicrosoftOnedrive(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveMicrosoftOnedrive> fromValue(String value) { + for (SourceMicrosoftOnedriveMicrosoftOnedrive o: SourceMicrosoftOnedriveMicrosoftOnedrive.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java index daf779844..7b9f43071 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveMode { LOCAL("local"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveMode(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveMode> fromValue(String value) { + for (SourceMicrosoftOnedriveMode o: SourceMicrosoftOnedriveMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java index d698f93aa..6a42321f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftOnedriveParquetFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java index e43f813a9..078a19fcc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMicrosoftOnedriveParsingStrategy - The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @@ -26,4 +27,13 @@ private SourceMicrosoftOnedriveParsingStrategy(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveParsingStrategy> fromValue(String value) { + for (SourceMicrosoftOnedriveParsingStrategy o: SourceMicrosoftOnedriveParsingStrategy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java index 6d2592c07..262595b82 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMicrosoftOnedriveProcessing - Processing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java index 676a6abd4..c2b17c69e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveSchemasAuthType { SERVICE("Service"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveSchemasAuthType> fromValue(String value) { + for (SourceMicrosoftOnedriveSchemasAuthType o: SourceMicrosoftOnedriveSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java index e4b6e9ad3..5e1f9f8f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveSchemasFiletype { CSV("csv"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveSchemasFiletype(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveSchemasFiletype> fromValue(String value) { + for (SourceMicrosoftOnedriveSchemasFiletype o: SourceMicrosoftOnedriveSchemasFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java index c5dc807ff..4c6b8d77f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveSchemasHeaderDefinitionType { AUTOGENERATED("Autogenerated"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveSchemasHeaderDefinitionType> fromValue(String value) { + for (SourceMicrosoftOnedriveSchemasHeaderDefinitionType o: SourceMicrosoftOnedriveSchemasHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java index ad34e2e2c..c92564e9f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveSchemasStreamsFiletype { JSONL("jsonl"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveSchemasStreamsFiletype> fromValue(String value) { + for (SourceMicrosoftOnedriveSchemasStreamsFiletype o: SourceMicrosoftOnedriveSchemasStreamsFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java index a0dd317fa..23e6422e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveSchemasStreamsFormatFiletype { PARQUET("parquet"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveSchemasStreamsFormatFiletype> fromValue(String value) { + for (SourceMicrosoftOnedriveSchemasStreamsFormatFiletype o: SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java index b28380254..c4d324ea8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype { UNSTRUCTURED("unstructured"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype(String value) public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype> fromValue(String value) { + for (SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype o: SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java index 295c09172..3d3c0d7ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType { USER_PROVIDED("User Provided"); @@ -20,4 +21,13 @@ private SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType(String value) public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType> fromValue(String value) { + for (SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType o: SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java index adf684860..18beea484 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceMicrosoftOnedriveUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUserProvided.java index baa935596..5d9f463bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUserProvided.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftOnedriveUserProvided { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java index e9016bbf6..ffaf83d20 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMicrosoftOnedriveValidationPolicy - The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. */ @@ -25,4 +26,13 @@ private SourceMicrosoftOnedriveValidationPolicy(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftOnedriveValidationPolicy> fromValue(String value) { + for (SourceMicrosoftOnedriveValidationPolicy o: SourceMicrosoftOnedriveValidationPolicy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepoint.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepoint.java index 81d83d12d..f65b76618 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepoint.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * SourceMicrosoftSharepoint - SourceMicrosoftSharePointSpec class for Microsoft SharePoint Source Specification. * This class combines the authentication details with additional configuration for the SharePoint API. @@ -34,6 +32,10 @@ public class SourceMicrosoftSharepoint { @JsonProperty("credentials") private SourceMicrosoftSharepointAuthentication credentials; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_method") + private Optional<? extends SourceMicrosoftSharepointDeliveryMethod> deliveryMethod; + /** * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. */ @@ -67,16 +69,19 @@ public class SourceMicrosoftSharepoint { @JsonCreator public SourceMicrosoftSharepoint( @JsonProperty("credentials") SourceMicrosoftSharepointAuthentication credentials, + @JsonProperty("delivery_method") Optional<? extends SourceMicrosoftSharepointDeliveryMethod> deliveryMethod, @JsonProperty("folder_path") Optional<String> folderPath, @JsonProperty("search_scope") Optional<? extends SourceMicrosoftSharepointSearchScope> searchScope, @JsonProperty("start_date") Optional<OffsetDateTime> startDate, @JsonProperty("streams") List<SourceMicrosoftSharepointFileBasedStreamConfig> streams) { Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); Utils.checkNotNull(folderPath, "folderPath"); Utils.checkNotNull(searchScope, "searchScope"); Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(streams, "streams"); this.credentials = credentials; + this.deliveryMethod = deliveryMethod; this.folderPath = folderPath; this.searchScope = searchScope; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); @@ -87,7 +92,7 @@ public SourceMicrosoftSharepoint( public SourceMicrosoftSharepoint( SourceMicrosoftSharepointAuthentication credentials, List<SourceMicrosoftSharepointFileBasedStreamConfig> streams) { - this(credentials, Optional.empty(), Optional.empty(), Optional.empty(), streams); + this(credentials, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), streams); } /** @@ -98,6 +103,12 @@ public SourceMicrosoftSharepointAuthentication credentials() { return credentials; } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<SourceMicrosoftSharepointDeliveryMethod> deliveryMethod() { + return (Optional<SourceMicrosoftSharepointDeliveryMethod>) deliveryMethod; + } + /** * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. */ @@ -149,6 +160,18 @@ public SourceMicrosoftSharepoint withCredentials(SourceMicrosoftSharepointAuthen return this; } + public SourceMicrosoftSharepoint withDeliveryMethod(SourceMicrosoftSharepointDeliveryMethod deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = Optional.ofNullable(deliveryMethod); + return this; + } + + public SourceMicrosoftSharepoint withDeliveryMethod(Optional<? extends SourceMicrosoftSharepointDeliveryMethod> deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = deliveryMethod; + return this; + } + /** * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. */ @@ -223,6 +246,7 @@ public boolean equals(java.lang.Object o) { SourceMicrosoftSharepoint other = (SourceMicrosoftSharepoint) o; return Objects.deepEquals(this.credentials, other.credentials) && + Objects.deepEquals(this.deliveryMethod, other.deliveryMethod) && Objects.deepEquals(this.folderPath, other.folderPath) && Objects.deepEquals(this.searchScope, other.searchScope) && Objects.deepEquals(this.sourceType, other.sourceType) && @@ -234,6 +258,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( credentials, + deliveryMethod, folderPath, searchScope, sourceType, @@ -245,6 +270,7 @@ public int hashCode() { public String toString() { return Utils.toString(SourceMicrosoftSharepoint.class, "credentials", credentials, + "deliveryMethod", deliveryMethod, "folderPath", folderPath, "searchScope", searchScope, "sourceType", sourceType, @@ -256,6 +282,8 @@ public final static class Builder { private SourceMicrosoftSharepointAuthentication credentials; + private Optional<? extends SourceMicrosoftSharepointDeliveryMethod> deliveryMethod = Optional.empty(); + private Optional<String> folderPath; private Optional<? extends SourceMicrosoftSharepointSearchScope> searchScope; @@ -277,6 +305,18 @@ public Builder credentials(SourceMicrosoftSharepointAuthentication credentials) return this; } + public Builder deliveryMethod(SourceMicrosoftSharepointDeliveryMethod deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = Optional.ofNullable(deliveryMethod); + return this; + } + + public Builder deliveryMethod(Optional<? extends SourceMicrosoftSharepointDeliveryMethod> deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = deliveryMethod; + return this; + } + /** * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. */ @@ -348,6 +388,7 @@ public SourceMicrosoftSharepoint build() { searchScope = _SINGLETON_VALUE_SearchScope.value(); } return new SourceMicrosoftSharepoint( credentials, + deliveryMethod, folderPath, searchScope, startDate, diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java index 1f4329c4c..cff3b507f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointAuthType> fromValue(String value) { + for (SourceMicrosoftSharepointAuthType o: SourceMicrosoftSharepointAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth.java index d94ac1648..dada276c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth - OAuthCredentials class to hold authentication details for Microsoft OAuth authentication. * This class uses pydantic for data validation and settings management. diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthentication.java index 98a6955cd..28d6e3242 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMicrosoftSharepointAuthentication - Credentials for connecting to the One Drive API */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAutogenerated.java index 3d4a43530..e8e294dca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAutogenerated.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftSharepointAutogenerated { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAvroFormat.java index bc762f19e..e2ffe0b54 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAvroFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftSharepointAvroFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVFormat.java index 1d498d6d8..51b5ad7fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftSharepointCSVFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.java index fee3e2f75..ee701b912 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMicrosoftSharepointCSVHeaderDefinition - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCopyRawFiles.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCopyRawFiles.java new file mode 100644 index 000000000..a7ce19102 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCopyRawFiles.java @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +/** + * SourceMicrosoftSharepointCopyRawFiles - Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. + */ + +public class SourceMicrosoftSharepointCopyRawFiles { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_type") + private Optional<? extends SourceMicrosoftSharepointSchemasDeliveryType> deliveryType; + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preserve_directory_structure") + private Optional<Boolean> preserveDirectoryStructure; + + @JsonCreator + public SourceMicrosoftSharepointCopyRawFiles( + @JsonProperty("preserve_directory_structure") Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + this.preserveDirectoryStructure = preserveDirectoryStructure; + } + + public SourceMicrosoftSharepointCopyRawFiles() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<SourceMicrosoftSharepointSchemasDeliveryType> deliveryType() { + return (Optional<SourceMicrosoftSharepointSchemasDeliveryType>) deliveryType; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + @JsonIgnore + public Optional<Boolean> preserveDirectoryStructure() { + return preserveDirectoryStructure; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public SourceMicrosoftSharepointCopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public SourceMicrosoftSharepointCopyRawFiles withPreserveDirectoryStructure(Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceMicrosoftSharepointCopyRawFiles other = (SourceMicrosoftSharepointCopyRawFiles) o; + return + Objects.deepEquals(this.deliveryType, other.deliveryType) && + Objects.deepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); + } + + @Override + public int hashCode() { + return Objects.hash( + deliveryType, + preserveDirectoryStructure); + } + + @Override + public String toString() { + return Utils.toString(SourceMicrosoftSharepointCopyRawFiles.class, + "deliveryType", deliveryType, + "preserveDirectoryStructure", preserveDirectoryStructure); + } + + public final static class Builder { + + private Optional<Boolean> preserveDirectoryStructure; + + private Builder() { + // force use of static builder() method + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public Builder preserveDirectoryStructure(Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } + + public SourceMicrosoftSharepointCopyRawFiles build() { + if (preserveDirectoryStructure == null) { + preserveDirectoryStructure = _SINGLETON_VALUE_PreserveDirectoryStructure.value(); + } return new SourceMicrosoftSharepointCopyRawFiles( + preserveDirectoryStructure); + } + + private static final LazySingletonValue<Optional<? extends SourceMicrosoftSharepointSchemasDeliveryType>> _SINGLETON_VALUE_DeliveryType = + new LazySingletonValue<>( + "delivery_type", + "\"use_file_transfer\"", + new TypeReference<Optional<? extends SourceMicrosoftSharepointSchemasDeliveryType>>() {}); + + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_PreserveDirectoryStructure = + new LazySingletonValue<>( + "preserve_directory_structure", + "true", + new TypeReference<Optional<Boolean>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryMethod.java new file mode 100644 index 000000000..4d8c36c43 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryMethod.java @@ -0,0 +1,95 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; + +@JsonDeserialize(using = SourceMicrosoftSharepointDeliveryMethod._Deserializer.class) +public class SourceMicrosoftSharepointDeliveryMethod { + + @JsonValue + private TypedObject value; + + private SourceMicrosoftSharepointDeliveryMethod(TypedObject value) { + this.value = value; + } + + public static SourceMicrosoftSharepointDeliveryMethod of(SourceMicrosoftSharepointReplicateRecords value) { + Utils.checkNotNull(value, "value"); + return new SourceMicrosoftSharepointDeliveryMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMicrosoftSharepointReplicateRecords>(){})); + } + + public static SourceMicrosoftSharepointDeliveryMethod of(SourceMicrosoftSharepointCopyRawFiles value) { + Utils.checkNotNull(value, "value"); + return new SourceMicrosoftSharepointDeliveryMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMicrosoftSharepointCopyRawFiles>(){})); + } + + /** + * Returns an instance of one of these types: + * <ul> + * <li>{@code com.airbyte.api.models.shared.SourceMicrosoftSharepointReplicateRecords}</li> + * <li>{@code com.airbyte.api.models.shared.SourceMicrosoftSharepointCopyRawFiles}</li> + * </ul> + * + * <p>Use {@code instanceof} to determine what type is returned. For example: + * + * <pre> + * if (obj.value() instanceof String) { + * String answer = (String) obj.value(); + * System.out.println("answer=" + answer); + * } + * </pre> + * + * @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; + } + SourceMicrosoftSharepointDeliveryMethod other = (SourceMicrosoftSharepointDeliveryMethod) o; + return Objects.deepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Objects.hash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer<SourceMicrosoftSharepointDeliveryMethod> { + + public _Deserializer() { + super(SourceMicrosoftSharepointDeliveryMethod.class, false, + TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftSharepointCopyRawFiles>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMicrosoftSharepointReplicateRecords>() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceMicrosoftSharepointDeliveryMethod.class, + "value", value); + } + +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryType.java new file mode 100644 index 000000000..1b8cd322c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceMicrosoftSharepointDeliveryType { + USE_RECORDS_TRANSFER("use_records_transfer"); + + @JsonValue + private final String value; + + private SourceMicrosoftSharepointDeliveryType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceMicrosoftSharepointDeliveryType> fromValue(String value) { + for (SourceMicrosoftSharepointDeliveryType o: SourceMicrosoftSharepointDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java index e67f85975..28c1d01c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftSharepointExcelFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java index 820e4dcba..e5019642e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftSharepointFileBasedStreamConfig { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java index dc4e61841..c33868bab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointFiletype { AVRO("avro"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointFiletype(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointFiletype> fromValue(String value) { + for (SourceMicrosoftSharepointFiletype o: SourceMicrosoftSharepointFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java index 8642045a6..a7d4a5581 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMicrosoftSharepointFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFromCSV.java index 0cc5ef09f..6ffde0c83 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFromCSV.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftSharepointFromCSV { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java index 60d927c77..8b6058065 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointHeaderDefinitionType { FROM_CSV("From CSV"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointHeaderDefinitionType> fromValue(String value) { + for (SourceMicrosoftSharepointHeaderDefinitionType o: SourceMicrosoftSharepointHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointJsonlFormat.java index 4c0810bda..88e275c8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointJsonlFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftSharepointJsonlFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java index 42b579f5a..ef07501ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceMicrosoftSharepointLocal - Process files locally, supporting `fast` and `ocr` modes. This is the default option. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java index 113efe97d..59aa28b3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointMicrosoftSharepoint { MICROSOFT_SHAREPOINT("microsoft-sharepoint"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointMicrosoftSharepoint(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointMicrosoftSharepoint> fromValue(String value) { + for (SourceMicrosoftSharepointMicrosoftSharepoint o: SourceMicrosoftSharepointMicrosoftSharepoint.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java index e28544319..2b4e898a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointMode { LOCAL("local"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointMode(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointMode> fromValue(String value) { + for (SourceMicrosoftSharepointMode o: SourceMicrosoftSharepointMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java index 6b37f37b0..eba95aa08 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftSharepointParquetFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java index fd80cafae..ce12bc02d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMicrosoftSharepointParsingStrategy - The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @@ -26,4 +27,13 @@ private SourceMicrosoftSharepointParsingStrategy(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointParsingStrategy> fromValue(String value) { + for (SourceMicrosoftSharepointParsingStrategy o: SourceMicrosoftSharepointParsingStrategy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java index 38c982ec6..183e5aa2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMicrosoftSharepointProcessing - Processing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointReplicateRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointReplicateRecords.java new file mode 100644 index 000000000..b41f9f58a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointReplicateRecords.java @@ -0,0 +1,89 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +/** + * SourceMicrosoftSharepointReplicateRecords - Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. + */ + +public class SourceMicrosoftSharepointReplicateRecords { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_type") + private Optional<? extends SourceMicrosoftSharepointDeliveryType> deliveryType; + + @JsonCreator + public SourceMicrosoftSharepointReplicateRecords() { + + this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<SourceMicrosoftSharepointDeliveryType> deliveryType() { + return (Optional<SourceMicrosoftSharepointDeliveryType>) deliveryType; + } + + 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; + } + SourceMicrosoftSharepointReplicateRecords other = (SourceMicrosoftSharepointReplicateRecords) o; + return + Objects.deepEquals(this.deliveryType, other.deliveryType); + } + + @Override + public int hashCode() { + return Objects.hash( + deliveryType); + } + + @Override + public String toString() { + return Utils.toString(SourceMicrosoftSharepointReplicateRecords.class, + "deliveryType", deliveryType); + } + + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SourceMicrosoftSharepointReplicateRecords build() { + return new SourceMicrosoftSharepointReplicateRecords( + ); + } + + private static final LazySingletonValue<Optional<? extends SourceMicrosoftSharepointDeliveryType>> _SINGLETON_VALUE_DeliveryType = + new LazySingletonValue<>( + "delivery_type", + "\"use_records_transfer\"", + new TypeReference<Optional<? extends SourceMicrosoftSharepointDeliveryType>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java index d515c74f4..0aa12cb70 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointSchemasAuthType { SERVICE("Service"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointSchemasAuthType> fromValue(String value) { + for (SourceMicrosoftSharepointSchemasAuthType o: SourceMicrosoftSharepointSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.java new file mode 100644 index 000000000..bddfcc964 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceMicrosoftSharepointSchemasDeliveryType { + USE_FILE_TRANSFER("use_file_transfer"); + + @JsonValue + private final String value; + + private SourceMicrosoftSharepointSchemasDeliveryType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceMicrosoftSharepointSchemasDeliveryType> fromValue(String value) { + for (SourceMicrosoftSharepointSchemasDeliveryType o: SourceMicrosoftSharepointSchemasDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java index 1800f2018..e2079e63f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointSchemasFiletype { CSV("csv"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointSchemasFiletype(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointSchemasFiletype> fromValue(String value) { + for (SourceMicrosoftSharepointSchemasFiletype o: SourceMicrosoftSharepointSchemasFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java index 8ea168ed1..15dd67f6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointSchemasHeaderDefinitionType { AUTOGENERATED("Autogenerated"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointSchemasHeaderDefinitionType> fromValue(String value) { + for (SourceMicrosoftSharepointSchemasHeaderDefinitionType o: SourceMicrosoftSharepointSchemasHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java index 44df5e9db..4b5323b8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointSchemasStreamsFiletype { JSONL("jsonl"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointSchemasStreamsFiletype> fromValue(String value) { + for (SourceMicrosoftSharepointSchemasStreamsFiletype o: SourceMicrosoftSharepointSchemasStreamsFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java index 6ce4e8889..716326494 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointSchemasStreamsFormatFiletype { PARQUET("parquet"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointSchemasStreamsFormatFiletype> fromValue(String value) { + for (SourceMicrosoftSharepointSchemasStreamsFormatFiletype o: SourceMicrosoftSharepointSchemasStreamsFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java index 85db7333c..c9ead84fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype { EXCEL("excel"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype(String valu public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype> fromValue(String value) { + for (SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype o: SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java index 344c62419..6c19e4b60 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype { UNSTRUCTURED("unstructured"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype(String value public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype> fromValue(String value) { + for (SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype o: SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java index 37ba85a91..7e720ff12 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType { USER_PROVIDED("User Provided"); @@ -20,4 +21,13 @@ private SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType(String value public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType> fromValue(String value) { + for (SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType o: SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java index 0ba67096e..14a7d67e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMicrosoftSharepointSearchScope - Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. */ @@ -25,4 +26,13 @@ private SourceMicrosoftSharepointSearchScope(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointSearchScope> fromValue(String value) { + for (SourceMicrosoftSharepointSearchScope o: SourceMicrosoftSharepointSearchScope.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointServiceKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointServiceKeyAuthentication.java index e1b414efe..d489ccb5d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointServiceKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointServiceKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceMicrosoftSharepointServiceKeyAuthentication - ServiceCredentials class for service key authentication. * This class is structured similarly to OAuthCredentials but for a different authentication method. diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java index ab5fbfd02..4c95dfb7c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceMicrosoftSharepointUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUserProvided.java index 3fd1102bf..1bf08d6aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUserProvided.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftSharepointUserProvided { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java index 5d32d22e3..c2157ee97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMicrosoftSharepointValidationPolicy - The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. */ @@ -25,4 +26,13 @@ private SourceMicrosoftSharepointValidationPolicy(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftSharepointValidationPolicy> fromValue(String value) { + for (SourceMicrosoftSharepointValidationPolicy o: SourceMicrosoftSharepointValidationPolicy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeams.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeams.java index 967e98272..f98245565 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeams.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeams.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMicrosoftTeams { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java index 72a742163..7c2f1725a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftTeamsAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceMicrosoftTeamsAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftTeamsAuthType> fromValue(String value) { + for (SourceMicrosoftTeamsAuthType o: SourceMicrosoftTeamsAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthenticationMechanism.java index 34e307c6c..a3fdf4fa7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthenticationMechanism.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMicrosoftTeamsAuthenticationMechanism - Choose how to authenticate to Microsoft */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java index 639e87af3..c67aa35f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftTeamsMicrosoftTeams { MICROSOFT_TEAMS("microsoft-teams"); @@ -20,4 +21,13 @@ private SourceMicrosoftTeamsMicrosoftTeams(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftTeamsMicrosoftTeams> fromValue(String value) { + for (SourceMicrosoftTeamsMicrosoftTeams o: SourceMicrosoftTeamsMicrosoftTeams.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java index ef9749066..0ebfb5a2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMicrosoftTeamsSchemasAuthType { TOKEN("Token"); @@ -20,4 +21,13 @@ private SourceMicrosoftTeamsSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMicrosoftTeamsSchemasAuthType> fromValue(String value) { + for (SourceMicrosoftTeamsSchemasAuthType o: SourceMicrosoftTeamsSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMiro.java b/src/main/java/com/airbyte/api/models/shared/SourceMiro.java index 76032938e..9fd685762 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMiro.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMiro.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceMiro { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMissive.java b/src/main/java/com/airbyte/api/models/shared/SourceMissive.java index a90ad1736..78b791535 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMissive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMissive.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMissive { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixmax.java b/src/main/java/com/airbyte/api/models/shared/SourceMixmax.java index c3d36d584..689fdb750 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixmax.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixmax.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceMixmax { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java b/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java index edf2a1d2c..29025df11 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMixpanel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java index 729a65fba..0159febb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMixpanelOptionTitle { SERVICE_ACCOUNT("Service Account"); @@ -20,4 +21,13 @@ private SourceMixpanelOptionTitle(String value) { public String value() { return value; } + + public static Optional<SourceMixpanelOptionTitle> fromValue(String value) { + for (SourceMixpanelOptionTitle o: SourceMixpanelOptionTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java index 29aade0f8..e26a8c376 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMixpanelRegion - The region of mixpanel domain instance either US or EU. */ @@ -24,4 +25,13 @@ private SourceMixpanelRegion(String value) { public String value() { return value; } + + public static Optional<SourceMixpanelRegion> fromValue(String value) { + for (SourceMixpanelRegion o: SourceMixpanelRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java index c19703587..d210737af 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMixpanelSchemasOptionTitle { PROJECT_SECRET("Project Secret"); @@ -20,4 +21,13 @@ private SourceMixpanelSchemasOptionTitle(String value) { public String value() { return value; } + + public static Optional<SourceMixpanelSchemasOptionTitle> fromValue(String value) { + for (SourceMixpanelSchemasOptionTitle o: SourceMixpanelSchemasOptionTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMode.java index fb318a12a..13c67911f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMode.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceMode { /** @@ -31,7 +29,7 @@ public class SourceMode { private String apiToken; @JsonProperty("sourceType") - private Mode sourceType; + private SourceModeMode sourceType; @JsonProperty("workspace") private String workspace; @@ -67,7 +65,7 @@ public String apiToken() { } @JsonIgnore - public Mode sourceType() { + public SourceModeMode sourceType() { return sourceType; } @@ -181,11 +179,11 @@ public SourceMode build() { workspace); } - private static final LazySingletonValue<Mode> _SINGLETON_VALUE_SourceType = + private static final LazySingletonValue<SourceModeMode> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"mode\"", - new TypeReference<Mode>() {}); + new TypeReference<SourceModeMode>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceModeMode.java b/src/main/java/com/airbyte/api/models/shared/SourceModeMode.java new file mode 100644 index 000000000..cd8d7417b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceModeMode.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceModeMode { + MODE("mode"); + + @JsonValue + private final String value; + + private SourceModeMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceModeMode> fromValue(String value) { + for (SourceModeMode o: SourceModeMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMonday.java b/src/main/java/com/airbyte/api/models/shared/SourceMonday.java index 366e05d74..ccce535e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMonday.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMonday.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMonday { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java index a8f30cffc..d871e428c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMondayAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceMondayAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMondayAuthType> fromValue(String value) { + for (SourceMondayAuthType o: SourceMondayAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java index 8ba2e0549..36058523b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceMondayAuthorizationMethod._Deserializer.class) public class SourceMondayAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java index 97bb1883c..2a1c28d0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMondayMonday { MONDAY("monday"); @@ -20,4 +21,13 @@ private SourceMondayMonday(String value) { public String value() { return value; } + + public static Optional<SourceMondayMonday> fromValue(String value) { + for (SourceMondayMonday o: SourceMondayMonday.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondayOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayOAuth20.java index deea7805f..fd7b6ca67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMondayOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java index 4ce1e6650..645a30e19 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMondaySchemasAuthType { API_TOKEN("api_token"); @@ -20,4 +21,13 @@ private SourceMondaySchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceMondaySchemasAuthType> fromValue(String value) { + for (SourceMondaySchemasAuthType o: SourceMondaySchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java index 37dfe4f10..cad0a1948 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMongodbV2 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java index 50d4ac28d..0951f532a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMongodbV2ClusterType { - ATLAS_REPLICA_SET("ATLAS_REPLICA_SET"); + SELF_MANAGED_REPLICA_SET("SELF_MANAGED_REPLICA_SET"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceMongodbV2ClusterType(String value) { public String value() { return value; } + + public static Optional<SourceMongodbV2ClusterType> fromValue(String value) { + for (SourceMongodbV2ClusterType o: SourceMongodbV2ClusterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java index 8f1eef4e3..89c2afa6a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMongodbV2SchemasClusterType { - SELF_MANAGED_REPLICA_SET("SELF_MANAGED_REPLICA_SET"); + ATLAS_REPLICA_SET("ATLAS_REPLICA_SET"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceMongodbV2SchemasClusterType(String value) { public String value() { return value; } + + public static Optional<SourceMongodbV2SchemasClusterType> fromValue(String value) { + for (SourceMongodbV2SchemasClusterType o: SourceMongodbV2SchemasClusterType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssql.java b/src/main/java/com/airbyte/api/models/shared/SourceMssql.java index e25c331c9..234860561 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssql.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMssql { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedTrustServerCertificate.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedTrustServerCertificate.java index 380be63f9..330b3ac1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedTrustServerCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedTrustServerCertificate.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * SourceMssqlEncryptedTrustServerCertificate - Use the certificate provided by the server without verification. (For testing purposes only!) */ @@ -22,7 +20,7 @@ public class SourceMssqlEncryptedTrustServerCertificate { @JsonProperty("ssl_method") - private SourceMssqlSchemasSslMethodSslMethod sslMethod; + private SourceMssqlSchemasSslMethod sslMethod; @JsonCreator public SourceMssqlEncryptedTrustServerCertificate() { @@ -31,7 +29,7 @@ public SourceMssqlEncryptedTrustServerCertificate() { } @JsonIgnore - public SourceMssqlSchemasSslMethodSslMethod sslMethod() { + public SourceMssqlSchemasSslMethod sslMethod() { return sslMethod; } @@ -75,11 +73,11 @@ public SourceMssqlEncryptedTrustServerCertificate build() { ); } - private static final LazySingletonValue<SourceMssqlSchemasSslMethodSslMethod> _SINGLETON_VALUE_SslMethod = + private static final LazySingletonValue<SourceMssqlSchemasSslMethod> _SINGLETON_VALUE_SslMethod = new LazySingletonValue<>( "ssl_method", "\"encrypted_trust_server_certificate\"", - new TypeReference<SourceMssqlSchemasSslMethodSslMethod>() {}); + new TypeReference<SourceMssqlSchemasSslMethod>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedVerifyCertificate.java index 3574b6a87..543b2a69e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedVerifyCertificate.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,7 +16,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * SourceMssqlEncryptedVerifyCertificate - Verify and use the certificate provided by the server. */ @@ -39,7 +37,7 @@ public class SourceMssqlEncryptedVerifyCertificate { private Optional<String> hostNameInCertificate; @JsonProperty("ssl_method") - private SourceMssqlSchemasSSLMethodSSLMethodSSLMethod sslMethod; + private SourceMssqlSchemasSslMethodSslMethod sslMethod; @JsonCreator public SourceMssqlEncryptedVerifyCertificate( @@ -73,7 +71,7 @@ public Optional<String> hostNameInCertificate() { } @JsonIgnore - public SourceMssqlSchemasSSLMethodSSLMethodSSLMethod sslMethod() { + public SourceMssqlSchemasSslMethodSslMethod sslMethod() { return sslMethod; } @@ -200,11 +198,11 @@ public SourceMssqlEncryptedVerifyCertificate build() { hostNameInCertificate); } - private static final LazySingletonValue<SourceMssqlSchemasSSLMethodSSLMethodSSLMethod> _SINGLETON_VALUE_SslMethod = + private static final LazySingletonValue<SourceMssqlSchemasSslMethodSslMethod> _SINGLETON_VALUE_SslMethod = new LazySingletonValue<>( "ssl_method", "\"encrypted_verify_certificate\"", - new TypeReference<SourceMssqlSchemasSSLMethodSSLMethodSSLMethod>() {}); + new TypeReference<SourceMssqlSchemasSslMethodSslMethod>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java index 36f0ef4c4..600d73ed3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMssqlInvalidCDCPositionBehaviorAdvanced - Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ @@ -24,4 +25,13 @@ private SourceMssqlInvalidCDCPositionBehaviorAdvanced(String value) { public String value() { return value; } + + public static Optional<SourceMssqlInvalidCDCPositionBehaviorAdvanced> fromValue(String value) { + for (SourceMssqlInvalidCDCPositionBehaviorAdvanced o: SourceMssqlInvalidCDCPositionBehaviorAdvanced.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java index 5219f40ed..f07c3aad2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMssqlMethod { CDC("CDC"); @@ -20,4 +21,13 @@ private SourceMssqlMethod(String value) { public String value() { return value; } + + public static Optional<SourceMssqlMethod> fromValue(String value) { + for (SourceMssqlMethod o: SourceMssqlMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java index 1fac964ec..562255684 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMssqlMssql { MSSQL("mssql"); @@ -20,4 +21,13 @@ private SourceMssqlMssql(String value) { public String value() { return value; } + + public static Optional<SourceMssqlMssql> fromValue(String value) { + for (SourceMssqlMssql o: SourceMssqlMssql.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlNoTunnel.java index 0ceec1bd3..2ca8314b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceMssqlNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlPasswordAuthentication.java index 5cbbe1a3a..11d5662fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMssqlPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHKeyAuthentication.java index cfbf38ca2..07d5cdbdf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMssqlSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHTunnelMethod.java index c91705439..070785844 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMssqlSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSLMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSLMethod.java index 052fbaf28..2237fbfdb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSLMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSLMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMssqlSSLMethod - The encryption method which is used when communicating with the database. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java index 86a7d3259..ed36e313c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMssqlSchemasMethod { STANDARD("STANDARD"); @@ -20,4 +21,13 @@ private SourceMssqlSchemasMethod(String value) { public String value() { return value; } + + public static Optional<SourceMssqlSchemasMethod> fromValue(String value) { + for (SourceMssqlSchemasMethod o: SourceMssqlSchemasMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java index 910d59d49..aeb0c9a21 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMssqlSchemasSSLMethodSSLMethodSSLMethod { - ENCRYPTED_VERIFY_CERTIFICATE("encrypted_verify_certificate"); + UNENCRYPTED("unencrypted"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceMssqlSchemasSSLMethodSSLMethodSSLMethod(String value) { public String value() { return value; } + + public static Optional<SourceMssqlSchemasSSLMethodSSLMethodSSLMethod> fromValue(String value) { + for (SourceMssqlSchemasSSLMethodSSLMethodSSLMethod o: SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java index ab22dc6d7..ecc735d3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMssqlSchemasSslMethod { - UNENCRYPTED("unencrypted"); + ENCRYPTED_TRUST_SERVER_CERTIFICATE("encrypted_trust_server_certificate"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceMssqlSchemasSslMethod(String value) { public String value() { return value; } + + public static Optional<SourceMssqlSchemasSslMethod> fromValue(String value) { + for (SourceMssqlSchemasSslMethod o: SourceMssqlSchemasSslMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java index f74caea85..57d26757b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMssqlSchemasSslMethodSslMethod { - ENCRYPTED_TRUST_SERVER_CERTIFICATE("encrypted_trust_server_certificate"); + ENCRYPTED_VERIFY_CERTIFICATE("encrypted_verify_certificate"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceMssqlSchemasSslMethodSslMethod(String value) { public String value() { return value; } + + public static Optional<SourceMssqlSchemasSslMethodSslMethod> fromValue(String value) { + for (SourceMssqlSchemasSslMethodSslMethod o: SourceMssqlSchemasSslMethodSslMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java index a7c34bdbb..a228cee81 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMssqlSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private SourceMssqlSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceMssqlSchemasTunnelMethod> fromValue(String value) { + for (SourceMssqlSchemasTunnelMethod o: SourceMssqlSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java index 420601dc1..2860dfe00 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMssqlSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private SourceMssqlSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceMssqlSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (SourceMssqlSchemasTunnelMethodTunnelMethod o: SourceMssqlSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java index 9c5544d28..698e8f7bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceMssqlTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private SourceMssqlTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceMssqlTunnelMethod> fromValue(String value) { + for (SourceMssqlTunnelMethod o: SourceMssqlTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlUnencrypted.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlUnencrypted.java index 85505e505..83c928fd3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlUnencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlUnencrypted.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * SourceMssqlUnencrypted - Data transfer will not be encrypted. */ @@ -22,7 +20,7 @@ public class SourceMssqlUnencrypted { @JsonProperty("ssl_method") - private SourceMssqlSchemasSslMethod sslMethod; + private SourceMssqlSchemasSSLMethodSSLMethodSSLMethod sslMethod; @JsonCreator public SourceMssqlUnencrypted() { @@ -31,7 +29,7 @@ public SourceMssqlUnencrypted() { } @JsonIgnore - public SourceMssqlSchemasSslMethod sslMethod() { + public SourceMssqlSchemasSSLMethodSSLMethodSSLMethod sslMethod() { return sslMethod; } @@ -75,11 +73,11 @@ public SourceMssqlUnencrypted build() { ); } - private static final LazySingletonValue<SourceMssqlSchemasSslMethod> _SINGLETON_VALUE_SslMethod = + private static final LazySingletonValue<SourceMssqlSchemasSSLMethodSSLMethodSSLMethod> _SINGLETON_VALUE_SslMethod = new LazySingletonValue<>( "ssl_method", "\"unencrypted\"", - new TypeReference<SourceMssqlSchemasSslMethod>() {}); + new TypeReference<SourceMssqlSchemasSSLMethodSSLMethodSSLMethod>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMux.java b/src/main/java/com/airbyte/api/models/shared/SourceMux.java index 398478e59..dfe314c38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMux.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMux.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMux { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMyHours.java b/src/main/java/com/airbyte/api/models/shared/SourceMyHours.java index 1a0cbc491..07bb86c45 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMyHours.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMyHours.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceMyHours { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysql.java b/src/main/java/com/airbyte/api/models/shared/SourceMysql.java index e22e6a077..280a740f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysql.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,9 +20,29 @@ import java.util.Objects; import java.util.Optional; - public class SourceMysql { + /** + * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("check_privileges") + private Optional<Boolean> checkPrivileges; + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("checkpoint_target_interval_seconds") + private Optional<Long> checkpointTargetIntervalSeconds; + + /** + * Maximum number of concurrent queries to the database. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("concurrency") + private Optional<Long> concurrency; + /** * The database name. */ @@ -31,13 +50,13 @@ public class SourceMysql { private String database; /** - * The host name of the database. + * Hostname of the database. */ @JsonProperty("host") private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). For more information read about <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -51,7 +70,7 @@ public class SourceMysql { private Optional<String> password; /** - * The port to connect to. + * Port of the database. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") @@ -67,18 +86,11 @@ public class SourceMysql { private SourceMysqlMysql sourceType; /** - * Encrypt data using SSL. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ssl") - private Optional<Boolean> ssl; - - /** - * SSL connection modes. Read more <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html"> in the docs</a>. + * The encryption method with is used when communicating with the database. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_mode") - private Optional<? extends SourceMysqlSSLModes> sslMode; + private Optional<? extends SourceMysqlEncryption> sslMode; /** * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. @@ -95,26 +107,33 @@ public class SourceMysql { @JsonCreator public SourceMysql( + @JsonProperty("check_privileges") Optional<Boolean> checkPrivileges, + @JsonProperty("checkpoint_target_interval_seconds") Optional<Long> checkpointTargetIntervalSeconds, + @JsonProperty("concurrency") Optional<Long> concurrency, @JsonProperty("database") String database, @JsonProperty("host") String host, @JsonProperty("jdbc_url_params") Optional<String> jdbcUrlParams, @JsonProperty("password") Optional<String> password, @JsonProperty("port") Optional<Long> port, @JsonProperty("replication_method") SourceMysqlUpdateMethod replicationMethod, - @JsonProperty("ssl") Optional<Boolean> ssl, - @JsonProperty("ssl_mode") Optional<? extends SourceMysqlSSLModes> sslMode, + @JsonProperty("ssl_mode") Optional<? extends SourceMysqlEncryption> sslMode, @JsonProperty("tunnel_method") Optional<? extends SourceMysqlSSHTunnelMethod> tunnelMethod, @JsonProperty("username") String username) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + Utils.checkNotNull(concurrency, "concurrency"); Utils.checkNotNull(database, "database"); Utils.checkNotNull(host, "host"); Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); Utils.checkNotNull(password, "password"); Utils.checkNotNull(port, "port"); Utils.checkNotNull(replicationMethod, "replicationMethod"); - Utils.checkNotNull(ssl, "ssl"); Utils.checkNotNull(sslMode, "sslMode"); Utils.checkNotNull(tunnelMethod, "tunnelMethod"); Utils.checkNotNull(username, "username"); + this.checkPrivileges = checkPrivileges; + this.checkpointTargetIntervalSeconds = checkpointTargetIntervalSeconds; + this.concurrency = concurrency; this.database = database; this.host = host; this.jdbcUrlParams = jdbcUrlParams; @@ -122,7 +141,6 @@ public SourceMysql( this.port = port; this.replicationMethod = replicationMethod; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); - this.ssl = ssl; this.sslMode = sslMode; this.tunnelMethod = tunnelMethod; this.username = username; @@ -133,7 +151,31 @@ public SourceMysql( String host, SourceMysqlUpdateMethod replicationMethod, String username) { - this(database, host, Optional.empty(), Optional.empty(), Optional.empty(), replicationMethod, Optional.empty(), Optional.empty(), Optional.empty(), username); + this(Optional.empty(), Optional.empty(), Optional.empty(), database, host, Optional.empty(), Optional.empty(), Optional.empty(), replicationMethod, Optional.empty(), Optional.empty(), username); + } + + /** + * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + */ + @JsonIgnore + public Optional<Boolean> checkPrivileges() { + return checkPrivileges; + } + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + @JsonIgnore + public Optional<Long> checkpointTargetIntervalSeconds() { + return checkpointTargetIntervalSeconds; + } + + /** + * Maximum number of concurrent queries to the database. + */ + @JsonIgnore + public Optional<Long> concurrency() { + return concurrency; } /** @@ -145,7 +187,7 @@ public String database() { } /** - * The host name of the database. + * Hostname of the database. */ @JsonIgnore public String host() { @@ -153,7 +195,7 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). For more information read about <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional<String> jdbcUrlParams() { @@ -169,7 +211,7 @@ public Optional<String> password() { } /** - * The port to connect to. + * Port of the database. */ @JsonIgnore public Optional<Long> port() { @@ -190,20 +232,12 @@ public SourceMysqlMysql sourceType() { } /** - * Encrypt data using SSL. - */ - @JsonIgnore - public Optional<Boolean> ssl() { - return ssl; - } - - /** - * SSL connection modes. Read more <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html"> in the docs</a>. + * The encryption method with is used when communicating with the database. */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional<SourceMysqlSSLModes> sslMode() { - return (Optional<SourceMysqlSSLModes>) sslMode; + public Optional<SourceMysqlEncryption> sslMode() { + return (Optional<SourceMysqlEncryption>) sslMode; } /** @@ -227,6 +261,60 @@ public final static Builder builder() { return new Builder(); } + /** + * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + */ + public SourceMysql withCheckPrivileges(boolean checkPrivileges) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + this.checkPrivileges = Optional.ofNullable(checkPrivileges); + return this; + } + + /** + * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + */ + public SourceMysql withCheckPrivileges(Optional<Boolean> checkPrivileges) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + this.checkPrivileges = checkPrivileges; + return this; + } + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + public SourceMysql withCheckpointTargetIntervalSeconds(long checkpointTargetIntervalSeconds) { + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + this.checkpointTargetIntervalSeconds = Optional.ofNullable(checkpointTargetIntervalSeconds); + return this; + } + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + public SourceMysql withCheckpointTargetIntervalSeconds(Optional<Long> checkpointTargetIntervalSeconds) { + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + this.checkpointTargetIntervalSeconds = checkpointTargetIntervalSeconds; + return this; + } + + /** + * Maximum number of concurrent queries to the database. + */ + public SourceMysql withConcurrency(long concurrency) { + Utils.checkNotNull(concurrency, "concurrency"); + this.concurrency = Optional.ofNullable(concurrency); + return this; + } + + /** + * Maximum number of concurrent queries to the database. + */ + public SourceMysql withConcurrency(Optional<Long> concurrency) { + Utils.checkNotNull(concurrency, "concurrency"); + this.concurrency = concurrency; + return this; + } + /** * The database name. */ @@ -237,7 +325,7 @@ public SourceMysql withDatabase(String database) { } /** - * The host name of the database. + * Hostname of the database. */ public SourceMysql withHost(String host) { Utils.checkNotNull(host, "host"); @@ -246,7 +334,7 @@ public SourceMysql withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). For more information read about <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). */ public SourceMysql withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -255,7 +343,7 @@ public SourceMysql withJdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). For more information read about <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). */ public SourceMysql withJdbcUrlParams(Optional<String> jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -282,7 +370,7 @@ public SourceMysql withPassword(Optional<String> password) { } /** - * The port to connect to. + * Port of the database. */ public SourceMysql withPort(long port) { Utils.checkNotNull(port, "port"); @@ -291,7 +379,7 @@ public SourceMysql withPort(long port) { } /** - * The port to connect to. + * Port of the database. */ public SourceMysql withPort(Optional<Long> port) { Utils.checkNotNull(port, "port"); @@ -309,36 +397,18 @@ public SourceMysql withReplicationMethod(SourceMysqlUpdateMethod replicationMeth } /** - * Encrypt data using SSL. - */ - public SourceMysql withSsl(boolean ssl) { - Utils.checkNotNull(ssl, "ssl"); - this.ssl = Optional.ofNullable(ssl); - return this; - } - - /** - * Encrypt data using SSL. - */ - public SourceMysql withSsl(Optional<Boolean> ssl) { - Utils.checkNotNull(ssl, "ssl"); - this.ssl = ssl; - return this; - } - - /** - * SSL connection modes. Read more <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html"> in the docs</a>. + * The encryption method with is used when communicating with the database. */ - public SourceMysql withSslMode(SourceMysqlSSLModes sslMode) { + public SourceMysql withSslMode(SourceMysqlEncryption sslMode) { Utils.checkNotNull(sslMode, "sslMode"); this.sslMode = Optional.ofNullable(sslMode); return this; } /** - * SSL connection modes. Read more <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html"> in the docs</a>. + * The encryption method with is used when communicating with the database. */ - public SourceMysql withSslMode(Optional<? extends SourceMysqlSSLModes> sslMode) { + public SourceMysql withSslMode(Optional<? extends SourceMysqlEncryption> sslMode) { Utils.checkNotNull(sslMode, "sslMode"); this.sslMode = sslMode; return this; @@ -381,6 +451,9 @@ public boolean equals(java.lang.Object o) { } SourceMysql other = (SourceMysql) o; return + Objects.deepEquals(this.checkPrivileges, other.checkPrivileges) && + Objects.deepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && + Objects.deepEquals(this.concurrency, other.concurrency) && Objects.deepEquals(this.database, other.database) && Objects.deepEquals(this.host, other.host) && Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && @@ -388,7 +461,6 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.port, other.port) && Objects.deepEquals(this.replicationMethod, other.replicationMethod) && Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.ssl, other.ssl) && Objects.deepEquals(this.sslMode, other.sslMode) && Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && Objects.deepEquals(this.username, other.username); @@ -397,6 +469,9 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + checkPrivileges, + checkpointTargetIntervalSeconds, + concurrency, database, host, jdbcUrlParams, @@ -404,7 +479,6 @@ public int hashCode() { port, replicationMethod, sourceType, - ssl, sslMode, tunnelMethod, username); @@ -413,6 +487,9 @@ public int hashCode() { @Override public String toString() { return Utils.toString(SourceMysql.class, + "checkPrivileges", checkPrivileges, + "checkpointTargetIntervalSeconds", checkpointTargetIntervalSeconds, + "concurrency", concurrency, "database", database, "host", host, "jdbcUrlParams", jdbcUrlParams, @@ -420,7 +497,6 @@ public String toString() { "port", port, "replicationMethod", replicationMethod, "sourceType", sourceType, - "ssl", ssl, "sslMode", sslMode, "tunnelMethod", tunnelMethod, "username", username); @@ -428,6 +504,12 @@ public String toString() { public final static class Builder { + private Optional<Boolean> checkPrivileges; + + private Optional<Long> checkpointTargetIntervalSeconds; + + private Optional<Long> concurrency; + private String database; private String host; @@ -440,9 +522,7 @@ public final static class Builder { private SourceMysqlUpdateMethod replicationMethod; - private Optional<Boolean> ssl; - - private Optional<? extends SourceMysqlSSLModes> sslMode = Optional.empty(); + private Optional<? extends SourceMysqlEncryption> sslMode = Optional.empty(); private Optional<? extends SourceMysqlSSHTunnelMethod> tunnelMethod = Optional.empty(); @@ -452,6 +532,60 @@ private Builder() { // force use of static builder() method } + /** + * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + */ + public Builder checkPrivileges(boolean checkPrivileges) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + this.checkPrivileges = Optional.ofNullable(checkPrivileges); + return this; + } + + /** + * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + */ + public Builder checkPrivileges(Optional<Boolean> checkPrivileges) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + this.checkPrivileges = checkPrivileges; + return this; + } + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + public Builder checkpointTargetIntervalSeconds(long checkpointTargetIntervalSeconds) { + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + this.checkpointTargetIntervalSeconds = Optional.ofNullable(checkpointTargetIntervalSeconds); + return this; + } + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + public Builder checkpointTargetIntervalSeconds(Optional<Long> checkpointTargetIntervalSeconds) { + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + this.checkpointTargetIntervalSeconds = checkpointTargetIntervalSeconds; + return this; + } + + /** + * Maximum number of concurrent queries to the database. + */ + public Builder concurrency(long concurrency) { + Utils.checkNotNull(concurrency, "concurrency"); + this.concurrency = Optional.ofNullable(concurrency); + return this; + } + + /** + * Maximum number of concurrent queries to the database. + */ + public Builder concurrency(Optional<Long> concurrency) { + Utils.checkNotNull(concurrency, "concurrency"); + this.concurrency = concurrency; + return this; + } + /** * The database name. */ @@ -462,7 +596,7 @@ public Builder database(String database) { } /** - * The host name of the database. + * Hostname of the database. */ public Builder host(String host) { Utils.checkNotNull(host, "host"); @@ -471,7 +605,7 @@ public Builder host(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). For more information read about <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -480,7 +614,7 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). For more information read about <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional<String> jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -507,7 +641,7 @@ public Builder password(Optional<String> password) { } /** - * The port to connect to. + * Port of the database. */ public Builder port(long port) { Utils.checkNotNull(port, "port"); @@ -516,7 +650,7 @@ public Builder port(long port) { } /** - * The port to connect to. + * Port of the database. */ public Builder port(Optional<Long> port) { Utils.checkNotNull(port, "port"); @@ -534,36 +668,18 @@ public Builder replicationMethod(SourceMysqlUpdateMethod replicationMethod) { } /** - * Encrypt data using SSL. - */ - public Builder ssl(boolean ssl) { - Utils.checkNotNull(ssl, "ssl"); - this.ssl = Optional.ofNullable(ssl); - return this; - } - - /** - * Encrypt data using SSL. + * The encryption method with is used when communicating with the database. */ - public Builder ssl(Optional<Boolean> ssl) { - Utils.checkNotNull(ssl, "ssl"); - this.ssl = ssl; - return this; - } - - /** - * SSL connection modes. Read more <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html"> in the docs</a>. - */ - public Builder sslMode(SourceMysqlSSLModes sslMode) { + public Builder sslMode(SourceMysqlEncryption sslMode) { Utils.checkNotNull(sslMode, "sslMode"); this.sslMode = Optional.ofNullable(sslMode); return this; } /** - * SSL connection modes. Read more <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html"> in the docs</a>. + * The encryption method with is used when communicating with the database. */ - public Builder sslMode(Optional<? extends SourceMysqlSSLModes> sslMode) { + public Builder sslMode(Optional<? extends SourceMysqlEncryption> sslMode) { Utils.checkNotNull(sslMode, "sslMode"); this.sslMode = sslMode; return this; @@ -597,24 +713,50 @@ public Builder username(String username) { } public SourceMysql build() { + if (checkPrivileges == null) { + checkPrivileges = _SINGLETON_VALUE_CheckPrivileges.value(); + } + if (checkpointTargetIntervalSeconds == null) { + checkpointTargetIntervalSeconds = _SINGLETON_VALUE_CheckpointTargetIntervalSeconds.value(); + } + if (concurrency == null) { + concurrency = _SINGLETON_VALUE_Concurrency.value(); + } if (port == null) { port = _SINGLETON_VALUE_Port.value(); - } - if (ssl == null) { - ssl = _SINGLETON_VALUE_Ssl.value(); } return new SourceMysql( + checkPrivileges, + checkpointTargetIntervalSeconds, + concurrency, database, host, jdbcUrlParams, password, port, replicationMethod, - ssl, sslMode, tunnelMethod, username); } + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_CheckPrivileges = + new LazySingletonValue<>( + "check_privileges", + "true", + new TypeReference<Optional<Boolean>>() {}); + + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_CheckpointTargetIntervalSeconds = + new LazySingletonValue<>( + "checkpoint_target_interval_seconds", + "300", + new TypeReference<Optional<Long>>() {}); + + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_Concurrency = + new LazySingletonValue<>( + "concurrency", + "1", + new TypeReference<Optional<Long>>() {}); + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", @@ -626,12 +768,6 @@ public SourceMysql build() { "sourceType", "\"mysql\"", new TypeReference<SourceMysqlMysql>() {}); - - private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_Ssl = - new LazySingletonValue<>( - "ssl", - "true", - new TypeReference<Optional<Boolean>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSLModes.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlEncryption.java similarity index 67% rename from src/main/java/com/airbyte/api/models/shared/SourceMysqlSSLModes.java rename to src/main/java/com/airbyte/api/models/shared/SourceMysqlEncryption.java index 3e1007116..3d342fc03 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlEncryption.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,39 +16,38 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** - * SourceMysqlSSLModes - SSL connection modes. Read more <a href="https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html"> in the docs</a>. + * SourceMysqlEncryption - The encryption method with is used when communicating with the database. */ -@JsonDeserialize(using = SourceMysqlSSLModes._Deserializer.class) -public class SourceMysqlSSLModes { +@JsonDeserialize(using = SourceMysqlEncryption._Deserializer.class) +public class SourceMysqlEncryption { @JsonValue private TypedObject value; - private SourceMysqlSSLModes(TypedObject value) { + private SourceMysqlEncryption(TypedObject value) { this.value = value; } - public static SourceMysqlSSLModes of(Preferred value) { + public static SourceMysqlEncryption of(Preferred value) { Utils.checkNotNull(value, "value"); - return new SourceMysqlSSLModes(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<Preferred>(){})); + return new SourceMysqlEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<Preferred>(){})); } - public static SourceMysqlSSLModes of(Required value) { + public static SourceMysqlEncryption of(Required value) { Utils.checkNotNull(value, "value"); - return new SourceMysqlSSLModes(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<Required>(){})); + return new SourceMysqlEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<Required>(){})); } - public static SourceMysqlSSLModes of(SourceMysqlVerifyCA value) { + public static SourceMysqlEncryption of(SourceMysqlVerifyCa value) { Utils.checkNotNull(value, "value"); - return new SourceMysqlSSLModes(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMysqlVerifyCA>(){})); + return new SourceMysqlEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMysqlVerifyCa>(){})); } - public static SourceMysqlSSLModes of(VerifyIdentity value) { + public static SourceMysqlEncryption of(VerifyIdentity value) { Utils.checkNotNull(value, "value"); - return new SourceMysqlSSLModes(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<VerifyIdentity>(){})); + return new SourceMysqlEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<VerifyIdentity>(){})); } /** @@ -57,7 +55,7 @@ public static SourceMysqlSSLModes of(VerifyIdentity value) { * <ul> * <li>{@code com.airbyte.api.models.shared.Preferred}</li> * <li>{@code com.airbyte.api.models.shared.Required}</li> - * <li>{@code com.airbyte.api.models.shared.SourceMysqlVerifyCA}</li> + * <li>{@code com.airbyte.api.models.shared.SourceMysqlVerifyCa}</li> * <li>{@code com.airbyte.api.models.shared.VerifyIdentity}</li> * </ul> * @@ -84,7 +82,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceMysqlSSLModes other = (SourceMysqlSSLModes) o; + SourceMysqlEncryption other = (SourceMysqlEncryption) o; return Objects.deepEquals(this.value.value(), other.value.value()); } @@ -94,12 +92,12 @@ public int hashCode() { } @SuppressWarnings("serial") - public static final class _Deserializer extends OneOfDeserializer<SourceMysqlSSLModes> { + public static final class _Deserializer extends OneOfDeserializer<SourceMysqlEncryption> { public _Deserializer() { - super(SourceMysqlSSLModes.class, false, + super(SourceMysqlEncryption.class, false, TypeReferenceWithShape.of(new TypeReference<VerifyIdentity>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference<SourceMysqlVerifyCA>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMysqlVerifyCa>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Required>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<Preferred>() {}, JsonShape.DEFAULT)); } @@ -107,7 +105,7 @@ public _Deserializer() { @Override public String toString() { - return Utils.toString(SourceMysqlSSLModes.class, + return Utils.toString(SourceMysqlEncryption.class, "value", value); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java index 67c387995..ae3b88b6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** - * SourceMysqlInvalidCDCPositionBehaviorAdvanced - 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. + * SourceMysqlInvalidCDCPositionBehaviorAdvanced - Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ public enum SourceMysqlInvalidCDCPositionBehaviorAdvanced { FAIL_SYNC("Fail sync"), @@ -24,4 +25,13 @@ private SourceMysqlInvalidCDCPositionBehaviorAdvanced(String value) { public String value() { return value; } + + public static Optional<SourceMysqlInvalidCDCPositionBehaviorAdvanced> fromValue(String value) { + for (SourceMysqlInvalidCDCPositionBehaviorAdvanced o: SourceMysqlInvalidCDCPositionBehaviorAdvanced.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java index 27d2762a6..a335f005b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlMethod { - CDC("CDC"); + STANDARD("STANDARD"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceMysqlMethod(String value) { public String value() { return value; } + + public static Optional<SourceMysqlMethod> fromValue(String value) { + for (SourceMysqlMethod o: SourceMysqlMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java index 619201b2d..a4455891b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlMode { PREFERRED("preferred"); @@ -20,4 +21,13 @@ private SourceMysqlMode(String value) { public String value() { return value; } + + public static Optional<SourceMysqlMode> fromValue(String value) { + for (SourceMysqlMode o: SourceMysqlMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java index 9cd423498..df9910525 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlMysql { MYSQL("mysql"); @@ -20,4 +21,13 @@ private SourceMysqlMysql(String value) { public String value() { return value; } + + public static Optional<SourceMysqlMysql> fromValue(String value) { + for (SourceMysqlMysql o: SourceMysqlMysql.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlNoTunnel.java index e9f25199b..95c116342 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlNoTunnel.java @@ -2,45 +2,91 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; - +import java.util.Optional; +/** + * SourceMysqlNoTunnel - No ssh tunnel needed to connect to database + */ public class SourceMysqlNoTunnel { - /** - * No ssh tunnel needed to connect to database - */ + @JsonIgnore + private Map<String, Object> additionalProperties; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") - private SourceMysqlTunnelMethod tunnelMethod; + private Optional<? extends SourceMysqlTunnelMethod> tunnelMethod; @JsonCreator + public SourceMysqlNoTunnel( + @JsonProperty("tunnel_method") Optional<? extends SourceMysqlTunnelMethod> tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.additionalProperties = new HashMap<>(); + this.tunnelMethod = tunnelMethod; + } + public SourceMysqlNoTunnel() { - - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); + this(Optional.empty()); } - /** - * No ssh tunnel needed to connect to database - */ + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") @JsonIgnore - public SourceMysqlTunnelMethod tunnelMethod() { - return tunnelMethod; + public Optional<SourceMysqlTunnelMethod> tunnelMethod() { + return (Optional<SourceMysqlTunnelMethod>) tunnelMethod; } public final static Builder builder() { return new Builder(); } + + @JsonAnySetter + public SourceMysqlNoTunnel withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public SourceMysqlNoTunnel withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public SourceMysqlNoTunnel withTunnelMethod(SourceMysqlTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public SourceMysqlNoTunnel withTunnelMethod(Optional<? extends SourceMysqlTunnelMethod> tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -52,37 +98,75 @@ public boolean equals(java.lang.Object o) { } SourceMysqlNoTunnel other = (SourceMysqlNoTunnel) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { return Objects.hash( + additionalProperties, tunnelMethod); } @Override public String toString() { return Utils.toString(SourceMysqlNoTunnel.class, + "additionalProperties", additionalProperties, "tunnelMethod", tunnelMethod); } - public final static class Builder { + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<? extends SourceMysqlTunnelMethod> tunnelMethod; private Builder() { // force use of static builder() method } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Builder tunnelMethod(SourceMysqlTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public Builder tunnelMethod(Optional<? extends SourceMysqlTunnelMethod> tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } public SourceMysqlNoTunnel build() { - return new SourceMysqlNoTunnel( - ); + if (tunnelMethod == null) { + tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); + } return new SourceMysqlNoTunnel( + tunnelMethod) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<SourceMysqlTunnelMethod> _SINGLETON_VALUE_TunnelMethod = + private static final LazySingletonValue<Optional<? extends SourceMysqlTunnelMethod>> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", "\"NO_TUNNEL\"", - new TypeReference<SourceMysqlTunnelMethod>() {}); + new TypeReference<Optional<? extends SourceMysqlTunnelMethod>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlPasswordAuthentication.java index b749c2b5c..5b67b5d71 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlPasswordAuthentication.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; @@ -14,25 +15,32 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - +/** + * SourceMysqlPasswordAuthentication - Connect through a jump server tunnel host using username and password authentication + */ public class SourceMysqlPasswordAuthentication { + @JsonIgnore + private Map<String, Object> additionalProperties; + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @JsonProperty("tunnel_host") private String tunnelHost; - /** - * Connect through a jump server tunnel host using username and password authentication - */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") - private SourceMysqlSchemasTunnelMethodTunnelMethod tunnelMethod; + private Optional<? extends SourceMysqlSchemasTunnelMethodTunnelMethod> tunnelMethod; /** * Port on the proxy/jump server that accepts inbound ssh connections. @@ -56,15 +64,18 @@ public class SourceMysqlPasswordAuthentication { @JsonCreator public SourceMysqlPasswordAuthentication( @JsonProperty("tunnel_host") String tunnelHost, + @JsonProperty("tunnel_method") Optional<? extends SourceMysqlSchemasTunnelMethodTunnelMethod> tunnelMethod, @JsonProperty("tunnel_port") Optional<Long> tunnelPort, @JsonProperty("tunnel_user") String tunnelUser, @JsonProperty("tunnel_user_password") String tunnelUserPassword) { Utils.checkNotNull(tunnelHost, "tunnelHost"); + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); Utils.checkNotNull(tunnelPort, "tunnelPort"); Utils.checkNotNull(tunnelUser, "tunnelUser"); Utils.checkNotNull(tunnelUserPassword, "tunnelUserPassword"); + this.additionalProperties = new HashMap<>(); this.tunnelHost = tunnelHost; - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); + this.tunnelMethod = tunnelMethod; this.tunnelPort = tunnelPort; this.tunnelUser = tunnelUser; this.tunnelUserPassword = tunnelUserPassword; @@ -74,7 +85,12 @@ public SourceMysqlPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), Optional.empty(), tunnelUser, tunnelUserPassword); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } /** @@ -85,12 +101,10 @@ public String tunnelHost() { return tunnelHost; } - /** - * Connect through a jump server tunnel host using username and password authentication - */ + @SuppressWarnings("unchecked") @JsonIgnore - public SourceMysqlSchemasTunnelMethodTunnelMethod tunnelMethod() { - return tunnelMethod; + public Optional<SourceMysqlSchemasTunnelMethodTunnelMethod> tunnelMethod() { + return (Optional<SourceMysqlSchemasTunnelMethodTunnelMethod>) tunnelMethod; } /** @@ -121,6 +135,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public SourceMysqlPasswordAuthentication withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public SourceMysqlPasswordAuthentication withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -130,6 +158,18 @@ public SourceMysqlPasswordAuthentication withTunnelHost(String tunnelHost) { return this; } + public SourceMysqlPasswordAuthentication withTunnelMethod(SourceMysqlSchemasTunnelMethodTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public SourceMysqlPasswordAuthentication withTunnelMethod(Optional<? extends SourceMysqlSchemasTunnelMethodTunnelMethod> tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -176,6 +216,7 @@ public boolean equals(java.lang.Object o) { } SourceMysqlPasswordAuthentication other = (SourceMysqlPasswordAuthentication) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.tunnelHost, other.tunnelHost) && Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && Objects.deepEquals(this.tunnelPort, other.tunnelPort) && @@ -186,6 +227,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, tunnelHost, tunnelMethod, tunnelPort, @@ -196,6 +238,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(SourceMysqlPasswordAuthentication.class, + "additionalProperties", additionalProperties, "tunnelHost", tunnelHost, "tunnelMethod", tunnelMethod, "tunnelPort", tunnelPort, @@ -205,8 +248,12 @@ public String toString() { public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private String tunnelHost; + private Optional<? extends SourceMysqlSchemasTunnelMethodTunnelMethod> tunnelMethod; + private Optional<Long> tunnelPort; private String tunnelUser; @@ -217,6 +264,22 @@ private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -226,6 +289,18 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceMysqlSchemasTunnelMethodTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public Builder tunnelMethod(Optional<? extends SourceMysqlSchemasTunnelMethodTunnelMethod> tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -263,20 +338,25 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { } public SourceMysqlPasswordAuthentication build() { + if (tunnelMethod == null) { + tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); + } if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } return new SourceMysqlPasswordAuthentication( tunnelHost, + tunnelMethod, tunnelPort, tunnelUser, - tunnelUserPassword); + tunnelUserPassword) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<SourceMysqlSchemasTunnelMethodTunnelMethod> _SINGLETON_VALUE_TunnelMethod = + private static final LazySingletonValue<Optional<? extends SourceMysqlSchemasTunnelMethodTunnelMethod>> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", "\"SSH_PASSWORD_AUTH\"", - new TypeReference<SourceMysqlSchemasTunnelMethodTunnelMethod>() {}); + new TypeReference<Optional<? extends SourceMysqlSchemasTunnelMethodTunnelMethod>>() {}); private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_TunnelPort = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingBinaryLogCDC.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.java similarity index 52% rename from src/main/java/com/airbyte/api/models/shared/ReadChangesUsingBinaryLogCDC.java rename to src/main/java/com/airbyte/api/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.java index 5a1daeaa5..763e54002 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingBinaryLogCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; @@ -14,17 +15,22 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - /** - * ReadChangesUsingBinaryLogCDC - <i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using the MySQL <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">binary log</a>. This must be enabled on your database. + * SourceMysqlReadChangesUsingChangeDataCaptureCDC - <i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using MySQL's <a href="https://docs.airbyte.com/integrations/sources/mssql/#change-data-capture-cdc"> change data capture feature</a>. This must be enabled on your database. */ -public class ReadChangesUsingBinaryLogCDC { +public class SourceMysqlReadChangesUsingChangeDataCaptureCDC { + + @JsonIgnore + private Map<String, Object> additionalProperties; /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. @@ -34,50 +40,49 @@ public class ReadChangesUsingBinaryLogCDC { private Optional<Long> 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>. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("initial_waiting_seconds") - private Optional<Long> initialWaitingSeconds; - - /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("invalid_cdc_cursor_position_behavior") private Optional<? extends SourceMysqlInvalidCDCPositionBehaviorAdvanced> invalidCdcCursorPositionBehavior; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("method") - private SourceMysqlMethod method; + private Optional<? extends SourceMysqlSchemasMethod> method; /** * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("server_time_zone") - private Optional<String> serverTimeZone; + @JsonProperty("server_timezone") + private Optional<String> serverTimezone; @JsonCreator - public ReadChangesUsingBinaryLogCDC( + public SourceMysqlReadChangesUsingChangeDataCaptureCDC( @JsonProperty("initial_load_timeout_hours") Optional<Long> initialLoadTimeoutHours, - @JsonProperty("initial_waiting_seconds") Optional<Long> initialWaitingSeconds, @JsonProperty("invalid_cdc_cursor_position_behavior") Optional<? extends SourceMysqlInvalidCDCPositionBehaviorAdvanced> invalidCdcCursorPositionBehavior, - @JsonProperty("server_time_zone") Optional<String> serverTimeZone) { + @JsonProperty("method") Optional<? extends SourceMysqlSchemasMethod> method, + @JsonProperty("server_timezone") Optional<String> serverTimezone) { Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); - Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); - Utils.checkNotNull(serverTimeZone, "serverTimeZone"); + Utils.checkNotNull(method, "method"); + Utils.checkNotNull(serverTimezone, "serverTimezone"); + this.additionalProperties = new HashMap<>(); this.initialLoadTimeoutHours = initialLoadTimeoutHours; - this.initialWaitingSeconds = initialWaitingSeconds; this.invalidCdcCursorPositionBehavior = invalidCdcCursorPositionBehavior; - this.method = Builder._SINGLETON_VALUE_Method.value(); - this.serverTimeZone = serverTimeZone; + this.method = method; + this.serverTimezone = serverTimezone; } - public ReadChangesUsingBinaryLogCDC() { + public SourceMysqlReadChangesUsingChangeDataCaptureCDC() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; + } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -87,15 +92,7 @@ public Optional<Long> 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>. - */ - @JsonIgnore - public Optional<Long> initialWaitingSeconds() { - return initialWaitingSeconds; - } - - /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -103,27 +100,42 @@ public Optional<SourceMysqlInvalidCDCPositionBehaviorAdvanced> invalidCdcCursorP return (Optional<SourceMysqlInvalidCDCPositionBehaviorAdvanced>) invalidCdcCursorPositionBehavior; } + @SuppressWarnings("unchecked") @JsonIgnore - public SourceMysqlMethod method() { - return method; + public Optional<SourceMysqlSchemasMethod> method() { + return (Optional<SourceMysqlSchemasMethod>) method; } /** * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. */ @JsonIgnore - public Optional<String> serverTimeZone() { - return serverTimeZone; + public Optional<String> serverTimezone() { + return serverTimezone; } public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ - public ReadChangesUsingBinaryLogCDC withInitialLoadTimeoutHours(long initialLoadTimeoutHours) { + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withInitialLoadTimeoutHours(long initialLoadTimeoutHours) { Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); this.initialLoadTimeoutHours = Optional.ofNullable(initialLoadTimeoutHours); return this; @@ -132,63 +144,57 @@ public ReadChangesUsingBinaryLogCDC withInitialLoadTimeoutHours(long initialLoad /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ - public ReadChangesUsingBinaryLogCDC withInitialLoadTimeoutHours(Optional<Long> initialLoadTimeoutHours) { + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withInitialLoadTimeoutHours(Optional<Long> 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>. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ - public ReadChangesUsingBinaryLogCDC withInitialWaitingSeconds(long initialWaitingSeconds) { - Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); - this.initialWaitingSeconds = Optional.ofNullable(initialWaitingSeconds); + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPositionBehavior(SourceMysqlInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { + Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); + this.invalidCdcCursorPositionBehavior = Optional.ofNullable(invalidCdcCursorPositionBehavior); 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>. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ - public ReadChangesUsingBinaryLogCDC withInitialWaitingSeconds(Optional<Long> initialWaitingSeconds) { - Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); - this.initialWaitingSeconds = initialWaitingSeconds; + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPositionBehavior(Optional<? extends SourceMysqlInvalidCDCPositionBehaviorAdvanced> invalidCdcCursorPositionBehavior) { + Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); + this.invalidCdcCursorPositionBehavior = invalidCdcCursorPositionBehavior; return this; } - /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. - */ - public ReadChangesUsingBinaryLogCDC withInvalidCdcCursorPositionBehavior(SourceMysqlInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { - Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); - this.invalidCdcCursorPositionBehavior = Optional.ofNullable(invalidCdcCursorPositionBehavior); + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withMethod(SourceMysqlSchemasMethod method) { + Utils.checkNotNull(method, "method"); + this.method = Optional.ofNullable(method); return this; } - /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. - */ - public ReadChangesUsingBinaryLogCDC withInvalidCdcCursorPositionBehavior(Optional<? extends SourceMysqlInvalidCDCPositionBehaviorAdvanced> invalidCdcCursorPositionBehavior) { - Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); - this.invalidCdcCursorPositionBehavior = invalidCdcCursorPositionBehavior; + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withMethod(Optional<? extends SourceMysqlSchemasMethod> method) { + Utils.checkNotNull(method, "method"); + this.method = method; return this; } /** * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. */ - public ReadChangesUsingBinaryLogCDC withServerTimeZone(String serverTimeZone) { - Utils.checkNotNull(serverTimeZone, "serverTimeZone"); - this.serverTimeZone = Optional.ofNullable(serverTimeZone); + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withServerTimezone(String serverTimezone) { + Utils.checkNotNull(serverTimezone, "serverTimezone"); + this.serverTimezone = Optional.ofNullable(serverTimezone); return this; } /** * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. */ - public ReadChangesUsingBinaryLogCDC withServerTimeZone(Optional<String> serverTimeZone) { - Utils.checkNotNull(serverTimeZone, "serverTimeZone"); - this.serverTimeZone = serverTimeZone; + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withServerTimezone(Optional<String> serverTimezone) { + Utils.checkNotNull(serverTimezone, "serverTimezone"); + this.serverTimezone = serverTimezone; return this; } @@ -200,49 +206,67 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ReadChangesUsingBinaryLogCDC other = (ReadChangesUsingBinaryLogCDC) o; + SourceMysqlReadChangesUsingChangeDataCaptureCDC other = (SourceMysqlReadChangesUsingChangeDataCaptureCDC) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && - Objects.deepEquals(this.initialWaitingSeconds, other.initialWaitingSeconds) && Objects.deepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && Objects.deepEquals(this.method, other.method) && - Objects.deepEquals(this.serverTimeZone, other.serverTimeZone); + Objects.deepEquals(this.serverTimezone, other.serverTimezone); } @Override public int hashCode() { return Objects.hash( + additionalProperties, initialLoadTimeoutHours, - initialWaitingSeconds, invalidCdcCursorPositionBehavior, method, - serverTimeZone); + serverTimezone); } @Override public String toString() { - return Utils.toString(ReadChangesUsingBinaryLogCDC.class, + return Utils.toString(SourceMysqlReadChangesUsingChangeDataCaptureCDC.class, + "additionalProperties", additionalProperties, "initialLoadTimeoutHours", initialLoadTimeoutHours, - "initialWaitingSeconds", initialWaitingSeconds, "invalidCdcCursorPositionBehavior", invalidCdcCursorPositionBehavior, "method", method, - "serverTimeZone", serverTimeZone); + "serverTimezone", serverTimezone); } public final static class Builder { - private Optional<Long> initialLoadTimeoutHours; + private Map<String, Object> additionalProperties = new HashMap<>(); - private Optional<Long> initialWaitingSeconds; + private Optional<Long> initialLoadTimeoutHours; private Optional<? extends SourceMysqlInvalidCDCPositionBehaviorAdvanced> invalidCdcCursorPositionBehavior; - private Optional<String> serverTimeZone = Optional.empty(); + private Optional<? extends SourceMysqlSchemasMethod> method; + + private Optional<String> serverTimezone = Optional.empty(); private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -262,25 +286,7 @@ public Builder initialLoadTimeoutHours(Optional<Long> 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>. - */ - public Builder initialWaitingSeconds(long initialWaitingSeconds) { - Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); - this.initialWaitingSeconds = Optional.ofNullable(initialWaitingSeconds); - return this; - } - - /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. - */ - public Builder initialWaitingSeconds(Optional<Long> initialWaitingSeconds) { - Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); - this.initialWaitingSeconds = initialWaitingSeconds; - return this; - } - - /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(SourceMysqlInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -289,7 +295,7 @@ public Builder invalidCdcCursorPositionBehavior(SourceMysqlInvalidCDCPositionBeh } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(Optional<? extends SourceMysqlInvalidCDCPositionBehaviorAdvanced> invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -297,38 +303,51 @@ public Builder invalidCdcCursorPositionBehavior(Optional<? extends SourceMysqlIn return this; } + public Builder method(SourceMysqlSchemasMethod method) { + Utils.checkNotNull(method, "method"); + this.method = Optional.ofNullable(method); + return this; + } + + public Builder method(Optional<? extends SourceMysqlSchemasMethod> method) { + Utils.checkNotNull(method, "method"); + this.method = method; + return this; + } + /** * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. */ - public Builder serverTimeZone(String serverTimeZone) { - Utils.checkNotNull(serverTimeZone, "serverTimeZone"); - this.serverTimeZone = Optional.ofNullable(serverTimeZone); + public Builder serverTimezone(String serverTimezone) { + Utils.checkNotNull(serverTimezone, "serverTimezone"); + this.serverTimezone = Optional.ofNullable(serverTimezone); return this; } /** * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. */ - public Builder serverTimeZone(Optional<String> serverTimeZone) { - Utils.checkNotNull(serverTimeZone, "serverTimeZone"); - this.serverTimeZone = serverTimeZone; + public Builder serverTimezone(Optional<String> serverTimezone) { + Utils.checkNotNull(serverTimezone, "serverTimezone"); + this.serverTimezone = serverTimezone; return this; } - public ReadChangesUsingBinaryLogCDC build() { + public SourceMysqlReadChangesUsingChangeDataCaptureCDC build() { if (initialLoadTimeoutHours == null) { initialLoadTimeoutHours = _SINGLETON_VALUE_InitialLoadTimeoutHours.value(); } - if (initialWaitingSeconds == null) { - initialWaitingSeconds = _SINGLETON_VALUE_InitialWaitingSeconds.value(); - } if (invalidCdcCursorPositionBehavior == null) { invalidCdcCursorPositionBehavior = _SINGLETON_VALUE_InvalidCdcCursorPositionBehavior.value(); - } return new ReadChangesUsingBinaryLogCDC( + } + if (method == null) { + method = _SINGLETON_VALUE_Method.value(); + } return new SourceMysqlReadChangesUsingChangeDataCaptureCDC( initialLoadTimeoutHours, - initialWaitingSeconds, invalidCdcCursorPositionBehavior, - serverTimeZone); + method, + serverTimezone) + .withAdditionalProperties(additionalProperties); } private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_InitialLoadTimeoutHours = @@ -337,23 +356,17 @@ public ReadChangesUsingBinaryLogCDC build() { "8", new TypeReference<Optional<Long>>() {}); - private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_InitialWaitingSeconds = - new LazySingletonValue<>( - "initial_waiting_seconds", - "300", - new TypeReference<Optional<Long>>() {}); - private static final LazySingletonValue<Optional<? extends SourceMysqlInvalidCDCPositionBehaviorAdvanced>> _SINGLETON_VALUE_InvalidCdcCursorPositionBehavior = new LazySingletonValue<>( "invalid_cdc_cursor_position_behavior", "\"Fail sync\"", new TypeReference<Optional<? extends SourceMysqlInvalidCDCPositionBehaviorAdvanced>>() {}); - private static final LazySingletonValue<SourceMysqlMethod> _SINGLETON_VALUE_Method = + private static final LazySingletonValue<Optional<? extends SourceMysqlSchemasMethod>> _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", "\"CDC\"", - new TypeReference<SourceMysqlMethod>() {}); + new TypeReference<Optional<? extends SourceMysqlSchemasMethod>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHKeyAuthentication.java index b7128a62f..db00169e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHKeyAuthentication.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; @@ -14,14 +15,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - +/** + * SourceMysqlSSHKeyAuthentication - Connect through a jump server tunnel host using username and ssh key + */ public class SourceMysqlSSHKeyAuthentication { + @JsonIgnore + private Map<String, Object> additionalProperties; + /** * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) */ @@ -34,11 +44,9 @@ public class SourceMysqlSSHKeyAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; - /** - * Connect through a jump server tunnel host using username and ssh key - */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") - private SourceMysqlSchemasTunnelMethod tunnelMethod; + private Optional<? extends SourceMysqlSchemasTunnelMethod> tunnelMethod; /** * Port on the proxy/jump server that accepts inbound ssh connections. @@ -48,7 +56,7 @@ public class SourceMysqlSSHKeyAuthentication { private Optional<Long> tunnelPort; /** - * OS-level username for logging into the jump server host. + * OS-level username for logging into the jump server host */ @JsonProperty("tunnel_user") private String tunnelUser; @@ -57,15 +65,18 @@ public class SourceMysqlSSHKeyAuthentication { public SourceMysqlSSHKeyAuthentication( @JsonProperty("ssh_key") String sshKey, @JsonProperty("tunnel_host") String tunnelHost, + @JsonProperty("tunnel_method") Optional<? extends SourceMysqlSchemasTunnelMethod> tunnelMethod, @JsonProperty("tunnel_port") Optional<Long> tunnelPort, @JsonProperty("tunnel_user") String tunnelUser) { Utils.checkNotNull(sshKey, "sshKey"); Utils.checkNotNull(tunnelHost, "tunnelHost"); + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); Utils.checkNotNull(tunnelPort, "tunnelPort"); Utils.checkNotNull(tunnelUser, "tunnelUser"); + this.additionalProperties = new HashMap<>(); this.sshKey = sshKey; this.tunnelHost = tunnelHost; - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); + this.tunnelMethod = tunnelMethod; this.tunnelPort = tunnelPort; this.tunnelUser = tunnelUser; } @@ -74,7 +85,12 @@ public SourceMysqlSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), Optional.empty(), tunnelUser); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } /** @@ -93,12 +109,10 @@ public String tunnelHost() { return tunnelHost; } - /** - * Connect through a jump server tunnel host using username and ssh key - */ + @SuppressWarnings("unchecked") @JsonIgnore - public SourceMysqlSchemasTunnelMethod tunnelMethod() { - return tunnelMethod; + public Optional<SourceMysqlSchemasTunnelMethod> tunnelMethod() { + return (Optional<SourceMysqlSchemasTunnelMethod>) tunnelMethod; } /** @@ -110,7 +124,7 @@ public Optional<Long> tunnelPort() { } /** - * OS-level username for logging into the jump server host. + * OS-level username for logging into the jump server host */ @JsonIgnore public String tunnelUser() { @@ -121,6 +135,20 @@ public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public SourceMysqlSSHKeyAuthentication withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public SourceMysqlSSHKeyAuthentication withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) */ @@ -139,6 +167,18 @@ public SourceMysqlSSHKeyAuthentication withTunnelHost(String tunnelHost) { return this; } + public SourceMysqlSSHKeyAuthentication withTunnelMethod(SourceMysqlSchemasTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public SourceMysqlSSHKeyAuthentication withTunnelMethod(Optional<? extends SourceMysqlSchemasTunnelMethod> tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -158,7 +198,7 @@ public SourceMysqlSSHKeyAuthentication withTunnelPort(Optional<Long> tunnelPort) } /** - * OS-level username for logging into the jump server host. + * OS-level username for logging into the jump server host */ public SourceMysqlSSHKeyAuthentication withTunnelUser(String tunnelUser) { Utils.checkNotNull(tunnelUser, "tunnelUser"); @@ -176,6 +216,7 @@ public boolean equals(java.lang.Object o) { } SourceMysqlSSHKeyAuthentication other = (SourceMysqlSSHKeyAuthentication) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.sshKey, other.sshKey) && Objects.deepEquals(this.tunnelHost, other.tunnelHost) && Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && @@ -186,6 +227,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, sshKey, tunnelHost, tunnelMethod, @@ -196,6 +238,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(SourceMysqlSSHKeyAuthentication.class, + "additionalProperties", additionalProperties, "sshKey", sshKey, "tunnelHost", tunnelHost, "tunnelMethod", tunnelMethod, @@ -205,10 +248,14 @@ public String toString() { public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private String sshKey; private String tunnelHost; + private Optional<? extends SourceMysqlSchemasTunnelMethod> tunnelMethod; + private Optional<Long> tunnelPort; private String tunnelUser; @@ -217,6 +264,22 @@ private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) */ @@ -235,6 +298,18 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceMysqlSchemasTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public Builder tunnelMethod(Optional<? extends SourceMysqlSchemasTunnelMethod> tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -254,7 +329,7 @@ public Builder tunnelPort(Optional<Long> tunnelPort) { } /** - * OS-level username for logging into the jump server host. + * OS-level username for logging into the jump server host */ public Builder tunnelUser(String tunnelUser) { Utils.checkNotNull(tunnelUser, "tunnelUser"); @@ -263,20 +338,25 @@ public Builder tunnelUser(String tunnelUser) { } public SourceMysqlSSHKeyAuthentication build() { + if (tunnelMethod == null) { + tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); + } if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } return new SourceMysqlSSHKeyAuthentication( sshKey, tunnelHost, + tunnelMethod, tunnelPort, - tunnelUser); + tunnelUser) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<SourceMysqlSchemasTunnelMethod> _SINGLETON_VALUE_TunnelMethod = + private static final LazySingletonValue<Optional<? extends SourceMysqlSchemasTunnelMethod>> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", "\"SSH_KEY_AUTH\"", - new TypeReference<SourceMysqlSchemasTunnelMethod>() {}); + new TypeReference<Optional<? extends SourceMysqlSchemasTunnelMethod>>() {}); private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_TunnelPort = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHTunnelMethod.java index 20fece046..0060f0bbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMysqlSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.java index 7c0035ad8..52450171e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.java @@ -2,42 +2,91 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; - +import java.util.Optional; /** * SourceMysqlScanChangesWithUserDefinedCursor - Incrementally detects new inserts and updates using the <a href="https://docs.airbyte.com/understanding-airbyte/connections/incremental-append/#user-defined-cursor">cursor column</a> chosen when configuring a connection (e.g. created_at, updated_at). */ public class SourceMysqlScanChangesWithUserDefinedCursor { + @JsonIgnore + private Map<String, Object> additionalProperties; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("method") - private SourceMysqlSchemasMethod method; + private Optional<? extends SourceMysqlMethod> method; @JsonCreator + public SourceMysqlScanChangesWithUserDefinedCursor( + @JsonProperty("method") Optional<? extends SourceMysqlMethod> method) { + Utils.checkNotNull(method, "method"); + this.additionalProperties = new HashMap<>(); + this.method = method; + } + public SourceMysqlScanChangesWithUserDefinedCursor() { - - this.method = Builder._SINGLETON_VALUE_Method.value(); + this(Optional.empty()); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } + @SuppressWarnings("unchecked") @JsonIgnore - public SourceMysqlSchemasMethod method() { - return method; + public Optional<SourceMysqlMethod> method() { + return (Optional<SourceMysqlMethod>) method; } public final static Builder builder() { return new Builder(); } + + @JsonAnySetter + public SourceMysqlScanChangesWithUserDefinedCursor withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public SourceMysqlScanChangesWithUserDefinedCursor withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public SourceMysqlScanChangesWithUserDefinedCursor withMethod(SourceMysqlMethod method) { + Utils.checkNotNull(method, "method"); + this.method = Optional.ofNullable(method); + return this; + } + + public SourceMysqlScanChangesWithUserDefinedCursor withMethod(Optional<? extends SourceMysqlMethod> method) { + Utils.checkNotNull(method, "method"); + this.method = method; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -49,37 +98,75 @@ public boolean equals(java.lang.Object o) { } SourceMysqlScanChangesWithUserDefinedCursor other = (SourceMysqlScanChangesWithUserDefinedCursor) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.method, other.method); } @Override public int hashCode() { return Objects.hash( + additionalProperties, method); } @Override public String toString() { return Utils.toString(SourceMysqlScanChangesWithUserDefinedCursor.class, + "additionalProperties", additionalProperties, "method", method); } - public final static class Builder { + public final static class Builder { + + private Map<String, Object> additionalProperties = new HashMap<>(); + + private Optional<? extends SourceMysqlMethod> method; private Builder() { // force use of static builder() method } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public Builder method(SourceMysqlMethod method) { + Utils.checkNotNull(method, "method"); + this.method = Optional.ofNullable(method); + return this; + } + + public Builder method(Optional<? extends SourceMysqlMethod> method) { + Utils.checkNotNull(method, "method"); + this.method = method; + return this; + } public SourceMysqlScanChangesWithUserDefinedCursor build() { - return new SourceMysqlScanChangesWithUserDefinedCursor( - ); + if (method == null) { + method = _SINGLETON_VALUE_Method.value(); + } return new SourceMysqlScanChangesWithUserDefinedCursor( + method) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<SourceMysqlSchemasMethod> _SINGLETON_VALUE_Method = + private static final LazySingletonValue<Optional<? extends SourceMysqlMethod>> _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", "\"STANDARD\"", - new TypeReference<SourceMysqlSchemasMethod>() {}); + new TypeReference<Optional<? extends SourceMysqlMethod>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java index 3d9de91e9..fa4f51164 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlSchemasMethod { - STANDARD("STANDARD"); + CDC("CDC"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceMysqlSchemasMethod(String value) { public String value() { return value; } + + public static Optional<SourceMysqlSchemasMethod> fromValue(String value) { + for (SourceMysqlSchemasMethod o: SourceMysqlSchemasMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java index 329e6755b..899b5e4b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlSchemasMode { REQUIRED("required"); @@ -20,4 +21,13 @@ private SourceMysqlSchemasMode(String value) { public String value() { return value; } + + public static Optional<SourceMysqlSchemasMode> fromValue(String value) { + for (SourceMysqlSchemasMode o: SourceMysqlSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.java deleted file mode 100644 index 4b345895e..000000000 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum SourceMysqlSchemasSSLModeSSLModesMode { - VERIFY_IDENTITY("verify_identity"); - - @JsonValue - private final String value; - - private SourceMysqlSchemasSSLModeSSLModesMode(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeEncryptionMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeEncryptionMode.java new file mode 100644 index 000000000..8d8921c24 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeEncryptionMode.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceMysqlSchemasSslModeEncryptionMode { + VERIFY_IDENTITY("verify_identity"); + + @JsonValue + private final String value; + + private SourceMysqlSchemasSslModeEncryptionMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceMysqlSchemasSslModeEncryptionMode> fromValue(String value) { + for (SourceMysqlSchemasSslModeEncryptionMode o: SourceMysqlSchemasSslModeEncryptionMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java index 2a05703e9..50fa41307 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlSchemasSslModeMode { VERIFY_CA("verify_ca"); @@ -20,4 +21,13 @@ private SourceMysqlSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional<SourceMysqlSchemasSslModeMode> fromValue(String value) { + for (SourceMysqlSchemasSslModeMode o: SourceMysqlSchemasSslModeMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java index 6ab666e07..df5e3f2e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - -/** - * SourceMysqlSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key - */ +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlSchemasTunnelMethod { SSH_KEY_AUTH("SSH_KEY_AUTH"); @@ -23,4 +21,13 @@ private SourceMysqlSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceMysqlSchemasTunnelMethod> fromValue(String value) { + for (SourceMysqlSchemasTunnelMethod o: SourceMysqlSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java index d95c589a2..45e91ba43 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - -/** - * SourceMysqlSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication - */ +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlSchemasTunnelMethodTunnelMethod { SSH_PASSWORD_AUTH("SSH_PASSWORD_AUTH"); @@ -23,4 +21,13 @@ private SourceMysqlSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceMysqlSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (SourceMysqlSchemasTunnelMethodTunnelMethod o: SourceMysqlSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java index 20435b486..539d1abc1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - -/** - * SourceMysqlTunnelMethod - No ssh tunnel needed to connect to database - */ +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlTunnelMethod { NO_TUNNEL("NO_TUNNEL"); @@ -23,4 +21,13 @@ private SourceMysqlTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceMysqlTunnelMethod> fromValue(String value) { + for (SourceMysqlTunnelMethod o: SourceMysqlTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlUpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlUpdateMethod.java index 1026eb05c..e30bf18c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlUpdateMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlUpdateMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceMysqlUpdateMethod - Configures how data is extracted from the database. */ @@ -32,21 +30,21 @@ private SourceMysqlUpdateMethod(TypedObject value) { this.value = value; } - public static SourceMysqlUpdateMethod of(ReadChangesUsingBinaryLogCDC value) { + public static SourceMysqlUpdateMethod of(SourceMysqlScanChangesWithUserDefinedCursor value) { Utils.checkNotNull(value, "value"); - return new SourceMysqlUpdateMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<ReadChangesUsingBinaryLogCDC>(){})); + return new SourceMysqlUpdateMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMysqlScanChangesWithUserDefinedCursor>(){})); } - public static SourceMysqlUpdateMethod of(SourceMysqlScanChangesWithUserDefinedCursor value) { + public static SourceMysqlUpdateMethod of(SourceMysqlReadChangesUsingChangeDataCaptureCDC value) { Utils.checkNotNull(value, "value"); - return new SourceMysqlUpdateMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMysqlScanChangesWithUserDefinedCursor>(){})); + return new SourceMysqlUpdateMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceMysqlReadChangesUsingChangeDataCaptureCDC>(){})); } /** * Returns an instance of one of these types: * <ul> - * <li>{@code com.airbyte.api.models.shared.ReadChangesUsingBinaryLogCDC}</li> * <li>{@code com.airbyte.api.models.shared.SourceMysqlScanChangesWithUserDefinedCursor}</li> + * <li>{@code com.airbyte.api.models.shared.SourceMysqlReadChangesUsingChangeDataCaptureCDC}</li> * </ul> * * <p>Use {@code instanceof} to determine what type is returned. For example: @@ -86,7 +84,7 @@ public static final class _Deserializer extends OneOfDeserializer<SourceMysqlUpd public _Deserializer() { super(SourceMysqlUpdateMethod.class, false, - TypeReferenceWithShape.of(new TypeReference<ReadChangesUsingBinaryLogCDC>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceMysqlReadChangesUsingChangeDataCaptureCDC>() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference<SourceMysqlScanChangesWithUserDefinedCursor>() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCA.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCa.java similarity index 62% rename from src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCA.java rename to src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCa.java index 80db70c87..7ebcf7230 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCA.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCa.java @@ -2,27 +2,34 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - /** - * SourceMysqlVerifyCA - Always connect with SSL. Verifies CA, but allows connection even if Hostname does not match. + * SourceMysqlVerifyCa - To always require encryption and verify that the source has a valid SSL certificate. */ -public class SourceMysqlVerifyCA { +public class SourceMysqlVerifyCa { + + @JsonIgnore + private Map<String, Object> additionalProperties; /** * CA certificate @@ -31,14 +38,14 @@ public class SourceMysqlVerifyCA { private String caCertificate; /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_certificate") private Optional<String> clientCertificate; /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key") @@ -51,29 +58,38 @@ public class SourceMysqlVerifyCA { @JsonProperty("client_key_password") private Optional<String> clientKeyPassword; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private SourceMysqlSchemasSslModeMode mode; + private Optional<? extends SourceMysqlSchemasSslModeMode> mode; @JsonCreator - public SourceMysqlVerifyCA( + public SourceMysqlVerifyCa( @JsonProperty("ca_certificate") String caCertificate, @JsonProperty("client_certificate") Optional<String> clientCertificate, @JsonProperty("client_key") Optional<String> clientKey, - @JsonProperty("client_key_password") Optional<String> clientKeyPassword) { + @JsonProperty("client_key_password") Optional<String> clientKeyPassword, + @JsonProperty("mode") Optional<? extends SourceMysqlSchemasSslModeMode> mode) { Utils.checkNotNull(caCertificate, "caCertificate"); Utils.checkNotNull(clientCertificate, "clientCertificate"); Utils.checkNotNull(clientKey, "clientKey"); Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); + Utils.checkNotNull(mode, "mode"); + this.additionalProperties = new HashMap<>(); this.caCertificate = caCertificate; this.clientCertificate = clientCertificate; this.clientKey = clientKey; this.clientKeyPassword = clientKeyPassword; - this.mode = Builder._SINGLETON_VALUE_Mode.value(); + this.mode = mode; } - public SourceMysqlVerifyCA( + public SourceMysqlVerifyCa( String caCertificate) { - this(caCertificate, Optional.empty(), Optional.empty(), Optional.empty()); + this(caCertificate, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } /** @@ -85,7 +101,7 @@ public String caCertificate() { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ @JsonIgnore public Optional<String> clientCertificate() { @@ -93,7 +109,7 @@ public Optional<String> clientCertificate() { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ @JsonIgnore public Optional<String> clientKey() { @@ -108,55 +124,70 @@ public Optional<String> clientKeyPassword() { return clientKeyPassword; } + @SuppressWarnings("unchecked") @JsonIgnore - public SourceMysqlSchemasSslModeMode mode() { - return mode; + public Optional<SourceMysqlSchemasSslModeMode> mode() { + return (Optional<SourceMysqlSchemasSslModeMode>) mode; } public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public SourceMysqlVerifyCa withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public SourceMysqlVerifyCa withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * CA certificate */ - public SourceMysqlVerifyCA withCaCertificate(String caCertificate) { + public SourceMysqlVerifyCa withCaCertificate(String caCertificate) { Utils.checkNotNull(caCertificate, "caCertificate"); this.caCertificate = caCertificate; return this; } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ - public SourceMysqlVerifyCA withClientCertificate(String clientCertificate) { + public SourceMysqlVerifyCa withClientCertificate(String clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); this.clientCertificate = Optional.ofNullable(clientCertificate); return this; } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ - public SourceMysqlVerifyCA withClientCertificate(Optional<String> clientCertificate) { + public SourceMysqlVerifyCa withClientCertificate(Optional<String> clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); this.clientCertificate = clientCertificate; return this; } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ - public SourceMysqlVerifyCA withClientKey(String clientKey) { + public SourceMysqlVerifyCa withClientKey(String clientKey) { Utils.checkNotNull(clientKey, "clientKey"); this.clientKey = Optional.ofNullable(clientKey); return this; } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ - public SourceMysqlVerifyCA withClientKey(Optional<String> clientKey) { + public SourceMysqlVerifyCa withClientKey(Optional<String> clientKey) { Utils.checkNotNull(clientKey, "clientKey"); this.clientKey = clientKey; return this; @@ -165,7 +196,7 @@ public SourceMysqlVerifyCA withClientKey(Optional<String> clientKey) { /** * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. */ - public SourceMysqlVerifyCA withClientKeyPassword(String clientKeyPassword) { + public SourceMysqlVerifyCa withClientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); this.clientKeyPassword = Optional.ofNullable(clientKeyPassword); return this; @@ -174,11 +205,23 @@ public SourceMysqlVerifyCA withClientKeyPassword(String clientKeyPassword) { /** * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. */ - public SourceMysqlVerifyCA withClientKeyPassword(Optional<String> clientKeyPassword) { + public SourceMysqlVerifyCa withClientKeyPassword(Optional<String> clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); this.clientKeyPassword = clientKeyPassword; return this; } + + public SourceMysqlVerifyCa withMode(SourceMysqlSchemasSslModeMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public SourceMysqlVerifyCa withMode(Optional<? extends SourceMysqlSchemasSslModeMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -188,8 +231,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceMysqlVerifyCA other = (SourceMysqlVerifyCA) o; + SourceMysqlVerifyCa other = (SourceMysqlVerifyCa) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.caCertificate, other.caCertificate) && Objects.deepEquals(this.clientCertificate, other.clientCertificate) && Objects.deepEquals(this.clientKey, other.clientKey) && @@ -200,6 +244,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, caCertificate, clientCertificate, clientKey, @@ -209,7 +254,8 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SourceMysqlVerifyCA.class, + return Utils.toString(SourceMysqlVerifyCa.class, + "additionalProperties", additionalProperties, "caCertificate", caCertificate, "clientCertificate", clientCertificate, "clientKey", clientKey, @@ -219,18 +265,38 @@ public String toString() { public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private String caCertificate; private Optional<String> clientCertificate = Optional.empty(); private Optional<String> clientKey = Optional.empty(); - private Optional<String> clientKeyPassword = Optional.empty(); + private Optional<String> clientKeyPassword = Optional.empty(); + + private Optional<? extends SourceMysqlSchemasSslModeMode> mode; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * CA certificate */ @@ -241,7 +307,7 @@ public Builder caCertificate(String caCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ public Builder clientCertificate(String clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -250,7 +316,7 @@ public Builder clientCertificate(String clientCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ public Builder clientCertificate(Optional<String> clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -259,7 +325,7 @@ public Builder clientCertificate(Optional<String> clientCertificate) { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ public Builder clientKey(String clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -268,7 +334,7 @@ public Builder clientKey(String clientKey) { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ public Builder clientKey(Optional<String> clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -293,20 +359,36 @@ public Builder clientKeyPassword(Optional<String> clientKeyPassword) { this.clientKeyPassword = clientKeyPassword; return this; } + + public Builder mode(SourceMysqlSchemasSslModeMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public Builder mode(Optional<? extends SourceMysqlSchemasSslModeMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } - public SourceMysqlVerifyCA build() { - return new SourceMysqlVerifyCA( + public SourceMysqlVerifyCa build() { + if (mode == null) { + mode = _SINGLETON_VALUE_Mode.value(); + } return new SourceMysqlVerifyCa( caCertificate, clientCertificate, clientKey, - clientKeyPassword); + clientKeyPassword, + mode) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<SourceMysqlSchemasSslModeMode> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends SourceMysqlSchemasSslModeMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"verify_ca\"", - new TypeReference<SourceMysqlSchemasSslModeMode>() {}); + new TypeReference<Optional<? extends SourceMysqlSchemasSslModeMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceN8n.java b/src/main/java/com/airbyte/api/models/shared/SourceN8n.java index a4dc3881b..6c92ef707 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceN8n.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceN8n.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceN8n { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNasa.java b/src/main/java/com/airbyte/api/models/shared/SourceNasa.java index 13aff2729..04ead6da5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNasa.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNasa.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceNasa { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNavan.java b/src/main/java/com/airbyte/api/models/shared/SourceNavan.java new file mode 100644 index 000000000..6fdb2ef1e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceNavan.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Objects; + +public class SourceNavan { + + @JsonProperty("client_id") + private String clientId; + + @JsonProperty("client_secret") + private String clientSecret; + + @JsonProperty("sourceType") + private Navan sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceNavan( + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(startDate, "startDate"); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public String clientId() { + return clientId; + } + + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + @JsonIgnore + public Navan sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceNavan withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public SourceNavan withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public SourceNavan withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceNavan other = (SourceNavan) o; + return + Objects.deepEquals(this.clientId, other.clientId) && + Objects.deepEquals(this.clientSecret, other.clientSecret) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Objects.hash( + clientId, + clientSecret, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceNavan.class, + "clientId", clientId, + "clientSecret", clientSecret, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String clientId; + + private String clientSecret; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceNavan build() { + return new SourceNavan( + clientId, + clientSecret, + startDate); + } + + private static final LazySingletonValue<Navan> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"navan\"", + new TypeReference<Navan>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java index 4aea9f35e..b9a9b9350 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceNetsuite { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsApi.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsApi.java index 4a3369c70..ecfd8ab1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNewsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceNewsApi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdata.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdata.java new file mode 100644 index 000000000..45227f8fe --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdata.java @@ -0,0 +1,417 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +public class SourceNewsdata { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("OneOf") + private Optional<? extends Object> oneOf; + + /** + * API Key + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * Categories (maximum 5) to restrict the search to. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("category") + private Optional<? extends List<SourceNewsdataCategory>> category; + + /** + * 2-letter ISO 3166-1 countries (maximum 5) to restrict the search to. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("country") + private Optional<? extends List<SourceNewsdataCountry>> country; + + /** + * Domains (maximum 5) to restrict the search to. Use the sources stream to find top sources id. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("domain") + private Optional<? extends List<String>> domain; + + /** + * Languages (maximum 5) to restrict the search to. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("language") + private Optional<? extends List<SourceNewsdataLanguage>> language; + + @JsonProperty("sourceType") + private Newsdata sourceType; + + @JsonCreator + public SourceNewsdata( + @JsonProperty("OneOf") Optional<? extends Object> oneOf, + @JsonProperty("api_key") String apiKey, + @JsonProperty("category") Optional<? extends List<SourceNewsdataCategory>> category, + @JsonProperty("country") Optional<? extends List<SourceNewsdataCountry>> country, + @JsonProperty("domain") Optional<? extends List<String>> domain, + @JsonProperty("language") Optional<? extends List<SourceNewsdataLanguage>> language) { + Utils.checkNotNull(oneOf, "oneOf"); + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(category, "category"); + Utils.checkNotNull(country, "country"); + Utils.checkNotNull(domain, "domain"); + Utils.checkNotNull(language, "language"); + this.oneOf = oneOf; + this.apiKey = apiKey; + this.category = category; + this.country = country; + this.domain = domain; + this.language = language; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + public SourceNewsdata( + String apiKey) { + this(Optional.empty(), apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<Object> oneOf() { + return (Optional<Object>) oneOf; + } + + /** + * API Key + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Categories (maximum 5) to restrict the search to. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<SourceNewsdataCategory>> category() { + return (Optional<List<SourceNewsdataCategory>>) category; + } + + /** + * 2-letter ISO 3166-1 countries (maximum 5) to restrict the search to. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<SourceNewsdataCountry>> country() { + return (Optional<List<SourceNewsdataCountry>>) country; + } + + /** + * Domains (maximum 5) to restrict the search to. Use the sources stream to find top sources id. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<String>> domain() { + return (Optional<List<String>>) domain; + } + + /** + * Languages (maximum 5) to restrict the search to. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<SourceNewsdataLanguage>> language() { + return (Optional<List<SourceNewsdataLanguage>>) language; + } + + @JsonIgnore + public Newsdata sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceNewsdata withOneOf(Object oneOf) { + Utils.checkNotNull(oneOf, "oneOf"); + this.oneOf = Optional.ofNullable(oneOf); + return this; + } + + public SourceNewsdata withOneOf(Optional<? extends Object> oneOf) { + Utils.checkNotNull(oneOf, "oneOf"); + this.oneOf = oneOf; + return this; + } + + /** + * API Key + */ + public SourceNewsdata withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Categories (maximum 5) to restrict the search to. + */ + public SourceNewsdata withCategory(List<SourceNewsdataCategory> category) { + Utils.checkNotNull(category, "category"); + this.category = Optional.ofNullable(category); + return this; + } + + /** + * Categories (maximum 5) to restrict the search to. + */ + public SourceNewsdata withCategory(Optional<? extends List<SourceNewsdataCategory>> category) { + Utils.checkNotNull(category, "category"); + this.category = category; + return this; + } + + /** + * 2-letter ISO 3166-1 countries (maximum 5) to restrict the search to. + */ + public SourceNewsdata withCountry(List<SourceNewsdataCountry> country) { + Utils.checkNotNull(country, "country"); + this.country = Optional.ofNullable(country); + return this; + } + + /** + * 2-letter ISO 3166-1 countries (maximum 5) to restrict the search to. + */ + public SourceNewsdata withCountry(Optional<? extends List<SourceNewsdataCountry>> country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * Domains (maximum 5) to restrict the search to. Use the sources stream to find top sources id. + */ + public SourceNewsdata withDomain(List<String> domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + * Domains (maximum 5) to restrict the search to. Use the sources stream to find top sources id. + */ + public SourceNewsdata withDomain(Optional<? extends List<String>> domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * Languages (maximum 5) to restrict the search to. + */ + public SourceNewsdata withLanguage(List<SourceNewsdataLanguage> language) { + Utils.checkNotNull(language, "language"); + this.language = Optional.ofNullable(language); + return this; + } + + /** + * Languages (maximum 5) to restrict the search to. + */ + public SourceNewsdata withLanguage(Optional<? extends List<SourceNewsdataLanguage>> language) { + Utils.checkNotNull(language, "language"); + this.language = language; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceNewsdata other = (SourceNewsdata) o; + return + Objects.deepEquals(this.oneOf, other.oneOf) && + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.category, other.category) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.domain, other.domain) && + Objects.deepEquals(this.language, other.language) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + oneOf, + apiKey, + category, + country, + domain, + language, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceNewsdata.class, + "oneOf", oneOf, + "apiKey", apiKey, + "category", category, + "country", country, + "domain", domain, + "language", language, + "sourceType", sourceType); + } + + public final static class Builder { + + private Optional<? extends Object> oneOf = Optional.empty(); + + private String apiKey; + + private Optional<? extends List<SourceNewsdataCategory>> category = Optional.empty(); + + private Optional<? extends List<SourceNewsdataCountry>> country = Optional.empty(); + + private Optional<? extends List<String>> domain = Optional.empty(); + + private Optional<? extends List<SourceNewsdataLanguage>> language = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder oneOf(Object oneOf) { + Utils.checkNotNull(oneOf, "oneOf"); + this.oneOf = Optional.ofNullable(oneOf); + return this; + } + + public Builder oneOf(Optional<? extends Object> oneOf) { + Utils.checkNotNull(oneOf, "oneOf"); + this.oneOf = oneOf; + return this; + } + + /** + * API Key + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Categories (maximum 5) to restrict the search to. + */ + public Builder category(List<SourceNewsdataCategory> category) { + Utils.checkNotNull(category, "category"); + this.category = Optional.ofNullable(category); + return this; + } + + /** + * Categories (maximum 5) to restrict the search to. + */ + public Builder category(Optional<? extends List<SourceNewsdataCategory>> category) { + Utils.checkNotNull(category, "category"); + this.category = category; + return this; + } + + /** + * 2-letter ISO 3166-1 countries (maximum 5) to restrict the search to. + */ + public Builder country(List<SourceNewsdataCountry> country) { + Utils.checkNotNull(country, "country"); + this.country = Optional.ofNullable(country); + return this; + } + + /** + * 2-letter ISO 3166-1 countries (maximum 5) to restrict the search to. + */ + public Builder country(Optional<? extends List<SourceNewsdataCountry>> country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * Domains (maximum 5) to restrict the search to. Use the sources stream to find top sources id. + */ + public Builder domain(List<String> domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + * Domains (maximum 5) to restrict the search to. Use the sources stream to find top sources id. + */ + public Builder domain(Optional<? extends List<String>> domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * Languages (maximum 5) to restrict the search to. + */ + public Builder language(List<SourceNewsdataLanguage> language) { + Utils.checkNotNull(language, "language"); + this.language = Optional.ofNullable(language); + return this; + } + + /** + * Languages (maximum 5) to restrict the search to. + */ + public Builder language(Optional<? extends List<SourceNewsdataLanguage>> language) { + Utils.checkNotNull(language, "language"); + this.language = language; + return this; + } + + public SourceNewsdata build() { + return new SourceNewsdata( + oneOf, + apiKey, + category, + country, + domain, + language); + } + + private static final LazySingletonValue<Newsdata> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"newsdata\"", + new TypeReference<Newsdata>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCategory.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCategory.java new file mode 100644 index 000000000..c51e534ca --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCategory.java @@ -0,0 +1,43 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceNewsdataCategory { + BUSINESS("business"), + ENTERTAINMENT("entertainment"), + ENVIRONMENT("environment"), + FOOD("food"), + HEALTH("health"), + POLITICS("politics"), + SCIENCE("science"), + SPORTS("sports"), + TECHNOLOGY("technology"), + TOP("top"), + WORLD("world"); + + @JsonValue + private final String value; + + private SourceNewsdataCategory(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceNewsdataCategory> fromValue(String value) { + for (SourceNewsdataCategory o: SourceNewsdataCategory.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCountry.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCountry.java new file mode 100644 index 000000000..80c9631fc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCountry.java @@ -0,0 +1,108 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceNewsdataCountry { + AR("ar"), + AU("au"), + AT("at"), + BD("bd"), + BY("by"), + BE("be"), + BR("br"), + BG("bg"), + CA("ca"), + CL("cl"), + CN("cn"), + CO("co"), + CR("cr"), + CU("cu"), + CZ("cz"), + DK("dk"), + DO("do"), + EC("ec"), + EG("eg"), + EE("ee"), + ET("et"), + FI("fi"), + FR("fr"), + DE("de"), + GR("gr"), + HK("hk"), + HU("hu"), + IN("in"), + ID("id"), + IQ("iq"), + IE("ie"), + IL("il"), + IT("it"), + JP("jp"), + KZ("kz"), + KW("kw"), + LV("lv"), + LB("lb"), + LT("lt"), + MY("my"), + MX("mx"), + MA("ma"), + MM("mm"), + NL("nl"), + NZ("nz"), + NG("ng"), + KP("kp"), + NO("no"), + PK("pk"), + PE("pe"), + PH("ph"), + PL("pl"), + PT("pt"), + PR("pr"), + RO("ro"), + RU("ru"), + SA("sa"), + RS("rs"), + SG("sg"), + SK("sk"), + SI("si"), + ZA("za"), + KR("kr"), + ES("es"), + SE("se"), + CH("ch"), + TW("tw"), + TZ("tz"), + TH("th"), + TR("tr"), + UA("ua"), + AE("ae"), + GB("gb"), + US("us"), + VE("ve"), + VI("vi"); + + @JsonValue + private final String value; + + private SourceNewsdataCountry(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceNewsdataCountry> fromValue(String value) { + for (SourceNewsdataCountry o: SourceNewsdataCountry.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataIo.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataIo.java index eb39f8523..456ffb726 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataIo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,7 +22,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceNewsdataIo { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataLanguage.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataLanguage.java new file mode 100644 index 000000000..d9b41ae73 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataLanguage.java @@ -0,0 +1,77 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceNewsdataLanguage { + BE("be"), + AM("am"), + AR("ar"), + BN("bn"), + BS("bs"), + BG("bg"), + MY("my"), + CKB("ckb"), + ZH("zh"), + HR("hr"), + CS("cs"), + DA("da"), + NL("nl"), + EN("en"), + ET("et"), + FI("fi"), + FR("fr"), + DE("de"), + EL("el"), + HE("he"), + HI("hi"), + HU("hu"), + IN("in"), + IT("it"), + JP("jp"), + KO("ko"), + LV("lv"), + LT("lt"), + MS("ms"), + NO("no"), + PL("pl"), + PT("pt"), + RO("ro"), + RU("ru"), + SR("sr"), + SK("sk"), + SL("sl"), + ES("es"), + SW("sw"), + SV("sv"), + TH("th"), + TR("tr"), + UK("uk"), + UR("ur"), + VI("vi"); + + @JsonValue + private final String value; + + private SourceNewsdataLanguage(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceNewsdataLanguage> fromValue(String value) { + for (SourceNewsdataLanguage o: SourceNewsdataLanguage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNocrm.java b/src/main/java/com/airbyte/api/models/shared/SourceNocrm.java index a5a40df25..1f69f7440 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNocrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNocrm.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceNocrm { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java b/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java index fbb2221c8..2652b23b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceNorthpassLms { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotion.java b/src/main/java/com/airbyte/api/models/shared/SourceNotion.java index 7faece793..405eb51e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotion.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceNotion { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionAccessToken.java index 2a5d83765..cadef1034 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceNotionAccessToken { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java index 5e18b7d0b..7399802cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceNotionAuthType { O_AUTH20("OAuth2.0"); @@ -20,4 +21,13 @@ private SourceNotionAuthType(String value) { public String value() { return value; } + + public static Optional<SourceNotionAuthType> fromValue(String value) { + for (SourceNotionAuthType o: SourceNotionAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthenticationMethod.java index 8db9db3e0..f4ddcf89e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthenticationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceNotionAuthenticationMethod - Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more information. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java index a9ceafb72..c6b705c96 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceNotionNotion { NOTION("notion"); @@ -20,4 +21,13 @@ private SourceNotionNotion(String value) { public String value() { return value; } + + public static Optional<SourceNotionNotion> fromValue(String value) { + for (SourceNotionNotion o: SourceNotionNotion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionOAuth20.java index 834fa990c..bf37d6ad3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceNotionOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java index 937d727bf..2fc0e956c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceNotionSchemasAuthType { TOKEN("token"); @@ -20,4 +21,13 @@ private SourceNotionSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceNotionSchemasAuthType> fromValue(String value) { + for (SourceNotionSchemasAuthType o: SourceNotionSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNutshell.java b/src/main/java/com/airbyte/api/models/shared/SourceNutshell.java index 036ca5d3e..e1c0d89df 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNutshell.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNutshell.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceNutshell { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNylas.java b/src/main/java/com/airbyte/api/models/shared/SourceNylas.java index 84f6fddbe..66db52546 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNylas.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNylas.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceNylas { @JsonProperty("api_key") 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 b7deee81d..5709571a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceNytimes { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOkta.java b/src/main/java/com/airbyte/api/models/shared/SourceOkta.java index 56d6ad048..3871e852f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOkta.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOkta.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOkta { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java index 82d63ddcf..2a328afee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOktaAPIToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java index d3ac13d82..8c6727651 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceOktaAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceOktaAuthType(String value) { public String value() { return value; } + + public static Optional<SourceOktaAuthType> fromValue(String value) { + for (SourceOktaAuthType o: SourceOktaAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java index 6edb94e63..be9e4c39c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceOktaAuthorizationMethod._Deserializer.class) public class SourceOktaAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaOAuth20.java index 18204dfd7..c9c0b58dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOktaOAuth20 { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java index 8b6f30978..35b96414e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceOktaSchemasAuthType { OAUTH20_PRIVATE_KEY("oauth2.0_private_key"); @@ -20,4 +21,13 @@ private SourceOktaSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceOktaSchemasAuthType> fromValue(String value) { + for (SourceOktaSchemasAuthType o: SourceOktaSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java index 539450632..9f82402ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceOktaSchemasCredentialsAuthType { API_TOKEN("api_token"); @@ -20,4 +21,13 @@ private SourceOktaSchemasCredentialsAuthType(String value) { public String value() { return value; } + + public static Optional<SourceOktaSchemasCredentialsAuthType> fromValue(String value) { + for (SourceOktaSchemasCredentialsAuthType o: SourceOktaSchemasCredentialsAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOmnisend.java b/src/main/java/com/airbyte/api/models/shared/SourceOmnisend.java index 166f36d6a..5c369bffd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOmnisend.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOmnisend.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOmnisend { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOncehub.java b/src/main/java/com/airbyte/api/models/shared/SourceOncehub.java index 841090052..5aa8b45ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOncehub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOncehub.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceOncehub { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOnepagecrm.java b/src/main/java/com/airbyte/api/models/shared/SourceOnepagecrm.java index 84fa18b8c..d0f0449cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOnepagecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOnepagecrm.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOnepagecrm { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOnesignal.java b/src/main/java/com/airbyte/api/models/shared/SourceOnesignal.java index 64e5e77a2..dce4ab6e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOnesignal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOnesignal.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,7 +16,6 @@ import java.util.List; import java.util.Objects; - public class SourceOnesignal { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOnfleet.java b/src/main/java/com/airbyte/api/models/shared/SourceOnfleet.java index 0b7af1be7..72a22d52a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOnfleet.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOnfleet.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOnfleet { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpenDataDc.java b/src/main/java/com/airbyte/api/models/shared/SourceOpenDataDc.java index 96e33d920..1a86f7687 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpenDataDc.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpenDataDc.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOpenDataDc { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpenaq.java b/src/main/java/com/airbyte/api/models/shared/SourceOpenaq.java index 2a7debef8..afe80835d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpenaq.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpenaq.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,7 +16,6 @@ import java.util.List; import java.util.Objects; - public class SourceOpenaq { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpenfda.java b/src/main/java/com/airbyte/api/models/shared/SourceOpenfda.java index 81d302725..202d039ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpenfda.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpenfda.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOpenfda { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpenweather.java b/src/main/java/com/airbyte/api/models/shared/SourceOpenweather.java index 62c3f40f1..cc3fda8a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpenweather.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpenweather.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOpenweather { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpinionStage.java b/src/main/java/com/airbyte/api/models/shared/SourceOpinionStage.java index 400e81c5a..4353d5bd1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpinionStage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpinionStage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOpinionStage { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpsgenie.java b/src/main/java/com/airbyte/api/models/shared/SourceOpsgenie.java index 95bdaa8d2..34d82edd6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpsgenie.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpsgenie.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOpsgenie { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracle.java b/src/main/java/com/airbyte/api/models/shared/SourceOracle.java index 0ab977d5d..465e3d3a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracle.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOracle { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java index 31772299e..945dd2bca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceOracleConnectionType { SID("sid"); @@ -20,4 +21,13 @@ private SourceOracleConnectionType(String value) { public String value() { return value; } + + public static Optional<SourceOracleConnectionType> fromValue(String value) { + for (SourceOracleConnectionType o: SourceOracleConnectionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryption.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryption.java index fc7acbbc0..8b53c3a14 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryption.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryption.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceOracleEncryption - The encryption method with is used when communicating with the database. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java index 21efdf3e1..970391f05 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceOracleEncryptionAlgorithm - This parameter defines what encryption algorithm is used. */ @@ -25,4 +26,13 @@ private SourceOracleEncryptionAlgorithm(String value) { public String value() { return value; } + + public static Optional<SourceOracleEncryptionAlgorithm> fromValue(String value) { + for (SourceOracleEncryptionAlgorithm o: SourceOracleEncryptionAlgorithm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java index 3c5d291df..be40d4f9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceOracleEncryptionMethod { UNENCRYPTED("unencrypted"); @@ -20,4 +21,13 @@ private SourceOracleEncryptionMethod(String value) { public String value() { return value; } + + public static Optional<SourceOracleEncryptionMethod> fromValue(String value) { + for (SourceOracleEncryptionMethod o: SourceOracleEncryptionMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleNativeNetworkEncryptionNNE.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleNativeNetworkEncryptionNNE.java index 2ef44452e..e62906212 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleNativeNetworkEncryptionNNE.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleNativeNetworkEncryptionNNE.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceOracleNativeNetworkEncryptionNNE - The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleNoTunnel.java index ce3207b60..c96f466c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOracleNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java index e279dffa9..356a1f3e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceOracleOracle { ORACLE("oracle"); @@ -20,4 +21,13 @@ private SourceOracleOracle(String value) { public String value() { return value; } + + public static Optional<SourceOracleOracle> fromValue(String value) { + for (SourceOracleOracle o: SourceOracleOracle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOraclePasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceOraclePasswordAuthentication.java index 01aa97f54..59cd4f79a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOraclePasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOraclePasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOraclePasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHKeyAuthentication.java index 7bca5d001..f068ca5a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOracleSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHTunnelMethod.java index 3f3eed1ee..343118ae9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceOracleSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java index 7813d0707..5481d3f5d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceOracleSchemasEncryptionEncryptionMethod { ENCRYPTED_VERIFY_CERTIFICATE("encrypted_verify_certificate"); @@ -20,4 +21,13 @@ private SourceOracleSchemasEncryptionEncryptionMethod(String value) { public String value() { return value; } + + public static Optional<SourceOracleSchemasEncryptionEncryptionMethod> fromValue(String value) { + for (SourceOracleSchemasEncryptionEncryptionMethod o: SourceOracleSchemasEncryptionEncryptionMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java index 5daa5c5b6..6ffc5e1ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceOracleSchemasEncryptionMethod { CLIENT_NNE("client_nne"); @@ -20,4 +21,13 @@ private SourceOracleSchemasEncryptionMethod(String value) { public String value() { return value; } + + public static Optional<SourceOracleSchemasEncryptionMethod> fromValue(String value) { + for (SourceOracleSchemasEncryptionMethod o: SourceOracleSchemasEncryptionMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java index 585aad451..99e5767bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceOracleSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private SourceOracleSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceOracleSchemasTunnelMethod> fromValue(String value) { + for (SourceOracleSchemasTunnelMethod o: SourceOracleSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java index a33a3c6ca..245b4232f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceOracleSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private SourceOracleSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceOracleSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (SourceOracleSchemasTunnelMethodTunnelMethod o: SourceOracleSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleTLSEncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleTLSEncryptedVerifyCertificate.java index 508b6e723..82bd6d4d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleTLSEncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleTLSEncryptedVerifyCertificate.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * SourceOracleTLSEncryptedVerifyCertificate - Verify and use the certificate provided by the server. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java index 7bbc1da35..4acf49fae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceOracleTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private SourceOracleTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourceOracleTunnelMethod> fromValue(String value) { + for (SourceOracleTunnelMethod o: SourceOracleTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleUnencrypted.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleUnencrypted.java index 9504e1263..8301b91ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleUnencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleUnencrypted.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * SourceOracleUnencrypted - Data transfer will not be encrypted. */ 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 14a95628e..42fe491bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOrb.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOrb.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOrb { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOura.java b/src/main/java/com/airbyte/api/models/shared/SourceOura.java index 195e0ab7c..152079332 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOura.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOura.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOura { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplify.java b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplify.java index 93d05508c..8522b7da4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplify.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceOutbrainAmplify { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAccessToken.java index aa38fd03c..78a5b2f78 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOutbrainAmplifyAccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAuthenticationMethod.java index 03fa57709..159c46050 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAuthenticationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceOutbrainAmplifyAuthenticationMethod - Credentials for making authenticated requests requires either username/password or access_token. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyUsernamePassword.java b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyUsernamePassword.java index dd9cf17cd..888366793 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyUsernamePassword.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyUsernamePassword.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOutbrainAmplifyUsernamePassword { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutreach.java b/src/main/java/com/airbyte/api/models/shared/SourceOutreach.java index 22fafd418..b75709e29 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutreach.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutreach.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOutreach { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOveit.java b/src/main/java/com/airbyte/api/models/shared/SourceOveit.java index 432506558..6b4334465 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOveit.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOveit.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceOveit { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePabblySubscriptionsBilling.java b/src/main/java/com/airbyte/api/models/shared/SourcePabblySubscriptionsBilling.java index 063e00d76..838e81210 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePabblySubscriptionsBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePabblySubscriptionsBilling.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePabblySubscriptionsBilling { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePandadoc.java b/src/main/java/com/airbyte/api/models/shared/SourcePandadoc.java index a444aa3e1..7d41905c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePandadoc.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePandadoc.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourcePandadoc { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePaperform.java b/src/main/java/com/airbyte/api/models/shared/SourcePaperform.java index bf8e18828..a9cf0b591 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePaperform.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePaperform.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePaperform { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePapersign.java b/src/main/java/com/airbyte/api/models/shared/SourcePapersign.java index 17f26fa82..2534d1f9f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePapersign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePapersign.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePapersign { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePardot.java b/src/main/java/com/airbyte/api/models/shared/SourcePardot.java index 311e8711c..67c062dbf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePardot.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePardot.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,10 +15,10 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; +import java.time.OffsetDateTime; import java.util.Objects; import java.util.Optional; - public class SourcePardot { /** @@ -41,6 +40,13 @@ public class SourcePardot { @JsonProperty("is_sandbox") private Optional<Boolean> isSandbox; + /** + * The maximum number of records to return per request + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("page_size") + private Optional<String> pageSize; + /** * Pardot Business ID, can be found at Setup > Pardot > Pardot Account Setup */ @@ -57,29 +63,32 @@ public class SourcePardot { private Pardot sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Leave blank to skip this filter + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") - private Optional<String> startDate; + private Optional<OffsetDateTime> startDate; @JsonCreator public SourcePardot( @JsonProperty("client_id") String clientId, @JsonProperty("client_secret") String clientSecret, @JsonProperty("is_sandbox") Optional<Boolean> isSandbox, + @JsonProperty("page_size") Optional<String> pageSize, @JsonProperty("pardot_business_unit_id") String pardotBusinessUnitId, @JsonProperty("refresh_token") String refreshToken, - @JsonProperty("start_date") Optional<String> startDate) { + @JsonProperty("start_date") Optional<OffsetDateTime> startDate) { Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); Utils.checkNotNull(isSandbox, "isSandbox"); + Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(pardotBusinessUnitId, "pardotBusinessUnitId"); Utils.checkNotNull(refreshToken, "refreshToken"); Utils.checkNotNull(startDate, "startDate"); this.clientId = clientId; this.clientSecret = clientSecret; this.isSandbox = isSandbox; + this.pageSize = pageSize; this.pardotBusinessUnitId = pardotBusinessUnitId; this.refreshToken = refreshToken; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); @@ -91,7 +100,7 @@ public SourcePardot( String clientSecret, String pardotBusinessUnitId, String refreshToken) { - this(clientId, clientSecret, Optional.empty(), pardotBusinessUnitId, refreshToken, Optional.empty()); + this(clientId, clientSecret, Optional.empty(), Optional.empty(), pardotBusinessUnitId, refreshToken, Optional.empty()); } /** @@ -118,6 +127,14 @@ public Optional<Boolean> isSandbox() { return isSandbox; } + /** + * The maximum number of records to return per request + */ + @JsonIgnore + public Optional<String> pageSize() { + return pageSize; + } + /** * Pardot Business ID, can be found at Setup > Pardot > Pardot Account Setup */ @@ -140,10 +157,10 @@ public Pardot sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Leave blank to skip this filter + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. */ @JsonIgnore - public Optional<String> startDate() { + public Optional<OffsetDateTime> startDate() { return startDate; } @@ -187,6 +204,24 @@ public SourcePardot withIsSandbox(Optional<Boolean> isSandbox) { return this; } + /** + * The maximum number of records to return per request + */ + public SourcePardot withPageSize(String pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + /** + * The maximum number of records to return per request + */ + public SourcePardot withPageSize(Optional<String> pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + /** * Pardot Business ID, can be found at Setup > Pardot > Pardot Account Setup */ @@ -206,18 +241,18 @@ public SourcePardot withRefreshToken(String refreshToken) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Leave blank to skip this filter + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. */ - public SourcePardot withStartDate(String startDate) { + public SourcePardot withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = Optional.ofNullable(startDate); return this; } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Leave blank to skip this filter + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. */ - public SourcePardot withStartDate(Optional<String> startDate) { + public SourcePardot withStartDate(Optional<OffsetDateTime> startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; @@ -236,6 +271,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.clientId, other.clientId) && Objects.deepEquals(this.clientSecret, other.clientSecret) && Objects.deepEquals(this.isSandbox, other.isSandbox) && + Objects.deepEquals(this.pageSize, other.pageSize) && Objects.deepEquals(this.pardotBusinessUnitId, other.pardotBusinessUnitId) && Objects.deepEquals(this.refreshToken, other.refreshToken) && Objects.deepEquals(this.sourceType, other.sourceType) && @@ -248,6 +284,7 @@ public int hashCode() { clientId, clientSecret, isSandbox, + pageSize, pardotBusinessUnitId, refreshToken, sourceType, @@ -260,6 +297,7 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret, "isSandbox", isSandbox, + "pageSize", pageSize, "pardotBusinessUnitId", pardotBusinessUnitId, "refreshToken", refreshToken, "sourceType", sourceType, @@ -274,11 +312,13 @@ public final static class Builder { private Optional<Boolean> isSandbox; + private Optional<String> pageSize; + private String pardotBusinessUnitId; private String refreshToken; - private Optional<String> startDate; + private Optional<OffsetDateTime> startDate; private Builder() { // force use of static builder() method @@ -320,6 +360,24 @@ public Builder isSandbox(Optional<Boolean> isSandbox) { return this; } + /** + * The maximum number of records to return per request + */ + public Builder pageSize(String pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + /** + * The maximum number of records to return per request + */ + public Builder pageSize(Optional<String> pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + /** * Pardot Business ID, can be found at Setup > Pardot > Pardot Account Setup */ @@ -339,18 +397,18 @@ public Builder refreshToken(String refreshToken) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Leave blank to skip this filter + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. */ - public Builder startDate(String startDate) { + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = Optional.ofNullable(startDate); return this; } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Leave blank to skip this filter + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. */ - public Builder startDate(Optional<String> startDate) { + public Builder startDate(Optional<OffsetDateTime> startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; @@ -360,12 +418,16 @@ public SourcePardot build() { if (isSandbox == null) { isSandbox = _SINGLETON_VALUE_IsSandbox.value(); } + if (pageSize == null) { + pageSize = _SINGLETON_VALUE_PageSize.value(); + } if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } return new SourcePardot( clientId, clientSecret, isSandbox, + pageSize, pardotBusinessUnitId, refreshToken, startDate); @@ -377,17 +439,23 @@ public SourcePardot build() { "false", new TypeReference<Optional<Boolean>>() {}); + private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_PageSize = + new LazySingletonValue<>( + "page_size", + "\"1000\"", + new TypeReference<Optional<String>>() {}); + private static final LazySingletonValue<Pardot> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"pardot\"", new TypeReference<Pardot>() {}); - private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_StartDate = + private static final LazySingletonValue<Optional<OffsetDateTime>> _SINGLETON_VALUE_StartDate = new LazySingletonValue<>( "start_date", - "null", - new TypeReference<Optional<String>>() {}); + "\"2007-01-01T00:00:00Z\"", + new TypeReference<Optional<OffsetDateTime>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java b/src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java index 06d4a84bb..103c503fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePatchRequest { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePayfit.java b/src/main/java/com/airbyte/api/models/shared/SourcePayfit.java new file mode 100644 index 000000000..684c6b3ed --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourcePayfit.java @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourcePayfit { + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("company_id") + private String companyId; + + @JsonProperty("sourceType") + private Payfit sourceType; + + @JsonCreator + public SourcePayfit( + @JsonProperty("api_key") String apiKey, + @JsonProperty("company_id") String companyId) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(companyId, "companyId"); + this.apiKey = apiKey; + this.companyId = companyId; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public String companyId() { + return companyId; + } + + @JsonIgnore + public Payfit sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourcePayfit withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourcePayfit withCompanyId(String companyId) { + Utils.checkNotNull(companyId, "companyId"); + this.companyId = companyId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourcePayfit other = (SourcePayfit) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.companyId, other.companyId) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + companyId, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourcePayfit.class, + "apiKey", apiKey, + "companyId", companyId, + "sourceType", sourceType); + } + + public final static class Builder { + + private String apiKey; + + private String companyId; + + private Builder() { + // force use of static builder() method + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public Builder companyId(String companyId) { + Utils.checkNotNull(companyId, "companyId"); + this.companyId = companyId; + return this; + } + + public SourcePayfit build() { + return new SourcePayfit( + apiKey, + companyId); + } + + private static final LazySingletonValue<Payfit> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"payfit\"", + new TypeReference<Payfit>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePaypalTransaction.java b/src/main/java/com/airbyte/api/models/shared/SourcePaypalTransaction.java index b5e968d5b..e4bbc4a48 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePaypalTransaction.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePaypalTransaction.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePaypalTransaction { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePaystack.java b/src/main/java/com/airbyte/api/models/shared/SourcePaystack.java index ac0deb530..e454d2f3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePaystack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePaystack.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePaystack { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePendo.java b/src/main/java/com/airbyte/api/models/shared/SourcePendo.java index 2e0d95486..e068c4f94 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePendo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePendo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePendo { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java b/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java index 6da63fa9d..d58b385f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourcePennylane { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePersistiq.java b/src/main/java/com/airbyte/api/models/shared/SourcePersistiq.java index 26156e172..6ce3c5f77 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePersistiq.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePersistiq.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePersistiq { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePersona.java b/src/main/java/com/airbyte/api/models/shared/SourcePersona.java index 4a269741a..02d31425f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePersona.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePersona.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePersona { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePexelsApi.java b/src/main/java/com/airbyte/api/models/shared/SourcePexelsApi.java index 6323b010f..16b52cc52 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePexelsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePexelsApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePexelsApi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePicqer.java b/src/main/java/com/airbyte/api/models/shared/SourcePicqer.java index ae8389962..0ca6b9cad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePicqer.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePicqer.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePicqer { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePingdom.java b/src/main/java/com/airbyte/api/models/shared/SourcePingdom.java new file mode 100644 index 000000000..649878e9a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourcePingdom.java @@ -0,0 +1,240 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.Optional; + +public class SourcePingdom { + + @JsonProperty("api_key") + private String apiKey; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("probes") + private Optional<String> probes; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("resolution") + private Optional<? extends Resolution> resolution; + + @JsonProperty("sourceType") + private Pingdom sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourcePingdom( + @JsonProperty("api_key") String apiKey, + @JsonProperty("probes") Optional<String> probes, + @JsonProperty("resolution") Optional<? extends Resolution> resolution, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(probes, "probes"); + Utils.checkNotNull(resolution, "resolution"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.probes = probes; + this.resolution = resolution; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + public SourcePingdom( + String apiKey, + OffsetDateTime startDate) { + this(apiKey, Optional.empty(), Optional.empty(), startDate); + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Optional<String> probes() { + return probes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<Resolution> resolution() { + return (Optional<Resolution>) resolution; + } + + @JsonIgnore + public Pingdom sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourcePingdom withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourcePingdom withProbes(String probes) { + Utils.checkNotNull(probes, "probes"); + this.probes = Optional.ofNullable(probes); + return this; + } + + public SourcePingdom withProbes(Optional<String> probes) { + Utils.checkNotNull(probes, "probes"); + this.probes = probes; + return this; + } + + public SourcePingdom withResolution(Resolution resolution) { + Utils.checkNotNull(resolution, "resolution"); + this.resolution = Optional.ofNullable(resolution); + return this; + } + + public SourcePingdom withResolution(Optional<? extends Resolution> resolution) { + Utils.checkNotNull(resolution, "resolution"); + this.resolution = resolution; + return this; + } + + public SourcePingdom withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourcePingdom other = (SourcePingdom) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.probes, other.probes) && + Objects.deepEquals(this.resolution, other.resolution) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + probes, + resolution, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourcePingdom.class, + "apiKey", apiKey, + "probes", probes, + "resolution", resolution, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String apiKey; + + private Optional<String> probes = Optional.empty(); + + private Optional<? extends Resolution> resolution; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public Builder probes(String probes) { + Utils.checkNotNull(probes, "probes"); + this.probes = Optional.ofNullable(probes); + return this; + } + + public Builder probes(Optional<String> probes) { + Utils.checkNotNull(probes, "probes"); + this.probes = probes; + return this; + } + + public Builder resolution(Resolution resolution) { + Utils.checkNotNull(resolution, "resolution"); + this.resolution = Optional.ofNullable(resolution); + return this; + } + + public Builder resolution(Optional<? extends Resolution> resolution) { + Utils.checkNotNull(resolution, "resolution"); + this.resolution = resolution; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourcePingdom build() { + if (resolution == null) { + resolution = _SINGLETON_VALUE_Resolution.value(); + } return new SourcePingdom( + apiKey, + probes, + resolution, + startDate); + } + + private static final LazySingletonValue<Optional<? extends Resolution>> _SINGLETON_VALUE_Resolution = + new LazySingletonValue<>( + "resolution", + "\"hour\"", + new TypeReference<Optional<? extends Resolution>>() {}); + + private static final LazySingletonValue<Pingdom> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"pingdom\"", + new TypeReference<Pingdom>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterest.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterest.java index cc0bdc721..734307b09 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; - public class SourcePinterest { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java index 77dbb0f4f..b788e3657 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePinterestAuthMethod { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourcePinterestAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourcePinterestAuthMethod> fromValue(String value) { + for (SourcePinterestAuthMethod o: SourcePinterestAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java index dcc4844fe..8b521d94c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourcePinterestLevel - Chosen level for API */ @@ -34,4 +35,13 @@ private SourcePinterestLevel(String value) { public String value() { return value; } + + public static Optional<SourcePinterestLevel> fromValue(String value) { + for (SourcePinterestLevel o: SourcePinterestLevel.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java index 98a6e9217..551d521fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePinterestPinterest { PINTEREST("pinterest"); @@ -20,4 +21,13 @@ private SourcePinterestPinterest(String value) { public String value() { return value; } + + public static Optional<SourcePinterestPinterest> fromValue(String value) { + for (SourcePinterestPinterest o: SourcePinterestPinterest.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java index e3418cda2..ba43ef0f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourcePinterestSchemasValidEnums - An enumeration. */ @@ -134,4 +135,13 @@ private SourcePinterestSchemasValidEnums(String value) { public String value() { return value; } + + public static Optional<SourcePinterestSchemasValidEnums> fromValue(String value) { + for (SourcePinterestSchemasValidEnums o: SourcePinterestSchemasValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java index 7eea229a6..037d24889 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourcePinterestValidEnums - An enumeration. */ @@ -24,4 +25,13 @@ private SourcePinterestValidEnums(String value) { public String value() { return value; } + + public static Optional<SourcePinterestValidEnums> fromValue(String value) { + for (SourcePinterestValidEnums o: SourcePinterestValidEnums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePipedrive.java b/src/main/java/com/airbyte/api/models/shared/SourcePipedrive.java index ce91e3b12..da43e3c89 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePipedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePipedrive.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePipedrive { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePipeliner.java b/src/main/java/com/airbyte/api/models/shared/SourcePipeliner.java index 8d50fb345..db9356949 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePipeliner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePipeliner.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePipeliner { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePivotalTracker.java b/src/main/java/com/airbyte/api/models/shared/SourcePivotalTracker.java index 3f6fbc90a..7acc1b394 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePivotalTracker.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePivotalTracker.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePivotalTracker { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePiwik.java b/src/main/java/com/airbyte/api/models/shared/SourcePiwik.java index fe476d456..3582c37b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePiwik.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePiwik.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePiwik { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePlaid.java b/src/main/java/com/airbyte/api/models/shared/SourcePlaid.java index 6a857c64e..2a4069b67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePlaid.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePlaid.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePlaid { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java b/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java index 3a63b664a..f3abe98e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePlanhat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePlausible.java b/src/main/java/com/airbyte/api/models/shared/SourcePlausible.java index c325ec6ff..6aa4dc060 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePlausible.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePlausible.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePlausible { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePocket.java b/src/main/java/com/airbyte/api/models/shared/SourcePocket.java index 994387610..cb5bbc6f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePocket.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePocket.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePocket { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java b/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java index fca493da2..d5000f9ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourcePocketSortBy - Sort retrieved items by the given criteria. */ @@ -26,4 +27,13 @@ private SourcePocketSortBy(String value) { public String value() { return value; } + + public static Optional<SourcePocketSortBy> fromValue(String value) { + for (SourcePocketSortBy o: SourcePocketSortBy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePokeapi.java b/src/main/java/com/airbyte/api/models/shared/SourcePokeapi.java index 0104128b7..eb3da613e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePokeapi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePokeapi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePokeapi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePolygonStockApi.java b/src/main/java/com/airbyte/api/models/shared/SourcePolygonStockApi.java index d6a0211e7..830d71f7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePolygonStockApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePolygonStockApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePolygonStockApi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgres.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgres.java index 9f35a4bb9..9f7bea73d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgres.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgres.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePostgres { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresAllow.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresAllow.java index 451c1c926..eae834312 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresAllow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresAllow.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -19,7 +18,6 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; - /** * SourcePostgresAllow - Enables encryption only when required by the source database. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresDisable.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresDisable.java index 3c850d5a9..dae55474e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresDisable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresDisable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -19,7 +18,6 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; - /** * SourcePostgresDisable - Disables encryption of communication between Airbyte and source database. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java index 0e0b0d847..7987ef3ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourcePostgresInvalidCDCPositionBehaviorAdvanced - Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. */ @@ -24,4 +25,13 @@ private SourcePostgresInvalidCDCPositionBehaviorAdvanced(String value) { public String value() { return value; } + + public static Optional<SourcePostgresInvalidCDCPositionBehaviorAdvanced> fromValue(String value) { + for (SourcePostgresInvalidCDCPositionBehaviorAdvanced o: SourcePostgresInvalidCDCPositionBehaviorAdvanced.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java index 67c2734f6..b7f52d38a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresMethod { CDC("CDC"); @@ -20,4 +21,13 @@ private SourcePostgresMethod(String value) { public String value() { return value; } + + public static Optional<SourcePostgresMethod> fromValue(String value) { + for (SourcePostgresMethod o: SourcePostgresMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java index b8733834d..06d93b3d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresMode { DISABLE("disable"); @@ -20,4 +21,13 @@ private SourcePostgresMode(String value) { public String value() { return value; } + + public static Optional<SourcePostgresMode> fromValue(String value) { + for (SourcePostgresMode o: SourcePostgresMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresNoTunnel.java index 88be3bec7..131b0f3aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresNoTunnel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePostgresNoTunnel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPasswordAuthentication.java index 39f7c2182..8ef69a85e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePostgresPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java index cbeb73e55..84d2c3de0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresPostgres { POSTGRES("postgres"); @@ -20,4 +21,13 @@ private SourcePostgresPostgres(String value) { public String value() { return value; } + + public static Optional<SourcePostgresPostgres> fromValue(String value) { + for (SourcePostgresPostgres o: SourcePostgresPostgres.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPrefer.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPrefer.java index 718d4f763..70c020d38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPrefer.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPrefer.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -19,7 +18,6 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; - /** * SourcePostgresPrefer - Allows unencrypted connection only if the source database does not support encryption. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresRequire.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresRequire.java index cc01f2668..55958a6b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresRequire.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresRequire.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -19,7 +18,6 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; - /** * SourcePostgresRequire - Always require encryption. If the source database server does not support encryption, connection will fail. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHKeyAuthentication.java index edd67340a..fe774b9ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePostgresSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHTunnelMethod.java index 2f8db19ef..a1c3f2a85 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHTunnelMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourcePostgresSSHTunnelMethod - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSLModes.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSLModes.java index 850525d06..d89ffd684 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSLModes.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourcePostgresSSLModes - SSL connection modes. * Read more <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresScanChangesWithUserDefinedCursor.java index 02873f42a..edb9225ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresScanChangesWithUserDefinedCursor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresScanChangesWithUserDefinedCursor.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * SourcePostgresScanChangesWithUserDefinedCursor - Incrementally detects new inserts and updates using the <a href="https://docs.airbyte.com/understanding-airbyte/connections/incremental-append/#user-defined-cursor">cursor column</a> chosen when configuring a connection (e.g. created_at, updated_at). */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java index 94beacbb4..48d745a64 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresSchemasMethod { XMIN("Xmin"); @@ -20,4 +21,13 @@ private SourcePostgresSchemasMethod(String value) { public String value() { return value; } + + public static Optional<SourcePostgresSchemasMethod> fromValue(String value) { + for (SourcePostgresSchemasMethod o: SourcePostgresSchemasMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java index 9ef40b5e2..857e982c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresSchemasMode { ALLOW("allow"); @@ -20,4 +21,13 @@ private SourcePostgresSchemasMode(String value) { public String value() { return value; } + + public static Optional<SourcePostgresSchemasMode> fromValue(String value) { + for (SourcePostgresSchemasMode o: SourcePostgresSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java index 55d095376..2752127fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresSchemasReplicationMethodMethod { STANDARD("Standard"); @@ -20,4 +21,13 @@ private SourcePostgresSchemasReplicationMethodMethod(String value) { public String value() { return value; } + + public static Optional<SourcePostgresSchemasReplicationMethodMethod> fromValue(String value) { + for (SourcePostgresSchemasReplicationMethodMethod o: SourcePostgresSchemasReplicationMethodMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java index 7f976d88e..04b06a97b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresSchemasSSLModeSSLModes5Mode { VERIFY_CA("verify-ca"); @@ -20,4 +21,13 @@ private SourcePostgresSchemasSSLModeSSLModes5Mode(String value) { public String value() { return value; } + + public static Optional<SourcePostgresSchemasSSLModeSSLModes5Mode> fromValue(String value) { + for (SourcePostgresSchemasSSLModeSSLModes5Mode o: SourcePostgresSchemasSSLModeSSLModes5Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java index 338f3ffe1..a7a1892d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresSchemasSSLModeSSLModes6Mode { VERIFY_FULL("verify-full"); @@ -20,4 +21,13 @@ private SourcePostgresSchemasSSLModeSSLModes6Mode(String value) { public String value() { return value; } + + public static Optional<SourcePostgresSchemasSSLModeSSLModes6Mode> fromValue(String value) { + for (SourcePostgresSchemasSSLModeSSLModes6Mode o: SourcePostgresSchemasSSLModeSSLModes6Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java index 827ccfac9..d83bb417d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresSchemasSSLModeSSLModesMode { REQUIRE("require"); @@ -20,4 +21,13 @@ private SourcePostgresSchemasSSLModeSSLModesMode(String value) { public String value() { return value; } + + public static Optional<SourcePostgresSchemasSSLModeSSLModesMode> fromValue(String value) { + for (SourcePostgresSchemasSSLModeSSLModesMode o: SourcePostgresSchemasSSLModeSSLModesMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java index e2e47864e..d1f0ab1b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourcePostgresSchemasSslModeMode { PREFER("prefer"); @@ -20,4 +21,13 @@ private SourcePostgresSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional<SourcePostgresSchemasSslModeMode> fromValue(String value) { + for (SourcePostgresSchemasSslModeMode o: SourcePostgresSchemasSslModeMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java index 12597e0fc..d26b6ba8d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourcePostgresSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key */ @@ -23,4 +24,13 @@ private SourcePostgresSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourcePostgresSchemasTunnelMethod> fromValue(String value) { + for (SourcePostgresSchemasTunnelMethod o: SourcePostgresSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java index 429d48db1..751a2519f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourcePostgresSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication */ @@ -23,4 +24,13 @@ private SourcePostgresSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourcePostgresSchemasTunnelMethodTunnelMethod> fromValue(String value) { + for (SourcePostgresSchemasTunnelMethodTunnelMethod o: SourcePostgresSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java index de96853d7..2bdff1335 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourcePostgresTunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private SourcePostgresTunnelMethod(String value) { public String value() { return value; } + + public static Optional<SourcePostgresTunnelMethod> fromValue(String value) { + for (SourcePostgresTunnelMethod o: SourcePostgresTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresUpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresUpdateMethod.java index abb012605..d0a9b2f02 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresUpdateMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresUpdateMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourcePostgresUpdateMethod - Configures how data is extracted from the database. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyCa.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyCa.java index f419f4119..86649f136 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyCa.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -22,7 +21,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; - /** * SourcePostgresVerifyCa - Always require encryption and verifies that the source database server has a valid SSL certificate. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyFull.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyFull.java index cdf6a8a13..e1a0b9f39 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyFull.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -22,7 +21,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; - /** * SourcePostgresVerifyFull - This is the most secure mode. Always require encryption and verifies the identity of the source database server. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePosthog.java b/src/main/java/com/airbyte/api/models/shared/SourcePosthog.java index 65c272b2a..596f68712 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePosthog.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePosthog.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePosthog { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostmarkapp.java b/src/main/java/com/airbyte/api/models/shared/SourcePostmarkapp.java index d10f80358..2fefa67e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostmarkapp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostmarkapp.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePostmarkapp { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePrestashop.java b/src/main/java/com/airbyte/api/models/shared/SourcePrestashop.java index 4ca8da270..2517cda34 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePrestashop.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePrestashop.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.LocalDate; import java.util.Objects; - public class SourcePrestashop { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePretix.java b/src/main/java/com/airbyte/api/models/shared/SourcePretix.java index a2071b9fa..e18f5cb7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePretix.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePretix.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePretix { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePrimetric.java b/src/main/java/com/airbyte/api/models/shared/SourcePrimetric.java index f322c0da2..e7ec18fbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePrimetric.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePrimetric.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePrimetric { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceProductboard.java b/src/main/java/com/airbyte/api/models/shared/SourceProductboard.java index e610f4881..a850c1881 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceProductboard.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceProductboard.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceProductboard { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceProductive.java b/src/main/java/com/airbyte/api/models/shared/SourceProductive.java index 5fedfe96b..c68c65943 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceProductive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceProductive.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceProductive { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePutRequest.java b/src/main/java/com/airbyte/api/models/shared/SourcePutRequest.java index fec2158b7..f1492bf71 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePutRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePutRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class SourcePutRequest { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePypi.java b/src/main/java/com/airbyte/api/models/shared/SourcePypi.java index 3d858a355..b84105845 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePypi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePypi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcePypi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceQualaroo.java b/src/main/java/com/airbyte/api/models/shared/SourceQualaroo.java index 9cb860b6b..d47148f56 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceQualaroo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceQualaroo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceQualaroo { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooks.java b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooks.java index f61799b55..74fd91a01 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooks.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,15 +15,46 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; import java.util.Optional; - public class SourceQuickbooks { - @JsonProperty("credentials") - private SourceQuickbooksAuthorizationMethod credentials; + /** + * Access token for making authenticated requests. + */ + @JsonProperty("access_token") + private String accessToken; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("auth_type") + private Optional<? extends AuthType> authType; + + /** + * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + */ + @JsonProperty("client_id") + private String clientId; + + /** + * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + */ + @JsonProperty("client_secret") + private String clientSecret; + + /** + * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. + */ + @JsonProperty("realm_id") + private String realmId; + + /** + * A token used when refreshing the access token. + */ + @JsonProperty("refresh_token") + private String refreshToken; /** * Determines whether to use the sandbox or production environment. @@ -42,29 +72,97 @@ public class SourceQuickbooks { @JsonProperty("start_date") private OffsetDateTime startDate; + /** + * The date-time when the access token should be refreshed. + */ + @JsonProperty("token_expiry_date") + private OffsetDateTime tokenExpiryDate; + @JsonCreator public SourceQuickbooks( - @JsonProperty("credentials") SourceQuickbooksAuthorizationMethod credentials, + @JsonProperty("access_token") String accessToken, + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("realm_id") String realmId, + @JsonProperty("refresh_token") String refreshToken, @JsonProperty("sandbox") Optional<Boolean> sandbox, - @JsonProperty("start_date") OffsetDateTime startDate) { - Utils.checkNotNull(credentials, "credentials"); + @JsonProperty("start_date") OffsetDateTime startDate, + @JsonProperty("token_expiry_date") OffsetDateTime tokenExpiryDate) { + Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(realmId, "realmId"); + Utils.checkNotNull(refreshToken, "refreshToken"); Utils.checkNotNull(sandbox, "sandbox"); Utils.checkNotNull(startDate, "startDate"); - this.credentials = credentials; + Utils.checkNotNull(tokenExpiryDate, "tokenExpiryDate"); + this.accessToken = accessToken; + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.realmId = realmId; + this.refreshToken = refreshToken; this.sandbox = sandbox; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; + this.tokenExpiryDate = tokenExpiryDate; } public SourceQuickbooks( - SourceQuickbooksAuthorizationMethod credentials, - OffsetDateTime startDate) { - this(credentials, Optional.empty(), startDate); + String accessToken, + String clientId, + String clientSecret, + String realmId, + String refreshToken, + OffsetDateTime startDate, + OffsetDateTime tokenExpiryDate) { + this(accessToken, clientId, clientSecret, realmId, refreshToken, Optional.empty(), startDate, tokenExpiryDate); } + /** + * Access token for making authenticated requests. + */ @JsonIgnore - public SourceQuickbooksAuthorizationMethod credentials() { - return credentials; + public String accessToken() { + return accessToken; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<AuthType> authType() { + return (Optional<AuthType>) authType; + } + + /** + * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + */ + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + /** + * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. + */ + @JsonIgnore + public String realmId() { + return realmId; + } + + /** + * A token used when refreshing the access token. + */ + @JsonIgnore + public String refreshToken() { + return refreshToken; } /** @@ -88,13 +186,60 @@ public OffsetDateTime startDate() { return startDate; } + /** + * The date-time when the access token should be refreshed. + */ + @JsonIgnore + public OffsetDateTime tokenExpiryDate() { + return tokenExpiryDate; + } + public final static Builder builder() { return new Builder(); } - public SourceQuickbooks withCredentials(SourceQuickbooksAuthorizationMethod credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = credentials; + /** + * Access token for making authenticated requests. + */ + public SourceQuickbooks withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + */ + public SourceQuickbooks withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + */ + public SourceQuickbooks withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. + */ + public SourceQuickbooks withRealmId(String realmId) { + Utils.checkNotNull(realmId, "realmId"); + this.realmId = realmId; + return this; + } + + /** + * A token used when refreshing the access token. + */ + public SourceQuickbooks withRefreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; return this; } @@ -124,6 +269,15 @@ public SourceQuickbooks withStartDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } + + /** + * The date-time when the access token should be refreshed. + */ + public SourceQuickbooks withTokenExpiryDate(OffsetDateTime tokenExpiryDate) { + Utils.checkNotNull(tokenExpiryDate, "tokenExpiryDate"); + this.tokenExpiryDate = tokenExpiryDate; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -135,45 +289,112 @@ public boolean equals(java.lang.Object o) { } SourceQuickbooks other = (SourceQuickbooks) o; return - Objects.deepEquals(this.credentials, other.credentials) && + Objects.deepEquals(this.accessToken, other.accessToken) && + Objects.deepEquals(this.authType, other.authType) && + Objects.deepEquals(this.clientId, other.clientId) && + Objects.deepEquals(this.clientSecret, other.clientSecret) && + Objects.deepEquals(this.realmId, other.realmId) && + Objects.deepEquals(this.refreshToken, other.refreshToken) && Objects.deepEquals(this.sandbox, other.sandbox) && Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Objects.deepEquals(this.startDate, other.startDate) && + Objects.deepEquals(this.tokenExpiryDate, other.tokenExpiryDate); } @Override public int hashCode() { return Objects.hash( - credentials, + accessToken, + authType, + clientId, + clientSecret, + realmId, + refreshToken, sandbox, sourceType, - startDate); + startDate, + tokenExpiryDate); } @Override public String toString() { return Utils.toString(SourceQuickbooks.class, - "credentials", credentials, + "accessToken", accessToken, + "authType", authType, + "clientId", clientId, + "clientSecret", clientSecret, + "realmId", realmId, + "refreshToken", refreshToken, "sandbox", sandbox, "sourceType", sourceType, - "startDate", startDate); + "startDate", startDate, + "tokenExpiryDate", tokenExpiryDate); } public final static class Builder { - private SourceQuickbooksAuthorizationMethod credentials; + private String accessToken; + + private String clientId; + + private String clientSecret; + + private String realmId; + + private String refreshToken; private Optional<Boolean> sandbox; - private OffsetDateTime startDate; + private OffsetDateTime startDate; + + private OffsetDateTime tokenExpiryDate; private Builder() { // force use of static builder() method } - public Builder credentials(SourceQuickbooksAuthorizationMethod credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = credentials; + /** + * Access token for making authenticated requests. + */ + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. + */ + public Builder realmId(String realmId) { + Utils.checkNotNull(realmId, "realmId"); + this.realmId = realmId; + return this; + } + + /** + * A token used when refreshing the access token. + */ + public Builder refreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; return this; } @@ -203,16 +424,36 @@ public Builder startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } + + /** + * The date-time when the access token should be refreshed. + */ + public Builder tokenExpiryDate(OffsetDateTime tokenExpiryDate) { + Utils.checkNotNull(tokenExpiryDate, "tokenExpiryDate"); + this.tokenExpiryDate = tokenExpiryDate; + return this; + } public SourceQuickbooks build() { if (sandbox == null) { sandbox = _SINGLETON_VALUE_Sandbox.value(); } return new SourceQuickbooks( - credentials, + accessToken, + clientId, + clientSecret, + realmId, + refreshToken, sandbox, - startDate); + startDate, + tokenExpiryDate); } + private static final LazySingletonValue<Optional<? extends AuthType>> _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"oauth2.0\"", + new TypeReference<Optional<? extends AuthType>>() {}); + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_Sandbox = new LazySingletonValue<>( "sandbox", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java deleted file mode 100644 index 7e99dcc77..000000000 --- a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -public enum SourceQuickbooksAuthType { - OAUTH20("oauth2.0"); - - @JsonValue - private final String value; - - private SourceQuickbooksAuthType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksOAuth20.java deleted file mode 100644 index 0a02fcb5f..000000000 --- a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksOAuth20.java +++ /dev/null @@ -1,333 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.Optional; - - -public class SourceQuickbooksOAuth20 { - - /** - * Access token for making authenticated requests. - */ - @JsonProperty("access_token") - private String accessToken; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("auth_type") - private Optional<? extends SourceQuickbooksAuthType> authType; - - /** - * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. - */ - @JsonProperty("client_id") - private String clientId; - - /** - * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. - */ - @JsonProperty("client_secret") - private String clientSecret; - - /** - * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. - */ - @JsonProperty("realm_id") - private String realmId; - - /** - * A token used when refreshing the access token. - */ - @JsonProperty("refresh_token") - private String refreshToken; - - /** - * The date-time when the access token should be refreshed. - */ - @JsonProperty("token_expiry_date") - private OffsetDateTime tokenExpiryDate; - - @JsonCreator - public SourceQuickbooksOAuth20( - @JsonProperty("access_token") String accessToken, - @JsonProperty("client_id") String clientId, - @JsonProperty("client_secret") String clientSecret, - @JsonProperty("realm_id") String realmId, - @JsonProperty("refresh_token") String refreshToken, - @JsonProperty("token_expiry_date") OffsetDateTime tokenExpiryDate) { - Utils.checkNotNull(accessToken, "accessToken"); - Utils.checkNotNull(clientId, "clientId"); - Utils.checkNotNull(clientSecret, "clientSecret"); - Utils.checkNotNull(realmId, "realmId"); - Utils.checkNotNull(refreshToken, "refreshToken"); - Utils.checkNotNull(tokenExpiryDate, "tokenExpiryDate"); - this.accessToken = accessToken; - this.authType = Builder._SINGLETON_VALUE_AuthType.value(); - this.clientId = clientId; - this.clientSecret = clientSecret; - this.realmId = realmId; - this.refreshToken = refreshToken; - this.tokenExpiryDate = tokenExpiryDate; - } - - /** - * Access token for making authenticated requests. - */ - @JsonIgnore - public String accessToken() { - return accessToken; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional<SourceQuickbooksAuthType> authType() { - return (Optional<SourceQuickbooksAuthType>) authType; - } - - /** - * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. - */ - @JsonIgnore - public String clientId() { - return clientId; - } - - /** - * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. - */ - @JsonIgnore - public String clientSecret() { - return clientSecret; - } - - /** - * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. - */ - @JsonIgnore - public String realmId() { - return realmId; - } - - /** - * A token used when refreshing the access token. - */ - @JsonIgnore - public String refreshToken() { - return refreshToken; - } - - /** - * The date-time when the access token should be refreshed. - */ - @JsonIgnore - public OffsetDateTime tokenExpiryDate() { - return tokenExpiryDate; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Access token for making authenticated requests. - */ - public SourceQuickbooksOAuth20 withAccessToken(String accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = accessToken; - return this; - } - - /** - * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. - */ - public SourceQuickbooksOAuth20 withClientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. - */ - public SourceQuickbooksOAuth20 withClientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; - return this; - } - - /** - * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. - */ - public SourceQuickbooksOAuth20 withRealmId(String realmId) { - Utils.checkNotNull(realmId, "realmId"); - this.realmId = realmId; - return this; - } - - /** - * A token used when refreshing the access token. - */ - public SourceQuickbooksOAuth20 withRefreshToken(String refreshToken) { - Utils.checkNotNull(refreshToken, "refreshToken"); - this.refreshToken = refreshToken; - return this; - } - - /** - * The date-time when the access token should be refreshed. - */ - public SourceQuickbooksOAuth20 withTokenExpiryDate(OffsetDateTime tokenExpiryDate) { - Utils.checkNotNull(tokenExpiryDate, "tokenExpiryDate"); - this.tokenExpiryDate = tokenExpiryDate; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SourceQuickbooksOAuth20 other = (SourceQuickbooksOAuth20) o; - return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.realmId, other.realmId) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tokenExpiryDate, other.tokenExpiryDate); - } - - @Override - public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - realmId, - refreshToken, - tokenExpiryDate); - } - - @Override - public String toString() { - return Utils.toString(SourceQuickbooksOAuth20.class, - "accessToken", accessToken, - "authType", authType, - "clientId", clientId, - "clientSecret", clientSecret, - "realmId", realmId, - "refreshToken", refreshToken, - "tokenExpiryDate", tokenExpiryDate); - } - - public final static class Builder { - - private String accessToken; - - private String clientId; - - private String clientSecret; - - private String realmId; - - private String refreshToken; - - private OffsetDateTime tokenExpiryDate; - - private Builder() { - // force use of static builder() method - } - - /** - * Access token for making authenticated requests. - */ - public Builder accessToken(String accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = accessToken; - return this; - } - - /** - * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. - */ - public Builder clientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. - */ - public Builder clientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; - return this; - } - - /** - * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. - */ - public Builder realmId(String realmId) { - Utils.checkNotNull(realmId, "realmId"); - this.realmId = realmId; - return this; - } - - /** - * A token used when refreshing the access token. - */ - public Builder refreshToken(String refreshToken) { - Utils.checkNotNull(refreshToken, "refreshToken"); - this.refreshToken = refreshToken; - return this; - } - - /** - * The date-time when the access token should be refreshed. - */ - public Builder tokenExpiryDate(OffsetDateTime tokenExpiryDate) { - Utils.checkNotNull(tokenExpiryDate, "tokenExpiryDate"); - this.tokenExpiryDate = tokenExpiryDate; - return this; - } - - public SourceQuickbooksOAuth20 build() { - return new SourceQuickbooksOAuth20( - accessToken, - clientId, - clientSecret, - realmId, - refreshToken, - tokenExpiryDate); - } - - private static final LazySingletonValue<Optional<? extends SourceQuickbooksAuthType>> _SINGLETON_VALUE_AuthType = - new LazySingletonValue<>( - "auth_type", - "\"oauth2.0\"", - new TypeReference<Optional<? extends SourceQuickbooksAuthType>>() {}); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRailz.java b/src/main/java/com/airbyte/api/models/shared/SourceRailz.java index 800c01d23..4edfcb964 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRailz.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRailz.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceRailz { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketing.java index c05d10bfc..d1f6fffcb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceRdStationMarketing { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java index 2e4293ca3..7cbdc0f60 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceRdStationMarketingAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceRdStationMarketingAuthType(String value) { public String value() { return value; } + + public static Optional<SourceRdStationMarketingAuthType> fromValue(String value) { + for (SourceRdStationMarketingAuthType o: SourceRdStationMarketingAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthenticationType.java b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthenticationType.java index 1253f145d..2bf011e6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthenticationType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthenticationType.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceRdStationMarketingAuthenticationType - Choose one of the possible authorization method */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java index 527c3c2dd..6bc80f6ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceRdStationMarketingRdStationMarketing { RD_STATION_MARKETING("rd-station-marketing"); @@ -20,4 +21,13 @@ private SourceRdStationMarketingRdStationMarketing(String value) { public String value() { return value; } + + public static Optional<SourceRdStationMarketingRdStationMarketing> fromValue(String value) { + for (SourceRdStationMarketingRdStationMarketing o: SourceRdStationMarketingRdStationMarketing.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRecharge.java b/src/main/java/com/airbyte/api/models/shared/SourceRecharge.java index e62690791..c6a69c088 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRecharge.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRecharge.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceRecharge { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRecreation.java b/src/main/java/com/airbyte/api/models/shared/SourceRecreation.java index 2eea2d6e0..57108b12e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRecreation.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRecreation.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceRecreation { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRecruitee.java b/src/main/java/com/airbyte/api/models/shared/SourceRecruitee.java index 7ed3148e1..3d1025b7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRecruitee.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRecruitee.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceRecruitee { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRecurly.java b/src/main/java/com/airbyte/api/models/shared/SourceRecurly.java index 7c4247b58..bc8eaa570 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRecurly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRecurly.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceRecurly { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceReddit.java b/src/main/java/com/airbyte/api/models/shared/SourceReddit.java index f11a32913..50c098e9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceReddit.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceReddit.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceReddit { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRedshift.java b/src/main/java/com/airbyte/api/models/shared/SourceRedshift.java index 438a7ae2c..e423cefc4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRedshift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRedshift.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceRedshift { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java b/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java index 85bf0cc4e..ffdf87bfa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceRedshiftRedshift { REDSHIFT("redshift"); @@ -20,4 +21,13 @@ private SourceRedshiftRedshift(String value) { public String value() { return value; } + + public static Optional<SourceRedshiftRedshift> fromValue(String value) { + for (SourceRedshiftRedshift o: SourceRedshiftRedshift.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceReferralhero.java b/src/main/java/com/airbyte/api/models/shared/SourceReferralhero.java index 2b4a6f317..74b8e3ba8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceReferralhero.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceReferralhero.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceReferralhero { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRentcast.java b/src/main/java/com/airbyte/api/models/shared/SourceRentcast.java index 55aa24d7f..48bfca5ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRentcast.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRentcast.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceRentcast { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRepairshopr.java b/src/main/java/com/airbyte/api/models/shared/SourceRepairshopr.java index eb66eb98e..ff8b84969 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRepairshopr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRepairshopr.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceRepairshopr { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceReplyIo.java b/src/main/java/com/airbyte/api/models/shared/SourceReplyIo.java index 19e1b2497..96c93e0ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceReplyIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceReplyIo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceReplyIo { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceResponse.java b/src/main/java/com/airbyte/api/models/shared/SourceResponse.java index 61e90509e..0c6b0a984 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * SourceResponse - Provides details of a single source. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetailexpressByMaropost.java b/src/main/java/com/airbyte/api/models/shared/SourceRetailexpressByMaropost.java new file mode 100644 index 000000000..acf2cac1d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetailexpressByMaropost.java @@ -0,0 +1,137 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Objects; + +public class SourceRetailexpressByMaropost { + + @JsonProperty("api_key") + private String apiKey; + + @JsonProperty("sourceType") + private RetailexpressByMaropost sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceRetailexpressByMaropost( + @JsonProperty("api_key") String apiKey, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public RetailexpressByMaropost sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceRetailexpressByMaropost withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceRetailexpressByMaropost withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceRetailexpressByMaropost other = (SourceRetailexpressByMaropost) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceRetailexpressByMaropost.class, + "apiKey", apiKey, + "sourceType", sourceType, + "startDate", startDate); + } + + public final static class Builder { + + private String apiKey; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceRetailexpressByMaropost build() { + return new SourceRetailexpressByMaropost( + apiKey, + startDate); + } + + private static final LazySingletonValue<RetailexpressByMaropost> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"retailexpress-by-maropost\"", + new TypeReference<RetailexpressByMaropost>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetently.java b/src/main/java/com/airbyte/api/models/shared/SourceRetently.java index 1ac8ea23d..27e9ae74b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetently.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetently.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceRetently { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java index ef3267a95..982e8901c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceRetentlyAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceRetentlyAuthType(String value) { public String value() { return value; } + + public static Optional<SourceRetentlyAuthType> fromValue(String value) { + for (SourceRetentlyAuthType o: SourceRetentlyAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthenticationMechanism.java index 0b5e569b2..eb5102986 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthenticationMechanism.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceRetentlyAuthenticationMechanism - Choose how to authenticate to Retently */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java index 148e2fff7..1c6a18611 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceRetentlySchemasAuthType { TOKEN("Token"); @@ -20,4 +21,13 @@ private SourceRetentlySchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceRetentlySchemasAuthType> fromValue(String value) { + for (SourceRetentlySchemasAuthType o: SourceRetentlySchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRevenuecat.java b/src/main/java/com/airbyte/api/models/shared/SourceRevenuecat.java index 86e6944d5..8ec768555 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRevenuecat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRevenuecat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceRevenuecat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchant.java b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchant.java index 0fbbc6abd..142f3c0cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchant.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchant.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceRevolutMerchant { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java index d42418260..1d9f42962 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceRevolutMerchantEnvironment - The base url of your environment. Either sandbox or production */ @@ -24,4 +25,13 @@ private SourceRevolutMerchantEnvironment(String value) { public String value() { return value; } + + public static Optional<SourceRevolutMerchantEnvironment> fromValue(String value) { + for (SourceRevolutMerchantEnvironment o: SourceRevolutMerchantEnvironment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRingcentral.java b/src/main/java/com/airbyte/api/models/shared/SourceRingcentral.java new file mode 100644 index 000000000..125b06909 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceRingcentral.java @@ -0,0 +1,209 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceRingcentral { + + /** + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * + */ + @JsonProperty("account_id") + private String accountId; + + /** + * Token could be recieved by following instructions at https://developers.ringcentral.com/api-reference/authentication + */ + @JsonProperty("auth_token") + private String authToken; + + /** + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * + */ + @JsonProperty("extension_id") + private String extensionId; + + @JsonProperty("sourceType") + private Ringcentral sourceType; + + @JsonCreator + public SourceRingcentral( + @JsonProperty("account_id") String accountId, + @JsonProperty("auth_token") String authToken, + @JsonProperty("extension_id") String extensionId) { + Utils.checkNotNull(accountId, "accountId"); + Utils.checkNotNull(authToken, "authToken"); + Utils.checkNotNull(extensionId, "extensionId"); + this.accountId = accountId; + this.authToken = authToken; + this.extensionId = extensionId; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * + */ + @JsonIgnore + public String accountId() { + return accountId; + } + + /** + * Token could be recieved by following instructions at https://developers.ringcentral.com/api-reference/authentication + */ + @JsonIgnore + public String authToken() { + return authToken; + } + + /** + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * + */ + @JsonIgnore + public String extensionId() { + return extensionId; + } + + @JsonIgnore + public Ringcentral sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * + */ + public SourceRingcentral withAccountId(String accountId) { + Utils.checkNotNull(accountId, "accountId"); + this.accountId = accountId; + return this; + } + + /** + * Token could be recieved by following instructions at https://developers.ringcentral.com/api-reference/authentication + */ + public SourceRingcentral withAuthToken(String authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + /** + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * + */ + public SourceRingcentral withExtensionId(String extensionId) { + Utils.checkNotNull(extensionId, "extensionId"); + this.extensionId = extensionId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceRingcentral other = (SourceRingcentral) o; + return + Objects.deepEquals(this.accountId, other.accountId) && + Objects.deepEquals(this.authToken, other.authToken) && + Objects.deepEquals(this.extensionId, other.extensionId) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + accountId, + authToken, + extensionId, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceRingcentral.class, + "accountId", accountId, + "authToken", authToken, + "extensionId", extensionId, + "sourceType", sourceType); + } + + public final static class Builder { + + private String accountId; + + private String authToken; + + private String extensionId; + + private Builder() { + // force use of static builder() method + } + + /** + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * + */ + public Builder accountId(String accountId) { + Utils.checkNotNull(accountId, "accountId"); + this.accountId = accountId; + return this; + } + + /** + * Token could be recieved by following instructions at https://developers.ringcentral.com/api-reference/authentication + */ + public Builder authToken(String authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + /** + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * + */ + public Builder extensionId(String extensionId) { + Utils.checkNotNull(extensionId, "extensionId"); + this.extensionId = extensionId; + return this; + } + + public SourceRingcentral build() { + return new SourceRingcentral( + accountId, + authToken, + extensionId); + } + + private static final LazySingletonValue<Ringcentral> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"ringcentral\"", + new TypeReference<Ringcentral>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java b/src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java index 11c7f65e3..431ed1a62 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceRkiCovid { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRocketChat.java b/src/main/java/com/airbyte/api/models/shared/SourceRocketChat.java new file mode 100644 index 000000000..753d5502e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceRocketChat.java @@ -0,0 +1,201 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceRocketChat { + + /** + * Your rocket.chat instance URL. + */ + @JsonProperty("endpoint") + private String endpoint; + + @JsonProperty("sourceType") + private RocketChat sourceType; + + /** + * Your API Token. See <a href="https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/access-tokens-endpoints">here</a>. The token is case sensitive. + */ + @JsonProperty("token") + private String token; + + /** + * Your User Id. + */ + @JsonProperty("user_id") + private String userId; + + @JsonCreator + public SourceRocketChat( + @JsonProperty("endpoint") String endpoint, + @JsonProperty("token") String token, + @JsonProperty("user_id") String userId) { + Utils.checkNotNull(endpoint, "endpoint"); + Utils.checkNotNull(token, "token"); + Utils.checkNotNull(userId, "userId"); + this.endpoint = endpoint; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.token = token; + this.userId = userId; + } + + /** + * Your rocket.chat instance URL. + */ + @JsonIgnore + public String endpoint() { + return endpoint; + } + + @JsonIgnore + public RocketChat sourceType() { + return sourceType; + } + + /** + * Your API Token. See <a href="https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/access-tokens-endpoints">here</a>. The token is case sensitive. + */ + @JsonIgnore + public String token() { + return token; + } + + /** + * Your User Id. + */ + @JsonIgnore + public String userId() { + return userId; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Your rocket.chat instance URL. + */ + public SourceRocketChat withEndpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = endpoint; + return this; + } + + /** + * Your API Token. See <a href="https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/access-tokens-endpoints">here</a>. The token is case sensitive. + */ + public SourceRocketChat withToken(String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + /** + * Your User Id. + */ + public SourceRocketChat withUserId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceRocketChat other = (SourceRocketChat) o; + return + Objects.deepEquals(this.endpoint, other.endpoint) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.token, other.token) && + Objects.deepEquals(this.userId, other.userId); + } + + @Override + public int hashCode() { + return Objects.hash( + endpoint, + sourceType, + token, + userId); + } + + @Override + public String toString() { + return Utils.toString(SourceRocketChat.class, + "endpoint", endpoint, + "sourceType", sourceType, + "token", token, + "userId", userId); + } + + public final static class Builder { + + private String endpoint; + + private String token; + + private String userId; + + private Builder() { + // force use of static builder() method + } + + /** + * Your rocket.chat instance URL. + */ + public Builder endpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = endpoint; + return this; + } + + /** + * Your API Token. See <a href="https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/access-tokens-endpoints">here</a>. The token is case sensitive. + */ + public Builder token(String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + /** + * Your User Id. + */ + public Builder userId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + public SourceRocketChat build() { + return new SourceRocketChat( + endpoint, + token, + userId); + } + + private static final LazySingletonValue<RocketChat> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"rocket-chat\"", + new TypeReference<RocketChat>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRocketlane.java b/src/main/java/com/airbyte/api/models/shared/SourceRocketlane.java index 98a8b2cde..e55e3c7f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRocketlane.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRocketlane.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceRocketlane { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java b/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java index aab76bd3c..3ad950ddc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceRollbar { @JsonProperty("account_access_token") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRootly.java b/src/main/java/com/airbyte/api/models/shared/SourceRootly.java index a1176a667..7f4adc242 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRootly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRootly.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceRootly { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRss.java b/src/main/java/com/airbyte/api/models/shared/SourceRss.java index 886750416..9438e283a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRss.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRss.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceRss { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRuddr.java b/src/main/java/com/airbyte/api/models/shared/SourceRuddr.java index 04e8aeb77..86b2388a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRuddr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRuddr.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceRuddr { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3.java b/src/main/java/com/airbyte/api/models/shared/SourceS3.java index 94537e809..1a0ee977f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * SourceS3 - NOTE: When this Spec is changed, legacy_config_transformer.py must also be modified to uptake the changes * because it is responsible for converting legacy S3 v3 configs into v4 configs using the File-Based CDK. @@ -50,7 +48,7 @@ public class SourceS3 { @JsonInclude(Include.NON_ABSENT) @JsonProperty("delivery_method") - private Optional<? extends DeliveryMethod> deliveryMethod; + private Optional<? extends SourceS3DeliveryMethod> deliveryMethod; /** * Endpoint to an S3 compatible service. Leave empty to use AWS. @@ -94,7 +92,7 @@ public SourceS3( @JsonProperty("aws_access_key_id") Optional<String> awsAccessKeyId, @JsonProperty("aws_secret_access_key") Optional<String> awsSecretAccessKey, @JsonProperty("bucket") String bucket, - @JsonProperty("delivery_method") Optional<? extends DeliveryMethod> deliveryMethod, + @JsonProperty("delivery_method") Optional<? extends SourceS3DeliveryMethod> deliveryMethod, @JsonProperty("endpoint") Optional<String> endpoint, @JsonProperty("region_name") Optional<String> regionName, @JsonProperty("role_arn") Optional<String> roleArn, @@ -153,8 +151,8 @@ public String bucket() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DeliveryMethod> deliveryMethod() { - return (Optional<DeliveryMethod>) deliveryMethod; + public Optional<SourceS3DeliveryMethod> deliveryMethod() { + return (Optional<SourceS3DeliveryMethod>) deliveryMethod; } /** @@ -251,13 +249,13 @@ public SourceS3 withBucket(String bucket) { return this; } - public SourceS3 withDeliveryMethod(DeliveryMethod deliveryMethod) { + public SourceS3 withDeliveryMethod(SourceS3DeliveryMethod deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = Optional.ofNullable(deliveryMethod); return this; } - public SourceS3 withDeliveryMethod(Optional<? extends DeliveryMethod> deliveryMethod) { + public SourceS3 withDeliveryMethod(Optional<? extends SourceS3DeliveryMethod> deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = deliveryMethod; return this; @@ -404,7 +402,7 @@ public final static class Builder { private String bucket; - private Optional<? extends DeliveryMethod> deliveryMethod = Optional.empty(); + private Optional<? extends SourceS3DeliveryMethod> deliveryMethod = Optional.empty(); private Optional<String> endpoint; @@ -465,13 +463,13 @@ public Builder bucket(String bucket) { return this; } - public Builder deliveryMethod(DeliveryMethod deliveryMethod) { + public Builder deliveryMethod(SourceS3DeliveryMethod deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = Optional.ofNullable(deliveryMethod); return this; } - public Builder deliveryMethod(Optional<? extends DeliveryMethod> deliveryMethod) { + public Builder deliveryMethod(Optional<? extends SourceS3DeliveryMethod> deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = deliveryMethod; return this; diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Autogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Autogenerated.java index a8cb3fc1a..46509fe01 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Autogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Autogenerated.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceS3Autogenerated { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3AvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3AvroFormat.java index 608c004c5..0491c42c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3AvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3AvroFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceS3AvroFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3CSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3CSVFormat.java index 56056fe04..3201911c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3CSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3CSVFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceS3CSVFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3CSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceS3CSVHeaderDefinition.java index fd69bb0aa..f3eb593ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3CSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3CSVHeaderDefinition.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceS3CSVHeaderDefinition - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3CopyRawFiles.java b/src/main/java/com/airbyte/api/models/shared/SourceS3CopyRawFiles.java new file mode 100644 index 000000000..3d0d102db --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3CopyRawFiles.java @@ -0,0 +1,160 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +/** + * SourceS3CopyRawFiles - Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. + */ + +public class SourceS3CopyRawFiles { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_type") + private Optional<? extends SourceS3SchemasDeliveryType> deliveryType; + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preserve_directory_structure") + private Optional<Boolean> preserveDirectoryStructure; + + @JsonCreator + public SourceS3CopyRawFiles( + @JsonProperty("preserve_directory_structure") Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + this.preserveDirectoryStructure = preserveDirectoryStructure; + } + + public SourceS3CopyRawFiles() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<SourceS3SchemasDeliveryType> deliveryType() { + return (Optional<SourceS3SchemasDeliveryType>) deliveryType; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + @JsonIgnore + public Optional<Boolean> preserveDirectoryStructure() { + return preserveDirectoryStructure; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public SourceS3CopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public SourceS3CopyRawFiles withPreserveDirectoryStructure(Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceS3CopyRawFiles other = (SourceS3CopyRawFiles) o; + return + Objects.deepEquals(this.deliveryType, other.deliveryType) && + Objects.deepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); + } + + @Override + public int hashCode() { + return Objects.hash( + deliveryType, + preserveDirectoryStructure); + } + + @Override + public String toString() { + return Utils.toString(SourceS3CopyRawFiles.class, + "deliveryType", deliveryType, + "preserveDirectoryStructure", preserveDirectoryStructure); + } + + public final static class Builder { + + private Optional<Boolean> preserveDirectoryStructure; + + private Builder() { + // force use of static builder() method + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public Builder preserveDirectoryStructure(Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } + + public SourceS3CopyRawFiles build() { + if (preserveDirectoryStructure == null) { + preserveDirectoryStructure = _SINGLETON_VALUE_PreserveDirectoryStructure.value(); + } return new SourceS3CopyRawFiles( + preserveDirectoryStructure); + } + + private static final LazySingletonValue<Optional<? extends SourceS3SchemasDeliveryType>> _SINGLETON_VALUE_DeliveryType = + new LazySingletonValue<>( + "delivery_type", + "\"use_file_transfer\"", + new TypeReference<Optional<? extends SourceS3SchemasDeliveryType>>() {}); + + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_PreserveDirectoryStructure = + new LazySingletonValue<>( + "preserve_directory_structure", + "true", + new TypeReference<Optional<Boolean>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryMethod.java similarity index 63% rename from src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthorizationMethod.java rename to src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryMethod.java index 65cde34d4..373210dfa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,26 +17,31 @@ import java.lang.SuppressWarnings; import java.util.Objects; - -@JsonDeserialize(using = SourceQuickbooksAuthorizationMethod._Deserializer.class) -public class SourceQuickbooksAuthorizationMethod { +@JsonDeserialize(using = SourceS3DeliveryMethod._Deserializer.class) +public class SourceS3DeliveryMethod { @JsonValue private TypedObject value; - private SourceQuickbooksAuthorizationMethod(TypedObject value) { + private SourceS3DeliveryMethod(TypedObject value) { this.value = value; } - public static SourceQuickbooksAuthorizationMethod of(SourceQuickbooksOAuth20 value) { + public static SourceS3DeliveryMethod of(SourceS3ReplicateRecords value) { + Utils.checkNotNull(value, "value"); + return new SourceS3DeliveryMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceS3ReplicateRecords>(){})); + } + + public static SourceS3DeliveryMethod of(SourceS3CopyRawFiles value) { Utils.checkNotNull(value, "value"); - return new SourceQuickbooksAuthorizationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceQuickbooksOAuth20>(){})); + return new SourceS3DeliveryMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<SourceS3CopyRawFiles>(){})); } /** * Returns an instance of one of these types: * <ul> - * <li>{@code com.airbyte.api.models.shared.SourceQuickbooksOAuth20}</li> + * <li>{@code com.airbyte.api.models.shared.SourceS3ReplicateRecords}</li> + * <li>{@code com.airbyte.api.models.shared.SourceS3CopyRawFiles}</li> * </ul> * * <p>Use {@code instanceof} to determine what type is returned. For example: @@ -63,7 +67,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceQuickbooksAuthorizationMethod other = (SourceQuickbooksAuthorizationMethod) o; + SourceS3DeliveryMethod other = (SourceS3DeliveryMethod) o; return Objects.deepEquals(this.value.value(), other.value.value()); } @@ -73,17 +77,18 @@ public int hashCode() { } @SuppressWarnings("serial") - public static final class _Deserializer extends OneOfDeserializer<SourceQuickbooksAuthorizationMethod> { + public static final class _Deserializer extends OneOfDeserializer<SourceS3DeliveryMethod> { public _Deserializer() { - super(SourceQuickbooksAuthorizationMethod.class, false, - TypeReferenceWithShape.of(new TypeReference<SourceQuickbooksOAuth20>() {}, JsonShape.DEFAULT)); + super(SourceS3DeliveryMethod.class, false, + TypeReferenceWithShape.of(new TypeReference<SourceS3CopyRawFiles>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<SourceS3ReplicateRecords>() {}, JsonShape.DEFAULT)); } } @Override public String toString() { - return Utils.toString(SourceQuickbooksAuthorizationMethod.class, + return Utils.toString(SourceS3DeliveryMethod.class, "value", value); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java index 02bf58180..6b4afc9ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3DeliveryType { - USE_FILE_TRANSFER("use_file_transfer"); + USE_RECORDS_TRANSFER("use_records_transfer"); @JsonValue private final String value; @@ -20,4 +21,13 @@ private SourceS3DeliveryType(String value) { public String value() { return value; } + + public static Optional<SourceS3DeliveryType> fromValue(String value) { + for (SourceS3DeliveryType o: SourceS3DeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ExcelFormat.java index afaa282d7..fbad9d7ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ExcelFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ExcelFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceS3ExcelFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java index f2bd962e9..70444d769 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceS3FileBasedStreamConfig { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java index c74bd95f5..830c357a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3Filetype { AVRO("avro"); @@ -20,4 +21,13 @@ private SourceS3Filetype(String value) { public String value() { return value; } + + public static Optional<SourceS3Filetype> fromValue(String value) { + for (SourceS3Filetype o: SourceS3Filetype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java index f85503594..d034f0f6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceS3Format - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3FromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceS3FromCSV.java index 479191c3b..0070e3d43 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3FromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3FromCSV.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceS3FromCSV { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java index 15144b8d9..76bcac66c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3HeaderDefinitionType { FROM_CSV("From CSV"); @@ -20,4 +21,13 @@ private SourceS3HeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceS3HeaderDefinitionType> fromValue(String value) { + for (SourceS3HeaderDefinitionType o: SourceS3HeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3JsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3JsonlFormat.java index f9480af88..e8489513c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3JsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3JsonlFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceS3JsonlFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Local.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Local.java index 88d04e45e..97ea0caf6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Local.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Local.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceS3Local - Process files locally, supporting `fast` and `ocr` modes. This is the default option. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java index ad92e045d..175690984 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3Mode { LOCAL("local"); @@ -20,4 +21,13 @@ private SourceS3Mode(String value) { public String value() { return value; } + + public static Optional<SourceS3Mode> fromValue(String value) { + for (SourceS3Mode o: SourceS3Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java index ee7881d22..7f3ec6a17 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceS3ParquetFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java index 0caa451dd..24d580830 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceS3ParsingStrategy - The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @@ -26,4 +27,13 @@ private SourceS3ParsingStrategy(String value) { public String value() { return value; } + + public static Optional<SourceS3ParsingStrategy> fromValue(String value) { + for (SourceS3ParsingStrategy o: SourceS3ParsingStrategy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java index cea472d94..481dbdb2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceS3Processing - Processing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ReplicateRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ReplicateRecords.java new file mode 100644 index 000000000..693fda374 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ReplicateRecords.java @@ -0,0 +1,89 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +/** + * SourceS3ReplicateRecords - Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. + */ + +public class SourceS3ReplicateRecords { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_type") + private Optional<? extends SourceS3DeliveryType> deliveryType; + + @JsonCreator + public SourceS3ReplicateRecords() { + + this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<SourceS3DeliveryType> deliveryType() { + return (Optional<SourceS3DeliveryType>) deliveryType; + } + + 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; + } + SourceS3ReplicateRecords other = (SourceS3ReplicateRecords) o; + return + Objects.deepEquals(this.deliveryType, other.deliveryType); + } + + @Override + public int hashCode() { + return Objects.hash( + deliveryType); + } + + @Override + public String toString() { + return Utils.toString(SourceS3ReplicateRecords.class, + "deliveryType", deliveryType); + } + + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SourceS3ReplicateRecords build() { + return new SourceS3ReplicateRecords( + ); + } + + private static final LazySingletonValue<Optional<? extends SourceS3DeliveryType>> _SINGLETON_VALUE_DeliveryType = + new LazySingletonValue<>( + "delivery_type", + "\"use_records_transfer\"", + new TypeReference<Optional<? extends SourceS3DeliveryType>>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java b/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java index d98791338..89e5aa223 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3S3 { S3("s3"); @@ -20,4 +21,13 @@ private SourceS3S3(String value) { public String value() { return value; } + + public static Optional<SourceS3S3> fromValue(String value) { + for (SourceS3S3 o: SourceS3S3.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasDeliveryType.java new file mode 100644 index 000000000..983aa6b63 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasDeliveryType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceS3SchemasDeliveryType { + USE_FILE_TRANSFER("use_file_transfer"); + + @JsonValue + private final String value; + + private SourceS3SchemasDeliveryType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceS3SchemasDeliveryType> fromValue(String value) { + for (SourceS3SchemasDeliveryType o: SourceS3SchemasDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java index 23a0cec44..26d1c2e63 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3SchemasFiletype { CSV("csv"); @@ -20,4 +21,13 @@ private SourceS3SchemasFiletype(String value) { public String value() { return value; } + + public static Optional<SourceS3SchemasFiletype> fromValue(String value) { + for (SourceS3SchemasFiletype o: SourceS3SchemasFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java index c228e9123..705d4b839 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3SchemasHeaderDefinitionType { AUTOGENERATED("Autogenerated"); @@ -20,4 +21,13 @@ private SourceS3SchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceS3SchemasHeaderDefinitionType> fromValue(String value) { + for (SourceS3SchemasHeaderDefinitionType o: SourceS3SchemasHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java index 20923a9be..33ee14991 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3SchemasStreamsFiletype { JSONL("jsonl"); @@ -20,4 +21,13 @@ private SourceS3SchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional<SourceS3SchemasStreamsFiletype> fromValue(String value) { + for (SourceS3SchemasStreamsFiletype o: SourceS3SchemasStreamsFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java index 23dadda8c..be094f47f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3SchemasStreamsFormatFiletype { PARQUET("parquet"); @@ -20,4 +21,13 @@ private SourceS3SchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceS3SchemasStreamsFormatFiletype> fromValue(String value) { + for (SourceS3SchemasStreamsFormatFiletype o: SourceS3SchemasStreamsFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java index 969772f6e..51f4bcc10 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3SchemasStreamsFormatFormat6Filetype { EXCEL("excel"); @@ -20,4 +21,13 @@ private SourceS3SchemasStreamsFormatFormat6Filetype(String value) { public String value() { return value; } + + public static Optional<SourceS3SchemasStreamsFormatFormat6Filetype> fromValue(String value) { + for (SourceS3SchemasStreamsFormatFormat6Filetype o: SourceS3SchemasStreamsFormatFormat6Filetype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java index 4e51031f8..26b628414 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3SchemasStreamsFormatFormatFiletype { UNSTRUCTURED("unstructured"); @@ -20,4 +21,13 @@ private SourceS3SchemasStreamsFormatFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceS3SchemasStreamsFormatFormatFiletype> fromValue(String value) { + for (SourceS3SchemasStreamsFormatFormatFiletype o: SourceS3SchemasStreamsFormatFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java index 9990edd9c..33129cd56 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceS3SchemasStreamsHeaderDefinitionType { USER_PROVIDED("User Provided"); @@ -20,4 +21,13 @@ private SourceS3SchemasStreamsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceS3SchemasStreamsHeaderDefinitionType> fromValue(String value) { + for (SourceS3SchemasStreamsHeaderDefinitionType o: SourceS3SchemasStreamsHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java index 77958ef16..b43eb57ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceS3UnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3UserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceS3UserProvided.java index 0bc3a3e9c..7ffde4159 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3UserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3UserProvided.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceS3UserProvided { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java index ac48f8e7e..7491f19c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceS3ValidationPolicy - The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. */ @@ -25,4 +26,13 @@ private SourceS3ValidationPolicy(String value) { public String value() { return value; } + + public static Optional<SourceS3ValidationPolicy> fromValue(String value) { + for (SourceS3ValidationPolicy o: SourceS3ValidationPolicy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSafetyculture.java b/src/main/java/com/airbyte/api/models/shared/SourceSafetyculture.java index 3cb6c1d1e..77df1e534 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSafetyculture.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSafetyculture.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSafetyculture { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSageHr.java b/src/main/java/com/airbyte/api/models/shared/SourceSageHr.java index 741b0c1ca..610ffbc0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSageHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSageHr.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSageHr { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesflare.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesflare.java index bb964dd74..66045d132 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesflare.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesflare.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSalesflare { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesforce.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesforce.java index 49543729a..229ad59b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesforce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesforce.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,12 +21,11 @@ import java.util.Objects; import java.util.Optional; - public class SourceSalesforce { @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") - private Optional<? extends AuthType> authType; + private Optional<? extends SourceSalesforceAuthType> authType; /** * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> @@ -124,8 +122,8 @@ public SourceSalesforce( @SuppressWarnings("unchecked") @JsonIgnore - public Optional<AuthType> authType() { - return (Optional<AuthType>) authType; + public Optional<SourceSalesforceAuthType> authType() { + return (Optional<SourceSalesforceAuthType>) authType; } /** @@ -530,11 +528,11 @@ public SourceSalesforce build() { streamsCriteria); } - private static final LazySingletonValue<Optional<? extends AuthType>> _SINGLETON_VALUE_AuthType = + private static final LazySingletonValue<Optional<? extends SourceSalesforceAuthType>> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"Client\"", - new TypeReference<Optional<? extends AuthType>>() {}); + new TypeReference<Optional<? extends SourceSalesforceAuthType>>() {}); private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_ForceUseBulkApi = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesforceAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceAuthType.java new file mode 100644 index 000000000..aca3fcb6a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceAuthType.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum SourceSalesforceAuthType { + CLIENT("Client"); + + @JsonValue + private final String value; + + private SourceSalesforceAuthType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceSalesforceAuthType> fromValue(String value) { + for (SourceSalesforceAuthType o: SourceSalesforceAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java index afff1946f..83ae4bd7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSalesforceSalesforce { SALESFORCE("salesforce"); @@ -20,4 +21,13 @@ private SourceSalesforceSalesforce(String value) { public String value() { return value; } + + public static Optional<SourceSalesforceSalesforce> fromValue(String value) { + for (SourceSalesforceSalesforce o: SourceSalesforceSalesforce.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java index bbcca606e..814a1d9a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceSalesloft { @JsonProperty("credentials") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java index 307fdcf8e..3fdba2eba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSalesloftAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceSalesloftAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSalesloftAuthType> fromValue(String value) { + for (SourceSalesloftAuthType o: SourceSalesloftAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftCredentials.java index b09914196..358c02ed7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceSalesloftCredentials._Deserializer.class) public class SourceSalesloftCredentials { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java index ab6b37871..da774d76a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSalesloftSchemasAuthType { API_KEY("api_key"); @@ -20,4 +21,13 @@ private SourceSalesloftSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSalesloftSchemasAuthType> fromValue(String value) { + for (SourceSalesloftSchemasAuthType o: SourceSalesloftSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapFieldglass.java b/src/main/java/com/airbyte/api/models/shared/SourceSapFieldglass.java index e0ee3c729..4113cc318 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapFieldglass.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapFieldglass.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSapFieldglass { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java b/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java index 1cf8e8e14..9990c4bc6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSavvycal { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java b/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java index 5f2dc9c35..daa3eedd1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceScryfall { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSecoda.java b/src/main/java/com/airbyte/api/models/shared/SourceSecoda.java index 81c0f6d0c..43dfd3611 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSecoda.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSecoda.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSecoda { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSegment.java b/src/main/java/com/airbyte/api/models/shared/SourceSegment.java index 8590c65d5..170e56d1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSegment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSegment.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSegment { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSendgrid.java b/src/main/java/com/airbyte/api/models/shared/SourceSendgrid.java index caac39021..bc204f964 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSendgrid.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSendgrid.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceSendgrid { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSendinblue.java b/src/main/java/com/airbyte/api/models/shared/SourceSendinblue.java index c53b8a154..3826c2765 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSendinblue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSendinblue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSendinblue { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSendowl.java b/src/main/java/com/airbyte/api/models/shared/SourceSendowl.java index 60f7080ec..8ae89aabc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSendowl.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSendowl.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSendowl { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSendpulse.java b/src/main/java/com/airbyte/api/models/shared/SourceSendpulse.java index 149cb1a00..1a4b72ce8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSendpulse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSendpulse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSendpulse { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSenseforce.java b/src/main/java/com/airbyte/api/models/shared/SourceSenseforce.java index abd533450..ed4752bda 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSenseforce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSenseforce.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.LocalDate; import java.util.Objects; - public class SourceSenseforce { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSentry.java b/src/main/java/com/airbyte/api/models/shared/SourceSentry.java index 9222b7d67..d805b2c97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSentry.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSentry.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSentry { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSerpstat.java b/src/main/java/com/airbyte/api/models/shared/SourceSerpstat.java new file mode 100644 index 000000000..69f481f45 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSerpstat.java @@ -0,0 +1,707 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +public class SourceSerpstat { + + /** + * Serpstat API key can be found here: https://serpstat.com/users/profile/ + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * The domain name to get data for (ex. serpstat.com) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("domain") + private Optional<String> domain; + + /** + * The list of domains that will be used in streams that support batch operations + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("domains") + private Optional<? extends List<Object>> domains; + + /** + * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filter_by") + private Optional<String> filterBy; + + /** + * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filter_value") + private Optional<String> filterValue; + + /** + * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("page_size") + private Optional<Long> pageSize; + + /** + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pages_to_fetch") + private Optional<Long> pagesToFetch; + + /** + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("region_id") + private Optional<String> regionId; + + /** + * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sort_by") + private Optional<String> sortBy; + + /** + * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sort_value") + private Optional<String> sortValue; + + @JsonProperty("sourceType") + private Serpstat sourceType; + + @JsonCreator + public SourceSerpstat( + @JsonProperty("api_key") String apiKey, + @JsonProperty("domain") Optional<String> domain, + @JsonProperty("domains") Optional<? extends List<Object>> domains, + @JsonProperty("filter_by") Optional<String> filterBy, + @JsonProperty("filter_value") Optional<String> filterValue, + @JsonProperty("page_size") Optional<Long> pageSize, + @JsonProperty("pages_to_fetch") Optional<Long> pagesToFetch, + @JsonProperty("region_id") Optional<String> regionId, + @JsonProperty("sort_by") Optional<String> sortBy, + @JsonProperty("sort_value") Optional<String> sortValue) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(domain, "domain"); + Utils.checkNotNull(domains, "domains"); + Utils.checkNotNull(filterBy, "filterBy"); + Utils.checkNotNull(filterValue, "filterValue"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(pagesToFetch, "pagesToFetch"); + Utils.checkNotNull(regionId, "regionId"); + Utils.checkNotNull(sortBy, "sortBy"); + Utils.checkNotNull(sortValue, "sortValue"); + this.apiKey = apiKey; + this.domain = domain; + this.domains = domains; + this.filterBy = filterBy; + this.filterValue = filterValue; + this.pageSize = pageSize; + this.pagesToFetch = pagesToFetch; + this.regionId = regionId; + this.sortBy = sortBy; + this.sortValue = sortValue; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + public SourceSerpstat( + String apiKey) { + this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Serpstat API key can be found here: https://serpstat.com/users/profile/ + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * The domain name to get data for (ex. serpstat.com) + */ + @JsonIgnore + public Optional<String> domain() { + return domain; + } + + /** + * The list of domains that will be used in streams that support batch operations + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<Object>> domains() { + return (Optional<List<Object>>) domains; + } + + /** + * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + @JsonIgnore + public Optional<String> filterBy() { + return filterBy; + } + + /** + * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + @JsonIgnore + public Optional<String> filterValue() { + return filterValue; + } + + /** + * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + */ + @JsonIgnore + public Optional<Long> pageSize() { + return pageSize; + } + + /** + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + */ + @JsonIgnore + public Optional<Long> pagesToFetch() { + return pagesToFetch; + } + + /** + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + */ + @JsonIgnore + public Optional<String> regionId() { + return regionId; + } + + /** + * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + @JsonIgnore + public Optional<String> sortBy() { + return sortBy; + } + + /** + * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + @JsonIgnore + public Optional<String> sortValue() { + return sortValue; + } + + @JsonIgnore + public Serpstat sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Serpstat API key can be found here: https://serpstat.com/users/profile/ + */ + public SourceSerpstat withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * The domain name to get data for (ex. serpstat.com) + */ + public SourceSerpstat withDomain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + * The domain name to get data for (ex. serpstat.com) + */ + public SourceSerpstat withDomain(Optional<String> domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * The list of domains that will be used in streams that support batch operations + */ + public SourceSerpstat withDomains(List<Object> domains) { + Utils.checkNotNull(domains, "domains"); + this.domains = Optional.ofNullable(domains); + return this; + } + + /** + * The list of domains that will be used in streams that support batch operations + */ + public SourceSerpstat withDomains(Optional<? extends List<Object>> domains) { + Utils.checkNotNull(domains, "domains"); + this.domains = domains; + return this; + } + + /** + * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + public SourceSerpstat withFilterBy(String filterBy) { + Utils.checkNotNull(filterBy, "filterBy"); + this.filterBy = Optional.ofNullable(filterBy); + return this; + } + + /** + * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + public SourceSerpstat withFilterBy(Optional<String> filterBy) { + Utils.checkNotNull(filterBy, "filterBy"); + this.filterBy = filterBy; + return this; + } + + /** + * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + public SourceSerpstat withFilterValue(String filterValue) { + Utils.checkNotNull(filterValue, "filterValue"); + this.filterValue = Optional.ofNullable(filterValue); + return this; + } + + /** + * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + public SourceSerpstat withFilterValue(Optional<String> filterValue) { + Utils.checkNotNull(filterValue, "filterValue"); + this.filterValue = filterValue; + return this; + } + + /** + * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + */ + public SourceSerpstat withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + /** + * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + */ + public SourceSerpstat withPageSize(Optional<Long> pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + /** + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + */ + public SourceSerpstat withPagesToFetch(long pagesToFetch) { + Utils.checkNotNull(pagesToFetch, "pagesToFetch"); + this.pagesToFetch = Optional.ofNullable(pagesToFetch); + return this; + } + + /** + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + */ + public SourceSerpstat withPagesToFetch(Optional<Long> pagesToFetch) { + Utils.checkNotNull(pagesToFetch, "pagesToFetch"); + this.pagesToFetch = pagesToFetch; + return this; + } + + /** + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + */ + public SourceSerpstat withRegionId(String regionId) { + Utils.checkNotNull(regionId, "regionId"); + this.regionId = Optional.ofNullable(regionId); + return this; + } + + /** + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + */ + public SourceSerpstat withRegionId(Optional<String> regionId) { + Utils.checkNotNull(regionId, "regionId"); + this.regionId = regionId; + return this; + } + + /** + * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + public SourceSerpstat withSortBy(String sortBy) { + Utils.checkNotNull(sortBy, "sortBy"); + this.sortBy = Optional.ofNullable(sortBy); + return this; + } + + /** + * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + public SourceSerpstat withSortBy(Optional<String> sortBy) { + Utils.checkNotNull(sortBy, "sortBy"); + this.sortBy = sortBy; + return this; + } + + /** + * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + public SourceSerpstat withSortValue(String sortValue) { + Utils.checkNotNull(sortValue, "sortValue"); + this.sortValue = Optional.ofNullable(sortValue); + return this; + } + + /** + * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + public SourceSerpstat withSortValue(Optional<String> sortValue) { + Utils.checkNotNull(sortValue, "sortValue"); + this.sortValue = sortValue; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSerpstat other = (SourceSerpstat) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.domain, other.domain) && + Objects.deepEquals(this.domains, other.domains) && + Objects.deepEquals(this.filterBy, other.filterBy) && + Objects.deepEquals(this.filterValue, other.filterValue) && + Objects.deepEquals(this.pageSize, other.pageSize) && + Objects.deepEquals(this.pagesToFetch, other.pagesToFetch) && + Objects.deepEquals(this.regionId, other.regionId) && + Objects.deepEquals(this.sortBy, other.sortBy) && + Objects.deepEquals(this.sortValue, other.sortValue) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + domain, + domains, + filterBy, + filterValue, + pageSize, + pagesToFetch, + regionId, + sortBy, + sortValue, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceSerpstat.class, + "apiKey", apiKey, + "domain", domain, + "domains", domains, + "filterBy", filterBy, + "filterValue", filterValue, + "pageSize", pageSize, + "pagesToFetch", pagesToFetch, + "regionId", regionId, + "sortBy", sortBy, + "sortValue", sortValue, + "sourceType", sourceType); + } + + public final static class Builder { + + private String apiKey; + + private Optional<String> domain; + + private Optional<? extends List<Object>> domains = Optional.empty(); + + private Optional<String> filterBy = Optional.empty(); + + private Optional<String> filterValue = Optional.empty(); + + private Optional<Long> pageSize; + + private Optional<Long> pagesToFetch; + + private Optional<String> regionId; + + private Optional<String> sortBy = Optional.empty(); + + private Optional<String> sortValue = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * Serpstat API key can be found here: https://serpstat.com/users/profile/ + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * The domain name to get data for (ex. serpstat.com) + */ + public Builder domain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + * The domain name to get data for (ex. serpstat.com) + */ + public Builder domain(Optional<String> domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * The list of domains that will be used in streams that support batch operations + */ + public Builder domains(List<Object> domains) { + Utils.checkNotNull(domains, "domains"); + this.domains = Optional.ofNullable(domains); + return this; + } + + /** + * The list of domains that will be used in streams that support batch operations + */ + public Builder domains(Optional<? extends List<Object>> domains) { + Utils.checkNotNull(domains, "domains"); + this.domains = domains; + return this; + } + + /** + * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + public Builder filterBy(String filterBy) { + Utils.checkNotNull(filterBy, "filterBy"); + this.filterBy = Optional.ofNullable(filterBy); + return this; + } + + /** + * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + public Builder filterBy(Optional<String> filterBy) { + Utils.checkNotNull(filterBy, "filterBy"); + this.filterBy = filterBy; + return this; + } + + /** + * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + public Builder filterValue(String filterValue) { + Utils.checkNotNull(filterValue, "filterValue"); + this.filterValue = Optional.ofNullable(filterValue); + return this; + } + + /** + * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + */ + public Builder filterValue(Optional<String> filterValue) { + Utils.checkNotNull(filterValue, "filterValue"); + this.filterValue = filterValue; + return this; + } + + /** + * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + */ + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + /** + * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + */ + public Builder pageSize(Optional<Long> pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + /** + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + */ + public Builder pagesToFetch(long pagesToFetch) { + Utils.checkNotNull(pagesToFetch, "pagesToFetch"); + this.pagesToFetch = Optional.ofNullable(pagesToFetch); + return this; + } + + /** + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + */ + public Builder pagesToFetch(Optional<Long> pagesToFetch) { + Utils.checkNotNull(pagesToFetch, "pagesToFetch"); + this.pagesToFetch = pagesToFetch; + return this; + } + + /** + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + */ + public Builder regionId(String regionId) { + Utils.checkNotNull(regionId, "regionId"); + this.regionId = Optional.ofNullable(regionId); + return this; + } + + /** + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + */ + public Builder regionId(Optional<String> regionId) { + Utils.checkNotNull(regionId, "regionId"); + this.regionId = regionId; + return this; + } + + /** + * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + public Builder sortBy(String sortBy) { + Utils.checkNotNull(sortBy, "sortBy"); + this.sortBy = Optional.ofNullable(sortBy); + return this; + } + + /** + * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + public Builder sortBy(Optional<String> sortBy) { + Utils.checkNotNull(sortBy, "sortBy"); + this.sortBy = sortBy; + return this; + } + + /** + * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + public Builder sortValue(String sortValue) { + Utils.checkNotNull(sortValue, "sortValue"); + this.sortValue = Optional.ofNullable(sortValue); + return this; + } + + /** + * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + */ + public Builder sortValue(Optional<String> sortValue) { + Utils.checkNotNull(sortValue, "sortValue"); + this.sortValue = sortValue; + return this; + } + + public SourceSerpstat build() { + if (domain == null) { + domain = _SINGLETON_VALUE_Domain.value(); + } + if (pageSize == null) { + pageSize = _SINGLETON_VALUE_PageSize.value(); + } + if (pagesToFetch == null) { + pagesToFetch = _SINGLETON_VALUE_PagesToFetch.value(); + } + if (regionId == null) { + regionId = _SINGLETON_VALUE_RegionId.value(); + } return new SourceSerpstat( + apiKey, + domain, + domains, + filterBy, + filterValue, + pageSize, + pagesToFetch, + regionId, + sortBy, + sortValue); + } + + private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_Domain = + new LazySingletonValue<>( + "domain", + "\"serpstat.com\"", + new TypeReference<Optional<String>>() {}); + + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_PageSize = + new LazySingletonValue<>( + "page_size", + "10", + new TypeReference<Optional<Long>>() {}); + + private static final LazySingletonValue<Optional<Long>> _SINGLETON_VALUE_PagesToFetch = + new LazySingletonValue<>( + "pages_to_fetch", + "1", + new TypeReference<Optional<Long>>() {}); + + private static final LazySingletonValue<Optional<String>> _SINGLETON_VALUE_RegionId = + new LazySingletonValue<>( + "region_id", + "\"g_us\"", + new TypeReference<Optional<String>>() {}); + + private static final LazySingletonValue<Serpstat> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"serpstat\"", + new TypeReference<Serpstat>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceServiceNow.java b/src/main/java/com/airbyte/api/models/shared/SourceServiceNow.java new file mode 100644 index 000000000..96ae27580 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceServiceNow.java @@ -0,0 +1,187 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public class SourceServiceNow { + + @JsonProperty("base_url") + private String baseUrl; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("password") + private Optional<String> password; + + @JsonProperty("sourceType") + private ServiceNow sourceType; + + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceServiceNow( + @JsonProperty("base_url") String baseUrl, + @JsonProperty("password") Optional<String> password, + @JsonProperty("username") String username) { + Utils.checkNotNull(baseUrl, "baseUrl"); + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(username, "username"); + this.baseUrl = baseUrl; + this.password = password; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.username = username; + } + + public SourceServiceNow( + String baseUrl, + String username) { + this(baseUrl, Optional.empty(), username); + } + + @JsonIgnore + public String baseUrl() { + return baseUrl; + } + + @JsonIgnore + public Optional<String> password() { + return password; + } + + @JsonIgnore + public ServiceNow sourceType() { + return sourceType; + } + + @JsonIgnore + public String username() { + return username; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceServiceNow withBaseUrl(String baseUrl) { + Utils.checkNotNull(baseUrl, "baseUrl"); + this.baseUrl = baseUrl; + return this; + } + + public SourceServiceNow withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + public SourceServiceNow withPassword(Optional<String> password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public SourceServiceNow 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; + } + SourceServiceNow other = (SourceServiceNow) o; + return + Objects.deepEquals(this.baseUrl, other.baseUrl) && + Objects.deepEquals(this.password, other.password) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return Objects.hash( + baseUrl, + password, + sourceType, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceServiceNow.class, + "baseUrl", baseUrl, + "password", password, + "sourceType", sourceType, + "username", username); + } + + public final static class Builder { + + private String baseUrl; + + private Optional<String> password = Optional.empty(); + + private String username; + + private Builder() { + // force use of static builder() method + } + + public Builder baseUrl(String baseUrl) { + Utils.checkNotNull(baseUrl, "baseUrl"); + this.baseUrl = baseUrl; + return this; + } + + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + public Builder password(Optional<String> password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceServiceNow build() { + return new SourceServiceNow( + baseUrl, + password, + username); + } + + private static final LazySingletonValue<ServiceNow> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"service-now\"", + new TypeReference<ServiceNow>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftp.java b/src/main/java/com/airbyte/api/models/shared/SourceSftp.java index 1c135cc0d..c6831b967 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftp.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftp { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java index b3147f302..e6cd4138d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceSftpAuthMethod - Connect through password authentication */ @@ -23,4 +24,13 @@ private SourceSftpAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceSftpAuthMethod> fromValue(String value) { + for (SourceSftpAuthMethod o: SourceSftpAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthentication.java index a4750e068..fd82aedbb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceSftpAuthentication - The server authentication method */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulk.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulk.java index f87a5381c..4e29f1499 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulk.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * SourceSftpBulk - Used during spec; allows the developer to configure the cloud provider specific options * that are needed when users configure a file-based source. diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java index f0dfcdf09..b49b00de4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSftpBulkAPIParameterConfigModel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java index e80fa5cb1..c7e3ab5d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkAuthType { PASSWORD("password"); @@ -20,4 +21,13 @@ private SourceSftpBulkAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkAuthType> fromValue(String value) { + for (SourceSftpBulkAuthType o: SourceSftpBulkAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthentication.java index 0af3a3534..04aa6282d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceSftpBulkAuthentication - Credentials for connecting to the SFTP Server */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAutogenerated.java index 71f158afe..bb66b67c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAutogenerated.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftpBulkAutogenerated { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAvroFormat.java index e8d618c8e..c519d8357 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAvroFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftpBulkAvroFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVFormat.java index 17d7cb71e..fe1688124 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftpBulkCSVFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVHeaderDefinition.java index 343645d33..ee121bde2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVHeaderDefinition.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceSftpBulkCSVHeaderDefinition - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCopyRawFiles.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCopyRawFiles.java index 6df9e5b9b..8e396d379 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCopyRawFiles.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCopyRawFiles.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,12 +12,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceSftpBulkCopyRawFiles - Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. */ @@ -29,10 +28,23 @@ public class SourceSftpBulkCopyRawFiles { @JsonProperty("delivery_type") private Optional<? extends SourceSftpBulkSchemasDeliveryType> deliveryType; + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preserve_directory_structure") + private Optional<Boolean> preserveDirectoryStructure; + @JsonCreator - public SourceSftpBulkCopyRawFiles() { - + public SourceSftpBulkCopyRawFiles( + @JsonProperty("preserve_directory_structure") Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + this.preserveDirectoryStructure = preserveDirectoryStructure; + } + + public SourceSftpBulkCopyRawFiles() { + this(Optional.empty()); } @SuppressWarnings("unchecked") @@ -41,9 +53,35 @@ public Optional<SourceSftpBulkSchemasDeliveryType> deliveryType() { return (Optional<SourceSftpBulkSchemasDeliveryType>) deliveryType; } + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + @JsonIgnore + public Optional<Boolean> preserveDirectoryStructure() { + return preserveDirectoryStructure; + } + public final static Builder builder() { return new Builder(); } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public SourceSftpBulkCopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public SourceSftpBulkCopyRawFiles withPreserveDirectoryStructure(Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -55,30 +93,55 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkCopyRawFiles other = (SourceSftpBulkCopyRawFiles) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType); + Objects.deepEquals(this.deliveryType, other.deliveryType) && + Objects.deepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); } @Override public int hashCode() { return Objects.hash( - deliveryType); + deliveryType, + preserveDirectoryStructure); } @Override public String toString() { return Utils.toString(SourceSftpBulkCopyRawFiles.class, - "deliveryType", deliveryType); + "deliveryType", deliveryType, + "preserveDirectoryStructure", preserveDirectoryStructure); } - public final static class Builder { + public final static class Builder { + + private Optional<Boolean> preserveDirectoryStructure; private Builder() { // force use of static builder() method } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + */ + public Builder preserveDirectoryStructure(Optional<Boolean> preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } public SourceSftpBulkCopyRawFiles build() { - return new SourceSftpBulkCopyRawFiles( - ); + if (preserveDirectoryStructure == null) { + preserveDirectoryStructure = _SINGLETON_VALUE_PreserveDirectoryStructure.value(); + } return new SourceSftpBulkCopyRawFiles( + preserveDirectoryStructure); } private static final LazySingletonValue<Optional<? extends SourceSftpBulkSchemasDeliveryType>> _SINGLETON_VALUE_DeliveryType = @@ -86,6 +149,12 @@ public SourceSftpBulkCopyRawFiles build() { "delivery_type", "\"use_file_transfer\"", new TypeReference<Optional<? extends SourceSftpBulkSchemasDeliveryType>>() {}); + + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_PreserveDirectoryStructure = + new LazySingletonValue<>( + "preserve_directory_structure", + "true", + new TypeReference<Optional<Boolean>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryMethod.java index ce62a8963..bf8fcb13c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceSftpBulkDeliveryMethod._Deserializer.class) public class SourceSftpBulkDeliveryMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java index 35729201f..7524ae50c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkDeliveryType { USE_RECORDS_TRANSFER("use_records_transfer"); @@ -20,4 +21,13 @@ private SourceSftpBulkDeliveryType(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkDeliveryType> fromValue(String value) { + for (SourceSftpBulkDeliveryType o: SourceSftpBulkDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java index e7bb1c37d..17113c364 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftpBulkExcelFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java index 598f00276..3da2f7b1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftpBulkFileBasedStreamConfig { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java index 44872cdcd..f680dbb1f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkFiletype { AVRO("avro"); @@ -20,4 +21,13 @@ private SourceSftpBulkFiletype(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkFiletype> fromValue(String value) { + for (SourceSftpBulkFiletype o: SourceSftpBulkFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java index 784ac4709..4624aa15d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceSftpBulkFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFromCSV.java index aa55fd2ad..f4eb12373 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFromCSV.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftpBulkFromCSV { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java index 1fe7e7823..91e6f80c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkHeaderDefinitionType { FROM_CSV("From CSV"); @@ -20,4 +21,13 @@ private SourceSftpBulkHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkHeaderDefinitionType> fromValue(String value) { + for (SourceSftpBulkHeaderDefinitionType o: SourceSftpBulkHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkJsonlFormat.java index b4f5e068d..71acec7ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkJsonlFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftpBulkJsonlFormat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkLocal.java index 2237c67cb..e94d26340 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkLocal.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceSftpBulkLocal - Process files locally, supporting `fast` and `ocr` modes. This is the default option. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java index b1f30ec01..0baf753d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkMode { LOCAL("local"); @@ -20,4 +21,13 @@ private SourceSftpBulkMode(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkMode> fromValue(String value) { + for (SourceSftpBulkMode o: SourceSftpBulkMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParquetFormat.java index 69bb94601..f4ef69f0a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParquetFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftpBulkParquetFormat { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java index ff0bf8c86..40ebf1173 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceSftpBulkParsingStrategy - The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @@ -26,4 +27,13 @@ private SourceSftpBulkParsingStrategy(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkParsingStrategy> fromValue(String value) { + for (SourceSftpBulkParsingStrategy o: SourceSftpBulkParsingStrategy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java index 30b09038e..4fac389fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceSftpBulkProcessing - Processing configuration */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkReplicateRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkReplicateRecords.java index 73a6276b4..06419740a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkReplicateRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkReplicateRecords.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceSftpBulkReplicateRecords - Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java index 80b77b561..e5654d666 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasAuthType { PRIVATE_KEY("private_key"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasAuthType> fromValue(String value) { + for (SourceSftpBulkSchemasAuthType o: SourceSftpBulkSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java index e64691871..c622b9f4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasDeliveryType { USE_FILE_TRANSFER("use_file_transfer"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasDeliveryType(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasDeliveryType> fromValue(String value) { + for (SourceSftpBulkSchemasDeliveryType o: SourceSftpBulkSchemasDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java index f35cff5a9..3794b62f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasFiletype { CSV("csv"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasFiletype(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasFiletype> fromValue(String value) { + for (SourceSftpBulkSchemasFiletype o: SourceSftpBulkSchemasFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java index 1bdf558df..15b544ede 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasHeaderDefinitionType { AUTOGENERATED("Autogenerated"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasHeaderDefinitionType> fromValue(String value) { + for (SourceSftpBulkSchemasHeaderDefinitionType o: SourceSftpBulkSchemasHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java index bef740c74..fb0c720b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasMode { API("api"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasMode(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasMode> fromValue(String value) { + for (SourceSftpBulkSchemasMode o: SourceSftpBulkSchemasMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java index c4045ddc3..a8e194a55 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasStreamsFiletype { JSONL("jsonl"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasStreamsFiletype> fromValue(String value) { + for (SourceSftpBulkSchemasStreamsFiletype o: SourceSftpBulkSchemasStreamsFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java index 78383d191..b03c6d1a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasStreamsFormatFiletype { PARQUET("parquet"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasStreamsFormatFiletype> fromValue(String value) { + for (SourceSftpBulkSchemasStreamsFormatFiletype o: SourceSftpBulkSchemasStreamsFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java index f6e78c134..7e1b56687 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasStreamsFormatFormat6Filetype { EXCEL("excel"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasStreamsFormatFormat6Filetype(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasStreamsFormatFormat6Filetype> fromValue(String value) { + for (SourceSftpBulkSchemasStreamsFormatFormat6Filetype o: SourceSftpBulkSchemasStreamsFormatFormat6Filetype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java index c2039f11d..0c1cfd0ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasStreamsFormatFormatFiletype { UNSTRUCTURED("unstructured"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasStreamsFormatFormatFiletype(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasStreamsFormatFormatFiletype> fromValue(String value) { + for (SourceSftpBulkSchemasStreamsFormatFormatFiletype o: SourceSftpBulkSchemasStreamsFormatFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java index 85dd8d3e2..5029c5dee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSftpBulkSchemasStreamsHeaderDefinitionType { USER_PROVIDED("User Provided"); @@ -20,4 +21,13 @@ private SourceSftpBulkSchemasStreamsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkSchemasStreamsHeaderDefinitionType> fromValue(String value) { + for (SourceSftpBulkSchemasStreamsHeaderDefinitionType o: SourceSftpBulkSchemasStreamsHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java index 7d383d9fe..13e1a1679 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceSftpBulkUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUserProvided.java index 0ac6ae097..1061fba24 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUserProvided.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSftpBulkUserProvided { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java index 20415dc88..e6a120934 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceSftpBulkValidationPolicy - The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. */ @@ -25,4 +26,13 @@ private SourceSftpBulkValidationPolicy(String value) { public String value() { return value; } + + public static Optional<SourceSftpBulkValidationPolicy> fromValue(String value) { + for (SourceSftpBulkValidationPolicy o: SourceSftpBulkValidationPolicy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java index 0d6b1ebc9..6f1ab45c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * SourceSftpBulkViaAPI - Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpPasswordAuthentication.java index ec34be8a0..ffe298f63 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpPasswordAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSftpPasswordAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpSSHKeyAuthentication.java index e3aa5e059..7b5195cba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpSSHKeyAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSftpSSHKeyAuthentication { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java index 4590c1ef7..d0b243ba3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceSftpSchemasAuthMethod - Connect through ssh key */ @@ -23,4 +24,13 @@ private SourceSftpSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceSftpSchemasAuthMethod> fromValue(String value) { + for (SourceSftpSchemasAuthMethod o: SourceSftpSchemasAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java b/src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java index 01b20934e..7cb1d53d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSharetribe { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShippo.java b/src/main/java/com/airbyte/api/models/shared/SourceShippo.java index dd60e5edb..e36181b1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShippo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShippo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceShippo { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShipstation.java b/src/main/java/com/airbyte/api/models/shared/SourceShipstation.java new file mode 100644 index 000000000..dac121b40 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceShipstation.java @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public class SourceShipstation { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("password") + private Optional<String> password; + + @JsonProperty("sourceType") + private Shipstation sourceType; + + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceShipstation( + @JsonProperty("password") Optional<String> password, + @JsonProperty("username") String username) { + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(username, "username"); + this.password = password; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.username = username; + } + + public SourceShipstation( + String username) { + this(Optional.empty(), username); + } + + @JsonIgnore + public Optional<String> password() { + return password; + } + + @JsonIgnore + public Shipstation sourceType() { + return sourceType; + } + + @JsonIgnore + public String username() { + return username; + } + + public final static Builder builder() { + return new Builder(); + } + + public SourceShipstation withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + public SourceShipstation withPassword(Optional<String> password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public SourceShipstation 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; + } + SourceShipstation other = (SourceShipstation) o; + return + Objects.deepEquals(this.password, other.password) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return Objects.hash( + password, + sourceType, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceShipstation.class, + "password", password, + "sourceType", sourceType, + "username", username); + } + + public final static class Builder { + + private Optional<String> password = Optional.empty(); + + private String username; + + private Builder() { + // force use of static builder() method + } + + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + public Builder password(Optional<String> password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceShipstation build() { + return new SourceShipstation( + password, + username); + } + + private static final LazySingletonValue<Shipstation> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"shipstation\"", + new TypeReference<Shipstation>() {}); + } +} + 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 461712cb8..7a8898b27 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopify.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceShopify { /** @@ -47,7 +45,7 @@ public class SourceShopify { private Optional<Boolean> fetchTransactionsUserId; /** - * The threshold, after which the single BULK Job should be checkpointed. + * The threshold, after which the single BULK Job should be checkpointed (min: 15k, max: 1M) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("job_checkpoint_interval") @@ -143,7 +141,7 @@ public Optional<Boolean> fetchTransactionsUserId() { } /** - * The threshold, after which the single BULK Job should be checkpointed. + * The threshold, after which the single BULK Job should be checkpointed (min: 15k, max: 1M) */ @JsonIgnore public Optional<Long> jobCheckpointInterval() { @@ -246,7 +244,7 @@ public SourceShopify withFetchTransactionsUserId(Optional<Boolean> fetchTransact } /** - * The threshold, after which the single BULK Job should be checkpointed. + * The threshold, after which the single BULK Job should be checkpointed (min: 15k, max: 1M) */ public SourceShopify withJobCheckpointInterval(long jobCheckpointInterval) { Utils.checkNotNull(jobCheckpointInterval, "jobCheckpointInterval"); @@ -255,7 +253,7 @@ public SourceShopify withJobCheckpointInterval(long jobCheckpointInterval) { } /** - * The threshold, after which the single BULK Job should be checkpointed. + * The threshold, after which the single BULK Job should be checkpointed (min: 15k, max: 1M) */ public SourceShopify withJobCheckpointInterval(Optional<Long> jobCheckpointInterval) { Utils.checkNotNull(jobCheckpointInterval, "jobCheckpointInterval"); @@ -452,7 +450,7 @@ public Builder fetchTransactionsUserId(Optional<Boolean> fetchTransactionsUserId } /** - * The threshold, after which the single BULK Job should be checkpointed. + * The threshold, after which the single BULK Job should be checkpointed (min: 15k, max: 1M) */ public Builder jobCheckpointInterval(long jobCheckpointInterval) { Utils.checkNotNull(jobCheckpointInterval, "jobCheckpointInterval"); @@ -461,7 +459,7 @@ public Builder jobCheckpointInterval(long jobCheckpointInterval) { } /** - * The threshold, after which the single BULK Job should be checkpointed. + * The threshold, after which the single BULK Job should be checkpointed (min: 15k, max: 1M) */ public Builder jobCheckpointInterval(Optional<Long> jobCheckpointInterval) { Utils.checkNotNull(jobCheckpointInterval, "jobCheckpointInterval"); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java index 64959af82..5a1d5d190 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceShopifyAuthMethod { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceShopifyAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceShopifyAuthMethod> fromValue(String value) { + for (SourceShopifyAuthMethod o: SourceShopifyAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopifyOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifyOAuth20.java index 3387d7ce0..91b66b6a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifyOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifyOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,7 +16,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * SourceShopifyOAuth20 - OAuth2.0 */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java index 9c907bba9..04b58d041 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceShopifySchemasAuthMethod { API_PASSWORD("api_password"); @@ -20,4 +21,13 @@ private SourceShopifySchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceShopifySchemasAuthMethod> fromValue(String value) { + for (SourceShopifySchemasAuthMethod o: SourceShopifySchemasAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java index c7d4bbd32..a33f20ffd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceShopifyShopify { SHOPIFY("shopify"); @@ -20,4 +21,13 @@ private SourceShopifyShopify(String value) { public String value() { return value; } + + public static Optional<SourceShopifyShopify> fromValue(String value) { + for (SourceShopifyShopify o: SourceShopifyShopify.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShortcut.java b/src/main/java/com/airbyte/api/models/shared/SourceShortcut.java index 4e19c58e5..aedfaabc1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShortcut.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShortcut.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceShortcut { @JsonProperty("api_key_2") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShortio.java b/src/main/java/com/airbyte/api/models/shared/SourceShortio.java index 42cebb57a..8adb6c2c0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShortio.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShortio.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceShortio { @JsonProperty("domain_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSigmaComputing.java b/src/main/java/com/airbyte/api/models/shared/SourceSigmaComputing.java index c0ff1f49b..0c3984041 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSigmaComputing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSigmaComputing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSigmaComputing { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSimfin.java b/src/main/java/com/airbyte/api/models/shared/SourceSimfin.java index bed68fd06..94eeca41a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSimfin.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSimfin.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSimfin { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSimplecast.java b/src/main/java/com/airbyte/api/models/shared/SourceSimplecast.java index ba3cb7c67..3305b2fd6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSimplecast.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSimplecast.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSimplecast { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSimplesat.java b/src/main/java/com/airbyte/api/models/shared/SourceSimplesat.java index 2330e33f8..5b4e3e24e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSimplesat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSimplesat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSimplesat { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlack.java b/src/main/java/com/airbyte/api/models/shared/SourceSlack.java index 6190bdc33..16ccff849 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlack.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,7 +22,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSlack { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackAPIToken.java index 1d4bf8f7c..679ae78f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackAPIToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSlackAPIToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackAuthenticationMechanism.java index 39b71da12..7275a535c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackAuthenticationMechanism.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceSlackAuthenticationMechanism - Choose how to authenticate into Slack */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java index b04b86f35..9868d3a5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSlackOptionTitle { DEFAULT_O_AUTH20_AUTHORIZATION("Default OAuth2.0 authorization"); @@ -20,4 +21,13 @@ private SourceSlackOptionTitle(String value) { public String value() { return value; } + + public static Optional<SourceSlackOptionTitle> fromValue(String value) { + for (SourceSlackOptionTitle o: SourceSlackOptionTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java index 2dc8739ce..bd4dc396d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSlackSchemasOptionTitle { API_TOKEN_CREDENTIALS("API Token Credentials"); @@ -20,4 +21,13 @@ private SourceSlackSchemasOptionTitle(String value) { public String value() { return value; } + + public static Optional<SourceSlackSchemasOptionTitle> fromValue(String value) { + for (SourceSlackSchemasOptionTitle o: SourceSlackSchemasOptionTitle.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java index fdd91cd9e..435cc4e3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSlackSlack { SLACK("slack"); @@ -20,4 +21,13 @@ private SourceSlackSlack(String value) { public String value() { return value; } + + public static Optional<SourceSlackSlack> fromValue(String value) { + for (SourceSlackSlack o: SourceSlackSlack.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmaily.java b/src/main/java/com/airbyte/api/models/shared/SourceSmaily.java index 96446d9a5..e39cfabd0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmaily.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmaily.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSmaily { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartengage.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartengage.java index 3030f459a..880d9fe1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartengage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartengage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSmartengage { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartreach.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartreach.java index 6f686afc5..d3123b7be 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartreach.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartreach.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSmartreach { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheets.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheets.java index b845ba6c3..6b342c0fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheets.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -20,12 +20,18 @@ import java.util.Objects; import java.util.Optional; - public class SourceSmartsheets { @JsonProperty("credentials") private SourceSmartsheetsAuthorizationMethod credentials; + /** + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("is_report") + private Optional<Boolean> isReport; + /** * A List of available columns which metadata can be pulled from. */ @@ -45,12 +51,15 @@ public class SourceSmartsheets { @JsonCreator public SourceSmartsheets( @JsonProperty("credentials") SourceSmartsheetsAuthorizationMethod credentials, + @JsonProperty("is_report") Optional<Boolean> isReport, @JsonProperty("metadata_fields") Optional<? extends List<Validenums>> metadataFields, @JsonProperty("spreadsheet_id") String spreadsheetId) { Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(isReport, "isReport"); Utils.checkNotNull(metadataFields, "metadataFields"); Utils.checkNotNull(spreadsheetId, "spreadsheetId"); this.credentials = credentials; + this.isReport = isReport; this.metadataFields = metadataFields; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.spreadsheetId = spreadsheetId; @@ -59,7 +68,7 @@ public SourceSmartsheets( public SourceSmartsheets( SourceSmartsheetsAuthorizationMethod credentials, String spreadsheetId) { - this(credentials, Optional.empty(), spreadsheetId); + this(credentials, Optional.empty(), Optional.empty(), spreadsheetId); } @JsonIgnore @@ -67,6 +76,14 @@ public SourceSmartsheetsAuthorizationMethod credentials() { return credentials; } + /** + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + */ + @JsonIgnore + public Optional<Boolean> isReport() { + return isReport; + } + /** * A List of available columns which metadata can be pulled from. */ @@ -99,6 +116,24 @@ public SourceSmartsheets withCredentials(SourceSmartsheetsAuthorizationMethod cr return this; } + /** + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + */ + public SourceSmartsheets withIsReport(boolean isReport) { + Utils.checkNotNull(isReport, "isReport"); + this.isReport = Optional.ofNullable(isReport); + return this; + } + + /** + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + */ + public SourceSmartsheets withIsReport(Optional<Boolean> isReport) { + Utils.checkNotNull(isReport, "isReport"); + this.isReport = isReport; + return this; + } + /** * A List of available columns which metadata can be pulled from. */ @@ -137,6 +172,7 @@ public boolean equals(java.lang.Object o) { SourceSmartsheets other = (SourceSmartsheets) o; return Objects.deepEquals(this.credentials, other.credentials) && + Objects.deepEquals(this.isReport, other.isReport) && Objects.deepEquals(this.metadataFields, other.metadataFields) && Objects.deepEquals(this.sourceType, other.sourceType) && Objects.deepEquals(this.spreadsheetId, other.spreadsheetId); @@ -146,6 +182,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( credentials, + isReport, metadataFields, sourceType, spreadsheetId); @@ -155,6 +192,7 @@ public int hashCode() { public String toString() { return Utils.toString(SourceSmartsheets.class, "credentials", credentials, + "isReport", isReport, "metadataFields", metadataFields, "sourceType", sourceType, "spreadsheetId", spreadsheetId); @@ -164,6 +202,8 @@ public final static class Builder { private SourceSmartsheetsAuthorizationMethod credentials; + private Optional<Boolean> isReport; + private Optional<? extends List<Validenums>> metadataFields = Optional.empty(); private String spreadsheetId; @@ -178,6 +218,24 @@ public Builder credentials(SourceSmartsheetsAuthorizationMethod credentials) { return this; } + /** + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + */ + public Builder isReport(boolean isReport) { + Utils.checkNotNull(isReport, "isReport"); + this.isReport = Optional.ofNullable(isReport); + return this; + } + + /** + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + */ + public Builder isReport(Optional<Boolean> isReport) { + Utils.checkNotNull(isReport, "isReport"); + this.isReport = isReport; + return this; + } + /** * A List of available columns which metadata can be pulled from. */ @@ -206,12 +264,21 @@ public Builder spreadsheetId(String spreadsheetId) { } public SourceSmartsheets build() { - return new SourceSmartsheets( + if (isReport == null) { + isReport = _SINGLETON_VALUE_IsReport.value(); + } return new SourceSmartsheets( credentials, + isReport, metadataFields, spreadsheetId); } + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_IsReport = + new LazySingletonValue<>( + "is_report", + "false", + new TypeReference<Optional<Boolean>>() {}); + private static final LazySingletonValue<SourceSmartsheetsSmartsheets> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java index 373a1be5c..3827a0a97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSmartsheetsAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceSmartsheetsAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSmartsheetsAuthType> fromValue(String value) { + for (SourceSmartsheetsAuthType o: SourceSmartsheetsAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthorizationMethod.java index ca83d1ea3..edbf29b1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceSmartsheetsAuthorizationMethod._Deserializer.class) public class SourceSmartsheetsAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsOAuth20.java index 7fd07ccc0..01e02e574 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSmartsheetsOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java index 2cce3bb40..d8de5c208 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSmartsheetsSchemasAuthType { ACCESS_TOKEN("access_token"); @@ -20,4 +21,13 @@ private SourceSmartsheetsSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSmartsheetsSchemasAuthType> fromValue(String value) { + for (SourceSmartsheetsSchemasAuthType o: SourceSmartsheetsSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java index cefeb34d3..956311296 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSmartsheetsSmartsheets { SMARTSHEETS("smartsheets"); @@ -20,4 +21,13 @@ private SourceSmartsheetsSmartsheets(String value) { public String value() { return value; } + + public static Optional<SourceSmartsheetsSmartsheets> fromValue(String value) { + for (SourceSmartsheetsSmartsheets o: SourceSmartsheetsSmartsheets.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartwaiver.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartwaiver.java index 8b9edbef9..de7f3e235 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartwaiver.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartwaiver.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSmartwaiver { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketing.java index 0d8f2aac5..989a4e628 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,14 +12,15 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.time.LocalDate; +import java.util.List; import java.util.Objects; import java.util.Optional; - public class SourceSnapchatMarketing { /** @@ -30,6 +30,13 @@ public class SourceSnapchatMarketing { @JsonProperty("action_report_time") private Optional<? extends ActionReportTime> actionReportTime; + /** + * Ad Account IDs of the ad accounts to retrieve + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ad_account_ids") + private Optional<? extends List<Object>> adAccountIds; + /** * The Client ID of your Snapchat developer application. */ @@ -49,6 +56,13 @@ public class SourceSnapchatMarketing { @JsonProperty("end_date") private Optional<LocalDate> endDate; + /** + * The IDs of the organizations to retrieve + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("organization_ids") + private Optional<? extends List<Object>> organizationIds; + /** * Refresh Token to renew the expired Access Token. */ @@ -82,25 +96,31 @@ public class SourceSnapchatMarketing { @JsonCreator public SourceSnapchatMarketing( @JsonProperty("action_report_time") Optional<? extends ActionReportTime> actionReportTime, + @JsonProperty("ad_account_ids") Optional<? extends List<Object>> adAccountIds, @JsonProperty("client_id") String clientId, @JsonProperty("client_secret") String clientSecret, @JsonProperty("end_date") Optional<LocalDate> endDate, + @JsonProperty("organization_ids") Optional<? extends List<Object>> organizationIds, @JsonProperty("refresh_token") String refreshToken, @JsonProperty("start_date") Optional<LocalDate> startDate, @JsonProperty("swipe_up_attribution_window") Optional<? extends SwipeUpAttributionWindow> swipeUpAttributionWindow, @JsonProperty("view_attribution_window") Optional<? extends ViewAttributionWindow> viewAttributionWindow) { Utils.checkNotNull(actionReportTime, "actionReportTime"); + Utils.checkNotNull(adAccountIds, "adAccountIds"); Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(organizationIds, "organizationIds"); Utils.checkNotNull(refreshToken, "refreshToken"); Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(swipeUpAttributionWindow, "swipeUpAttributionWindow"); Utils.checkNotNull(viewAttributionWindow, "viewAttributionWindow"); this.actionReportTime = actionReportTime; + this.adAccountIds = adAccountIds; this.clientId = clientId; this.clientSecret = clientSecret; this.endDate = endDate; + this.organizationIds = organizationIds; this.refreshToken = refreshToken; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; @@ -112,7 +132,7 @@ public SourceSnapchatMarketing( String clientId, String clientSecret, String refreshToken) { - this(Optional.empty(), clientId, clientSecret, Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), clientId, clientSecret, Optional.empty(), Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -124,6 +144,15 @@ public Optional<ActionReportTime> actionReportTime() { return (Optional<ActionReportTime>) actionReportTime; } + /** + * Ad Account IDs of the ad accounts to retrieve + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<Object>> adAccountIds() { + return (Optional<List<Object>>) adAccountIds; + } + /** * The Client ID of your Snapchat developer application. */ @@ -148,6 +177,15 @@ public Optional<LocalDate> endDate() { return endDate; } + /** + * The IDs of the organizations to retrieve + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<Object>> organizationIds() { + return (Optional<List<Object>>) organizationIds; + } + /** * Refresh Token to renew the expired Access Token. */ @@ -209,6 +247,24 @@ public SourceSnapchatMarketing withActionReportTime(Optional<? extends ActionRep return this; } + /** + * Ad Account IDs of the ad accounts to retrieve + */ + public SourceSnapchatMarketing withAdAccountIds(List<Object> adAccountIds) { + Utils.checkNotNull(adAccountIds, "adAccountIds"); + this.adAccountIds = Optional.ofNullable(adAccountIds); + return this; + } + + /** + * Ad Account IDs of the ad accounts to retrieve + */ + public SourceSnapchatMarketing withAdAccountIds(Optional<? extends List<Object>> adAccountIds) { + Utils.checkNotNull(adAccountIds, "adAccountIds"); + this.adAccountIds = adAccountIds; + return this; + } + /** * The Client ID of your Snapchat developer application. */ @@ -245,6 +301,24 @@ public SourceSnapchatMarketing withEndDate(Optional<LocalDate> endDate) { return this; } + /** + * The IDs of the organizations to retrieve + */ + public SourceSnapchatMarketing withOrganizationIds(List<Object> organizationIds) { + Utils.checkNotNull(organizationIds, "organizationIds"); + this.organizationIds = Optional.ofNullable(organizationIds); + return this; + } + + /** + * The IDs of the organizations to retrieve + */ + public SourceSnapchatMarketing withOrganizationIds(Optional<? extends List<Object>> organizationIds) { + Utils.checkNotNull(organizationIds, "organizationIds"); + this.organizationIds = organizationIds; + return this; + } + /** * Refresh Token to renew the expired Access Token. */ @@ -319,9 +393,11 @@ public boolean equals(java.lang.Object o) { SourceSnapchatMarketing other = (SourceSnapchatMarketing) o; return Objects.deepEquals(this.actionReportTime, other.actionReportTime) && + Objects.deepEquals(this.adAccountIds, other.adAccountIds) && Objects.deepEquals(this.clientId, other.clientId) && Objects.deepEquals(this.clientSecret, other.clientSecret) && Objects.deepEquals(this.endDate, other.endDate) && + Objects.deepEquals(this.organizationIds, other.organizationIds) && Objects.deepEquals(this.refreshToken, other.refreshToken) && Objects.deepEquals(this.sourceType, other.sourceType) && Objects.deepEquals(this.startDate, other.startDate) && @@ -333,9 +409,11 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( actionReportTime, + adAccountIds, clientId, clientSecret, endDate, + organizationIds, refreshToken, sourceType, startDate, @@ -347,9 +425,11 @@ public int hashCode() { public String toString() { return Utils.toString(SourceSnapchatMarketing.class, "actionReportTime", actionReportTime, + "adAccountIds", adAccountIds, "clientId", clientId, "clientSecret", clientSecret, "endDate", endDate, + "organizationIds", organizationIds, "refreshToken", refreshToken, "sourceType", sourceType, "startDate", startDate, @@ -361,12 +441,16 @@ public final static class Builder { private Optional<? extends ActionReportTime> actionReportTime; + private Optional<? extends List<Object>> adAccountIds = Optional.empty(); + private String clientId; private String clientSecret; private Optional<LocalDate> endDate = Optional.empty(); + private Optional<? extends List<Object>> organizationIds = Optional.empty(); + private String refreshToken; private Optional<LocalDate> startDate; @@ -397,6 +481,24 @@ public Builder actionReportTime(Optional<? extends ActionReportTime> actionRepor return this; } + /** + * Ad Account IDs of the ad accounts to retrieve + */ + public Builder adAccountIds(List<Object> adAccountIds) { + Utils.checkNotNull(adAccountIds, "adAccountIds"); + this.adAccountIds = Optional.ofNullable(adAccountIds); + return this; + } + + /** + * Ad Account IDs of the ad accounts to retrieve + */ + public Builder adAccountIds(Optional<? extends List<Object>> adAccountIds) { + Utils.checkNotNull(adAccountIds, "adAccountIds"); + this.adAccountIds = adAccountIds; + return this; + } + /** * The Client ID of your Snapchat developer application. */ @@ -433,6 +535,24 @@ public Builder endDate(Optional<LocalDate> endDate) { return this; } + /** + * The IDs of the organizations to retrieve + */ + public Builder organizationIds(List<Object> organizationIds) { + Utils.checkNotNull(organizationIds, "organizationIds"); + this.organizationIds = Optional.ofNullable(organizationIds); + return this; + } + + /** + * The IDs of the organizations to retrieve + */ + public Builder organizationIds(Optional<? extends List<Object>> organizationIds) { + Utils.checkNotNull(organizationIds, "organizationIds"); + this.organizationIds = organizationIds; + return this; + } + /** * Refresh Token to renew the expired Access Token. */ @@ -510,9 +630,11 @@ public SourceSnapchatMarketing build() { viewAttributionWindow = _SINGLETON_VALUE_ViewAttributionWindow.value(); } return new SourceSnapchatMarketing( actionReportTime, + adAccountIds, clientId, clientSecret, endDate, + organizationIds, refreshToken, startDate, swipeUpAttributionWindow, diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java index c7c49f4cf..6452cca09 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSnapchatMarketingSnapchatMarketing { SNAPCHAT_MARKETING("snapchat-marketing"); @@ -20,4 +21,13 @@ private SourceSnapchatMarketingSnapchatMarketing(String value) { public String value() { return value; } + + public static Optional<SourceSnapchatMarketingSnapchatMarketing> fromValue(String value) { + for (SourceSnapchatMarketingSnapchatMarketing o: SourceSnapchatMarketingSnapchatMarketing.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflake.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflake.java index d1bbfc51d..07c34ee5e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflake.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSnowflake { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java index ceddb393a..7369cfbc9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSnowflakeAuthType { O_AUTH("OAuth"); @@ -20,4 +21,13 @@ private SourceSnowflakeAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSnowflakeAuthType> fromValue(String value) { + for (SourceSnowflakeAuthType o: SourceSnowflakeAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java index d7d42db22..19b9b2c59 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceSnowflakeAuthorizationMethod._Deserializer.class) public class SourceSnowflakeAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java index dffb99783..51717096b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSnowflakeKeyPairAuthentication { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeOAuth20.java index 02a83327b..042be47c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSnowflakeOAuth20 { /** 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 062cecc88..6c5f69edb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSnowflakeSchemasAuthType { KEY_PAIR_AUTHENTICATION("Key Pair Authentication"); @@ -20,4 +21,13 @@ private SourceSnowflakeSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSnowflakeSchemasAuthType> fromValue(String value) { + for (SourceSnowflakeSchemasAuthType o: SourceSnowflakeSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java index 079856922..2b0a5b822 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSnowflakeSchemasCredentialsAuthType { USERNAME_PASSWORD("username/password"); @@ -20,4 +21,13 @@ private SourceSnowflakeSchemasCredentialsAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSnowflakeSchemasCredentialsAuthType> fromValue(String value) { + for (SourceSnowflakeSchemasCredentialsAuthType o: SourceSnowflakeSchemasCredentialsAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java index 12081ab6c..837999bf6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSnowflakeSnowflake { SNOWFLAKE("snowflake"); @@ -20,4 +21,13 @@ private SourceSnowflakeSnowflake(String value) { public String value() { return value; } + + public static Optional<SourceSnowflakeSnowflake> fromValue(String value) { + for (SourceSnowflakeSnowflake o: SourceSnowflakeSnowflake.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java index 69caa537f..b943b3eee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSnowflakeUsernameAndPassword { @JsonProperty("auth_type") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSolarwindsServiceDesk.java b/src/main/java/com/airbyte/api/models/shared/SourceSolarwindsServiceDesk.java index cfe091af5..d2594f6dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSolarwindsServiceDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSolarwindsServiceDesk.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceSolarwindsServiceDesk { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java b/src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java index 41d813a80..2d981289d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSonarCloud { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java b/src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java index f8c09c50f..4fbfef681 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSpacexApi { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSparkpost.java b/src/main/java/com/airbyte/api/models/shared/SourceSparkpost.java index 143074b7e..fb8b84dc4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSparkpost.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSparkpost.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSparkpost { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java b/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java index 3c1bf6973..a9d8f88c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceSplitIo { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSpotlercrm.java b/src/main/java/com/airbyte/api/models/shared/SourceSpotlercrm.java index 5bd622076..52cfe5ecb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSpotlercrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSpotlercrm.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSpotlercrm { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquare.java b/src/main/java/com/airbyte/api/models/shared/SourceSquare.java index f58b89741..1dcd1a735 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquare.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquare.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSquare { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java index ad8937bd5..9d49a933c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSquareAPIKey { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java index 26a1b1c80..554851ce5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSquareAuthType { O_AUTH("OAuth"); @@ -20,4 +21,13 @@ private SourceSquareAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSquareAuthType> fromValue(String value) { + for (SourceSquareAuthType o: SourceSquareAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthentication.java index 7634a286a..4960d791e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceSquareAuthentication - Choose how to authenticate to Square. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java index f1e260af2..94853c7ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSquareSchemasAuthType { API_KEY("API Key"); @@ -20,4 +21,13 @@ private SourceSquareSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceSquareSchemasAuthType> fromValue(String value) { + for (SourceSquareSchemasAuthType o: SourceSquareSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquarespace.java b/src/main/java/com/airbyte/api/models/shared/SourceSquarespace.java index 173e67b02..56d3a593d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquarespace.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquarespace.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceSquarespace { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStatsig.java b/src/main/java/com/airbyte/api/models/shared/SourceStatsig.java index 54af2d30a..f8afcba0e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStatsig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStatsig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceStatsig { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStatuspage.java b/src/main/java/com/airbyte/api/models/shared/SourceStatuspage.java index 084edba1a..6d0fa8c82 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStatuspage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStatuspage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceStatuspage { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStockdata.java b/src/main/java/com/airbyte/api/models/shared/SourceStockdata.java index dce32ed7a..344983080 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStockdata.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStockdata.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,7 +22,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceStockdata { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStrava.java b/src/main/java/com/airbyte/api/models/shared/SourceStrava.java index 27101e32d..529908e92 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStrava.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStrava.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceStrava { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java index 3731137c3..023110e57 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceStravaAuthType { CLIENT("Client"); @@ -20,4 +21,13 @@ private SourceStravaAuthType(String value) { public String value() { return value; } + + public static Optional<SourceStravaAuthType> fromValue(String value) { + for (SourceStravaAuthType o: SourceStravaAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStripe.java b/src/main/java/com/airbyte/api/models/shared/SourceStripe.java index b171691fc..5ce5f37e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStripe.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStripe.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceStripe { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrow.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrow.java index 1b89c08cc..ef33fe036 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrow.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSurveySparrow { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java index b5cf62473..cdd19be6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSurveySparrowUrlBase { HTTPS_API_SURVEYSPARROW_COM_V3("https://api.surveysparrow.com/v3"); @@ -20,4 +21,13 @@ private SourceSurveySparrowUrlBase(String value) { public String value() { return value; } + + public static Optional<SourceSurveySparrowUrlBase> fromValue(String value) { + for (SourceSurveySparrowUrlBase o: SourceSurveySparrowUrlBase.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkey.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkey.java index 1f1d73cc9..7cd766b21 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkey.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceSurveymonkey { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java index 42cd71665..0aa4c1d9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSurveymonkeyAuthMethod { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceSurveymonkeyAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceSurveymonkeyAuthMethod> fromValue(String value) { + for (SourceSurveymonkeyAuthMethod o: SourceSurveymonkeyAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java index 60ddebf57..9709cce6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceSurveymonkeySurveymonkey { SURVEYMONKEY("surveymonkey"); @@ -20,4 +21,13 @@ private SourceSurveymonkeySurveymonkey(String value) { public String value() { return value; } + + public static Optional<SourceSurveymonkeySurveymonkey> fromValue(String value) { + for (SourceSurveymonkeySurveymonkey o: SourceSurveymonkeySurveymonkey.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurvicate.java b/src/main/java/com/airbyte/api/models/shared/SourceSurvicate.java index fadaa6a49..eff310fee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurvicate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurvicate.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceSurvicate { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSysteme.java b/src/main/java/com/airbyte/api/models/shared/SourceSysteme.java index e97a4cafb..3fabf8b7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSysteme.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSysteme.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceSysteme { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTaboola.java b/src/main/java/com/airbyte/api/models/shared/SourceTaboola.java index 5775a44ef..e8c82a94f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTaboola.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTaboola.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceTaboola { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTeamtailor.java b/src/main/java/com/airbyte/api/models/shared/SourceTeamtailor.java index 3a82c9b30..588a3d9e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTeamtailor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTeamtailor.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceTeamtailor { @JsonProperty("api") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTeamwork.java b/src/main/java/com/airbyte/api/models/shared/SourceTeamwork.java index d246073c1..2dc717d8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTeamwork.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTeamwork.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTeamwork { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTempo.java b/src/main/java/com/airbyte/api/models/shared/SourceTempo.java index 0f288d41c..d3b86a8b2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTempo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTempo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceTempo { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTestrail.java b/src/main/java/com/airbyte/api/models/shared/SourceTestrail.java index 08b3e4dab..901bdb986 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTestrail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTestrail.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTestrail { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTheGuardianApi.java b/src/main/java/com/airbyte/api/models/shared/SourceTheGuardianApi.java index 78f483d67..b69d3f675 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTheGuardianApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTheGuardianApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTheGuardianApi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceThinkific.java b/src/main/java/com/airbyte/api/models/shared/SourceThinkific.java index e7f9dae90..6e044b800 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceThinkific.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceThinkific.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceThinkific { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTicketmaster.java b/src/main/java/com/airbyte/api/models/shared/SourceTicketmaster.java index 9c1483f5f..c6243cd91 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTicketmaster.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTicketmaster.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceTicketmaster { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTickettailor.java b/src/main/java/com/airbyte/api/models/shared/SourceTickettailor.java index af8dbe6c9..2cfe7a7e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTickettailor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTickettailor.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceTickettailor { /** 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 f8c358461..139ca9a5e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,7 +21,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTiktokMarketing { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java index 33e6bfe63..1d8e81a80 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceTiktokMarketingAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceTiktokMarketingAuthType(String value) { public String value() { return value; } + + public static Optional<SourceTiktokMarketingAuthType> fromValue(String value) { + for (SourceTiktokMarketingAuthType o: SourceTiktokMarketingAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthenticationMethod.java index 22b818923..4ef5bb757 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthenticationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceTiktokMarketingAuthenticationMethod - Authentication method */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingOAuth20.java index 9f73087f0..dc330fcc3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTiktokMarketingOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java index 7c3d4e183..6c9cb3b19 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceTiktokMarketingSchemasAuthType { SANDBOX_ACCESS_TOKEN("sandbox_access_token"); @@ -20,4 +21,13 @@ private SourceTiktokMarketingSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceTiktokMarketingSchemasAuthType> fromValue(String value) { + for (SourceTiktokMarketingSchemasAuthType o: SourceTiktokMarketingSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java index bfd5ee22e..f38a03373 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceTiktokMarketingTiktokMarketing { TIKTOK_MARKETING("tiktok-marketing"); @@ -20,4 +21,13 @@ private SourceTiktokMarketingTiktokMarketing(String value) { public String value() { return value; } + + public static Optional<SourceTiktokMarketingTiktokMarketing> fromValue(String value) { + for (SourceTiktokMarketingTiktokMarketing o: SourceTiktokMarketingTiktokMarketing.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTimely.java b/src/main/java/com/airbyte/api/models/shared/SourceTimely.java index 083216336..1014a54b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTimely.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTimely.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -13,19 +12,19 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; +import java.time.OffsetDateTime; import java.util.Objects; - public class SourceTimely { /** - * Timely account id + * The Account ID for your Timely account */ @JsonProperty("account_id") private String accountId; /** - * Timely bearer token + * The Bearer Token for your Timely account */ @JsonProperty("bearer_token") private String bearerToken; @@ -34,16 +33,16 @@ public class SourceTimely { private Timely sourceType; /** - * start date + * Earliest date from which you want to pull data from. */ @JsonProperty("start_date") - private String startDate; + private OffsetDateTime startDate; @JsonCreator public SourceTimely( @JsonProperty("account_id") String accountId, @JsonProperty("bearer_token") String bearerToken, - @JsonProperty("start_date") String startDate) { + @JsonProperty("start_date") OffsetDateTime startDate) { Utils.checkNotNull(accountId, "accountId"); Utils.checkNotNull(bearerToken, "bearerToken"); Utils.checkNotNull(startDate, "startDate"); @@ -54,7 +53,7 @@ public SourceTimely( } /** - * Timely account id + * The Account ID for your Timely account */ @JsonIgnore public String accountId() { @@ -62,7 +61,7 @@ public String accountId() { } /** - * Timely bearer token + * The Bearer Token for your Timely account */ @JsonIgnore public String bearerToken() { @@ -75,10 +74,10 @@ public Timely sourceType() { } /** - * start date + * Earliest date from which you want to pull data from. */ @JsonIgnore - public String startDate() { + public OffsetDateTime startDate() { return startDate; } @@ -87,7 +86,7 @@ public final static Builder builder() { } /** - * Timely account id + * The Account ID for your Timely account */ public SourceTimely withAccountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -96,7 +95,7 @@ public SourceTimely withAccountId(String accountId) { } /** - * Timely bearer token + * The Bearer Token for your Timely account */ public SourceTimely withBearerToken(String bearerToken) { Utils.checkNotNull(bearerToken, "bearerToken"); @@ -105,9 +104,9 @@ public SourceTimely withBearerToken(String bearerToken) { } /** - * start date + * Earliest date from which you want to pull data from. */ - public SourceTimely withStartDate(String startDate) { + public SourceTimely withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; @@ -153,14 +152,14 @@ public final static class Builder { private String bearerToken; - private String startDate; + private OffsetDateTime startDate; private Builder() { // force use of static builder() method } /** - * Timely account id + * The Account ID for your Timely account */ public Builder accountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -169,7 +168,7 @@ public Builder accountId(String accountId) { } /** - * Timely bearer token + * The Bearer Token for your Timely account */ public Builder bearerToken(String bearerToken) { Utils.checkNotNull(bearerToken, "bearerToken"); @@ -178,9 +177,9 @@ public Builder bearerToken(String bearerToken) { } /** - * start date + * Earliest date from which you want to pull data from. */ - 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/SourceTinyemail.java b/src/main/java/com/airbyte/api/models/shared/SourceTinyemail.java index 3b05746ce..af718a27e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTinyemail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTinyemail.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceTinyemail { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTmdb.java b/src/main/java/com/airbyte/api/models/shared/SourceTmdb.java new file mode 100644 index 000000000..0e8aed09b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceTmdb.java @@ -0,0 +1,242 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceTmdb { + + /** + * API Key from tmdb account + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * Language expressed in ISO 639-1 scheme, Mandate for required streams (Example en-US) + */ + @JsonProperty("language") + private String language; + + /** + * Target movie ID, Mandate for movie streams (Example is 550) + */ + @JsonProperty("movie_id") + private String movieId; + + /** + * Target movie ID, Mandate for search streams + */ + @JsonProperty("query") + private String query; + + @JsonProperty("sourceType") + private Tmdb sourceType; + + @JsonCreator + public SourceTmdb( + @JsonProperty("api_key") String apiKey, + @JsonProperty("language") String language, + @JsonProperty("movie_id") String movieId, + @JsonProperty("query") String query) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(language, "language"); + Utils.checkNotNull(movieId, "movieId"); + Utils.checkNotNull(query, "query"); + this.apiKey = apiKey; + this.language = language; + this.movieId = movieId; + this.query = query; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * API Key from tmdb account + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Language expressed in ISO 639-1 scheme, Mandate for required streams (Example en-US) + */ + @JsonIgnore + public String language() { + return language; + } + + /** + * Target movie ID, Mandate for movie streams (Example is 550) + */ + @JsonIgnore + public String movieId() { + return movieId; + } + + /** + * Target movie ID, Mandate for search streams + */ + @JsonIgnore + public String query() { + return query; + } + + @JsonIgnore + public Tmdb sourceType() { + return sourceType; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * API Key from tmdb account + */ + public SourceTmdb withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Language expressed in ISO 639-1 scheme, Mandate for required streams (Example en-US) + */ + public SourceTmdb withLanguage(String language) { + Utils.checkNotNull(language, "language"); + this.language = language; + return this; + } + + /** + * Target movie ID, Mandate for movie streams (Example is 550) + */ + public SourceTmdb withMovieId(String movieId) { + Utils.checkNotNull(movieId, "movieId"); + this.movieId = movieId; + return this; + } + + /** + * Target movie ID, Mandate for search streams + */ + public SourceTmdb 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; + } + SourceTmdb other = (SourceTmdb) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.language, other.language) && + Objects.deepEquals(this.movieId, other.movieId) && + Objects.deepEquals(this.query, other.query) && + Objects.deepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + language, + movieId, + query, + sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceTmdb.class, + "apiKey", apiKey, + "language", language, + "movieId", movieId, + "query", query, + "sourceType", sourceType); + } + + public final static class Builder { + + private String apiKey; + + private String language; + + private String movieId; + + private String query; + + private Builder() { + // force use of static builder() method + } + + /** + * API Key from tmdb account + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Language expressed in ISO 639-1 scheme, Mandate for required streams (Example en-US) + */ + public Builder language(String language) { + Utils.checkNotNull(language, "language"); + this.language = language; + return this; + } + + /** + * Target movie ID, Mandate for movie streams (Example is 550) + */ + public Builder movieId(String movieId) { + Utils.checkNotNull(movieId, "movieId"); + this.movieId = movieId; + return this; + } + + /** + * Target movie ID, Mandate for search streams + */ + public Builder query(String query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + public SourceTmdb build() { + return new SourceTmdb( + apiKey, + language, + movieId, + query); + } + + private static final LazySingletonValue<Tmdb> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"tmdb\"", + new TypeReference<Tmdb>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTodoist.java b/src/main/java/com/airbyte/api/models/shared/SourceTodoist.java index 8ffea004d..72b295878 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTodoist.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTodoist.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceTodoist { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceToggl.java b/src/main/java/com/airbyte/api/models/shared/SourceToggl.java new file mode 100644 index 000000000..dce991ca3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceToggl.java @@ -0,0 +1,284 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceToggl { + + /** + * Your API Token. See <a href="https://developers.track.toggl.com/docs/authentication">here</a>. The token is case sensitive. + */ + @JsonProperty("api_token") + private String apiToken; + + /** + * To retrieve time entries created before the given date (inclusive). + */ + @JsonProperty("end_date") + private String endDate; + + /** + * Your organization id. See <a href="https://developers.track.toggl.com/docs/organization">here</a>. + */ + @JsonProperty("organization_id") + private long organizationId; + + @JsonProperty("sourceType") + private Toggl sourceType; + + /** + * To retrieve time entries created after the given date (inclusive). + */ + @JsonProperty("start_date") + private String startDate; + + /** + * Your workspace id. See <a href="https://developers.track.toggl.com/docs/workspaces">here</a>. + */ + @JsonProperty("workspace_id") + private long workspaceId; + + @JsonCreator + public SourceToggl( + @JsonProperty("api_token") String apiToken, + @JsonProperty("end_date") String endDate, + @JsonProperty("organization_id") long organizationId, + @JsonProperty("start_date") String startDate, + @JsonProperty("workspace_id") long workspaceId) { + Utils.checkNotNull(apiToken, "apiToken"); + Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(organizationId, "organizationId"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(workspaceId, "workspaceId"); + this.apiToken = apiToken; + this.endDate = endDate; + this.organizationId = organizationId; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + this.workspaceId = workspaceId; + } + + /** + * Your API Token. See <a href="https://developers.track.toggl.com/docs/authentication">here</a>. The token is case sensitive. + */ + @JsonIgnore + public String apiToken() { + return apiToken; + } + + /** + * To retrieve time entries created before the given date (inclusive). + */ + @JsonIgnore + public String endDate() { + return endDate; + } + + /** + * Your organization id. See <a href="https://developers.track.toggl.com/docs/organization">here</a>. + */ + @JsonIgnore + public long organizationId() { + return organizationId; + } + + @JsonIgnore + public Toggl sourceType() { + return sourceType; + } + + /** + * To retrieve time entries created after the given date (inclusive). + */ + @JsonIgnore + public String startDate() { + return startDate; + } + + /** + * Your workspace id. See <a href="https://developers.track.toggl.com/docs/workspaces">here</a>. + */ + @JsonIgnore + public long workspaceId() { + return workspaceId; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Your API Token. See <a href="https://developers.track.toggl.com/docs/authentication">here</a>. The token is case sensitive. + */ + public SourceToggl withApiToken(String apiToken) { + Utils.checkNotNull(apiToken, "apiToken"); + this.apiToken = apiToken; + return this; + } + + /** + * To retrieve time entries created before the given date (inclusive). + */ + public SourceToggl withEndDate(String endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + /** + * Your organization id. See <a href="https://developers.track.toggl.com/docs/organization">here</a>. + */ + public SourceToggl withOrganizationId(long organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + + /** + * To retrieve time entries created after the given date (inclusive). + */ + public SourceToggl withStartDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Your workspace id. See <a href="https://developers.track.toggl.com/docs/workspaces">here</a>. + */ + public SourceToggl withWorkspaceId(long workspaceId) { + Utils.checkNotNull(workspaceId, "workspaceId"); + this.workspaceId = workspaceId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceToggl other = (SourceToggl) o; + return + Objects.deepEquals(this.apiToken, other.apiToken) && + Objects.deepEquals(this.endDate, other.endDate) && + Objects.deepEquals(this.organizationId, other.organizationId) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.startDate, other.startDate) && + Objects.deepEquals(this.workspaceId, other.workspaceId); + } + + @Override + public int hashCode() { + return Objects.hash( + apiToken, + endDate, + organizationId, + sourceType, + startDate, + workspaceId); + } + + @Override + public String toString() { + return Utils.toString(SourceToggl.class, + "apiToken", apiToken, + "endDate", endDate, + "organizationId", organizationId, + "sourceType", sourceType, + "startDate", startDate, + "workspaceId", workspaceId); + } + + public final static class Builder { + + private String apiToken; + + private String endDate; + + private Long organizationId; + + private String startDate; + + private Long workspaceId; + + private Builder() { + // force use of static builder() method + } + + /** + * Your API Token. See <a href="https://developers.track.toggl.com/docs/authentication">here</a>. The token is case sensitive. + */ + public Builder apiToken(String apiToken) { + Utils.checkNotNull(apiToken, "apiToken"); + this.apiToken = apiToken; + return this; + } + + /** + * To retrieve time entries created before the given date (inclusive). + */ + public Builder endDate(String endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + /** + * Your organization id. See <a href="https://developers.track.toggl.com/docs/organization">here</a>. + */ + public Builder organizationId(long organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + + /** + * To retrieve time entries created after the given date (inclusive). + */ + public Builder startDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Your workspace id. See <a href="https://developers.track.toggl.com/docs/workspaces">here</a>. + */ + public Builder workspaceId(long workspaceId) { + Utils.checkNotNull(workspaceId, "workspaceId"); + this.workspaceId = workspaceId; + return this; + } + + public SourceToggl build() { + return new SourceToggl( + apiToken, + endDate, + organizationId, + startDate, + workspaceId); + } + + private static final LazySingletonValue<Toggl> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"toggl\"", + new TypeReference<Toggl>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrackPms.java b/src/main/java/com/airbyte/api/models/shared/SourceTrackPms.java index 6f0307745..b7443050e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrackPms.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrackPms.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTrackPms { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrello.java b/src/main/java/com/airbyte/api/models/shared/SourceTrello.java index 92146ca44..6ab5cc919 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrello.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrello.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTrello { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTremendous.java b/src/main/java/com/airbyte/api/models/shared/SourceTremendous.java index ae8e68035..4a8850e1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTremendous.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTremendous.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceTremendous { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java index 3881ceaf9..83bf2e791 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceTremendousEnvironment { API("api"), TESTFLIGHT("testflight"); @@ -21,4 +22,13 @@ private SourceTremendousEnvironment(String value) { public String value() { return value; } + + public static Optional<SourceTremendousEnvironment> fromValue(String value) { + for (SourceTremendousEnvironment o: SourceTremendousEnvironment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilot.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilot.java index 9e4ec3867..05536b8b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilot.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilot.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.util.List; import java.util.Objects; - public class SourceTrustpilot { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAPIKey.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAPIKey.java index 9ebc00e1c..8b61df85e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAPIKey.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAPIKey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SourceTrustpilotAPIKey - The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java index f605b5da3..077fa440b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceTrustpilotAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceTrustpilotAuthType(String value) { public String value() { return value; } + + public static Optional<SourceTrustpilotAuthType> fromValue(String value) { + for (SourceTrustpilotAuthType o: SourceTrustpilotAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthorizationMethod.java index 511d9e9bf..838908d90 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceTrustpilotAuthorizationMethod._Deserializer.class) public class SourceTrustpilotAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotOAuth20.java index 06aee90fd..1188e2bc7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTrustpilotOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java index 5a05ff599..7868dfc72 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceTrustpilotSchemasAuthType { APIKEY("apikey"); @@ -20,4 +21,13 @@ private SourceTrustpilotSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceTrustpilotSchemasAuthType> fromValue(String value) { + for (SourceTrustpilotSchemasAuthType o: SourceTrustpilotSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTvmazeSchedule.java b/src/main/java/com/airbyte/api/models/shared/SourceTvmazeSchedule.java index 28e417b31..6b8d0d0ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTvmazeSchedule.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTvmazeSchedule.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTvmazeSchedule { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwelveData.java b/src/main/java/com/airbyte/api/models/shared/SourceTwelveData.java index 42e0b9f65..47aedadb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTwelveData.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwelveData.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTwelveData { @JsonProperty("api_key") @@ -44,7 +42,7 @@ public class SourceTwelveData { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("interval") - private Optional<? extends Interval> interval; + private Optional<? extends SourceTwelveDataInterval> interval; @JsonProperty("sourceType") private TwelveData sourceType; @@ -61,7 +59,7 @@ public SourceTwelveData( @JsonProperty("api_key") String apiKey, @JsonProperty("country") Optional<String> country, @JsonProperty("exchange") Optional<String> exchange, - @JsonProperty("interval") Optional<? extends Interval> interval, + @JsonProperty("interval") Optional<? extends SourceTwelveDataInterval> interval, @JsonProperty("symbol") Optional<String> symbol) { Utils.checkNotNull(apiKey, "apiKey"); Utils.checkNotNull(country, "country"); @@ -107,8 +105,8 @@ public Optional<String> exchange() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional<Interval> interval() { - return (Optional<Interval>) interval; + public Optional<SourceTwelveDataInterval> interval() { + return (Optional<SourceTwelveDataInterval>) interval; } @JsonIgnore @@ -173,7 +171,7 @@ public SourceTwelveData withExchange(Optional<String> exchange) { /** * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month */ - public SourceTwelveData withInterval(Interval interval) { + public SourceTwelveData withInterval(SourceTwelveDataInterval interval) { Utils.checkNotNull(interval, "interval"); this.interval = Optional.ofNullable(interval); return this; @@ -182,7 +180,7 @@ public SourceTwelveData withInterval(Interval interval) { /** * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month */ - public SourceTwelveData withInterval(Optional<? extends Interval> interval) { + public SourceTwelveData withInterval(Optional<? extends SourceTwelveDataInterval> interval) { Utils.checkNotNull(interval, "interval"); this.interval = interval; return this; @@ -254,7 +252,7 @@ public final static class Builder { private Optional<String> exchange = Optional.empty(); - private Optional<? extends Interval> interval; + private Optional<? extends SourceTwelveDataInterval> interval; private Optional<String> symbol = Optional.empty(); @@ -307,7 +305,7 @@ public Builder exchange(Optional<String> exchange) { /** * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month */ - public Builder interval(Interval interval) { + public Builder interval(SourceTwelveDataInterval interval) { Utils.checkNotNull(interval, "interval"); this.interval = Optional.ofNullable(interval); return this; @@ -316,7 +314,7 @@ public Builder interval(Interval interval) { /** * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month */ - public Builder interval(Optional<? extends Interval> interval) { + public Builder interval(Optional<? extends SourceTwelveDataInterval> interval) { Utils.checkNotNull(interval, "interval"); this.interval = interval; return this; @@ -351,11 +349,11 @@ public SourceTwelveData build() { symbol); } - private static final LazySingletonValue<Optional<? extends Interval>> _SINGLETON_VALUE_Interval = + private static final LazySingletonValue<Optional<? extends SourceTwelveDataInterval>> _SINGLETON_VALUE_Interval = new LazySingletonValue<>( "interval", "\"1day\"", - new TypeReference<Optional<? extends Interval>>() {}); + new TypeReference<Optional<? extends SourceTwelveDataInterval>>() {}); private static final LazySingletonValue<TwelveData> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwelveDataInterval.java b/src/main/java/com/airbyte/api/models/shared/SourceTwelveDataInterval.java new file mode 100644 index 000000000..2c69fa5c3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwelveDataInterval.java @@ -0,0 +1,46 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * SourceTwelveDataInterval - Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + */ +public enum SourceTwelveDataInterval { + ONEMIN("1min"), + FIVEMIN("5min"), + FIFTEENMIN("15min"), + THIRTYMIN("30min"), + FORTY_FIVEMIN("45min"), + ONEH("1h"), + TWOH("2h"), + FOURH("4h"), + ONEDAY("1day"), + ONEWEEK("1week"), + ONEMONTH("1month"); + + @JsonValue + private final String value; + + private SourceTwelveDataInterval(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<SourceTwelveDataInterval> fromValue(String value) { + for (SourceTwelveDataInterval o: SourceTwelveDataInterval.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwilio.java b/src/main/java/com/airbyte/api/models/shared/SourceTwilio.java index f6c6b0c47..bae8f576e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTwilio.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwilio.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTwilio { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwilioTaskrouter.java b/src/main/java/com/airbyte/api/models/shared/SourceTwilioTaskrouter.java index 012f65c2d..7796c814a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTwilioTaskrouter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwilioTaskrouter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceTwilioTaskrouter { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwitter.java b/src/main/java/com/airbyte/api/models/shared/SourceTwitter.java index fb60ab9f2..e8312fa70 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTwitter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwitter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTwitter { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTyntecSms.java b/src/main/java/com/airbyte/api/models/shared/SourceTyntecSms.java new file mode 100644 index 000000000..31eaf3309 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceTyntecSms.java @@ -0,0 +1,271 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public class SourceTyntecSms { + + /** + * Your Tyntec API Key. See <a href="https://www.tyntec.com/docs/docs-center-sms-api-quick-start">here</a> + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * The phone number of the SMS message sender (international). + */ + @JsonProperty("from") + private String from; + + /** + * The content of the SMS message to be sent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + private Optional<String> message; + + @JsonProperty("sourceType") + private TyntecSms sourceType; + + /** + * The phone number of the SMS message recipient (international). + */ + @JsonProperty("to") + private String to; + + @JsonCreator + public SourceTyntecSms( + @JsonProperty("api_key") String apiKey, + @JsonProperty("from") String from, + @JsonProperty("message") Optional<String> message, + @JsonProperty("to") String to) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(from, "from"); + Utils.checkNotNull(message, "message"); + Utils.checkNotNull(to, "to"); + this.apiKey = apiKey; + this.from = from; + this.message = message; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.to = to; + } + + public SourceTyntecSms( + String apiKey, + String from, + String to) { + this(apiKey, from, Optional.empty(), to); + } + + /** + * Your Tyntec API Key. See <a href="https://www.tyntec.com/docs/docs-center-sms-api-quick-start">here</a> + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * The phone number of the SMS message sender (international). + */ + @JsonIgnore + public String from() { + return from; + } + + /** + * The content of the SMS message to be sent. + */ + @JsonIgnore + public Optional<String> message() { + return message; + } + + @JsonIgnore + public TyntecSms sourceType() { + return sourceType; + } + + /** + * The phone number of the SMS message recipient (international). + */ + @JsonIgnore + public String to() { + return to; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Your Tyntec API Key. See <a href="https://www.tyntec.com/docs/docs-center-sms-api-quick-start">here</a> + */ + public SourceTyntecSms withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * The phone number of the SMS message sender (international). + */ + public SourceTyntecSms withFrom(String from) { + Utils.checkNotNull(from, "from"); + this.from = from; + return this; + } + + /** + * The content of the SMS message to be sent. + */ + public SourceTyntecSms withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + /** + * The content of the SMS message to be sent. + */ + public SourceTyntecSms withMessage(Optional<String> message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + /** + * The phone number of the SMS message recipient (international). + */ + public SourceTyntecSms withTo(String to) { + Utils.checkNotNull(to, "to"); + this.to = to; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceTyntecSms other = (SourceTyntecSms) o; + return + Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.from, other.from) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.to, other.to); + } + + @Override + public int hashCode() { + return Objects.hash( + apiKey, + from, + message, + sourceType, + to); + } + + @Override + public String toString() { + return Utils.toString(SourceTyntecSms.class, + "apiKey", apiKey, + "from", from, + "message", message, + "sourceType", sourceType, + "to", to); + } + + public final static class Builder { + + private String apiKey; + + private String from; + + private Optional<String> message = Optional.empty(); + + private String to; + + private Builder() { + // force use of static builder() method + } + + /** + * Your Tyntec API Key. See <a href="https://www.tyntec.com/docs/docs-center-sms-api-quick-start">here</a> + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * The phone number of the SMS message sender (international). + */ + public Builder from(String from) { + Utils.checkNotNull(from, "from"); + this.from = from; + return this; + } + + /** + * The content of the SMS message to be sent. + */ + public Builder message(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + /** + * The content of the SMS message to be sent. + */ + public Builder message(Optional<String> message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + /** + * The phone number of the SMS message recipient (international). + */ + public Builder to(String to) { + Utils.checkNotNull(to, "to"); + this.to = to; + return this; + } + + public SourceTyntecSms build() { + return new SourceTyntecSms( + apiKey, + from, + message, + to); + } + + private static final LazySingletonValue<TyntecSms> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"tyntec-sms\"", + new TypeReference<TyntecSms>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeform.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeform.java index c73150854..bd9cf8a80 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeform.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeform.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTypeform { @JsonProperty("credentials") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java index 0229befa1..b02e3c9b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceTypeformAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceTypeformAuthType(String value) { public String value() { return value; } + + public static Optional<SourceTypeformAuthType> fromValue(String value) { + for (SourceTypeformAuthType o: SourceTypeformAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthorizationMethod.java index 80063eb0a..d2d517c6b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceTypeformAuthorizationMethod._Deserializer.class) public class SourceTypeformAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformOAuth20.java index 204c26a92..7fb571249 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTypeformOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformPrivateToken.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformPrivateToken.java index 855d54272..2500a91cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformPrivateToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformPrivateToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceTypeformPrivateToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java index c1d907b0d..7e396db39 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceTypeformSchemasAuthType { ACCESS_TOKEN("access_token"); @@ -20,4 +21,13 @@ private SourceTypeformSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceTypeformSchemasAuthType> fromValue(String value) { + for (SourceTypeformSchemasAuthType o: SourceTypeformSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java index 6629bac41..a402711da 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceTypeformTypeform { TYPEFORM("typeform"); @@ -20,4 +21,13 @@ private SourceTypeformTypeform(String value) { public String value() { return value; } + + public static Optional<SourceTypeformTypeform> fromValue(String value) { + for (SourceTypeformTypeform o: SourceTypeformTypeform.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUbidots.java b/src/main/java/com/airbyte/api/models/shared/SourceUbidots.java index 1e84afe87..5e31ee883 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUbidots.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUbidots.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceUbidots { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUnleash.java b/src/main/java/com/airbyte/api/models/shared/SourceUnleash.java index 0180f98ef..4dabd3afd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUnleash.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUnleash.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceUnleash { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUppromote.java b/src/main/java/com/airbyte/api/models/shared/SourceUppromote.java index 2f98fbeb4..7960995b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUppromote.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUppromote.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceUppromote { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java b/src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java index 4018d520b..98e38e1ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceUsCensus { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUservoice.java b/src/main/java/com/airbyte/api/models/shared/SourceUservoice.java index e86420b7b..a854f7b8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUservoice.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUservoice.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceUservoice { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVantage.java b/src/main/java/com/airbyte/api/models/shared/SourceVantage.java index 1134dd054..f8496d823 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVantage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVantage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceVantage { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVeeqo.java b/src/main/java/com/airbyte/api/models/shared/SourceVeeqo.java index 0f5d95448..aa5baab5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVeeqo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVeeqo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceVeeqo { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVercel.java b/src/main/java/com/airbyte/api/models/shared/SourceVercel.java index cb318939a..09ca797b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVercel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVercel.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceVercel { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVismaEconomic.java b/src/main/java/com/airbyte/api/models/shared/SourceVismaEconomic.java index 91255ccf9..731806b0e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVismaEconomic.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVismaEconomic.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceVismaEconomic { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVitally.java b/src/main/java/com/airbyte/api/models/shared/SourceVitally.java index 1db183df9..a1b9837ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVitally.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVitally.java @@ -2,27 +2,41 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; import java.util.Objects; - +import java.util.Optional; public class SourceVitally { /** - * The API Token for a Vitally account. + * Basic Auth Header + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("basic_auth_header") + private Optional<String> basicAuthHeader; + + /** + * Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. */ - @JsonProperty("api_key") - private String apiKey; + @JsonProperty("domain") + private String domain; + + /** + * sk_live_secret_token + */ + @JsonProperty("secret_token") + private String secretToken; @JsonProperty("sourceType") private Vitally sourceType; @@ -35,21 +49,50 @@ public class SourceVitally { @JsonCreator public SourceVitally( - @JsonProperty("api_key") String apiKey, + @JsonProperty("basic_auth_header") Optional<String> basicAuthHeader, + @JsonProperty("domain") String domain, + @JsonProperty("secret_token") String secretToken, @JsonProperty("status") SourceVitallyStatus status) { - Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(basicAuthHeader, "basicAuthHeader"); + Utils.checkNotNull(domain, "domain"); + Utils.checkNotNull(secretToken, "secretToken"); Utils.checkNotNull(status, "status"); - this.apiKey = apiKey; + this.basicAuthHeader = basicAuthHeader; + this.domain = domain; + this.secretToken = secretToken; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.status = status; } + + public SourceVitally( + String domain, + String secretToken, + SourceVitallyStatus status) { + this(Optional.empty(), domain, secretToken, status); + } + + /** + * Basic Auth Header + */ + @JsonIgnore + public Optional<String> basicAuthHeader() { + return basicAuthHeader; + } + + /** + * Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. + */ + @JsonIgnore + public String domain() { + return domain; + } /** - * The API Token for a Vitally account. + * sk_live_secret_token */ @JsonIgnore - public String apiKey() { - return apiKey; + public String secretToken() { + return secretToken; } @JsonIgnore @@ -70,11 +113,38 @@ public final static Builder builder() { } /** - * The API Token for a Vitally account. + * Basic Auth Header + */ + public SourceVitally withBasicAuthHeader(String basicAuthHeader) { + Utils.checkNotNull(basicAuthHeader, "basicAuthHeader"); + this.basicAuthHeader = Optional.ofNullable(basicAuthHeader); + return this; + } + + /** + * Basic Auth Header */ - public SourceVitally withApiKey(String apiKey) { - Utils.checkNotNull(apiKey, "apiKey"); - this.apiKey = apiKey; + public SourceVitally withBasicAuthHeader(Optional<String> basicAuthHeader) { + Utils.checkNotNull(basicAuthHeader, "basicAuthHeader"); + this.basicAuthHeader = basicAuthHeader; + return this; + } + + /** + * Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. + */ + public SourceVitally withDomain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * sk_live_secret_token + */ + public SourceVitally withSecretToken(String secretToken) { + Utils.checkNotNull(secretToken, "secretToken"); + this.secretToken = secretToken; return this; } @@ -97,7 +167,9 @@ public boolean equals(java.lang.Object o) { } SourceVitally other = (SourceVitally) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && + Objects.deepEquals(this.basicAuthHeader, other.basicAuthHeader) && + Objects.deepEquals(this.domain, other.domain) && + Objects.deepEquals(this.secretToken, other.secretToken) && Objects.deepEquals(this.sourceType, other.sourceType) && Objects.deepEquals(this.status, other.status); } @@ -105,7 +177,9 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( - apiKey, + basicAuthHeader, + domain, + secretToken, sourceType, status); } @@ -113,14 +187,20 @@ public int hashCode() { @Override public String toString() { return Utils.toString(SourceVitally.class, - "apiKey", apiKey, + "basicAuthHeader", basicAuthHeader, + "domain", domain, + "secretToken", secretToken, "sourceType", sourceType, "status", status); } public final static class Builder { - private String apiKey; + private Optional<String> basicAuthHeader = Optional.empty(); + + private String domain; + + private String secretToken; private SourceVitallyStatus status; @@ -129,11 +209,38 @@ private Builder() { } /** - * The API Token for a Vitally account. + * Basic Auth Header + */ + public Builder basicAuthHeader(String basicAuthHeader) { + Utils.checkNotNull(basicAuthHeader, "basicAuthHeader"); + this.basicAuthHeader = Optional.ofNullable(basicAuthHeader); + return this; + } + + /** + * Basic Auth Header + */ + public Builder basicAuthHeader(Optional<String> basicAuthHeader) { + Utils.checkNotNull(basicAuthHeader, "basicAuthHeader"); + this.basicAuthHeader = basicAuthHeader; + return this; + } + + /** + * Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. + */ + public Builder domain(String domain) { + Utils.checkNotNull(domain, "domain"); + this.domain = domain; + return this; + } + + /** + * sk_live_secret_token */ - public Builder apiKey(String apiKey) { - Utils.checkNotNull(apiKey, "apiKey"); - this.apiKey = apiKey; + public Builder secretToken(String secretToken) { + Utils.checkNotNull(secretToken, "secretToken"); + this.secretToken = secretToken; return this; } @@ -148,7 +255,9 @@ public Builder status(SourceVitallyStatus status) { public SourceVitally build() { return new SourceVitally( - apiKey, + basicAuthHeader, + domain, + secretToken, status); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java b/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java index 5c46c27e7..ce5de844b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceVitallyStatus - Status of the Vitally accounts. One of the following values; active, churned, activeOrChurned. */ @@ -25,4 +26,13 @@ private SourceVitallyStatus(String value) { public String value() { return value; } + + public static Optional<SourceVitallyStatus> fromValue(String value) { + for (SourceVitallyStatus o: SourceVitallyStatus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVwo.java b/src/main/java/com/airbyte/api/models/shared/SourceVwo.java index 9f418f006..e8f881de6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVwo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVwo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceVwo { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWaiteraid.java b/src/main/java/com/airbyte/api/models/shared/SourceWaiteraid.java index a0345f949..8349e86c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWaiteraid.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWaiteraid.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceWaiteraid { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWasabiStatsApi.java b/src/main/java/com/airbyte/api/models/shared/SourceWasabiStatsApi.java index dd9681d54..2215681ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWasabiStatsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWasabiStatsApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceWasabiStatsApi { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWeatherstack.java b/src/main/java/com/airbyte/api/models/shared/SourceWeatherstack.java index a998fc46e..c026be0a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWeatherstack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWeatherstack.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceWeatherstack { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWebScrapper.java b/src/main/java/com/airbyte/api/models/shared/SourceWebScrapper.java index 573fa6fc7..9aafcb67a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWebScrapper.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWebScrapper.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceWebScrapper { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWebflow.java b/src/main/java/com/airbyte/api/models/shared/SourceWebflow.java index 470e6de09..179f64d73 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWebflow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWebflow.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceWebflow { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWhenIWork.java b/src/main/java/com/airbyte/api/models/shared/SourceWhenIWork.java index af779e9d6..12180ecac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWhenIWork.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWhenIWork.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceWhenIWork { /** 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 562eaf293..522f380a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceWhiskyHunter { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java b/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java index 195157255..871c2515a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceWikipediaPageviews { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWoocommerce.java b/src/main/java/com/airbyte/api/models/shared/SourceWoocommerce.java index fe40d2087..53d47b097 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWoocommerce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWoocommerce.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.LocalDate; import java.util.Objects; - public class SourceWoocommerce { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWordpress.java b/src/main/java/com/airbyte/api/models/shared/SourceWordpress.java index 4bf4645ef..0151f4ddc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWordpress.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWordpress.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceWordpress { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkable.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkable.java index b14cbeb13..4cbe27edb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWorkable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkable.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceWorkable { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkday.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkday.java new file mode 100644 index 000000000..e85aba4cd --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkday.java @@ -0,0 +1,177 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class SourceWorkday { + + /** + * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + */ + @JsonProperty("credentials") + private SourceWorkdayAuthentication credentials; + + @JsonProperty("host") + private String host; + + @JsonProperty("sourceType") + private Workday sourceType; + + @JsonProperty("tenant_id") + private String tenantId; + + @JsonCreator + public SourceWorkday( + @JsonProperty("credentials") SourceWorkdayAuthentication credentials, + @JsonProperty("host") String host, + @JsonProperty("tenant_id") String tenantId) { + Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(host, "host"); + Utils.checkNotNull(tenantId, "tenantId"); + this.credentials = credentials; + this.host = host; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.tenantId = tenantId; + } + + /** + * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + */ + @JsonIgnore + public SourceWorkdayAuthentication credentials() { + return credentials; + } + + @JsonIgnore + public String host() { + return host; + } + + @JsonIgnore + public Workday sourceType() { + return sourceType; + } + + @JsonIgnore + public String tenantId() { + return tenantId; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + */ + public SourceWorkday withCredentials(SourceWorkdayAuthentication credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + public SourceWorkday withHost(String host) { + Utils.checkNotNull(host, "host"); + this.host = host; + return this; + } + + public SourceWorkday withTenantId(String tenantId) { + Utils.checkNotNull(tenantId, "tenantId"); + this.tenantId = tenantId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceWorkday other = (SourceWorkday) o; + return + Objects.deepEquals(this.credentials, other.credentials) && + Objects.deepEquals(this.host, other.host) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.tenantId, other.tenantId); + } + + @Override + public int hashCode() { + return Objects.hash( + credentials, + host, + sourceType, + tenantId); + } + + @Override + public String toString() { + return Utils.toString(SourceWorkday.class, + "credentials", credentials, + "host", host, + "sourceType", sourceType, + "tenantId", tenantId); + } + + public final static class Builder { + + private SourceWorkdayAuthentication credentials; + + private String host; + + private String tenantId; + + private Builder() { + // force use of static builder() method + } + + /** + * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + */ + public Builder credentials(SourceWorkdayAuthentication credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + public Builder host(String host) { + Utils.checkNotNull(host, "host"); + this.host = host; + return this; + } + + public Builder tenantId(String tenantId) { + Utils.checkNotNull(tenantId, "tenantId"); + this.tenantId = tenantId; + return this; + } + + public SourceWorkday build() { + return new SourceWorkday( + credentials, + host, + tenantId); + } + + private static final LazySingletonValue<Workday> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"workday\"", + new TypeReference<Workday>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkdayAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkdayAuthentication.java new file mode 100644 index 000000000..4eac2d9ef --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkdayAuthentication.java @@ -0,0 +1,98 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +/** + * SourceWorkdayAuthentication - Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + */ + +@JsonDeserialize(using = SourceWorkdayAuthentication._Deserializer.class) +public class SourceWorkdayAuthentication { + + @JsonValue + private TypedObject value; + + private SourceWorkdayAuthentication(TypedObject value) { + this.value = value; + } + + public static SourceWorkdayAuthentication of(ReportBasedStreams value) { + Utils.checkNotNull(value, "value"); + return new SourceWorkdayAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<ReportBasedStreams>(){})); + } + + public static SourceWorkdayAuthentication of(RESTAPIStreams value) { + Utils.checkNotNull(value, "value"); + return new SourceWorkdayAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<RESTAPIStreams>(){})); + } + + /** + * Returns an instance of one of these types: + * <ul> + * <li>{@code com.airbyte.api.models.shared.ReportBasedStreams}</li> + * <li>{@code com.airbyte.api.models.shared.RESTAPIStreams}</li> + * </ul> + * + * <p>Use {@code instanceof} to determine what type is returned. For example: + * + * <pre> + * if (obj.value() instanceof String) { + * String answer = (String) obj.value(); + * System.out.println("answer=" + answer); + * } + * </pre> + * + * @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; + } + SourceWorkdayAuthentication other = (SourceWorkdayAuthentication) o; + return Objects.deepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Objects.hash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer<SourceWorkdayAuthentication> { + + public _Deserializer() { + super(SourceWorkdayAuthentication.class, false, + TypeReferenceWithShape.of(new TypeReference<ReportBasedStreams>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference<RESTAPIStreams>() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceWorkdayAuthentication.class, + "value", value); + } + +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkflowmax.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkflowmax.java index e62fb627f..3b25e0136 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWorkflowmax.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkflowmax.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceWorkflowmax { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkramp.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkramp.java index f400cff07..c25c2f108 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWorkramp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkramp.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceWorkramp { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWrike.java b/src/main/java/com/airbyte/api/models/shared/SourceWrike.java index a6fbc4971..b0f33338f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWrike.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWrike.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceWrike { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWufoo.java b/src/main/java/com/airbyte/api/models/shared/SourceWufoo.java index f78c6b288..92440df8e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWufoo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWufoo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceWufoo { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java b/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java index 72cd15dfe..de46d033a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceXkcd { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceXsolla.java b/src/main/java/com/airbyte/api/models/shared/SourceXsolla.java index ed72b44b1..636e92476 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceXsolla.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceXsolla.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.lang.String; import java.util.Objects; - public class SourceXsolla { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePrice.java b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePrice.java index 6cb48c1a3..a402186d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePrice.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePrice.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceYahooFinancePrice { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java index 516707283..a7ed7c885 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceYahooFinancePriceInterval - The interval of between prices queried. */ @@ -33,4 +34,13 @@ private SourceYahooFinancePriceInterval(String value) { public String value() { return value; } + + public static Optional<SourceYahooFinancePriceInterval> fromValue(String value) { + for (SourceYahooFinancePriceInterval o: SourceYahooFinancePriceInterval.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYandexMetrica.java b/src/main/java/com/airbyte/api/models/shared/SourceYandexMetrica.java index eac2990e7..b9e37007f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYandexMetrica.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYandexMetrica.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceYandexMetrica { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYotpo.java b/src/main/java/com/airbyte/api/models/shared/SourceYotpo.java index 9664e5e49..0e5eedc67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYotpo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYotpo.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceYotpo { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYouNeedABudgetYnab.java b/src/main/java/com/airbyte/api/models/shared/SourceYouNeedABudgetYnab.java index b2592cd19..9d220d812 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYouNeedABudgetYnab.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYouNeedABudgetYnab.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceYouNeedABudgetYnab { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYounium.java b/src/main/java/com/airbyte/api/models/shared/SourceYounium.java new file mode 100644 index 000000000..5a4c95063 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceYounium.java @@ -0,0 +1,280 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public class SourceYounium { + + /** + * Legal Entity that data should be pulled from + */ + @JsonProperty("legal_entity") + private String legalEntity; + + /** + * Account password for younium account API key + */ + @JsonProperty("password") + private String password; + + /** + * Property defining if connector is used against playground or production environment + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("playground") + private Optional<Boolean> playground; + + @JsonProperty("sourceType") + private Younium sourceType; + + /** + * Username for Younium account + */ + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceYounium( + @JsonProperty("legal_entity") String legalEntity, + @JsonProperty("password") String password, + @JsonProperty("playground") Optional<Boolean> playground, + @JsonProperty("username") String username) { + Utils.checkNotNull(legalEntity, "legalEntity"); + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(playground, "playground"); + Utils.checkNotNull(username, "username"); + this.legalEntity = legalEntity; + this.password = password; + this.playground = playground; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.username = username; + } + + public SourceYounium( + String legalEntity, + String password, + String username) { + this(legalEntity, password, Optional.empty(), username); + } + + /** + * Legal Entity that data should be pulled from + */ + @JsonIgnore + public String legalEntity() { + return legalEntity; + } + + /** + * Account password for younium account API key + */ + @JsonIgnore + public String password() { + return password; + } + + /** + * Property defining if connector is used against playground or production environment + */ + @JsonIgnore + public Optional<Boolean> playground() { + return playground; + } + + @JsonIgnore + public Younium sourceType() { + return sourceType; + } + + /** + * Username for Younium account + */ + @JsonIgnore + public String username() { + return username; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Legal Entity that data should be pulled from + */ + public SourceYounium withLegalEntity(String legalEntity) { + Utils.checkNotNull(legalEntity, "legalEntity"); + this.legalEntity = legalEntity; + return this; + } + + /** + * Account password for younium account API key + */ + public SourceYounium withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + /** + * Property defining if connector is used against playground or production environment + */ + public SourceYounium withPlayground(boolean playground) { + Utils.checkNotNull(playground, "playground"); + this.playground = Optional.ofNullable(playground); + return this; + } + + /** + * Property defining if connector is used against playground or production environment + */ + public SourceYounium withPlayground(Optional<Boolean> playground) { + Utils.checkNotNull(playground, "playground"); + this.playground = playground; + return this; + } + + /** + * Username for Younium account + */ + public SourceYounium 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; + } + SourceYounium other = (SourceYounium) o; + return + Objects.deepEquals(this.legalEntity, other.legalEntity) && + Objects.deepEquals(this.password, other.password) && + Objects.deepEquals(this.playground, other.playground) && + Objects.deepEquals(this.sourceType, other.sourceType) && + Objects.deepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return Objects.hash( + legalEntity, + password, + playground, + sourceType, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceYounium.class, + "legalEntity", legalEntity, + "password", password, + "playground", playground, + "sourceType", sourceType, + "username", username); + } + + public final static class Builder { + + private String legalEntity; + + private String password; + + private Optional<Boolean> playground; + + private String username; + + private Builder() { + // force use of static builder() method + } + + /** + * Legal Entity that data should be pulled from + */ + public Builder legalEntity(String legalEntity) { + Utils.checkNotNull(legalEntity, "legalEntity"); + this.legalEntity = legalEntity; + return this; + } + + /** + * Account password for younium account API key + */ + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + /** + * Property defining if connector is used against playground or production environment + */ + public Builder playground(boolean playground) { + Utils.checkNotNull(playground, "playground"); + this.playground = Optional.ofNullable(playground); + return this; + } + + /** + * Property defining if connector is used against playground or production environment + */ + public Builder playground(Optional<Boolean> playground) { + Utils.checkNotNull(playground, "playground"); + this.playground = playground; + return this; + } + + /** + * Username for Younium account + */ + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceYounium build() { + if (playground == null) { + playground = _SINGLETON_VALUE_Playground.value(); + } return new SourceYounium( + legalEntity, + password, + playground, + username); + } + + private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_Playground = + new LazySingletonValue<>( + "playground", + "false", + new TypeReference<Optional<Boolean>>() {}); + + private static final LazySingletonValue<Younium> _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"younium\"", + new TypeReference<Younium>() {}); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalytics.java b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalytics.java index 16078b68d..b208694c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalytics.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalytics.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceYoutubeAnalytics { @JsonProperty("credentials") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java index 2a3d12f5b..2e18d2fad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceYoutubeAnalyticsYoutubeAnalytics { YOUTUBE_ANALYTICS("youtube-analytics"); @@ -20,4 +21,13 @@ private SourceYoutubeAnalyticsYoutubeAnalytics(String value) { public String value() { return value; } + + public static Optional<SourceYoutubeAnalyticsYoutubeAnalytics> fromValue(String value) { + for (SourceYoutubeAnalyticsYoutubeAnalytics o: SourceYoutubeAnalyticsYoutubeAnalytics.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeData.java b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeData.java index 5ee1a31ae..697b53713 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeData.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeData.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,7 +16,6 @@ import java.util.List; import java.util.Objects; - public class SourceYoutubeData { @JsonProperty("api_key") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZapierSupportedStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceZapierSupportedStorage.java index bc70e71ab..eac53d16a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZapierSupportedStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZapierSupportedStorage.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceZapierSupportedStorage { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChat.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChat.java index ca2b16dd9..817b92dfb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskChat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAccessToken.java index 88ccae88a..a560314e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAccessToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceZendeskChatAccessToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAuthorizationMethod.java index dec7157d2..09a0efa79 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceZendeskChatAuthorizationMethod._Deserializer.class) public class SourceZendeskChatAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java index 3e5b5a1c3..1af110394 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskChatCredentials { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceZendeskChatCredentials(String value) { public String value() { return value; } + + public static Optional<SourceZendeskChatCredentials> fromValue(String value) { + for (SourceZendeskChatCredentials o: SourceZendeskChatCredentials.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatOAuth20.java index 5d232c2ad..301de37c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskChatOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java index e3d2b6242..d9c228f7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskChatSchemasCredentials { ACCESS_TOKEN("access_token"); @@ -20,4 +21,13 @@ private SourceZendeskChatSchemasCredentials(String value) { public String value() { return value; } + + public static Optional<SourceZendeskChatSchemasCredentials> fromValue(String value) { + for (SourceZendeskChatSchemasCredentials o: SourceZendeskChatSchemasCredentials.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatZendeskChat.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatZendeskChat.java index 6ee1300d4..e7f6183f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatZendeskChat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatZendeskChat.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskChatZendeskChat { ZENDESK_CHAT("zendesk-chat"); @@ -20,4 +21,13 @@ private SourceZendeskChatZendeskChat(String value) { public String value() { return value; } + + public static Optional<SourceZendeskChatZendeskChat> fromValue(String value) { + for (SourceZendeskChatZendeskChat o: SourceZendeskChatZendeskChat.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshine.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshine.java index b79f73f1b..d6637fa15 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshine.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshine.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskSunshine { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAPIToken.java index 6fdfbb611..1247681fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAPIToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskSunshineAPIToken { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java index 1e529781b..67f499dcc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskSunshineAuthMethod { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceZendeskSunshineAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceZendeskSunshineAuthMethod> fromValue(String value) { + for (SourceZendeskSunshineAuthMethod o: SourceZendeskSunshineAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthorizationMethod.java index 8aea4e0d4..ea2719499 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = SourceZendeskSunshineAuthorizationMethod._Deserializer.class) public class SourceZendeskSunshineAuthorizationMethod { diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineOAuth20.java index 29028eee0..494377ea2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskSunshineOAuth20 { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java index a916c7f51..ba84a12fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskSunshineSchemasAuthMethod { API_TOKEN("api_token"); @@ -20,4 +21,13 @@ private SourceZendeskSunshineSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional<SourceZendeskSunshineSchemasAuthMethod> fromValue(String value) { + for (SourceZendeskSunshineSchemasAuthMethod o: SourceZendeskSunshineSchemasAuthMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupport.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupport.java index a0d70f6a3..4be81e884 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupport.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupport.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskSupport { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAPIToken.java index 0f29d5e80..640f318fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAPIToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskSupportAPIToken { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAuthentication.java index d7ed197cf..d8719f1be 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceZendeskSupportAuthentication - Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java index 894bb2bcc..0a8d98ed6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskSupportCredentials { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceZendeskSupportCredentials(String value) { public String value() { return value; } + + public static Optional<SourceZendeskSupportCredentials> fromValue(String value) { + for (SourceZendeskSupportCredentials o: SourceZendeskSupportCredentials.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportOAuth20.java index c48bcdfe4..556eb27a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskSupportOAuth20 { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java index e2415af51..0671a0f28 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskSupportSchemasCredentials { API_TOKEN("api_token"); @@ -20,4 +21,13 @@ private SourceZendeskSupportSchemasCredentials(String value) { public String value() { return value; } + + public static Optional<SourceZendeskSupportSchemasCredentials> fromValue(String value) { + for (SourceZendeskSupportSchemasCredentials o: SourceZendeskSupportSchemasCredentials.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java index f67153b9a..341071626 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskSupportZendeskSupport { ZENDESK_SUPPORT("zendesk-support"); @@ -20,4 +21,13 @@ private SourceZendeskSupportZendeskSupport(String value) { public String value() { return value; } + + public static Optional<SourceZendeskSupportZendeskSupport> fromValue(String value) { + for (SourceZendeskSupportZendeskSupport o: SourceZendeskSupportZendeskSupport.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalk.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalk.java index 2d14b2225..91729a03b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalk.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskTalk { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAPIToken.java index 3785a9744..5cbc910f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAPIToken.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskTalkAPIToken { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java index 14c10da8c..4929538a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskTalkAuthType { OAUTH20("oauth2.0"); @@ -20,4 +21,13 @@ private SourceZendeskTalkAuthType(String value) { public String value() { return value; } + + public static Optional<SourceZendeskTalkAuthType> fromValue(String value) { + for (SourceZendeskTalkAuthType o: SourceZendeskTalkAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthentication.java index 40632c257..76714e0d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthentication.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * SourceZendeskTalkAuthentication - Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`. */ diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkOAuth20.java index f546efb91..388401bbf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkOAuth20.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +23,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZendeskTalkOAuth20 { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java index 671e0f48b..bb56b245e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskTalkSchemasAuthType { API_TOKEN("api_token"); @@ -20,4 +21,13 @@ private SourceZendeskTalkSchemasAuthType(String value) { public String value() { return value; } + + public static Optional<SourceZendeskTalkSchemasAuthType> fromValue(String value) { + for (SourceZendeskTalkSchemasAuthType o: SourceZendeskTalkSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java index 951aab29f..76e1742e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZendeskTalkZendeskTalk { ZENDESK_TALK("zendesk-talk"); @@ -20,4 +21,13 @@ private SourceZendeskTalkZendeskTalk(String value) { public String value() { return value; } + + public static Optional<SourceZendeskTalkZendeskTalk> fromValue(String value) { + for (SourceZendeskTalkZendeskTalk o: SourceZendeskTalkZendeskTalk.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZenefits.java b/src/main/java/com/airbyte/api/models/shared/SourceZenefits.java index bef71a186..4317f2d0a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZenefits.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZenefits.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceZenefits { @JsonProperty("sourceType") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZenloop.java b/src/main/java/com/airbyte/api/models/shared/SourceZenloop.java index a8eaaffd8..35da168af 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZenloop.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZenloop.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZenloop { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApi.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApi.java index f905a8d2f..2a97d7146 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApi.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZohoAnalyticsMetadataApi { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java index 8a97ab7eb..27021323b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZohoAnalyticsMetadataApiDataCenter { COM("com"), EU("eu"), @@ -25,4 +26,13 @@ private SourceZohoAnalyticsMetadataApiDataCenter(String value) { public String value() { return value; } + + public static Optional<SourceZohoAnalyticsMetadataApiDataCenter> fromValue(String value) { + for (SourceZohoAnalyticsMetadataApiDataCenter o: SourceZohoAnalyticsMetadataApiDataCenter.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBigin.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBigin.java index d4f3e2107..bcbe61e54 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBigin.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBigin.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZohoBigin { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java index 016712077..02c002226 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceZohoBiginDataCenter - The data center where the Bigin account's resources are hosted */ @@ -28,4 +29,13 @@ private SourceZohoBiginDataCenter(String value) { public String value() { return value; } + + public static Optional<SourceZohoBiginDataCenter> fromValue(String value) { + for (SourceZohoBiginDataCenter o: SourceZohoBiginDataCenter.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBilling.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBilling.java index 367db8422..2b2e8c50d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBilling.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceZohoBilling { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java index 160ae94f8..5245b14b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZohoBillingRegion { COM("com"), EU("eu"), @@ -27,4 +28,13 @@ private SourceZohoBillingRegion(String value) { public String value() { return value; } + + public static Optional<SourceZohoBillingRegion> fromValue(String value) { + for (SourceZohoBillingRegion o: SourceZohoBillingRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBooks.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooks.java index 8c8222b89..69e8e5e91 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBooks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooks.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -16,7 +15,6 @@ import java.time.OffsetDateTime; import java.util.Objects; - public class SourceZohoBooks { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java index af8c6f4f7..3cb21b8b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceZohoBooksRegion - The region code for the Zoho Books API, such as 'com', 'eu', 'in', etc. */ @@ -30,4 +31,13 @@ private SourceZohoBooksRegion(String value) { public String value() { return value; } + + public static Optional<SourceZohoBooksRegion> fromValue(String value) { + for (SourceZohoBooksRegion o: SourceZohoBooksRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaign.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaign.java index ad456f4bc..1cd83bf62 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaign.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceZohoCampaign { @JsonProperty("client_id_2") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java index d93cb56cb..151173fad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZohoCampaignDataCenter { COM("com"), EU("eu"), @@ -25,4 +26,13 @@ private SourceZohoCampaignDataCenter(String value) { public String value() { return value; } + + public static Optional<SourceZohoCampaignDataCenter> fromValue(String value) { + for (SourceZohoCampaignDataCenter o: SourceZohoCampaignDataCenter.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoCrm.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrm.java index c0f6d00e6..fe7e3e5e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrm.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; - public class SourceZohoCrm { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java index 6958d5f9a..af6d3f417 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceZohoCrmEnvironment - Please choose the environment */ @@ -25,4 +26,13 @@ private SourceZohoCrmEnvironment(String value) { public String value() { return value; } + + public static Optional<SourceZohoCrmEnvironment> fromValue(String value) { + for (SourceZohoCrmEnvironment o: SourceZohoCrmEnvironment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoDesk.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoDesk.java index 16bd6047d..1192312b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoDesk.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZohoDesk { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoExpense.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpense.java index ba431f6c3..b64835655 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoExpense.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpense.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZohoExpense { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java index eb2ca8983..1d5782d96 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SourceZohoExpenseDataCenter - The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', 'in', etc.) */ @@ -30,4 +31,13 @@ private SourceZohoExpenseDataCenter(String value) { public String value() { return value; } + + public static Optional<SourceZohoExpenseDataCenter> fromValue(String value) { + for (SourceZohoExpenseDataCenter o: SourceZohoExpenseDataCenter.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoInventory.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoInventory.java index dadde8f37..9fffe3517 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoInventory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoInventory.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZohoInventory { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoice.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoice.java index 85b5eb42f..855156e40 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoice.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoice.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZohoInvoice { @JsonProperty("client_id") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java index f98952c51..9eaecebbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SourceZohoInvoiceRegion { COM("com"), EU("eu"), @@ -27,4 +28,13 @@ private SourceZohoInvoiceRegion(String value) { public String value() { return value; } + + public static Optional<SourceZohoInvoiceRegion> fromValue(String value) { + for (SourceZohoInvoiceRegion o: SourceZohoInvoiceRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZonkaFeedback.java b/src/main/java/com/airbyte/api/models/shared/SourceZonkaFeedback.java index 055c8ebda..add58e349 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZonkaFeedback.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZonkaFeedback.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -15,7 +14,6 @@ import java.lang.String; import java.util.Objects; - public class SourceZonkaFeedback { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZoom.java b/src/main/java/com/airbyte/api/models/shared/SourceZoom.java index e54451f82..2d8eeb037 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZoom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZoom.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.util.Objects; import java.util.Optional; - public class SourceZoom { /** diff --git a/src/main/java/com/airbyte/api/models/shared/SourcesResponse.java b/src/main/java/com/airbyte/api/models/shared/SourcesResponse.java index 8a4b4abe8..87a847e97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcesResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcesResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class SourcesResponse { @JsonProperty("data") diff --git a/src/main/java/com/airbyte/api/models/shared/SpacexApi.java b/src/main/java/com/airbyte/api/models/shared/SpacexApi.java index 84e589225..dc0edb090 100644 --- a/src/main/java/com/airbyte/api/models/shared/SpacexApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SpacexApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SpacexApi { SPACEX_API("spacex-api"); @@ -20,4 +21,13 @@ private SpacexApi(String value) { public String value() { return value; } + + public static Optional<SpacexApi> fromValue(String value) { + for (SpacexApi o: SpacexApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Sparkpost.java b/src/main/java/com/airbyte/api/models/shared/Sparkpost.java index 193e6823d..cfc9c36d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sparkpost.java +++ b/src/main/java/com/airbyte/api/models/shared/Sparkpost.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Sparkpost { SPARKPOST("sparkpost"); @@ -20,4 +21,13 @@ private Sparkpost(String value) { public String value() { return value; } + + public static Optional<Sparkpost> fromValue(String value) { + for (Sparkpost o: Sparkpost.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SplitIo.java b/src/main/java/com/airbyte/api/models/shared/SplitIo.java index 4b738fe81..fbb0bff6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SplitIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SplitIo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SplitIo { SPLIT_IO("split-io"); @@ -20,4 +21,13 @@ private SplitIo(String value) { public String value() { return value; } + + public static Optional<SplitIo> fromValue(String value) { + for (SplitIo o: SplitIo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java b/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java index 09ab42ebf..d89993a6b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Spotlercrm { SPOTLERCRM("spotlercrm"); @@ -20,4 +21,13 @@ private Spotlercrm(String value) { public String value() { return value; } + + public static Optional<Spotlercrm> fromValue(String value) { + for (Spotlercrm o: Spotlercrm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Square.java b/src/main/java/com/airbyte/api/models/shared/Square.java index 397a65339..e4d75c403 100644 --- a/src/main/java/com/airbyte/api/models/shared/Square.java +++ b/src/main/java/com/airbyte/api/models/shared/Square.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Square { SQUARE("square"); @@ -20,4 +21,13 @@ private Square(String value) { public String value() { return value; } + + public static Optional<Square> fromValue(String value) { + for (Square o: Square.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Squarespace.java b/src/main/java/com/airbyte/api/models/shared/Squarespace.java index a5b189898..196b2e80d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Squarespace.java +++ b/src/main/java/com/airbyte/api/models/shared/Squarespace.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Squarespace { SQUARESPACE("squarespace"); @@ -20,4 +21,13 @@ private Squarespace(String value) { public String value() { return value; } + + public static Optional<Squarespace> fromValue(String value) { + for (Squarespace o: Squarespace.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/StandaloneMongoDbInstance.java b/src/main/java/com/airbyte/api/models/shared/StandaloneMongoDbInstance.java index bb67293ac..5f633054d 100644 --- a/src/main/java/com/airbyte/api/models/shared/StandaloneMongoDbInstance.java +++ b/src/main/java/com/airbyte/api/models/shared/StandaloneMongoDbInstance.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class StandaloneMongoDbInstance { /** diff --git a/src/main/java/com/airbyte/api/models/shared/State.java b/src/main/java/com/airbyte/api/models/shared/State.java index b647aef72..bd8f9a6f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/State.java +++ b/src/main/java/com/airbyte/api/models/shared/State.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * State - Select the state of the items to retrieve. */ @@ -25,4 +26,13 @@ private State(String value) { public String value() { return value; } + + public static Optional<State> fromValue(String value) { + for (State o: State.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/StateFilterEnum.java b/src/main/java/com/airbyte/api/models/shared/StateFilterEnum.java deleted file mode 100644 index 346d64899..000000000 --- a/src/main/java/com/airbyte/api/models/shared/StateFilterEnum.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; - -/** - * StateFilterEnum - An enumeration. - */ -public enum StateFilterEnum { - ENABLED("enabled"), - PAUSED("paused"), - ARCHIVED("archived"); - - @JsonValue - private final String value; - - private StateFilterEnum(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java b/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java index 259d4d928..a5b7b194d 100644 --- a/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * StatisticsInterval - Periodicity of statistics returned. it may be daily(P1D), weekly(P1W) or monthly(P1M). */ @@ -25,4 +26,13 @@ private StatisticsInterval(String value) { public String value() { return value; } + + public static Optional<StatisticsInterval> fromValue(String value) { + for (StatisticsInterval o: StatisticsInterval.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Statsig.java b/src/main/java/com/airbyte/api/models/shared/Statsig.java index 8e8a5eeca..8ee13c862 100644 --- a/src/main/java/com/airbyte/api/models/shared/Statsig.java +++ b/src/main/java/com/airbyte/api/models/shared/Statsig.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Statsig { STATSIG("statsig"); @@ -20,4 +21,13 @@ private Statsig(String value) { public String value() { return value; } + + public static Optional<Statsig> fromValue(String value) { + for (Statsig o: Statsig.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Status.java b/src/main/java/com/airbyte/api/models/shared/Status.java index d296dc65b..17251176b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Status.java +++ b/src/main/java/com/airbyte/api/models/shared/Status.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Status { ACTIVE("ACTIVE"), PAUSED("PAUSED"), @@ -22,4 +23,13 @@ private Status(String value) { public String value() { return value; } + + public static Optional<Status> fromValue(String value) { + for (Status o: Status.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Statuspage.java b/src/main/java/com/airbyte/api/models/shared/Statuspage.java index 097cbf2bd..ad1f8b5de 100644 --- a/src/main/java/com/airbyte/api/models/shared/Statuspage.java +++ b/src/main/java/com/airbyte/api/models/shared/Statuspage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Statuspage { STATUSPAGE("statuspage"); @@ -20,4 +21,13 @@ private Statuspage(String value) { public String value() { return value; } + + public static Optional<Statuspage> fromValue(String value) { + for (Statuspage o: Statuspage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Stockdata.java b/src/main/java/com/airbyte/api/models/shared/Stockdata.java index baf33f8d1..4761e6603 100644 --- a/src/main/java/com/airbyte/api/models/shared/Stockdata.java +++ b/src/main/java/com/airbyte/api/models/shared/Stockdata.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Stockdata { STOCKDATA("stockdata"); @@ -20,4 +21,13 @@ private Stockdata(String value) { public String value() { return value; } + + public static Optional<Stockdata> fromValue(String value) { + for (Stockdata o: Stockdata.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Storage.java b/src/main/java/com/airbyte/api/models/shared/Storage.java index 267e7b353..0a2a2c5b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/Storage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Storage { HTTPS("HTTPS"); @@ -20,4 +21,13 @@ private Storage(String value) { public String value() { return value; } + + public static Optional<Storage> fromValue(String value) { + for (Storage o: Storage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/StorageConfig.java b/src/main/java/com/airbyte/api/models/shared/StorageConfig.java index 3dc216ccb..181529e30 100644 --- a/src/main/java/com/airbyte/api/models/shared/StorageConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/StorageConfig.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * StorageConfig - Storage config of Iceberg. */ diff --git a/src/main/java/com/airbyte/api/models/shared/StorageProvider.java b/src/main/java/com/airbyte/api/models/shared/StorageProvider.java index b14f68278..a91ccabfb 100644 --- a/src/main/java/com/airbyte/api/models/shared/StorageProvider.java +++ b/src/main/java/com/airbyte/api/models/shared/StorageProvider.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * StorageProvider - The storage Provider or Location of the file(s) which should be replicated. */ diff --git a/src/main/java/com/airbyte/api/models/shared/StorageType.java b/src/main/java/com/airbyte/api/models/shared/StorageType.java index b706f06ae..b2817101a 100644 --- a/src/main/java/com/airbyte/api/models/shared/StorageType.java +++ b/src/main/java/com/airbyte/api/models/shared/StorageType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum StorageType { S3("S3"); @@ -20,4 +21,13 @@ private StorageType(String value) { public String value() { return value; } + + public static Optional<StorageType> fromValue(String value) { + for (StorageType o: StorageType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Strategies.java b/src/main/java/com/airbyte/api/models/shared/Strategies.java index ecd0903e2..aa0d7658a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Strategies.java +++ b/src/main/java/com/airbyte/api/models/shared/Strategies.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Strategies { DESKTOP("desktop"), MOBILE("mobile"); @@ -21,4 +22,13 @@ private Strategies(String value) { public String value() { return value; } + + public static Optional<Strategies> fromValue(String value) { + for (Strategies o: Strategies.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Strava.java b/src/main/java/com/airbyte/api/models/shared/Strava.java index 559796e91..430f35d60 100644 --- a/src/main/java/com/airbyte/api/models/shared/Strava.java +++ b/src/main/java/com/airbyte/api/models/shared/Strava.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Strava { STRAVA("strava"); @@ -20,4 +21,13 @@ private Strava(String value) { public String value() { return value; } + + public static Optional<Strava> fromValue(String value) { + for (Strava o: Strava.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java b/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java index 0e890f305..3ce33b5ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * StreamConfiguration - Configurations for a single stream. */ diff --git a/src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java b/src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java index 1c2299104..931085552 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * StreamConfigurations - A list of configured stream options for a connection. */ diff --git a/src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java b/src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java new file mode 100644 index 000000000..d66e1c4d9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +/** + * StreamConfigurationsInput - A list of configured stream options for a connection. + */ + +public class StreamConfigurationsInput { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("streams") + private Optional<? extends List<StreamConfiguration>> streams; + + @JsonCreator + public StreamConfigurationsInput( + @JsonProperty("streams") Optional<? extends List<StreamConfiguration>> streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = streams; + } + + public StreamConfigurationsInput() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<List<StreamConfiguration>> streams() { + return (Optional<List<StreamConfiguration>>) streams; + } + + public final static Builder builder() { + return new Builder(); + } + + public StreamConfigurationsInput withStreams(List<StreamConfiguration> streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = Optional.ofNullable(streams); + return this; + } + + public StreamConfigurationsInput withStreams(Optional<? extends List<StreamConfiguration>> streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = streams; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StreamConfigurationsInput other = (StreamConfigurationsInput) o; + return + Objects.deepEquals(this.streams, other.streams); + } + + @Override + public int hashCode() { + return Objects.hash( + streams); + } + + @Override + public String toString() { + return Utils.toString(StreamConfigurationsInput.class, + "streams", streams); + } + + public final static class Builder { + + private Optional<? extends List<StreamConfiguration>> streams = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder streams(List<StreamConfiguration> streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = Optional.ofNullable(streams); + return this; + } + + public Builder streams(Optional<? extends List<StreamConfiguration>> streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = streams; + return this; + } + + public StreamConfigurationsInput build() { + return new StreamConfigurationsInput( + streams); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java b/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java index df4857a5c..73ad262b2 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum StreamMapperType { HASHING("hashing"), FIELD_RENAMING("field-renaming"), @@ -23,4 +24,13 @@ private StreamMapperType(String value) { public String value() { return value; } + + public static Optional<StreamMapperType> fromValue(String value) { + for (StreamMapperType o: StreamMapperType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/StreamProperties.java b/src/main/java/com/airbyte/api/models/shared/StreamProperties.java index e44a4fc03..fa6b604ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamProperties.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamProperties.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +17,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * StreamProperties - The stream properties associated with a connection. */ diff --git a/src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java b/src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java index 0bf08687a..e7107b480 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class StreamsCriteria { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/StringFilter.java b/src/main/java/com/airbyte/api/models/shared/StringFilter.java index b591d00ed..aa492e608 100644 --- a/src/main/java/com/airbyte/api/models/shared/StringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/StringFilter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class StringFilter { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/Stripe.java b/src/main/java/com/airbyte/api/models/shared/Stripe.java index cb8800203..626d258f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Stripe.java +++ b/src/main/java/com/airbyte/api/models/shared/Stripe.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Stripe { STRIPE("stripe"); @@ -20,4 +21,13 @@ private Stripe(String value) { public String value() { return value; } + + public static Optional<Stripe> fromValue(String value) { + for (Stripe o: Stripe.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SurveyMonkeyAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SurveyMonkeyAuthorizationMethod.java index d80cdfacc..ab55ad251 100644 --- a/src/main/java/com/airbyte/api/models/shared/SurveyMonkeyAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SurveyMonkeyAuthorizationMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -17,7 +16,6 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; - /** * SurveyMonkeyAuthorizationMethod - The authorization method to use to retrieve data from SurveyMonkey */ diff --git a/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java b/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java index 15a1f0fd2..bb160a91b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java +++ b/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum SurveySparrow { SURVEY_SPARROW("survey-sparrow"); @@ -20,4 +21,13 @@ private SurveySparrow(String value) { public String value() { return value; } + + public static Optional<SurveySparrow> fromValue(String value) { + for (SurveySparrow o: SurveySparrow.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Surveymonkey.java b/src/main/java/com/airbyte/api/models/shared/Surveymonkey.java index e4c875c00..741d2dcbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Surveymonkey.java +++ b/src/main/java/com/airbyte/api/models/shared/Surveymonkey.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Surveymonkey { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/SurveymonkeyCredentials.java b/src/main/java/com/airbyte/api/models/shared/SurveymonkeyCredentials.java index 18fa3ec38..ae0ae6cf6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SurveymonkeyCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SurveymonkeyCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class SurveymonkeyCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Survicate.java b/src/main/java/com/airbyte/api/models/shared/Survicate.java index 35e7e50d5..cb9d9de93 100644 --- a/src/main/java/com/airbyte/api/models/shared/Survicate.java +++ b/src/main/java/com/airbyte/api/models/shared/Survicate.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Survicate { SURVICATE("survicate"); @@ -20,4 +21,13 @@ private Survicate(String value) { public String value() { return value; } + + public static Optional<Survicate> fromValue(String value) { + for (Survicate o: Survicate.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java b/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java index 2287c653b..c1a8bfee4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java +++ b/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * SwipeUpAttributionWindow - Attribution window for swipe ups. */ @@ -25,4 +26,13 @@ private SwipeUpAttributionWindow(String value) { public String value() { return value; } + + public static Optional<SwipeUpAttributionWindow> fromValue(String value) { + for (SwipeUpAttributionWindow o: SwipeUpAttributionWindow.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SystemIDSID.java b/src/main/java/com/airbyte/api/models/shared/SystemIDSID.java index ca8c298e1..ce2730f6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SystemIDSID.java +++ b/src/main/java/com/airbyte/api/models/shared/SystemIDSID.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * SystemIDSID - Use SID (Oracle System Identifier) */ diff --git a/src/main/java/com/airbyte/api/models/shared/Systeme.java b/src/main/java/com/airbyte/api/models/shared/Systeme.java index 8c908cd38..517138cb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Systeme.java +++ b/src/main/java/com/airbyte/api/models/shared/Systeme.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Systeme { SYSTEME("systeme"); @@ -20,4 +21,13 @@ private Systeme(String value) { public String value() { return value; } + + public static Optional<Systeme> fromValue(String value) { + for (Systeme o: Systeme.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TLSEncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/TLSEncryptedVerifyCertificate.java index 36c116e5f..e4c619cb5 100644 --- a/src/main/java/com/airbyte/api/models/shared/TLSEncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/TLSEncryptedVerifyCertificate.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * TLSEncryptedVerifyCertificate - Verify and use the certificate provided by the server. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Taboola.java b/src/main/java/com/airbyte/api/models/shared/Taboola.java index 96d01aea9..52a3923f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Taboola.java +++ b/src/main/java/com/airbyte/api/models/shared/Taboola.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Taboola { TABOOLA("taboola"); @@ -20,4 +21,13 @@ private Taboola(String value) { public String value() { return value; } + + public static Optional<Taboola> fromValue(String value) { + for (Taboola o: Taboola.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Tag.java b/src/main/java/com/airbyte/api/models/shared/Tag.java new file mode 100644 index 000000000..460c1ef95 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Tag.java @@ -0,0 +1,177 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +/** + * Tag - A tag that can be associated with a connection. Useful for grouping and organizing connections in a workspace. + */ + +public class Tag { + + @JsonProperty("color") + private String color; + + @JsonProperty("name") + private String name; + + @JsonProperty("tagId") + private String tagId; + + @JsonProperty("workspaceId") + private String workspaceId; + + @JsonCreator + public Tag( + @JsonProperty("color") String color, + @JsonProperty("name") String name, + @JsonProperty("tagId") String tagId, + @JsonProperty("workspaceId") String workspaceId) { + Utils.checkNotNull(color, "color"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(tagId, "tagId"); + Utils.checkNotNull(workspaceId, "workspaceId"); + this.color = color; + this.name = name; + this.tagId = tagId; + this.workspaceId = workspaceId; + } + + @JsonIgnore + public String color() { + return color; + } + + @JsonIgnore + public String name() { + return name; + } + + @JsonIgnore + public String tagId() { + return tagId; + } + + @JsonIgnore + public String workspaceId() { + return workspaceId; + } + + public final static Builder builder() { + return new Builder(); + } + + public Tag withColor(String color) { + Utils.checkNotNull(color, "color"); + this.color = color; + return this; + } + + public Tag withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public Tag withTagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + public Tag withWorkspaceId(String workspaceId) { + Utils.checkNotNull(workspaceId, "workspaceId"); + this.workspaceId = workspaceId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Tag other = (Tag) o; + return + Objects.deepEquals(this.color, other.color) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.tagId, other.tagId) && + Objects.deepEquals(this.workspaceId, other.workspaceId); + } + + @Override + public int hashCode() { + return Objects.hash( + color, + name, + tagId, + workspaceId); + } + + @Override + public String toString() { + return Utils.toString(Tag.class, + "color", color, + "name", name, + "tagId", tagId, + "workspaceId", workspaceId); + } + + public final static class Builder { + + private String color; + + private String name; + + private String tagId; + + private String workspaceId; + + private Builder() { + // force use of static builder() method + } + + public Builder color(String color) { + Utils.checkNotNull(color, "color"); + this.color = color; + return this; + } + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public Builder tagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + public Builder workspaceId(String workspaceId) { + Utils.checkNotNull(workspaceId, "workspaceId"); + this.workspaceId = workspaceId; + return this; + } + + public Tag build() { + return new Tag( + color, + name, + tagId, + workspaceId); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/TagCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/TagCreateRequest.java new file mode 100644 index 000000000..4d4d233ff --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/TagCreateRequest.java @@ -0,0 +1,145 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class TagCreateRequest { + + @JsonProperty("color") + private String color; + + @JsonProperty("name") + private String name; + + @JsonProperty("workspaceId") + private String workspaceId; + + @JsonCreator + public TagCreateRequest( + @JsonProperty("color") String color, + @JsonProperty("name") String name, + @JsonProperty("workspaceId") String workspaceId) { + Utils.checkNotNull(color, "color"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(workspaceId, "workspaceId"); + this.color = color; + this.name = name; + this.workspaceId = workspaceId; + } + + @JsonIgnore + public String color() { + return color; + } + + @JsonIgnore + public String name() { + return name; + } + + @JsonIgnore + public String workspaceId() { + return workspaceId; + } + + public final static Builder builder() { + return new Builder(); + } + + public TagCreateRequest withColor(String color) { + Utils.checkNotNull(color, "color"); + this.color = color; + return this; + } + + public TagCreateRequest withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public TagCreateRequest withWorkspaceId(String workspaceId) { + Utils.checkNotNull(workspaceId, "workspaceId"); + this.workspaceId = workspaceId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagCreateRequest other = (TagCreateRequest) o; + return + Objects.deepEquals(this.color, other.color) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.workspaceId, other.workspaceId); + } + + @Override + public int hashCode() { + return Objects.hash( + color, + name, + workspaceId); + } + + @Override + public String toString() { + return Utils.toString(TagCreateRequest.class, + "color", color, + "name", name, + "workspaceId", workspaceId); + } + + public final static class Builder { + + private String color; + + private String name; + + private String workspaceId; + + private Builder() { + // force use of static builder() method + } + + public Builder color(String color) { + Utils.checkNotNull(color, "color"); + this.color = color; + return this; + } + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public Builder workspaceId(String workspaceId) { + Utils.checkNotNull(workspaceId, "workspaceId"); + this.workspaceId = workspaceId; + return this; + } + + public TagCreateRequest build() { + return new TagCreateRequest( + color, + name, + workspaceId); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/TagPatchRequest.java b/src/main/java/com/airbyte/api/models/shared/TagPatchRequest.java new file mode 100644 index 000000000..03b7bebdc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/TagPatchRequest.java @@ -0,0 +1,116 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + +public class TagPatchRequest { + + @JsonProperty("color") + private String color; + + @JsonProperty("name") + private String name; + + @JsonCreator + public TagPatchRequest( + @JsonProperty("color") String color, + @JsonProperty("name") String name) { + Utils.checkNotNull(color, "color"); + Utils.checkNotNull(name, "name"); + this.color = color; + this.name = name; + } + + @JsonIgnore + public String color() { + return color; + } + + @JsonIgnore + public String name() { + return name; + } + + public final static Builder builder() { + return new Builder(); + } + + public TagPatchRequest withColor(String color) { + Utils.checkNotNull(color, "color"); + this.color = color; + return this; + } + + public TagPatchRequest 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; + } + TagPatchRequest other = (TagPatchRequest) o; + return + Objects.deepEquals(this.color, other.color) && + Objects.deepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Objects.hash( + color, + name); + } + + @Override + public String toString() { + return Utils.toString(TagPatchRequest.class, + "color", color, + "name", name); + } + + public final static class Builder { + + private String color; + + private String name; + + private Builder() { + // force use of static builder() method + } + + public Builder color(String color) { + Utils.checkNotNull(color, "color"); + this.color = color; + return this; + } + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public TagPatchRequest build() { + return new TagPatchRequest( + color, + name); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/TagResponse.java b/src/main/java/com/airbyte/api/models/shared/TagResponse.java new file mode 100644 index 000000000..fd187c12c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/TagResponse.java @@ -0,0 +1,189 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +/** + * TagResponse - Provides details of a single tag. + */ + +public class TagResponse { + + /** + * A hexadecimal color value + */ + @JsonProperty("color") + private String color; + + @JsonProperty("name") + private String name; + + @JsonProperty("tagId") + private String tagId; + + @JsonProperty("workspaceId") + private String workspaceId; + + @JsonCreator + public TagResponse( + @JsonProperty("color") String color, + @JsonProperty("name") String name, + @JsonProperty("tagId") String tagId, + @JsonProperty("workspaceId") String workspaceId) { + Utils.checkNotNull(color, "color"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(tagId, "tagId"); + Utils.checkNotNull(workspaceId, "workspaceId"); + this.color = color; + this.name = name; + this.tagId = tagId; + this.workspaceId = workspaceId; + } + + /** + * A hexadecimal color value + */ + @JsonIgnore + public String color() { + return color; + } + + @JsonIgnore + public String name() { + return name; + } + + @JsonIgnore + public String tagId() { + return tagId; + } + + @JsonIgnore + public String workspaceId() { + return workspaceId; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * A hexadecimal color value + */ + public TagResponse withColor(String color) { + Utils.checkNotNull(color, "color"); + this.color = color; + return this; + } + + public TagResponse withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public TagResponse withTagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + public TagResponse withWorkspaceId(String workspaceId) { + Utils.checkNotNull(workspaceId, "workspaceId"); + this.workspaceId = workspaceId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagResponse other = (TagResponse) o; + return + Objects.deepEquals(this.color, other.color) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.tagId, other.tagId) && + Objects.deepEquals(this.workspaceId, other.workspaceId); + } + + @Override + public int hashCode() { + return Objects.hash( + color, + name, + tagId, + workspaceId); + } + + @Override + public String toString() { + return Utils.toString(TagResponse.class, + "color", color, + "name", name, + "tagId", tagId, + "workspaceId", workspaceId); + } + + public final static class Builder { + + private String color; + + private String name; + + private String tagId; + + private String workspaceId; + + private Builder() { + // force use of static builder() method + } + + /** + * A hexadecimal color value + */ + public Builder color(String color) { + Utils.checkNotNull(color, "color"); + this.color = color; + return this; + } + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public Builder tagId(String tagId) { + Utils.checkNotNull(tagId, "tagId"); + this.tagId = tagId; + return this; + } + + public Builder workspaceId(String workspaceId) { + Utils.checkNotNull(workspaceId, "workspaceId"); + this.workspaceId = workspaceId; + return this; + } + + public TagResponse build() { + return new TagResponse( + color, + name, + tagId, + workspaceId); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/TagsResponse.java b/src/main/java/com/airbyte/api/models/shared/TagsResponse.java new file mode 100644 index 000000000..f3505b247 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/TagsResponse.java @@ -0,0 +1,88 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +public class TagsResponse { + + @JsonProperty("data") + private List<TagResponse> data; + + @JsonCreator + public TagsResponse( + @JsonProperty("data") List<TagResponse> data) { + Utils.checkNotNull(data, "data"); + this.data = data; + } + + @JsonIgnore + public List<TagResponse> data() { + return data; + } + + public final static Builder builder() { + return new Builder(); + } + + public TagsResponse withData(List<TagResponse> 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; + } + TagsResponse other = (TagsResponse) o; + return + Objects.deepEquals(this.data, other.data); + } + + @Override + public int hashCode() { + return Objects.hash( + data); + } + + @Override + public String toString() { + return Utils.toString(TagsResponse.class, + "data", data); + } + + public final static class Builder { + + private List<TagResponse> data; + + private Builder() { + // force use of static builder() method + } + + public Builder data(List<TagResponse> data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public TagsResponse build() { + return new TagsResponse( + data); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/TargetsType.java b/src/main/java/com/airbyte/api/models/shared/TargetsType.java index 72d2100fd..bba33dcee 100644 --- a/src/main/java/com/airbyte/api/models/shared/TargetsType.java +++ b/src/main/java/com/airbyte/api/models/shared/TargetsType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum TargetsType { WSN_STATION_NUMBERS("WSN station numbers"), CALIFORNIA_ZIP_CODES("California zip codes"), @@ -23,4 +24,13 @@ private TargetsType(String value) { public String value() { return value; } + + public static Optional<TargetsType> fromValue(String value) { + for (TargetsType o: TargetsType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Teamtailor.java b/src/main/java/com/airbyte/api/models/shared/Teamtailor.java index 65b212ddb..43c691185 100644 --- a/src/main/java/com/airbyte/api/models/shared/Teamtailor.java +++ b/src/main/java/com/airbyte/api/models/shared/Teamtailor.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Teamtailor { TEAMTAILOR("teamtailor"); @@ -20,4 +21,13 @@ private Teamtailor(String value) { public String value() { return value; } + + public static Optional<Teamtailor> fromValue(String value) { + for (Teamtailor o: Teamtailor.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Teamwork.java b/src/main/java/com/airbyte/api/models/shared/Teamwork.java index fa38f0c6c..bde553196 100644 --- a/src/main/java/com/airbyte/api/models/shared/Teamwork.java +++ b/src/main/java/com/airbyte/api/models/shared/Teamwork.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Teamwork { TEAMWORK("teamwork"); @@ -20,4 +21,13 @@ private Teamwork(String value) { public String value() { return value; } + + public static Optional<Teamwork> fromValue(String value) { + for (Teamwork o: Teamwork.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java b/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java index 8d92285db..3b68c1538 100644 --- a/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java +++ b/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * TechnicalIndicatorType - One of DEMA, EMA, SMA, WMA, RSI, TEMA, Williams, ADX */ @@ -30,4 +31,13 @@ private TechnicalIndicatorType(String value) { public String value() { return value; } + + public static Optional<TechnicalIndicatorType> fromValue(String value) { + for (TechnicalIndicatorType o: TechnicalIndicatorType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Tempo.java b/src/main/java/com/airbyte/api/models/shared/Tempo.java index aeeb6f95d..e35a5d51a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tempo.java +++ b/src/main/java/com/airbyte/api/models/shared/Tempo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Tempo { TEMPO("tempo"); @@ -20,4 +21,13 @@ private Tempo(String value) { public String value() { return value; } + + public static Optional<Tempo> fromValue(String value) { + for (Tempo o: Tempo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Teradata.java b/src/main/java/com/airbyte/api/models/shared/Teradata.java index 74b42b96d..1d6fa478a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Teradata.java +++ b/src/main/java/com/airbyte/api/models/shared/Teradata.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Teradata { TERADATA("teradata"); @@ -20,4 +21,13 @@ private Teradata(String value) { public String value() { return value; } + + public static Optional<Teradata> fromValue(String value) { + for (Teradata o: Teradata.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TestDestination.java b/src/main/java/com/airbyte/api/models/shared/TestDestination.java index afa8f4269..6bcc602ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/TestDestination.java +++ b/src/main/java/com/airbyte/api/models/shared/TestDestination.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * TestDestination - The type of destination to be used */ diff --git a/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java index 5bce42ef3..de7e97cdd 100644 --- a/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum TestDestinationType { LOGGING("LOGGING"); @@ -20,4 +21,13 @@ private TestDestinationType(String value) { public String value() { return value; } + + public static Optional<TestDestinationType> fromValue(String value) { + for (TestDestinationType o: TestDestinationType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Testrail.java b/src/main/java/com/airbyte/api/models/shared/Testrail.java index 3b54c7a23..0870ceb4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Testrail.java +++ b/src/main/java/com/airbyte/api/models/shared/Testrail.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Testrail { TESTRAIL("testrail"); @@ -20,4 +21,13 @@ private Testrail(String value) { public String value() { return value; } + + public static Optional<Testrail> fromValue(String value) { + for (Testrail o: Testrail.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TextSplitter.java b/src/main/java/com/airbyte/api/models/shared/TextSplitter.java index 46c60631d..4eec75b25 100644 --- a/src/main/java/com/airbyte/api/models/shared/TextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/TextSplitter.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * TextSplitter - Split text fields into chunks based on the specified method. */ diff --git a/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java b/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java index 88776c1f8..af3a5e33f 100644 --- a/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java +++ b/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum TheGuardianApi { THE_GUARDIAN_API("the-guardian-api"); @@ -20,4 +21,13 @@ private TheGuardianApi(String value) { public String value() { return value; } + + public static Optional<TheGuardianApi> fromValue(String value) { + for (TheGuardianApi o: TheGuardianApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TheTargetedActionResourceForTheFetch.java b/src/main/java/com/airbyte/api/models/shared/TheTargetedActionResourceForTheFetch.java new file mode 100644 index 000000000..1f9f3c8dd --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/TheTargetedActionResourceForTheFetch.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * TheTargetedActionResourceForTheFetch - Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + */ +public enum TheTargetedActionResourceForTheFetch { + GET_QUEUE_ATTRIBUTES("GetQueueAttributes"), + RECEIVE_MESSAGE("ReceiveMessage"); + + @JsonValue + private final String value; + + private TheTargetedActionResourceForTheFetch(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<TheTargetedActionResourceForTheFetch> fromValue(String value) { + for (TheTargetedActionResourceForTheFetch o: TheTargetedActionResourceForTheFetch.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Thinkific.java b/src/main/java/com/airbyte/api/models/shared/Thinkific.java index b886ac532..d3049fadd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Thinkific.java +++ b/src/main/java/com/airbyte/api/models/shared/Thinkific.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Thinkific { THINKIFIC("thinkific"); @@ -20,4 +21,13 @@ private Thinkific(String value) { public String value() { return value; } + + public static Optional<Thinkific> fromValue(String value) { + for (Thinkific o: Thinkific.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Throttled.java b/src/main/java/com/airbyte/api/models/shared/Throttled.java index 09c03bebc..50187c930 100644 --- a/src/main/java/com/airbyte/api/models/shared/Throttled.java +++ b/src/main/java/com/airbyte/api/models/shared/Throttled.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -25,7 +24,6 @@ import java.util.Objects; import java.util.Optional; - public class Throttled { @JsonIgnore diff --git a/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java b/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java index 4c1d18fca..148d17c26 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java +++ b/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Ticketmaster { TICKETMASTER("ticketmaster"); @@ -20,4 +21,13 @@ private Ticketmaster(String value) { public String value() { return value; } + + public static Optional<Ticketmaster> fromValue(String value) { + for (Ticketmaster o: Ticketmaster.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Tickettailor.java b/src/main/java/com/airbyte/api/models/shared/Tickettailor.java index 1962623e7..c1f4d4674 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tickettailor.java +++ b/src/main/java/com/airbyte/api/models/shared/Tickettailor.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Tickettailor { TICKETTAILOR("tickettailor"); @@ -20,4 +21,13 @@ private Tickettailor(String value) { public String value() { return value; } + + public static Optional<Tickettailor> fromValue(String value) { + for (Tickettailor o: Tickettailor.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TiktokMarketing.java b/src/main/java/com/airbyte/api/models/shared/TiktokMarketing.java index 0c457a4dd..d947d4fc4 100644 --- a/src/main/java/com/airbyte/api/models/shared/TiktokMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/TiktokMarketing.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class TiktokMarketing { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/TiktokMarketingCredentials.java b/src/main/java/com/airbyte/api/models/shared/TiktokMarketingCredentials.java index eaf30e0c1..762ddb15e 100644 --- a/src/main/java/com/airbyte/api/models/shared/TiktokMarketingCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/TiktokMarketingCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class TiktokMarketingCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java b/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java index 5f805d5d1..90758e1e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * TimeAggregates - Size of the time */ @@ -29,4 +30,13 @@ private TimeAggregates(String value) { public String value() { return value; } + + public static Optional<TimeAggregates> fromValue(String value) { + for (TimeAggregates o: TimeAggregates.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeFrame.java b/src/main/java/com/airbyte/api/models/shared/TimeFrame.java index 5146f00c0..3931e9512 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeFrame.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeFrame.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * TimeFrame - For example 1min, 5min, 15min, 30min, 1hour, 4hour */ @@ -28,4 +29,13 @@ private TimeFrame(String value) { public String value() { return value; } + + public static Optional<TimeFrame> fromValue(String value) { + for (TimeFrame o: TimeFrame.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java b/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java index a38b6aa5c..9a05e5d32 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * TimeGranularity - Choose how to group the data in your report by time. The options are:<br>- 'ALL': A single result summarizing the entire time range.<br>- 'DAILY': Group results by each day.<br>- 'MONTHLY': Group results by each month.<br>- 'YEARLY': Group results by each year.<br>Selecting a time grouping helps you analyze trends and patterns over different time periods. */ @@ -26,4 +27,13 @@ private TimeGranularity(String value) { public String value() { return value; } + + public static Optional<TimeGranularity> fromValue(String value) { + for (TimeGranularity o: TimeGranularity.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java b/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java index 24933d777..379c1fffe 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * TimeGranularityType - Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" */ @@ -24,4 +25,13 @@ private TimeGranularityType(String value) { public String value() { return value; } + + public static Optional<TimeGranularityType> fromValue(String value) { + for (TimeGranularityType o: TimeGranularityType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeInterval.java b/src/main/java/com/airbyte/api/models/shared/TimeInterval.java index cc0afe89f..5d8d1a11e 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeInterval.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum TimeInterval { DAILY("daily"), ONEMIN("1min"), @@ -26,4 +27,13 @@ private TimeInterval(String value) { public String value() { return value; } + + public static Optional<TimeInterval> fromValue(String value) { + for (TimeInterval o: TimeInterval.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TimePeriod.java b/src/main/java/com/airbyte/api/models/shared/TimePeriod.java index bb1b26c26..2c0ce0da0 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimePeriod.java +++ b/src/main/java/com/airbyte/api/models/shared/TimePeriod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * TimePeriod - Time Period for cash flow stmts */ @@ -24,4 +25,13 @@ private TimePeriod(String value) { public String value() { return value; } + + public static Optional<TimePeriod> fromValue(String value) { + for (TimePeriod o: TimePeriod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Timely.java b/src/main/java/com/airbyte/api/models/shared/Timely.java index 9e46062ca..e80fcb245 100644 --- a/src/main/java/com/airbyte/api/models/shared/Timely.java +++ b/src/main/java/com/airbyte/api/models/shared/Timely.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Timely { TIMELY("timely"); @@ -20,4 +21,13 @@ private Timely(String value) { public String value() { return value; } + + public static Optional<Timely> fromValue(String value) { + for (Timely o: Timely.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Timeplus.java b/src/main/java/com/airbyte/api/models/shared/Timeplus.java index 80da8f2ad..7acfc2283 100644 --- a/src/main/java/com/airbyte/api/models/shared/Timeplus.java +++ b/src/main/java/com/airbyte/api/models/shared/Timeplus.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Timeplus { TIMEPLUS("timeplus"); @@ -20,4 +21,13 @@ private Timeplus(String value) { public String value() { return value; } + + public static Optional<Timeplus> fromValue(String value) { + for (Timeplus o: Timeplus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Tinyemail.java b/src/main/java/com/airbyte/api/models/shared/Tinyemail.java index de4e37f57..c6edc939d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tinyemail.java +++ b/src/main/java/com/airbyte/api/models/shared/Tinyemail.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Tinyemail { TINYEMAIL("tinyemail"); @@ -20,4 +21,13 @@ private Tinyemail(String value) { public String value() { return value; } + + public static Optional<Tinyemail> fromValue(String value) { + for (Tinyemail o: Tinyemail.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Tmdb.java b/src/main/java/com/airbyte/api/models/shared/Tmdb.java new file mode 100644 index 000000000..3c04869db --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Tmdb.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Tmdb { + TMDB("tmdb"); + + @JsonValue + private final String value; + + private Tmdb(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Tmdb> fromValue(String value) { + for (Tmdb o: Tmdb.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/ToValue.java b/src/main/java/com/airbyte/api/models/shared/ToValue.java index d8781a621..983123728 100644 --- a/src/main/java/com/airbyte/api/models/shared/ToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/ToValue.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = ToValue._Deserializer.class) public class ToValue { diff --git a/src/main/java/com/airbyte/api/models/shared/Todoist.java b/src/main/java/com/airbyte/api/models/shared/Todoist.java index 4ab571783..2392b748a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Todoist.java +++ b/src/main/java/com/airbyte/api/models/shared/Todoist.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Todoist { TODOIST("todoist"); @@ -20,4 +21,13 @@ private Todoist(String value) { public String value() { return value; } + + public static Optional<Todoist> fromValue(String value) { + for (Todoist o: Todoist.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Toggl.java b/src/main/java/com/airbyte/api/models/shared/Toggl.java new file mode 100644 index 000000000..f877306f5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Toggl.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Toggl { + TOGGL("toggl"); + + @JsonValue + private final String value; + + private Toggl(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Toggl> fromValue(String value) { + for (Toggl o: Toggl.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java b/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java index d7998d23d..8749f8462 100644 --- a/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java +++ b/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * TopHeadlinesTopic - This parameter allows you to change the category for the request. */ @@ -31,4 +32,13 @@ private TopHeadlinesTopic(String value) { public String value() { return value; } + + public static Optional<TopHeadlinesTopic> fromValue(String value) { + for (TopHeadlinesTopic o: TopHeadlinesTopic.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TrackPms.java b/src/main/java/com/airbyte/api/models/shared/TrackPms.java index 56721a1b6..88ed7277f 100644 --- a/src/main/java/com/airbyte/api/models/shared/TrackPms.java +++ b/src/main/java/com/airbyte/api/models/shared/TrackPms.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum TrackPms { TRACK_PMS("track-pms"); @@ -20,4 +21,13 @@ private TrackPms(String value) { public String value() { return value; } + + public static Optional<TrackPms> fromValue(String value) { + for (TrackPms o: TrackPms.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java b/src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java index f01ffda3e..e65600407 100644 --- a/src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java +++ b/src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * TransformationQueryRunType - Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type <a href="https://cloud.google.com/bigquery/docs/running-queries#queries">here</a>. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries <a href="https://cloud.google.com/bigquery/docs/running-queries#batch">here</a>. The default "interactive" value is used if not set explicitly. */ @@ -24,4 +25,13 @@ private TransformationQueryRunType(String value) { public String value() { return value; } + + public static Optional<TransformationQueryRunType> fromValue(String value) { + for (TransformationQueryRunType o: TransformationQueryRunType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Trello.java b/src/main/java/com/airbyte/api/models/shared/Trello.java index 8ec9bade7..aeff4afe1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Trello.java +++ b/src/main/java/com/airbyte/api/models/shared/Trello.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Trello { TRELLO("trello"); @@ -20,4 +21,13 @@ private Trello(String value) { public String value() { return value; } + + public static Optional<Trello> fromValue(String value) { + for (Trello o: Trello.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Tremendous.java b/src/main/java/com/airbyte/api/models/shared/Tremendous.java index 926309978..f9c19eca2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tremendous.java +++ b/src/main/java/com/airbyte/api/models/shared/Tremendous.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Tremendous { TREMENDOUS("tremendous"); @@ -20,4 +21,13 @@ private Tremendous(String value) { public String value() { return value; } + + public static Optional<Tremendous> fromValue(String value) { + for (Tremendous o: Tremendous.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Trustpilot.java b/src/main/java/com/airbyte/api/models/shared/Trustpilot.java index 09f00ed9c..50ea251f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Trustpilot.java +++ b/src/main/java/com/airbyte/api/models/shared/Trustpilot.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Trustpilot { TRUSTPILOT("trustpilot"); @@ -20,4 +21,13 @@ private Trustpilot(String value) { public String value() { return value; } + + public static Optional<Trustpilot> fromValue(String value) { + for (Trustpilot o: Trustpilot.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java index b9c4ce0a8..e2c31de29 100644 --- a/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * TunnelMethod - No ssh tunnel needed to connect to database */ @@ -23,4 +24,13 @@ private TunnelMethod(String value) { public String value() { return value; } + + public static Optional<TunnelMethod> fromValue(String value) { + for (TunnelMethod o: TunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java b/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java index 82352dc62..941b9d1e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java +++ b/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum TvmazeSchedule { TVMAZE_SCHEDULE("tvmaze-schedule"); @@ -20,4 +21,13 @@ private TvmazeSchedule(String value) { public String value() { return value; } + + public static Optional<TvmazeSchedule> fromValue(String value) { + for (TvmazeSchedule o: TvmazeSchedule.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TwelveData.java b/src/main/java/com/airbyte/api/models/shared/TwelveData.java index eefe0d3b9..098a64e2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/TwelveData.java +++ b/src/main/java/com/airbyte/api/models/shared/TwelveData.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum TwelveData { TWELVE_DATA("twelve-data"); @@ -20,4 +21,13 @@ private TwelveData(String value) { public String value() { return value; } + + public static Optional<TwelveData> fromValue(String value) { + for (TwelveData o: TwelveData.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Twilio.java b/src/main/java/com/airbyte/api/models/shared/Twilio.java index de8162407..6ebe4d3b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Twilio.java +++ b/src/main/java/com/airbyte/api/models/shared/Twilio.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Twilio { TWILIO("twilio"); @@ -20,4 +21,13 @@ private Twilio(String value) { public String value() { return value; } + + public static Optional<Twilio> fromValue(String value) { + for (Twilio o: Twilio.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java b/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java index df8c66867..39cd6f4de 100644 --- a/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java +++ b/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum TwilioTaskrouter { TWILIO_TASKROUTER("twilio-taskrouter"); @@ -20,4 +21,13 @@ private TwilioTaskrouter(String value) { public String value() { return value; } + + public static Optional<TwilioTaskrouter> fromValue(String value) { + for (TwilioTaskrouter o: TwilioTaskrouter.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Twitter.java b/src/main/java/com/airbyte/api/models/shared/Twitter.java index c59aa67e2..ad1245dd0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Twitter.java +++ b/src/main/java/com/airbyte/api/models/shared/Twitter.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Twitter { TWITTER("twitter"); @@ -20,4 +21,13 @@ private Twitter(String value) { public String value() { return value; } + + public static Optional<Twitter> fromValue(String value) { + for (Twitter o: Twitter.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TyntecSms.java b/src/main/java/com/airbyte/api/models/shared/TyntecSms.java new file mode 100644 index 000000000..60841be8b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/TyntecSms.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum TyntecSms { + TYNTEC_SMS("tyntec-sms"); + + @JsonValue + private final String value; + + private TyntecSms(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<TyntecSms> fromValue(String value) { + for (TyntecSms o: TyntecSms.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Typeform.java b/src/main/java/com/airbyte/api/models/shared/Typeform.java index fdaaa673e..2381f8fa0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Typeform.java +++ b/src/main/java/com/airbyte/api/models/shared/Typeform.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class Typeform { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java b/src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java index f2dc085e8..18938a718 100644 --- a/src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class TypeformCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Typesense.java b/src/main/java/com/airbyte/api/models/shared/Typesense.java index b4d438c2f..00e85cbe3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Typesense.java +++ b/src/main/java/com/airbyte/api/models/shared/Typesense.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Typesense { TYPESENSE("typesense"); @@ -20,4 +21,13 @@ private Typesense(String value) { public String value() { return value; } + + public static Optional<Typesense> fromValue(String value) { + for (Typesense o: Typesense.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/URLRegion.java b/src/main/java/com/airbyte/api/models/shared/URLRegion.java index ffee21422..7529ca94d 100644 --- a/src/main/java/com/airbyte/api/models/shared/URLRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/URLRegion.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * URLRegion - The url region given at time of registration */ @@ -25,4 +26,13 @@ private URLRegion(String value) { public String value() { return value; } + + public static Optional<URLRegion> fromValue(String value) { + for (URLRegion o: URLRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Ubidots.java b/src/main/java/com/airbyte/api/models/shared/Ubidots.java index 3baf25d6e..fba99a8dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ubidots.java +++ b/src/main/java/com/airbyte/api/models/shared/Ubidots.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Ubidots { UBIDOTS("ubidots"); @@ -20,4 +21,13 @@ private Ubidots(String value) { public String value() { return value; } + + public static Optional<Ubidots> fromValue(String value) { + for (Ubidots o: Ubidots.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Unencrypted.java b/src/main/java/com/airbyte/api/models/shared/Unencrypted.java index 133026ee7..efca64402 100644 --- a/src/main/java/com/airbyte/api/models/shared/Unencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/Unencrypted.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * Unencrypted - The data transfer will not be encrypted. */ @@ -27,7 +25,7 @@ public class Unencrypted { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_method") - private Optional<? extends DestinationMssqlSslMethod> sslMethod; + private Optional<? extends DestinationMssqlSchemasSslMethodSslMethod> sslMethod; @JsonCreator public Unencrypted() { @@ -37,8 +35,8 @@ public Unencrypted() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationMssqlSslMethod> sslMethod() { - return (Optional<DestinationMssqlSslMethod>) sslMethod; + public Optional<DestinationMssqlSchemasSslMethodSslMethod> sslMethod() { + return (Optional<DestinationMssqlSchemasSslMethodSslMethod>) sslMethod; } public final static Builder builder() { @@ -81,11 +79,11 @@ public Unencrypted build() { ); } - private static final LazySingletonValue<Optional<? extends DestinationMssqlSslMethod>> _SINGLETON_VALUE_SslMethod = + private static final LazySingletonValue<Optional<? extends DestinationMssqlSchemasSslMethodSslMethod>> _SINGLETON_VALUE_SslMethod = new LazySingletonValue<>( "ssl_method", "\"unencrypted\"", - new TypeReference<Optional<? extends DestinationMssqlSslMethod>>() {}); + new TypeReference<Optional<? extends DestinationMssqlSchemasSslMethodSslMethod>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java b/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java index 2a0c1d8d0..1901f8246 100644 --- a/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java +++ b/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum UnitOfMeasure { E("E"), M("M"); @@ -21,4 +22,13 @@ private UnitOfMeasure(String value) { public String value() { return value; } + + public static Optional<UnitOfMeasure> fromValue(String value) { + for (UnitOfMeasure o: UnitOfMeasure.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Units.java b/src/main/java/com/airbyte/api/models/shared/Units.java index eb8db40c7..2c6b571a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Units.java +++ b/src/main/java/com/airbyte/api/models/shared/Units.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * Units - Units of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default. */ @@ -25,4 +26,13 @@ private Units(String value) { public String value() { return value; } + + public static Optional<Units> fromValue(String value) { + for (Units o: Units.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Unleash.java b/src/main/java/com/airbyte/api/models/shared/Unleash.java index 5741db0fe..27d2edca2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Unleash.java +++ b/src/main/java/com/airbyte/api/models/shared/Unleash.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Unleash { UNLEASH("unleash"); @@ -20,4 +21,13 @@ private Unleash(String value) { public String value() { return value; } + + public static Optional<Unleash> fromValue(String value) { + for (Unleash o: Unleash.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java index 1a6ccaf85..f8a588cb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * UnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. */ diff --git a/src/main/java/com/airbyte/api/models/shared/UpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/UpdateMethod.java index ad19eb1aa..04cb6cf13 100644 --- a/src/main/java/com/airbyte/api/models/shared/UpdateMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/UpdateMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * UpdateMethod - Configures how data is extracted from the database. */ diff --git a/src/main/java/com/airbyte/api/models/shared/UploadingMethod.java b/src/main/java/com/airbyte/api/models/shared/UploadingMethod.java index 4dc30686f..5f5febb15 100644 --- a/src/main/java/com/airbyte/api/models/shared/UploadingMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/UploadingMethod.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -17,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; - /** * UploadingMethod - The way data will be uploaded to Redshift. */ diff --git a/src/main/java/com/airbyte/api/models/shared/Uppromote.java b/src/main/java/com/airbyte/api/models/shared/Uppromote.java index e6dfc8b4d..c470c933a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Uppromote.java +++ b/src/main/java/com/airbyte/api/models/shared/Uppromote.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Uppromote { UPPROMOTE("uppromote"); @@ -20,4 +21,13 @@ private Uppromote(String value) { public String value() { return value; } + + public static Optional<Uppromote> fromValue(String value) { + for (Uppromote o: Uppromote.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/UrlBase.java b/src/main/java/com/airbyte/api/models/shared/UrlBase.java index b05114e39..d7ceeb7a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/UrlBase.java +++ b/src/main/java/com/airbyte/api/models/shared/UrlBase.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum UrlBase { HTTPS_EU_API_SURVEYSPARROW_COM_V3("https://eu-api.surveysparrow.com/v3"); @@ -20,4 +21,13 @@ private UrlBase(String value) { public String value() { return value; } + + public static Optional<UrlBase> fromValue(String value) { + for (UrlBase o: UrlBase.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/UsCensus.java b/src/main/java/com/airbyte/api/models/shared/UsCensus.java index 8a122cb28..5f1df83d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsCensus.java +++ b/src/main/java/com/airbyte/api/models/shared/UsCensus.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum UsCensus { US_CENSUS("us-census"); @@ -20,4 +21,13 @@ private UsCensus(String value) { public String value() { return value; } + + public static Optional<UsCensus> fromValue(String value) { + for (UsCensus o: UsCensus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/UserProvided.java b/src/main/java/com/airbyte/api/models/shared/UserProvided.java index ee6347773..eee3cbb5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/UserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/UserProvided.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class UserProvided { /** diff --git a/src/main/java/com/airbyte/api/models/shared/UserResponse.java b/src/main/java/com/airbyte/api/models/shared/UserResponse.java index dff38328e..a29e17bea 100644 --- a/src/main/java/com/airbyte/api/models/shared/UserResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/UserResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * UserResponse - Provides details of a single user in an organization. */ diff --git a/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java b/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java index 23684e649..a2a1d42ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.Objects; import java.util.Optional; - public class UsernameAndPassword { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/UsernamePassword.java b/src/main/java/com/airbyte/api/models/shared/UsernamePassword.java index 63e9dd466..9fcd7ca49 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsernamePassword.java +++ b/src/main/java/com/airbyte/api/models/shared/UsernamePassword.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -14,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * UsernamePassword - Basic auth header with a username and password */ diff --git a/src/main/java/com/airbyte/api/models/shared/UsersResponse.java b/src/main/java/com/airbyte/api/models/shared/UsersResponse.java index bbc62bb7b..fa8587f65 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsersResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/UsersResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,7 +12,6 @@ import java.lang.String; import java.util.List; import java.util.Objects; - /** * UsersResponse - List/Array of multiple users in an organization */ diff --git a/src/main/java/com/airbyte/api/models/shared/Uservoice.java b/src/main/java/com/airbyte/api/models/shared/Uservoice.java index f1da34195..1ccb05377 100644 --- a/src/main/java/com/airbyte/api/models/shared/Uservoice.java +++ b/src/main/java/com/airbyte/api/models/shared/Uservoice.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Uservoice { USERVOICE("uservoice"); @@ -20,4 +21,13 @@ private Uservoice(String value) { public String value() { return value; } + + public static Optional<Uservoice> fromValue(String value) { + for (Uservoice o: Uservoice.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java b/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java index f54f8d15f..bd4595d2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ValidActionBreakdowns - An enumeration. */ @@ -21,6 +22,10 @@ public enum ValidActionBreakdowns { ACTION_TYPE("action_type"), ACTION_VIDEO_SOUND("action_video_sound"), ACTION_VIDEO_TYPE("action_video_type"), + CONVERSION_DESTINATION("conversion_destination"), + MATCHED_PERSONA_ID("matched_persona_id"), + MATCHED_PERSONA_NAME("matched_persona_name"), + SIGNAL_SOURCE_BUCKET("signal_source_bucket"), STANDARD_EVENT_CONTENT_TYPE("standard_event_content_type"); @JsonValue @@ -33,4 +38,13 @@ private ValidActionBreakdowns(String value) { public String value() { return value; } + + public static Optional<ValidActionBreakdowns> fromValue(String value) { + for (ValidActionBreakdowns o: ValidActionBreakdowns.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java b/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java index 388f230a1..152395e76 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ValidAdSetStatuses - An enumeration. */ @@ -29,4 +30,13 @@ private ValidAdSetStatuses(String value) { public String value() { return value; } + + public static Optional<ValidAdSetStatuses> fromValue(String value) { + for (ValidAdSetStatuses o: ValidAdSetStatuses.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java b/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java index 4a1fd2394..fbf2cb548 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ValidAdStatuses - An enumeration. */ @@ -34,4 +35,13 @@ private ValidAdStatuses(String value) { public String value() { return value; } + + public static Optional<ValidAdStatuses> fromValue(String value) { + for (ValidAdStatuses o: ValidAdStatuses.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java b/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java index 59ec0f9fd..39aef9520 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ValidBreakdowns - An enumeration. */ @@ -15,8 +16,10 @@ public enum ValidBreakdowns { AGE("age"), APP_ID("app_id"), BODY_ASSET("body_asset"), + BREAKDOWN_REPORTING_AD_ID("breakdown_reporting_ad_id"), CALL_TO_ACTION_ASSET("call_to_action_asset"), COARSE_CONVERSION_VALUE("coarse_conversion_value"), + CONVERSION_DESTINATION("conversion_destination"), COUNTRY("country"), DESCRIPTION_ASSET("description_asset"), DEVICE_PLATFORM("device_platform"), @@ -30,6 +33,7 @@ public enum ValidBreakdowns { IMAGE_ASSET("image_asset"), IMPRESSION_DEVICE("impression_device"), IS_CONVERSION_ID_MODELED("is_conversion_id_modeled"), + IS_RENDERED_AS_DELAYED_SKIP_AD("is_rendered_as_delayed_skip_ad"), LANDING_DESTINATION("landing_destination"), LINK_URL_ASSET("link_url_asset"), MARKETING_MESSAGES_BTN_NAME("marketing_messages_btn_name"), @@ -40,6 +44,7 @@ public enum ValidBreakdowns { MEDIA_FORMAT("media_format"), MEDIA_ORIGIN_URL("media_origin_url"), MEDIA_TEXT_CONTENT("media_text_content"), + MEDIA_TYPE("media_type"), MMM("mmm"), PLACE_PAGE_ID("place_page_id"), PLATFORM_POSITION("platform_position"), @@ -48,11 +53,19 @@ public enum ValidBreakdowns { PUBLISHER_PLATFORM("publisher_platform"), REDOWNLOAD("redownload"), REGION("region"), + SIGNAL_SOURCE_BUCKET("signal_source_bucket"), SKAN_CAMPAIGN_ID("skan_campaign_id"), SKAN_CONVERSION_ID("skan_conversion_id"), SKAN_VERSION("skan_version"), + SOT_ATTRIBUTION_MODEL_TYPE("sot_attribution_model_type"), + SOT_ATTRIBUTION_WINDOW("sot_attribution_window"), + SOT_CHANNEL("sot_channel"), + SOT_EVENT_TYPE("sot_event_type"), + SOT_SOURCE("sot_source"), STANDARD_EVENT_CONTENT_TYPE("standard_event_content_type"), TITLE_ASSET("title_asset"), + USER_PERSONA_ID("user_persona_id"), + USER_PERSONA_NAME("user_persona_name"), VIDEO_ASSET("video_asset"); @JsonValue @@ -65,4 +78,13 @@ private ValidBreakdowns(String value) { public String value() { return value; } + + public static Optional<ValidBreakdowns> fromValue(String value) { + for (ValidBreakdowns o: ValidBreakdowns.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java b/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java index 21b8b0597..bfa5116a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ValidCampaignStatuses - An enumeration. */ @@ -28,4 +29,13 @@ private ValidCampaignStatuses(String value) { public String value() { return value; } + + public static Optional<ValidCampaignStatuses> fromValue(String value) { + for (ValidCampaignStatuses o: ValidCampaignStatuses.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java index c6817081c..7d329900f 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ValidationPolicy - The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. */ @@ -25,4 +26,13 @@ private ValidationPolicy(String value) { public String value() { return value; } + + public static Optional<ValidationPolicy> fromValue(String value) { + for (ValidationPolicy o: ValidationPolicy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Validenums.java b/src/main/java/com/airbyte/api/models/shared/Validenums.java index c3cd5b170..10cb202e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Validenums.java +++ b/src/main/java/com/airbyte/api/models/shared/Validenums.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Validenums { SHEETCREATED_AT("sheetcreatedAt"), SHEETID("sheetid"), @@ -36,4 +37,13 @@ private Validenums(String value) { public String value() { return value; } + + public static Optional<Validenums> fromValue(String value) { + for (Validenums o: Validenums.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Value.java b/src/main/java/com/airbyte/api/models/shared/Value.java index d0cfb065b..1c066b348 100644 --- a/src/main/java/com/airbyte/api/models/shared/Value.java +++ b/src/main/java/com/airbyte/api/models/shared/Value.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.OneOfDeserializer; import com.airbyte.api.utils.TypedObject; import com.airbyte.api.utils.Utils.JsonShape; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; - @JsonDeserialize(using = Value._Deserializer.class) public class Value { diff --git a/src/main/java/com/airbyte/api/models/shared/ValueType.java b/src/main/java/com/airbyte/api/models/shared/ValueType.java index 82d07831b..cccce639c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/ValueType.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ValueType { INT64_VALUE("int64Value"); @@ -20,4 +21,13 @@ private ValueType(String value) { public String value() { return value; } + + public static Optional<ValueType> fromValue(String value) { + for (ValueType o: ValueType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Vantage.java b/src/main/java/com/airbyte/api/models/shared/Vantage.java index e06c4815a..87bacec96 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vantage.java +++ b/src/main/java/com/airbyte/api/models/shared/Vantage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Vantage { VANTAGE("vantage"); @@ -20,4 +21,13 @@ private Vantage(String value) { public String value() { return value; } + + public static Optional<Vantage> fromValue(String value) { + for (Vantage o: Vantage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Vectara.java b/src/main/java/com/airbyte/api/models/shared/Vectara.java index 1fb2e10f2..44feda0d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vectara.java +++ b/src/main/java/com/airbyte/api/models/shared/Vectara.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Vectara { VECTARA("vectara"); @@ -20,4 +21,13 @@ private Vectara(String value) { public String value() { return value; } + + public static Optional<Vectara> fromValue(String value) { + for (Vectara o: Vectara.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Veeqo.java b/src/main/java/com/airbyte/api/models/shared/Veeqo.java index c1e287787..05130b4e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Veeqo.java +++ b/src/main/java/com/airbyte/api/models/shared/Veeqo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Veeqo { VEEQO("veeqo"); @@ -20,4 +21,13 @@ private Veeqo(String value) { public String value() { return value; } + + public static Optional<Veeqo> fromValue(String value) { + for (Veeqo o: Veeqo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Vercel.java b/src/main/java/com/airbyte/api/models/shared/Vercel.java index 0c3a412f6..383f87001 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vercel.java +++ b/src/main/java/com/airbyte/api/models/shared/Vercel.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Vercel { VERCEL("vercel"); @@ -20,4 +21,13 @@ private Vercel(String value) { public String value() { return value; } + + public static Optional<Vercel> fromValue(String value) { + for (Vercel o: Vercel.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/VerifyCa.java b/src/main/java/com/airbyte/api/models/shared/VerifyCa.java index 7bf798506..f186c3d27 100644 --- a/src/main/java/com/airbyte/api/models/shared/VerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/VerifyCa.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * VerifyCa - Verify-ca SSL mode. */ @@ -40,7 +38,7 @@ public class VerifyCa { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional<? extends DestinationPostgresSchemasSSLModeSSLModesMode> mode; + private Optional<? extends DestinationPostgresSchemasSSLModeSSLModes5Mode> mode; @JsonCreator public VerifyCa( @@ -76,8 +74,8 @@ public Optional<String> clientKeyPassword() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional<DestinationPostgresSchemasSSLModeSSLModesMode> mode() { - return (Optional<DestinationPostgresSchemasSSLModeSSLModesMode>) mode; + public Optional<DestinationPostgresSchemasSSLModeSSLModes5Mode> mode() { + return (Optional<DestinationPostgresSchemasSSLModeSSLModes5Mode>) mode; } public final static Builder builder() { @@ -185,11 +183,11 @@ public VerifyCa build() { clientKeyPassword); } - private static final LazySingletonValue<Optional<? extends DestinationPostgresSchemasSSLModeSSLModesMode>> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends DestinationPostgresSchemasSSLModeSSLModes5Mode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"verify-ca\"", - new TypeReference<Optional<? extends DestinationPostgresSchemasSSLModeSSLModesMode>>() {}); + new TypeReference<Optional<? extends DestinationPostgresSchemasSSLModeSSLModes5Mode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/VerifyFull.java b/src/main/java/com/airbyte/api/models/shared/VerifyFull.java index 10b4171e0..3a41677a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/VerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/VerifyFull.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * VerifyFull - Verify-full SSL mode. */ diff --git a/src/main/java/com/airbyte/api/models/shared/VerifyIdentity.java b/src/main/java/com/airbyte/api/models/shared/VerifyIdentity.java index b4d0762fa..3449e040c 100644 --- a/src/main/java/com/airbyte/api/models/shared/VerifyIdentity.java +++ b/src/main/java/com/airbyte/api/models/shared/VerifyIdentity.java @@ -2,28 +2,35 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.Optional; - /** - * VerifyIdentity - Always connect with SSL. Verify both CA and Hostname. + * VerifyIdentity - To always require encryption and verify that the source has a valid SSL certificate. */ public class VerifyIdentity { + @JsonIgnore + private Map<String, Object> additionalProperties; + /** * CA certificate */ @@ -31,14 +38,14 @@ public class VerifyIdentity { private String caCertificate; /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_certificate") private Optional<String> clientCertificate; /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key") @@ -51,29 +58,38 @@ public class VerifyIdentity { @JsonProperty("client_key_password") private Optional<String> clientKeyPassword; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private SourceMysqlSchemasSSLModeSSLModesMode mode; + private Optional<? extends SourceMysqlSchemasSslModeEncryptionMode> mode; @JsonCreator public VerifyIdentity( @JsonProperty("ca_certificate") String caCertificate, @JsonProperty("client_certificate") Optional<String> clientCertificate, @JsonProperty("client_key") Optional<String> clientKey, - @JsonProperty("client_key_password") Optional<String> clientKeyPassword) { + @JsonProperty("client_key_password") Optional<String> clientKeyPassword, + @JsonProperty("mode") Optional<? extends SourceMysqlSchemasSslModeEncryptionMode> mode) { Utils.checkNotNull(caCertificate, "caCertificate"); Utils.checkNotNull(clientCertificate, "clientCertificate"); Utils.checkNotNull(clientKey, "clientKey"); Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); + Utils.checkNotNull(mode, "mode"); + this.additionalProperties = new HashMap<>(); this.caCertificate = caCertificate; this.clientCertificate = clientCertificate; this.clientKey = clientKey; this.clientKeyPassword = clientKeyPassword; - this.mode = Builder._SINGLETON_VALUE_Mode.value(); + this.mode = mode; } public VerifyIdentity( String caCertificate) { - this(caCertificate, Optional.empty(), Optional.empty(), Optional.empty()); + this(caCertificate, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonAnyGetter + public Map<String, Object> additionalProperties() { + return additionalProperties; } /** @@ -85,7 +101,7 @@ public String caCertificate() { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ @JsonIgnore public Optional<String> clientCertificate() { @@ -93,7 +109,7 @@ public Optional<String> clientCertificate() { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ @JsonIgnore public Optional<String> clientKey() { @@ -108,15 +124,30 @@ public Optional<String> clientKeyPassword() { return clientKeyPassword; } + @SuppressWarnings("unchecked") @JsonIgnore - public SourceMysqlSchemasSSLModeSSLModesMode mode() { - return mode; + public Optional<SourceMysqlSchemasSslModeEncryptionMode> mode() { + return (Optional<SourceMysqlSchemasSslModeEncryptionMode>) mode; } public final static Builder builder() { return new Builder(); } + @JsonAnySetter + public VerifyIdentity withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public VerifyIdentity withAdditionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * CA certificate */ @@ -127,7 +158,7 @@ public VerifyIdentity withCaCertificate(String caCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ public VerifyIdentity withClientCertificate(String clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -136,7 +167,7 @@ public VerifyIdentity withClientCertificate(String clientCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ public VerifyIdentity withClientCertificate(Optional<String> clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -145,7 +176,7 @@ public VerifyIdentity withClientCertificate(Optional<String> clientCertificate) } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ public VerifyIdentity withClientKey(String clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -154,7 +185,7 @@ public VerifyIdentity withClientKey(String clientKey) { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ public VerifyIdentity withClientKey(Optional<String> clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -179,6 +210,18 @@ public VerifyIdentity withClientKeyPassword(Optional<String> clientKeyPassword) this.clientKeyPassword = clientKeyPassword; return this; } + + public VerifyIdentity withMode(SourceMysqlSchemasSslModeEncryptionMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public VerifyIdentity withMode(Optional<? extends SourceMysqlSchemasSslModeEncryptionMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -190,6 +233,7 @@ public boolean equals(java.lang.Object o) { } VerifyIdentity other = (VerifyIdentity) o; return + Objects.deepEquals(this.additionalProperties, other.additionalProperties) && Objects.deepEquals(this.caCertificate, other.caCertificate) && Objects.deepEquals(this.clientCertificate, other.clientCertificate) && Objects.deepEquals(this.clientKey, other.clientKey) && @@ -200,6 +244,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + additionalProperties, caCertificate, clientCertificate, clientKey, @@ -210,6 +255,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(VerifyIdentity.class, + "additionalProperties", additionalProperties, "caCertificate", caCertificate, "clientCertificate", clientCertificate, "clientKey", clientKey, @@ -219,18 +265,38 @@ public String toString() { public final static class Builder { + private Map<String, Object> additionalProperties = new HashMap<>(); + private String caCertificate; private Optional<String> clientCertificate = Optional.empty(); private Optional<String> clientKey = Optional.empty(); - private Optional<String> clientKeyPassword = Optional.empty(); + private Optional<String> clientKeyPassword = Optional.empty(); + + private Optional<? extends SourceMysqlSchemasSslModeEncryptionMode> mode; private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map<String, Object> additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + /** * CA certificate */ @@ -241,7 +307,7 @@ public Builder caCertificate(String caCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ public Builder clientCertificate(String clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -250,7 +316,7 @@ public Builder clientCertificate(String clientCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the <b>Client key</b> as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) */ public Builder clientCertificate(Optional<String> clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -259,7 +325,7 @@ public Builder clientCertificate(Optional<String> clientCertificate) { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ public Builder clientKey(String clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -268,7 +334,7 @@ public Builder clientKey(String clientKey) { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the <b>Client certificate</b> as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) */ public Builder clientKey(Optional<String> clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -293,20 +359,36 @@ public Builder clientKeyPassword(Optional<String> clientKeyPassword) { this.clientKeyPassword = clientKeyPassword; return this; } + + public Builder mode(SourceMysqlSchemasSslModeEncryptionMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public Builder mode(Optional<? extends SourceMysqlSchemasSslModeEncryptionMode> mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } public VerifyIdentity build() { - return new VerifyIdentity( + if (mode == null) { + mode = _SINGLETON_VALUE_Mode.value(); + } return new VerifyIdentity( caCertificate, clientCertificate, clientKey, - clientKeyPassword); + clientKeyPassword, + mode) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue<SourceMysqlSchemasSSLModeSSLModesMode> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue<Optional<? extends SourceMysqlSchemasSslModeEncryptionMode>> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"verify_identity\"", - new TypeReference<SourceMysqlSchemasSSLModeSSLModesMode>() {}); + new TypeReference<Optional<? extends SourceMysqlSchemasSslModeEncryptionMode>>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/ViaAPI.java b/src/main/java/com/airbyte/api/models/shared/ViaAPI.java index 117b537a8..991b95ef9 100644 --- a/src/main/java/com/airbyte/api/models/shared/ViaAPI.java +++ b/src/main/java/com/airbyte/api/models/shared/ViaAPI.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -19,7 +18,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; - /** * ViaAPI - Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. */ diff --git a/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java b/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java index cb382a987..8db9a442e 100644 --- a/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java +++ b/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ViewAttributionWindow - Attribution window for views. */ @@ -27,4 +28,13 @@ private ViewAttributionWindow(String value) { public String value() { return value; } + + public static Optional<ViewAttributionWindow> fromValue(String value) { + for (ViewAttributionWindow o: ViewAttributionWindow.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java b/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java index 57bb5e69d..e2f461544 100644 --- a/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java +++ b/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java @@ -2,10 +2,11 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; - +import java.util.Objects; +import java.util.Optional; /** * ViewWindowDays - Number of days to use as the conversion attribution window for a view action. */ @@ -27,4 +28,13 @@ private ViewWindowDays(long value) { public long value() { return value; } + + public static Optional<ViewWindowDays> fromValue(long value) { + for (ViewWindowDays o: ViewWindowDays.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java b/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java index ad590bea8..edd6b4b1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java +++ b/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum VismaEconomic { VISMA_ECONOMIC("visma-economic"); @@ -20,4 +21,13 @@ private VismaEconomic(String value) { public String value() { return value; } + + public static Optional<VismaEconomic> fromValue(String value) { + for (VismaEconomic o: VismaEconomic.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Vitally.java b/src/main/java/com/airbyte/api/models/shared/Vitally.java index 8b32ff4fa..dc8f73809 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vitally.java +++ b/src/main/java/com/airbyte/api/models/shared/Vitally.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Vitally { VITALLY("vitally"); @@ -20,4 +21,13 @@ private Vitally(String value) { public String value() { return value; } + + public static Optional<Vitally> fromValue(String value) { + for (Vitally o: Vitally.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Vwo.java b/src/main/java/com/airbyte/api/models/shared/Vwo.java index 3ffd67ac3..f531d4ed4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vwo.java +++ b/src/main/java/com/airbyte/api/models/shared/Vwo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Vwo { VWO("vwo"); @@ -20,4 +21,13 @@ private Vwo(String value) { public String value() { return value; } + + public static Optional<Vwo> fromValue(String value) { + for (Vwo o: Vwo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Waiteraid.java b/src/main/java/com/airbyte/api/models/shared/Waiteraid.java index 70adb1b5f..56f91af8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Waiteraid.java +++ b/src/main/java/com/airbyte/api/models/shared/Waiteraid.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Waiteraid { WAITERAID("waiteraid"); @@ -20,4 +21,13 @@ private Waiteraid(String value) { public String value() { return value; } + + public static Optional<Waiteraid> fromValue(String value) { + for (Waiteraid o: Waiteraid.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java b/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java index 57db23428..fb81d5ce8 100644 --- a/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum WasabiStatsApi { WASABI_STATS_API("wasabi-stats-api"); @@ -20,4 +21,13 @@ private WasabiStatsApi(String value) { public String value() { return value; } + + public static Optional<WasabiStatsApi> fromValue(String value) { + for (WasabiStatsApi o: WasabiStatsApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Weatherstack.java b/src/main/java/com/airbyte/api/models/shared/Weatherstack.java index bcf801e4f..fcca2488c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Weatherstack.java +++ b/src/main/java/com/airbyte/api/models/shared/Weatherstack.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Weatherstack { WEATHERSTACK("weatherstack"); @@ -20,4 +21,13 @@ private Weatherstack(String value) { public String value() { return value; } + + public static Optional<Weatherstack> fromValue(String value) { + for (Weatherstack o: Weatherstack.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Weaviate.java b/src/main/java/com/airbyte/api/models/shared/Weaviate.java index fa0142d05..fd7384ef4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Weaviate.java +++ b/src/main/java/com/airbyte/api/models/shared/Weaviate.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Weaviate { WEAVIATE("weaviate"); @@ -20,4 +21,13 @@ private Weaviate(String value) { public String value() { return value; } + + public static Optional<Weaviate> fromValue(String value) { + for (Weaviate o: Weaviate.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WebScrapper.java b/src/main/java/com/airbyte/api/models/shared/WebScrapper.java index e4cbb503a..b1a9c3c6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/WebScrapper.java +++ b/src/main/java/com/airbyte/api/models/shared/WebScrapper.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum WebScrapper { WEB_SCRAPPER("web-scrapper"); @@ -20,4 +21,13 @@ private WebScrapper(String value) { public String value() { return value; } + + public static Optional<WebScrapper> fromValue(String value) { + for (WebScrapper o: WebScrapper.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Webflow.java b/src/main/java/com/airbyte/api/models/shared/Webflow.java index 8590c923b..a1fee8798 100644 --- a/src/main/java/com/airbyte/api/models/shared/Webflow.java +++ b/src/main/java/com/airbyte/api/models/shared/Webflow.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Webflow { WEBFLOW("webflow"); @@ -20,4 +21,13 @@ private Webflow(String value) { public String value() { return value; } + + public static Optional<Webflow> fromValue(String value) { + for (Webflow o: Webflow.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WebhookNotificationConfig.java b/src/main/java/com/airbyte/api/models/shared/WebhookNotificationConfig.java new file mode 100644 index 000000000..eecec00ae --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/WebhookNotificationConfig.java @@ -0,0 +1,153 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +/** + * WebhookNotificationConfig - Configures a webhook notification. + */ + +public class WebhookNotificationConfig { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("enabled") + private Optional<Boolean> enabled; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("url") + private Optional<String> url; + + @JsonCreator + public WebhookNotificationConfig( + @JsonProperty("enabled") Optional<Boolean> enabled, + @JsonProperty("url") Optional<String> url) { + Utils.checkNotNull(enabled, "enabled"); + Utils.checkNotNull(url, "url"); + this.enabled = enabled; + this.url = url; + } + + public WebhookNotificationConfig() { + this(Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional<Boolean> enabled() { + return enabled; + } + + @JsonIgnore + public Optional<String> url() { + return url; + } + + public final static Builder builder() { + return new Builder(); + } + + public WebhookNotificationConfig withEnabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public WebhookNotificationConfig withEnabled(Optional<Boolean> enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + public WebhookNotificationConfig withUrl(String url) { + Utils.checkNotNull(url, "url"); + this.url = Optional.ofNullable(url); + return this; + } + + public WebhookNotificationConfig withUrl(Optional<String> url) { + Utils.checkNotNull(url, "url"); + this.url = url; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookNotificationConfig other = (WebhookNotificationConfig) o; + return + Objects.deepEquals(this.enabled, other.enabled) && + Objects.deepEquals(this.url, other.url); + } + + @Override + public int hashCode() { + return Objects.hash( + enabled, + url); + } + + @Override + public String toString() { + return Utils.toString(WebhookNotificationConfig.class, + "enabled", enabled, + "url", url); + } + + public final static class Builder { + + private Optional<Boolean> enabled = Optional.empty(); + + private Optional<String> url = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder enabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public Builder enabled(Optional<Boolean> enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + public Builder url(String url) { + Utils.checkNotNull(url, "url"); + this.url = Optional.ofNullable(url); + return this; + } + + public Builder url(Optional<String> url) { + Utils.checkNotNull(url, "url"); + this.url = url; + return this; + } + + public WebhookNotificationConfig build() { + return new WebhookNotificationConfig( + enabled, + url); + } + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/WhenIWork.java b/src/main/java/com/airbyte/api/models/shared/WhenIWork.java index 04ad28ec5..f57446b77 100644 --- a/src/main/java/com/airbyte/api/models/shared/WhenIWork.java +++ b/src/main/java/com/airbyte/api/models/shared/WhenIWork.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum WhenIWork { WHEN_I_WORK("when-i-work"); @@ -20,4 +21,13 @@ private WhenIWork(String value) { public String value() { return value; } + + public static Optional<WhenIWork> fromValue(String value) { + for (WhenIWork o: WhenIWork.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java b/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java index 53dffbba1..101de9395 100644 --- a/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java +++ b/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum WhiskyHunter { WHISKY_HUNTER("whisky-hunter"); @@ -20,4 +21,13 @@ private WhiskyHunter(String value) { public String value() { return value; } + + public static Optional<WhiskyHunter> fromValue(String value) { + for (WhiskyHunter o: WhiskyHunter.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java b/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java index ce2285169..76d14fd81 100644 --- a/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java +++ b/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum WikipediaPageviews { WIKIPEDIA_PAGEVIEWS("wikipedia-pageviews"); @@ -20,4 +21,13 @@ private WikipediaPageviews(String value) { public String value() { return value; } + + public static Optional<WikipediaPageviews> fromValue(String value) { + for (WikipediaPageviews o: WikipediaPageviews.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Woocommerce.java b/src/main/java/com/airbyte/api/models/shared/Woocommerce.java index b5b5fa44c..d627d3594 100644 --- a/src/main/java/com/airbyte/api/models/shared/Woocommerce.java +++ b/src/main/java/com/airbyte/api/models/shared/Woocommerce.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Woocommerce { WOOCOMMERCE("woocommerce"); @@ -20,4 +21,13 @@ private Woocommerce(String value) { public String value() { return value; } + + public static Optional<Woocommerce> fromValue(String value) { + for (Woocommerce o: Woocommerce.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Wordpress.java b/src/main/java/com/airbyte/api/models/shared/Wordpress.java index 5dabc6a7a..39c35b279 100644 --- a/src/main/java/com/airbyte/api/models/shared/Wordpress.java +++ b/src/main/java/com/airbyte/api/models/shared/Wordpress.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Wordpress { WORDPRESS("wordpress"); @@ -20,4 +21,13 @@ private Wordpress(String value) { public String value() { return value; } + + public static Optional<Wordpress> fromValue(String value) { + for (Wordpress o: Wordpress.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Workable.java b/src/main/java/com/airbyte/api/models/shared/Workable.java index 49caf664e..d9c0d11bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workable.java +++ b/src/main/java/com/airbyte/api/models/shared/Workable.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Workable { WORKABLE("workable"); @@ -20,4 +21,13 @@ private Workable(String value) { public String value() { return value; } + + public static Optional<Workable> fromValue(String value) { + for (Workable o: Workable.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Workday.java b/src/main/java/com/airbyte/api/models/shared/Workday.java new file mode 100644 index 000000000..1ef80772a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Workday.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Workday { + WORKDAY("workday"); + + @JsonValue + private final String value; + + private Workday(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Workday> fromValue(String value) { + for (Workday o: Workday.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/Workflowmax.java b/src/main/java/com/airbyte/api/models/shared/Workflowmax.java index cef6e6d4a..880c5bb2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workflowmax.java +++ b/src/main/java/com/airbyte/api/models/shared/Workflowmax.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Workflowmax { WORKFLOWMAX("workflowmax"); @@ -20,4 +21,13 @@ private Workflowmax(String value) { public String value() { return value; } + + public static Optional<Workflowmax> fromValue(String value) { + for (Workflowmax o: Workflowmax.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Workramp.java b/src/main/java/com/airbyte/api/models/shared/Workramp.java index 6019757b9..770172813 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workramp.java +++ b/src/main/java/com/airbyte/api/models/shared/Workramp.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Workramp { WORKRAMP("workramp"); @@ -20,4 +21,13 @@ private Workramp(String value) { public String value() { return value; } + + public static Optional<Workramp> fromValue(String value) { + for (Workramp o: Workramp.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspaceCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/WorkspaceCreateRequest.java index 7ee295d98..1cc345ff8 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspaceCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspaceCreateRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,10 +12,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - public class WorkspaceCreateRequest { /** @@ -25,6 +24,13 @@ public class WorkspaceCreateRequest { @JsonProperty("name") private String name; + /** + * Configures workspace notifications. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("notifications") + private Optional<? extends NotificationsConfig> notifications; + /** * ID of organization to add workspace to. */ @@ -35,16 +41,19 @@ public class WorkspaceCreateRequest { @JsonCreator public WorkspaceCreateRequest( @JsonProperty("name") String name, + @JsonProperty("notifications") Optional<? extends NotificationsConfig> notifications, @JsonProperty("organizationId") Optional<String> organizationId) { Utils.checkNotNull(name, "name"); + Utils.checkNotNull(notifications, "notifications"); Utils.checkNotNull(organizationId, "organizationId"); this.name = name; + this.notifications = notifications; this.organizationId = organizationId; } public WorkspaceCreateRequest( String name) { - this(name, Optional.empty()); + this(name, Optional.empty(), Optional.empty()); } /** @@ -55,6 +64,15 @@ public String name() { return name; } + /** + * Configures workspace notifications. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<NotificationsConfig> notifications() { + return (Optional<NotificationsConfig>) notifications; + } + /** * ID of organization to add workspace to. */ @@ -76,6 +94,24 @@ public WorkspaceCreateRequest withName(String name) { return this; } + /** + * Configures workspace notifications. + */ + public WorkspaceCreateRequest withNotifications(NotificationsConfig notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = Optional.ofNullable(notifications); + return this; + } + + /** + * Configures workspace notifications. + */ + public WorkspaceCreateRequest withNotifications(Optional<? extends NotificationsConfig> notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = notifications; + return this; + } + /** * ID of organization to add workspace to. */ @@ -105,6 +141,7 @@ public boolean equals(java.lang.Object o) { WorkspaceCreateRequest other = (WorkspaceCreateRequest) o; return Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.notifications, other.notifications) && Objects.deepEquals(this.organizationId, other.organizationId); } @@ -112,6 +149,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( name, + notifications, organizationId); } @@ -119,6 +157,7 @@ public int hashCode() { public String toString() { return Utils.toString(WorkspaceCreateRequest.class, "name", name, + "notifications", notifications, "organizationId", organizationId); } @@ -126,6 +165,8 @@ public final static class Builder { private String name; + private Optional<? extends NotificationsConfig> notifications = Optional.empty(); + private Optional<String> organizationId = Optional.empty(); private Builder() { @@ -141,6 +182,24 @@ public Builder name(String name) { return this; } + /** + * Configures workspace notifications. + */ + public Builder notifications(NotificationsConfig notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = Optional.ofNullable(notifications); + return this; + } + + /** + * Configures workspace notifications. + */ + public Builder notifications(Optional<? extends NotificationsConfig> notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = notifications; + return this; + } + /** * ID of organization to add workspace to. */ @@ -162,6 +221,7 @@ public Builder organizationId(Optional<String> organizationId) { public WorkspaceCreateRequest build() { return new WorkspaceCreateRequest( name, + notifications, organizationId); } } diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspaceOAuthCredentialsRequest.java b/src/main/java/com/airbyte/api/models/shared/WorkspaceOAuthCredentialsRequest.java index 231ec585c..8e711ce1a 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspaceOAuthCredentialsRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspaceOAuthCredentialsRequest.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -12,7 +11,6 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; - /** * WorkspaceOAuthCredentialsRequest - POST body for creating/updating workspace level OAuth credentials */ diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspaceResponse.java b/src/main/java/com/airbyte/api/models/shared/WorkspaceResponse.java index d7334490c..c2d79a123 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspaceResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -18,7 +17,6 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; - /** * WorkspaceResponse - Provides details of a single workspace. */ @@ -32,6 +30,12 @@ public class WorkspaceResponse { @JsonProperty("name") private String name; + /** + * Configures workspace notifications. + */ + @JsonProperty("notifications") + private NotificationsConfig notifications; + @JsonProperty("workspaceId") private String workspaceId; @@ -39,19 +43,23 @@ public class WorkspaceResponse { public WorkspaceResponse( @JsonProperty("dataResidency") Optional<? extends GeographyEnum> dataResidency, @JsonProperty("name") String name, + @JsonProperty("notifications") NotificationsConfig notifications, @JsonProperty("workspaceId") String workspaceId) { Utils.checkNotNull(dataResidency, "dataResidency"); Utils.checkNotNull(name, "name"); + Utils.checkNotNull(notifications, "notifications"); Utils.checkNotNull(workspaceId, "workspaceId"); this.dataResidency = dataResidency; this.name = name; + this.notifications = notifications; this.workspaceId = workspaceId; } public WorkspaceResponse( String name, + NotificationsConfig notifications, String workspaceId) { - this(Optional.empty(), name, workspaceId); + this(Optional.empty(), name, notifications, workspaceId); } @SuppressWarnings("unchecked") @@ -65,6 +73,14 @@ public String name() { return name; } + /** + * Configures workspace notifications. + */ + @JsonIgnore + public NotificationsConfig notifications() { + return notifications; + } + @JsonIgnore public String workspaceId() { return workspaceId; @@ -92,6 +108,15 @@ public WorkspaceResponse withName(String name) { return this; } + /** + * Configures workspace notifications. + */ + public WorkspaceResponse withNotifications(NotificationsConfig notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = notifications; + return this; + } + public WorkspaceResponse withWorkspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; @@ -110,6 +135,7 @@ public boolean equals(java.lang.Object o) { return Objects.deepEquals(this.dataResidency, other.dataResidency) && Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.notifications, other.notifications) && Objects.deepEquals(this.workspaceId, other.workspaceId); } @@ -118,6 +144,7 @@ public int hashCode() { return Objects.hash( dataResidency, name, + notifications, workspaceId); } @@ -126,6 +153,7 @@ public String toString() { return Utils.toString(WorkspaceResponse.class, "dataResidency", dataResidency, "name", name, + "notifications", notifications, "workspaceId", workspaceId); } @@ -135,6 +163,8 @@ public final static class Builder { private String name; + private NotificationsConfig notifications; + private String workspaceId; private Builder() { @@ -159,6 +189,15 @@ public Builder name(String name) { return this; } + /** + * Configures workspace notifications. + */ + public Builder notifications(NotificationsConfig notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = notifications; + return this; + } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; @@ -171,6 +210,7 @@ public WorkspaceResponse build() { } return new WorkspaceResponse( dataResidency, name, + notifications, workspaceId); } diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspaceUpdateRequest.java b/src/main/java/com/airbyte/api/models/shared/WorkspaceUpdateRequest.java index e54889702..1373925be 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspaceUpdateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspaceUpdateRequest.java @@ -2,41 +2,67 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.util.Objects; - +import java.util.Optional; public class WorkspaceUpdateRequest { /** * Name of the workspace */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private String name; + private Optional<String> name; + + /** + * Configures workspace notifications. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("notifications") + private Optional<? extends NotificationsConfig> notifications; @JsonCreator public WorkspaceUpdateRequest( - @JsonProperty("name") String name) { + @JsonProperty("name") Optional<String> name, + @JsonProperty("notifications") Optional<? extends NotificationsConfig> notifications) { Utils.checkNotNull(name, "name"); + Utils.checkNotNull(notifications, "notifications"); this.name = name; + this.notifications = notifications; + } + + public WorkspaceUpdateRequest() { + this(Optional.empty(), Optional.empty()); } /** * Name of the workspace */ @JsonIgnore - public String name() { + public Optional<String> name() { return name; } + /** + * Configures workspace notifications. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional<NotificationsConfig> notifications() { + return (Optional<NotificationsConfig>) notifications; + } + public final static Builder builder() { return new Builder(); } @@ -45,10 +71,37 @@ public final static Builder builder() { * Name of the workspace */ public WorkspaceUpdateRequest withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * Name of the workspace + */ + public WorkspaceUpdateRequest withName(Optional<String> name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + + /** + * Configures workspace notifications. + */ + public WorkspaceUpdateRequest withNotifications(NotificationsConfig notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = Optional.ofNullable(notifications); + return this; + } + + /** + * Configures workspace notifications. + */ + public WorkspaceUpdateRequest withNotifications(Optional<? extends NotificationsConfig> notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = notifications; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -60,24 +113,29 @@ public boolean equals(java.lang.Object o) { } WorkspaceUpdateRequest other = (WorkspaceUpdateRequest) o; return - Objects.deepEquals(this.name, other.name); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.notifications, other.notifications); } @Override public int hashCode() { return Objects.hash( - name); + name, + notifications); } @Override public String toString() { return Utils.toString(WorkspaceUpdateRequest.class, - "name", name); + "name", name, + "notifications", notifications); } public final static class Builder { - private String name; + private Optional<String> name = Optional.empty(); + + private Optional<? extends NotificationsConfig> notifications = Optional.empty(); private Builder() { // force use of static builder() method @@ -87,14 +145,42 @@ private Builder() { * Name of the workspace */ public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * Name of the workspace + */ + public Builder name(Optional<String> name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + + /** + * Configures workspace notifications. + */ + public Builder notifications(NotificationsConfig notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = Optional.ofNullable(notifications); + return this; + } + + /** + * Configures workspace notifications. + */ + public Builder notifications(Optional<? extends NotificationsConfig> notifications) { + Utils.checkNotNull(notifications, "notifications"); + this.notifications = notifications; + return this; + } public WorkspaceUpdateRequest build() { return new WorkspaceUpdateRequest( - name); + name, + notifications); } } } diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspacesResponse.java b/src/main/java/com/airbyte/api/models/shared/WorkspacesResponse.java index 93fea2e1a..3556d7c7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspacesResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspacesResponse.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class WorkspacesResponse { @JsonProperty("data") diff --git a/src/main/java/com/airbyte/api/models/shared/Wrike.java b/src/main/java/com/airbyte/api/models/shared/Wrike.java index 823e56939..4d4450399 100644 --- a/src/main/java/com/airbyte/api/models/shared/Wrike.java +++ b/src/main/java/com/airbyte/api/models/shared/Wrike.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Wrike { WRIKE("wrike"); @@ -20,4 +21,13 @@ private Wrike(String value) { public String value() { return value; } + + public static Optional<Wrike> fromValue(String value) { + for (Wrike o: Wrike.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Wufoo.java b/src/main/java/com/airbyte/api/models/shared/Wufoo.java index 682bcea6f..1da9ea2d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Wufoo.java +++ b/src/main/java/com/airbyte/api/models/shared/Wufoo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Wufoo { WUFOO("wufoo"); @@ -20,4 +21,13 @@ private Wufoo(String value) { public String value() { return value; } + + public static Optional<Wufoo> fromValue(String value) { + for (Wufoo o: Wufoo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Xkcd.java b/src/main/java/com/airbyte/api/models/shared/Xkcd.java index 93cb4c72d..fa351dc5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Xkcd.java +++ b/src/main/java/com/airbyte/api/models/shared/Xkcd.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Xkcd { XKCD("xkcd"); @@ -20,4 +21,13 @@ private Xkcd(String value) { public String value() { return value; } + + public static Optional<Xkcd> fromValue(String value) { + for (Xkcd o: Xkcd.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Xsolla.java b/src/main/java/com/airbyte/api/models/shared/Xsolla.java index 4f43b4e93..938486781 100644 --- a/src/main/java/com/airbyte/api/models/shared/Xsolla.java +++ b/src/main/java/com/airbyte/api/models/shared/Xsolla.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Xsolla { XSOLLA("xsolla"); @@ -20,4 +21,13 @@ private Xsolla(String value) { public String value() { return value; } + + public static Optional<Xsolla> fromValue(String value) { + for (Xsolla o: Xsolla.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Xz.java b/src/main/java/com/airbyte/api/models/shared/Xz.java index bdfd4070f..14bf39bb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Xz.java +++ b/src/main/java/com/airbyte/api/models/shared/Xz.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -20,7 +19,6 @@ import java.util.Objects; import java.util.Optional; - public class Xz { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java b/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java index 448afa300..aaad8213b 100644 --- a/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java +++ b/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum YahooFinancePrice { YAHOO_FINANCE_PRICE("yahoo-finance-price"); @@ -20,4 +21,13 @@ private YahooFinancePrice(String value) { public String value() { return value; } + + public static Optional<YahooFinancePrice> fromValue(String value) { + for (YahooFinancePrice o: YahooFinancePrice.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java b/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java index b36f1f8c8..337fad432 100644 --- a/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java +++ b/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum YandexMetrica { YANDEX_METRICA("yandex-metrica"); @@ -20,4 +21,13 @@ private YandexMetrica(String value) { public String value() { return value; } + + public static Optional<YandexMetrica> fromValue(String value) { + for (YandexMetrica o: YandexMetrica.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java b/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java index 0770ad253..03a84896a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java +++ b/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Yellowbrick { YELLOWBRICK("yellowbrick"); @@ -20,4 +21,13 @@ private Yellowbrick(String value) { public String value() { return value; } + + public static Optional<Yellowbrick> fromValue(String value) { + for (Yellowbrick o: Yellowbrick.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Yotpo.java b/src/main/java/com/airbyte/api/models/shared/Yotpo.java index 675339271..4c9155343 100644 --- a/src/main/java/com/airbyte/api/models/shared/Yotpo.java +++ b/src/main/java/com/airbyte/api/models/shared/Yotpo.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Yotpo { YOTPO("yotpo"); @@ -20,4 +21,13 @@ private Yotpo(String value) { public String value() { return value; } + + public static Optional<Yotpo> fromValue(String value) { + for (Yotpo o: Yotpo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java b/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java index 09b5028e0..c11a260cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java +++ b/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum YouNeedABudgetYnab { YOU_NEED_A_BUDGET_YNAB("you-need-a-budget-ynab"); @@ -20,4 +21,13 @@ private YouNeedABudgetYnab(String value) { public String value() { return value; } + + public static Optional<YouNeedABudgetYnab> fromValue(String value) { + for (YouNeedABudgetYnab o: YouNeedABudgetYnab.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Younium.java b/src/main/java/com/airbyte/api/models/shared/Younium.java new file mode 100644 index 000000000..feb00a31e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Younium.java @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + + +package com.airbyte.api.models.shared; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +public enum Younium { + YOUNIUM("younium"); + + @JsonValue + private final String value; + + private Younium(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional<Younium> fromValue(String value) { + for (Younium o: Younium.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/YoutubeAnalytics.java b/src/main/java/com/airbyte/api/models/shared/YoutubeAnalytics.java index d5eb0e74a..3359b80b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/YoutubeAnalytics.java +++ b/src/main/java/com/airbyte/api/models/shared/YoutubeAnalytics.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class YoutubeAnalytics { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/YoutubeAnalyticsCredentials.java b/src/main/java/com/airbyte/api/models/shared/YoutubeAnalyticsCredentials.java index 8971df2b7..cadd1941e 100644 --- a/src/main/java/com/airbyte/api/models/shared/YoutubeAnalyticsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/YoutubeAnalyticsCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class YoutubeAnalyticsCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/YoutubeData.java b/src/main/java/com/airbyte/api/models/shared/YoutubeData.java index a913d69a3..fc0d2e5bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/YoutubeData.java +++ b/src/main/java/com/airbyte/api/models/shared/YoutubeData.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum YoutubeData { YOUTUBE_DATA("youtube-data"); @@ -20,4 +21,13 @@ private YoutubeData(String value) { public String value() { return value; } + + public static Optional<YoutubeData> fromValue(String value) { + for (YoutubeData o: YoutubeData.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java b/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java index 4314c43e3..738709d09 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZapierSupportedStorage { ZAPIER_SUPPORTED_STORAGE("zapier-supported-storage"); @@ -20,4 +21,13 @@ private ZapierSupportedStorage(String value) { public String value() { return value; } + + public static Optional<ZapierSupportedStorage> fromValue(String value) { + for (ZapierSupportedStorage o: ZapierSupportedStorage.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskChat.java b/src/main/java/com/airbyte/api/models/shared/ZendeskChat.java index 8caae442e..6027f1488 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskChat.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskChat.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class ZendeskChat { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskChatCredentials.java b/src/main/java/com/airbyte/api/models/shared/ZendeskChatCredentials.java index 496231b55..67e322f05 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskChatCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskChatCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class ZendeskChatCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java b/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java index 08a9140a5..375cdce4f 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZendeskSunshine { ZENDESK_SUNSHINE("zendesk-sunshine"); @@ -20,4 +21,13 @@ private ZendeskSunshine(String value) { public String value() { return value; } + + public static Optional<ZendeskSunshine> fromValue(String value) { + for (ZendeskSunshine o: ZendeskSunshine.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskSupport.java b/src/main/java/com/airbyte/api/models/shared/ZendeskSupport.java index 8b93fb410..5f076ce8f 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskSupport.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskSupport.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class ZendeskSupport { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskSupportCredentials.java b/src/main/java/com/airbyte/api/models/shared/ZendeskSupportCredentials.java index b4de56423..ced6ef2da 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskSupportCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskSupportCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class ZendeskSupportCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskTalk.java b/src/main/java/com/airbyte/api/models/shared/ZendeskTalk.java index 3a718469e..a1275877c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskTalk.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskTalk.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +16,6 @@ import java.util.Objects; import java.util.Optional; - public class ZendeskTalk { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskTalkCredentials.java b/src/main/java/com/airbyte/api/models/shared/ZendeskTalkCredentials.java index 6609d9aa7..e196e0364 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskTalkCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskTalkCredentials.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +15,6 @@ import java.util.Objects; import java.util.Optional; - public class ZendeskTalkCredentials { /** diff --git a/src/main/java/com/airbyte/api/models/shared/Zenefits.java b/src/main/java/com/airbyte/api/models/shared/Zenefits.java index 279388479..410eaa034 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zenefits.java +++ b/src/main/java/com/airbyte/api/models/shared/Zenefits.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Zenefits { ZENEFITS("zenefits"); @@ -20,4 +21,13 @@ private Zenefits(String value) { public String value() { return value; } + + public static Optional<Zenefits> fromValue(String value) { + for (Zenefits o: Zenefits.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Zenloop.java b/src/main/java/com/airbyte/api/models/shared/Zenloop.java index d48548b41..5add9f5d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zenloop.java +++ b/src/main/java/com/airbyte/api/models/shared/Zenloop.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Zenloop { ZENLOOP("zenloop"); @@ -20,4 +21,13 @@ private Zenloop(String value) { public String value() { return value; } + + public static Optional<Zenloop> fromValue(String value) { + for (Zenloop o: Zenloop.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java b/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java index 0e4f799cb..07e03a87a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoAnalyticsMetadataApi { ZOHO_ANALYTICS_METADATA_API("zoho-analytics-metadata-api"); @@ -20,4 +21,13 @@ private ZohoAnalyticsMetadataApi(String value) { public String value() { return value; } + + public static Optional<ZohoAnalyticsMetadataApi> fromValue(String value) { + for (ZohoAnalyticsMetadataApi o: ZohoAnalyticsMetadataApi.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java b/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java index fc52400a2..822076be4 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoBigin { ZOHO_BIGIN("zoho-bigin"); @@ -20,4 +21,13 @@ private ZohoBigin(String value) { public String value() { return value; } + + public static Optional<ZohoBigin> fromValue(String value) { + for (ZohoBigin o: ZohoBigin.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java b/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java index 7362f4986..fa37aa367 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoBilling { ZOHO_BILLING("zoho-billing"); @@ -20,4 +21,13 @@ private ZohoBilling(String value) { public String value() { return value; } + + public static Optional<ZohoBilling> fromValue(String value) { + for (ZohoBilling o: ZohoBilling.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java b/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java index ecbf6be46..9f9c1647d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoBooks { ZOHO_BOOKS("zoho-books"); @@ -20,4 +21,13 @@ private ZohoBooks(String value) { public String value() { return value; } + + public static Optional<ZohoBooks> fromValue(String value) { + for (ZohoBooks o: ZohoBooks.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java b/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java index 28ff26e45..5932aa919 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; /** * ZohoCRMEdition - Choose your Edition of Zoho CRM to determine API Concurrency Limits */ @@ -27,4 +28,13 @@ private ZohoCRMEdition(String value) { public String value() { return value; } + + public static Optional<ZohoCRMEdition> fromValue(String value) { + for (ZohoCRMEdition o: ZohoCRMEdition.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java b/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java index 3e8b58820..f51b9460c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoCampaign { ZOHO_CAMPAIGN("zoho-campaign"); @@ -20,4 +21,13 @@ private ZohoCampaign(String value) { public String value() { return value; } + + public static Optional<ZohoCampaign> fromValue(String value) { + for (ZohoCampaign o: ZohoCampaign.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java b/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java index 0e51fb9bf..e0941ff72 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoCrm { ZOHO_CRM("zoho-crm"); @@ -20,4 +21,13 @@ private ZohoCrm(String value) { public String value() { return value; } + + public static Optional<ZohoCrm> fromValue(String value) { + for (ZohoCrm o: ZohoCrm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java b/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java index d00f4e188..144296ab6 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoDesk { ZOHO_DESK("zoho-desk"); @@ -20,4 +21,13 @@ private ZohoDesk(String value) { public String value() { return value; } + + public static Optional<ZohoDesk> fromValue(String value) { + for (ZohoDesk o: ZohoDesk.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java b/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java index e14494311..8b9bc4f87 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoExpense { ZOHO_EXPENSE("zoho-expense"); @@ -20,4 +21,13 @@ private ZohoExpense(String value) { public String value() { return value; } + + public static Optional<ZohoExpense> fromValue(String value) { + for (ZohoExpense o: ZohoExpense.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java b/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java index 650b83efa..02e3b7bfd 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoInventory { ZOHO_INVENTORY("zoho-inventory"); @@ -20,4 +21,13 @@ private ZohoInventory(String value) { public String value() { return value; } + + public static Optional<ZohoInventory> fromValue(String value) { + for (ZohoInventory o: ZohoInventory.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java b/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java index 4c7dc7df7..bec262ad6 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZohoInvoice { ZOHO_INVOICE("zoho-invoice"); @@ -20,4 +21,13 @@ private ZohoInvoice(String value) { public String value() { return value; } + + public static Optional<ZohoInvoice> fromValue(String value) { + for (ZohoInvoice o: ZohoInvoice.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java b/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java index 7fdfed8ac..5bd2640b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java +++ b/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum ZonkaFeedback { ZONKA_FEEDBACK("zonka-feedback"); @@ -20,4 +21,13 @@ private ZonkaFeedback(String value) { public String value() { return value; } + + public static Optional<ZonkaFeedback> fromValue(String value) { + for (ZonkaFeedback o: ZonkaFeedback.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Zoom.java b/src/main/java/com/airbyte/api/models/shared/Zoom.java index 868d15a85..0dee239f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zoom.java +++ b/src/main/java/com/airbyte/api/models/shared/Zoom.java @@ -2,11 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; +package com.airbyte.api.models.shared; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; - +import java.util.Objects; +import java.util.Optional; public enum Zoom { ZOOM("zoom"); @@ -20,4 +21,13 @@ private Zoom(String value) { public String value() { return value; } + + public static Optional<Zoom> fromValue(String value) { + for (Zoom o: Zoom.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Zstandard.java b/src/main/java/com/airbyte/api/models/shared/Zstandard.java index 030b682e9..1f1142cea 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zstandard.java +++ b/src/main/java/com/airbyte/api/models/shared/Zstandard.java @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.airbyte.api.models.shared; - +package com.airbyte.api.models.shared; import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -21,7 +20,6 @@ import java.util.Objects; import java.util.Optional; - public class Zstandard { @JsonInclude(Include.NON_ABSENT) diff --git a/src/main/java/com/airbyte/api/utils/BigDecimalString.java b/src/main/java/com/airbyte/api/utils/BigDecimalString.java index 6fb42c475..377ebf649 100644 --- a/src/main/java/com/airbyte/api/utils/BigDecimalString.java +++ b/src/main/java/com/airbyte/api/utils/BigDecimalString.java @@ -24,8 +24,8 @@ // Note that Jackson 2.16.1 does not support @JsonValue and @JsonFormat combined so we must use // a custom serializer/deserializer -@JsonSerialize(using = BigDecimalString.BigDecimalStringSerializer.class) -@JsonDeserialize(using = BigDecimalString.BigDecimalStringDeserializer.class) +@JsonSerialize(using = BigDecimalString.Serializer.class) +@JsonDeserialize(using = BigDecimalString.Deserializer.class) public class BigDecimalString { private final BigDecimal value; @@ -64,16 +64,11 @@ public boolean equals(Object obj) { return Objects.equals(value, other.value); } - public static final class BigDecimalStringSerializer extends StdSerializer<BigDecimalString> { + @SuppressWarnings("serial") + public static final class Serializer extends StdSerializer<BigDecimalString> { - private static final long serialVersionUID = -3828937716095008071L; - - public BigDecimalStringSerializer() { - this(null); - } - - public BigDecimalStringSerializer(Class<BigDecimalString> t) { - super(t); + protected Serializer() { + super(BigDecimalString.class); } @Override @@ -83,16 +78,11 @@ public void serialize(BigDecimalString value, JsonGenerator g, SerializerProvide } } - public static final class BigDecimalStringDeserializer extends StdDeserializer<BigDecimalString> { - - private static final long serialVersionUID = -2474225842945673085L; - - public BigDecimalStringDeserializer() { - this(null); - } + @SuppressWarnings("serial") + public static final class Deserializer extends StdDeserializer<BigDecimalString> { - public BigDecimalStringDeserializer(Class<BigDecimalString> t) { - super(t); + protected Deserializer() { + super(BigDecimalString.class); } @Override diff --git a/src/main/java/com/airbyte/api/utils/BigIntegerString.java b/src/main/java/com/airbyte/api/utils/BigIntegerString.java index 9e519a4e7..7e349f222 100644 --- a/src/main/java/com/airbyte/api/utils/BigIntegerString.java +++ b/src/main/java/com/airbyte/api/utils/BigIntegerString.java @@ -24,8 +24,8 @@ // Note that Jackson 2.16.1 does not support @JsonValue and @JsonFormat combined so we must use // a custom serializer/deserializer -@JsonSerialize(using = BigIntegerString.BigIntegerStringSerializer.class) -@JsonDeserialize(using = BigIntegerString.BigIntegerStringDeserializer.class) +@JsonSerialize(using = BigIntegerString.Serializer.class) +@JsonDeserialize(using = BigIntegerString.Deserializer.class) public class BigIntegerString { private final BigInteger value; @@ -64,16 +64,11 @@ public boolean equals(Object obj) { return Objects.equals(value, other.value); } - public static final class BigIntegerStringSerializer extends StdSerializer<BigIntegerString> { + @SuppressWarnings("serial") + public static final class Serializer extends StdSerializer<BigIntegerString> { - private static final long serialVersionUID = -2474225842945673085L; - - public BigIntegerStringSerializer() { - this(null); - } - - public BigIntegerStringSerializer(Class<BigIntegerString> t) { - super(t); + protected Serializer() { + super(BigIntegerString.class); } @Override @@ -83,16 +78,11 @@ public void serialize(BigIntegerString value, JsonGenerator g, SerializerProvide } } - public static final class BigIntegerStringDeserializer extends StdDeserializer<BigIntegerString> { - - private static final long serialVersionUID = -2474225842945673085L; - - public BigIntegerStringDeserializer() { - this(null); - } + @SuppressWarnings("serial") + public static final class Deserializer extends StdDeserializer<BigIntegerString> { - public BigIntegerStringDeserializer(Class<BigIntegerString> t) { - super(t); + protected Deserializer() { + super(BigIntegerString.class); } @Override diff --git a/src/main/java/com/airbyte/api/utils/HTTPRequest.java b/src/main/java/com/airbyte/api/utils/HTTPRequest.java index 3228d3ee2..6e7f69c3d 100644 --- a/src/main/java/com/airbyte/api/utils/HTTPRequest.java +++ b/src/main/java/com/airbyte/api/utils/HTTPRequest.java @@ -46,7 +46,9 @@ public HTTPRequest addHeader(String key, String value) { headerValues = new ArrayList<>(); headers.put(key, headerValues); } - headerValues.add(value); + if (!headerValues.contains(value)) { + headerValues.add(value); + } return this; } diff --git a/src/main/java/com/airbyte/api/utils/Helpers.java b/src/main/java/com/airbyte/api/utils/Helpers.java index 22fb4bd48..91cdfb56f 100644 --- a/src/main/java/com/airbyte/api/utils/Helpers.java +++ b/src/main/java/com/airbyte/api/utils/Helpers.java @@ -4,7 +4,14 @@ package com.airbyte.api.utils; +import java.io.ByteArrayOutputStream; +import java.io.IOException; import java.net.http.HttpRequest; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.Flow; +import java.util.concurrent.TimeUnit; import java.util.function.BiPredicate; /** @@ -45,4 +52,77 @@ public static HttpRequest.Builder copy(HttpRequest request) { public static HttpRequest.Builder copy(HttpRequest request, BiPredicate<String, String> filter) { return Utils.copy(request, filter); } + + + /** + * Returns the request body as a byte array. + * + * @param request http request to extract from + * @return byte array + */ + public static byte[] bodyBytes(HttpRequest request) { + return request.bodyPublisher() // + .map(p -> { + ByteBufferSubscriber sub = new ByteBufferSubscriber(); + p.subscribe(sub); + return sub.bytes(); + }).orElse(new byte[] {}); + } + + /** + * Returns the request body as a String assuming that the bytes of the request + * body are encoded with UTF-8. + * + * @param request http request to extract from + * @return request body as a String + */ + public static String bodyUtf8(HttpRequest request) { + return new String(bodyBytes(request), StandardCharsets.UTF_8); + } + + private static final class ByteBufferSubscriber implements Flow.Subscriber<ByteBuffer> { + + private final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); + private final CountDownLatch latch = new CountDownLatch(1); + + @Override + public void onSubscribe(Flow.Subscription subscription) { + // Retrieve all parts + subscription.request(Long.MAX_VALUE); + } + + @Override + public void onNext(ByteBuffer bb) { + byte[] buffer = new byte[bb.remaining()]; + bb.get(buffer); + try { + bytes.write(buffer); + } catch (IOException e) { + onError(e); + } + } + + @Override + public void onError(Throwable throwable) { + latch.countDown(); + Utils.rethrow(throwable); + } + + @Override + public void onComplete() { + latch.countDown(); + } + + public byte[] bytes() { + try { + if (!latch.await(30, TimeUnit.SECONDS)) { + throw new RuntimeException("timed out waiting for next byte array"); + } + } catch (InterruptedException e) { + throw new RuntimeException(e); + } + return bytes.toByteArray(); + } + } + } diff --git a/src/main/java/com/airbyte/api/utils/Multipart.java b/src/main/java/com/airbyte/api/utils/Multipart.java new file mode 100644 index 000000000..44b5d014c --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/Multipart.java @@ -0,0 +1,210 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.utils; + +import java.io.IOException; +import java.io.InputStream; +import java.io.UncheckedIOException; +import java.net.http.HttpRequest; +import java.net.http.HttpRequest.BodyPublisher; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.NoSuchElementException; +import java.util.Optional; +import java.util.UUID; +import java.util.function.Supplier; + +public final class Multipart { + + private final static String DASHES = "--"; + private static final String APPLICATION_OCTET_STREAM = "application/octet-stream"; + + private final BodyPublisher bodyPublisher; + private final String boundary; + + private Multipart(BodyPublisher bodyPublisher, String boundary) { + this.bodyPublisher = bodyPublisher; + this.boundary = boundary; + } + + public BodyPublisher bodyPublisher() { + return bodyPublisher; + } + + public String contentType() { + return "multipart/form-data; charset=" + StandardCharsets.ISO_8859_1.name() + "; boundary=" + boundary; + } + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + + private final List<Part> parts = new ArrayList<>(); + private final String boundary = UUID.randomUUID().toString(); + + public Builder addPart(String name, String value) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(value, "value"); + Part p = new Part(); + p.type = PartType.STRING; + p.name = name; + p.value = value; + parts.add(p); + return this; + } + + public Builder addPart(String name, String value, String contentType) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(value, "value"); + Utils.checkNotNull(contentType, "contentType"); + Part p = new Part(); + p.type = PartType.STRING; + p.name = name; + p.value = value; + p.contentType = contentType; + parts.add(p); + return this; + } + + public Builder addPart(String name, Supplier<InputStream> stream, String filename, + Optional<String> contentType) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(stream, "stream"); + Utils.checkNotNull(filename, "filename"); + Utils.checkNotNull(contentType, "contentType"); + Part p = new Part(); + p.type = PartType.STREAM; + p.name = name; + p.stream = stream; + p.filename = filename; + p.contentType = contentType.orElse(null); + parts.add(p); + return this; + } + + private void addFinalBoundaryPart() { + Part p = new Part(); + p.type = PartType.FINAL_BOUNDARY; + p.value = DASHES + boundary + DASHES; + parts.add(p); + } + + public Multipart build() { + if (parts.size() == 0) { + throw new IllegalStateException("Must have at least one part to build multipart message."); + } + addFinalBoundaryPart(); + BodyPublisher bp = HttpRequest.BodyPublishers.ofByteArrays( // + () -> new PartsIterator(parts, boundary)); + return new Multipart(bp, boundary); + } + } + + public enum PartType { + STRING, STREAM, FINAL_BOUNDARY + } + + static final class Part { + + // type is the only mandatory field. Not keen on + // a whole bunch of nullable fields but not public api + // so will forego the noise of chained builders and + // Optional use + + PartType type; + String name; + String value; + Supplier<InputStream> stream; + String filename; + String contentType; + + } + + private static final class PartsIterator implements Iterator<byte[]> { + + private final Iterator<Part> iter; + private final String boundary; + + private InputStream currentFileInput; + private boolean done; + private byte[] next; + + PartsIterator(List<Part> parts, String boundary) { + this.iter = parts.iterator(); + this.boundary = boundary; + } + + @Override + public boolean hasNext() { + if (done) + return false; + if (next != null) + return true; + try { + next = computeNext(); + } catch (IOException e) { + throw new UncheckedIOException(e); + } + if (next == null) { + done = true; + return false; + } + return true; + } + + @Override + public byte[] next() { + if (!hasNext()) + throw new NoSuchElementException(); + byte[] res = next; + next = null; + return res; + } + + private byte[] computeNext() throws IOException { + if (currentFileInput == null) { + if (!iter.hasNext()) + return null; + Part nextPart = iter.next(); + if (PartType.STRING.equals(nextPart.type)) { + String part = DASHES + boundary + "\r\n" + "Content-Disposition: form-data; name=" + nextPart.name + + "\r\n" + "Content-Type: text/plain; charset=UTF-8\r\n\r\n" + nextPart.value + "\r\n"; + return part.getBytes(StandardCharsets.UTF_8); + } else if (PartType.FINAL_BOUNDARY.equals(nextPart.type)) { + return nextPart.value.getBytes(StandardCharsets.UTF_8); + } else { + String filename = nextPart.filename; + String contentType = nextPart.contentType; + if (contentType == null) { + contentType = APPLICATION_OCTET_STREAM; + } + currentFileInput = nextPart.stream.get(); + String partHeader = DASHES + boundary + "\r\n" + "Content-Disposition: form-data; name=" + + nextPart.name + "; filename=" + filename + "\r\n" + "Content-Type: " + contentType + + "\r\n\r\n"; + return partHeader.getBytes(StandardCharsets.UTF_8); + } + } else { + byte[] buf = new byte[8192]; + int r = currentFileInput.read(buf); + if (r > 0) { + byte[] actualBytes = new byte[r]; + System.arraycopy(buf, 0, actualBytes, 0, r); + return actualBytes; + } else { + currentFileInput.close(); + currentFileInput = null; + return "\r\n".getBytes(StandardCharsets.UTF_8); + } + } + } + } +} diff --git a/src/main/java/com/airbyte/api/utils/NameValue.java b/src/main/java/com/airbyte/api/utils/NameValue.java new file mode 100644 index 000000000..6bfea3e54 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/NameValue.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.utils; + +final class NameValue { + private final String name; + private final String value; + + NameValue(String name, String value) { + this.name = name; + this.value = value; + } + + String name() { + return name; + } + + String value() { + return value; + } +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/utils/QueryEncoding.java b/src/main/java/com/airbyte/api/utils/QueryEncoding.java new file mode 100644 index 000000000..0bd374ffb --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/QueryEncoding.java @@ -0,0 +1,96 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.utils; + +import java.nio.ByteBuffer; +import java.nio.CharBuffer; +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import java.util.BitSet; + +final class QueryEncoding { + + private static final int RADIX = 16; + private static final char QUERY_PARAM_SEPARATOR = '&'; + private static final char PARAM_VALUE_SEPARATOR = '='; + + + ///////////////////////////////// + // Query Encoding + ///////////////////////////////// + + private static final BitSet UNRESERVED = new BitSet(256); + + static { + for (int i = 'a'; i <= 'z'; i++) { + UNRESERVED.set(i); + } + for (int i = 'A'; i <= 'Z'; i++) { + UNRESERVED.set(i); + } + // numeric characters + for (int i = '0'; i <= '9'; i++) { + UNRESERVED.set(i); + } + UNRESERVED.set('-'); + UNRESERVED.set('.'); + UNRESERVED.set('_'); + UNRESERVED.set('~'); + } + + /** + * Returns the encoded query string from the given parameters. + * + * @param parameters query parameters + * @param charset charset to apply for percent encoding + * @param blankAsPlus set to true to encode a blank as a plus character + * @return encoded query string + */ + static String formatQuery(final Iterable<? extends NameValue> parameters, + final Charset charset, final boolean blankAsPlus) { + StringBuilder buf = new StringBuilder(); + int i = 0; + for (final NameValue parameter : parameters) { + if (i > 0) { + buf.append(QUERY_PARAM_SEPARATOR); + } + percentEncode(buf, parameter.name(), charset, blankAsPlus); + if (parameter.value() != null) { + buf.append(PARAM_VALUE_SEPARATOR); + percentEncode(buf, parameter.value(), charset, blankAsPlus); + } + i++; + } + return buf.toString(); + } + + private static void percentEncode(final StringBuilder buf, final CharSequence content, final Charset charset, + final boolean blankAsPlus) { + percentEncode(buf, content, charset, UNRESERVED, blankAsPlus); + } + + private static void percentEncode(final StringBuilder buf, final CharSequence content, final Charset charset, + final BitSet safechars, final boolean blankAsPlus) { + if (content == null) { + return; + } + final CharBuffer cb = CharBuffer.wrap(content); + final ByteBuffer bb = (charset != null ? charset : StandardCharsets.UTF_8).encode(cb); + while (bb.hasRemaining()) { + final int b = bb.get() & 0xff; + if (safechars.get(b)) { + buf.append((char) b); + } else if (blankAsPlus && b == ' ') { + buf.append("+"); + } else { + buf.append("%"); + final char hex1 = Character.toUpperCase(Character.forDigit((b >> 4) & 0xF, RADIX)); + final char hex2 = Character.toUpperCase(Character.forDigit(b & 0xF, RADIX)); + buf.append(hex1); + buf.append(hex2); + } + } + } +} diff --git a/src/main/java/com/airbyte/api/utils/RecordingClient.java b/src/main/java/com/airbyte/api/utils/RecordingClient.java new file mode 100644 index 000000000..ccf031a09 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/RecordingClient.java @@ -0,0 +1,51 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.utils; + +import java.io.IOException; +import java.io.InputStream; +import java.net.URISyntaxException; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.function.Function; + +// internal testing use +public final class RecordingClient implements HTTPClient { + + private final List<HttpRequest> requests = new CopyOnWriteArrayList<>(); + private final HTTPClient client; + private final List<Function<HttpRequest, HttpRequest>> beforeRequestHooks = new ArrayList<>(); + + public RecordingClient() { + this.client = new SpeakeasyHTTPClient(); + } + + @Override + public HttpResponse<InputStream> send(HttpRequest request) + throws IOException, InterruptedException, URISyntaxException { + for (Function<HttpRequest, HttpRequest> hook : beforeRequestHooks) { + request = hook.apply(request); + } + requests.add(request); + return client.send(request); + } + + public List<HttpRequest> requests() { + return requests; + } + + public RecordingClient beforeRequest(Function<HttpRequest, HttpRequest> hook) { + beforeRequestHooks.add(hook); + return this; + } + + public void reset() { + requests.clear(); + } + +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/utils/RequestBody.java b/src/main/java/com/airbyte/api/utils/RequestBody.java index c877c6641..344151b19 100644 --- a/src/main/java/com/airbyte/api/utils/RequestBody.java +++ b/src/main/java/com/airbyte/api/utils/RequestBody.java @@ -4,48 +4,38 @@ package com.airbyte.api.utils; +import java.io.ByteArrayInputStream; import java.io.IOException; -import java.io.UncheckedIOException; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.net.http.HttpRequest.BodyPublishers; +import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.regex.Pattern; import java.util.Optional; - -import org.apache.http.HttpEntity; -import org.apache.http.NameValuePair; -import org.apache.http.client.entity.UrlEncodedFormEntity; -import org.apache.http.entity.ContentType; -import org.apache.http.entity.mime.HttpMultipartMode; -import org.apache.http.entity.mime.MultipartEntityBuilder; -import org.apache.http.message.BasicNameValuePair; +import java.util.regex.Pattern; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.databind.ObjectMapper; public final class RequestBody { - private static final Map<String, String> SERIALIZATION_METHOD_TO_CONTENT_TYPE = Map.of( - "json", "application/json", - "form", "application/x-www-form-urlencoded", - "multipart", "multipart/form-data", - "raw", "application/octet-stream", - "string", "text/plain"); + private static final Map<String, String> SERIALIZATION_METHOD_TO_CONTENT_TYPE = Map.of("json", "application/json", + "form", "application/x-www-form-urlencoded", "multipart", "multipart/form-data", "raw", + "application/octet-stream", "string", "text/plain"); private RequestBody() { // prevent instantiation } - public static SerializedBody serialize(Object request, String requestField, String serializationMethod, boolean nullable) - throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException, + public static SerializedBody serialize(Object request, String requestField, String serializationMethod, + boolean nullable) throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException, UnsupportedOperationException, IOException { if (request == null) { return null; } - + if (!nullable && (request instanceof Optional) && ((Optional<?>) request).isEmpty()) { request = JsonNullable.undefined(); } @@ -98,8 +88,7 @@ private static SerializedBody serializeContentType(String fieldName, String cont if (value instanceof JsonNullable && !((JsonNullable<?>) value).isPresent()) { body = new SerializedBody(contentType, BodyPublishers.noBody()); } else { - body = new SerializedBody(contentType, - BodyPublishers.ofString(mapper.writeValueAsString(value))); + body = new SerializedBody(contentType, BodyPublishers.ofString(mapper.writeValueAsString(value))); } } else if (multipartPattern.matcher(contentType).matches()) { body = serializeMultipart(value); @@ -119,10 +108,7 @@ private static SerializedBody serializeContentType(String fieldName, String cont private static SerializedBody serializeMultipart(Object value) throws IllegalArgumentException, IllegalAccessException, UnsupportedOperationException, IOException { - MultipartEntityBuilder builder = MultipartEntityBuilder.create(); - builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); - String boundary = "-------------" + System.currentTimeMillis(); - builder.setBoundary(boundary); + Multipart.Builder builder = Multipart.builder(); Field[] fields = value.getClass().getDeclaredFields(); @@ -132,7 +118,7 @@ private static SerializedBody serializeMultipart(Object value) continue; } Object val = Utils.resolveOptionals(field.get(value)); - + if (val == null) { continue; } @@ -143,41 +129,33 @@ private static SerializedBody serializeMultipart(Object value) } if (metadata.file) { - serializeMultipartFile(builder, val); + serializeMultipartFile(metadata.name, builder, val); } else if (metadata.json) { ObjectMapper mapper = JSON.getMapper(); String json = mapper.writeValueAsString(val); - builder.addTextBody(metadata.name, json, ContentType.APPLICATION_JSON); + builder.addPart(metadata.name, json, "application/json"); } else { if (val instanceof List || val.getClass().isArray()) { List<?> arr = Utils.toList(val); for (Object item : arr) { - builder.addTextBody(metadata.name + "[]", Utils.valToString(item)); + builder.addPart(metadata.name + "[]", Utils.valToString(item)); } } else { - builder.addTextBody(metadata.name, Utils.valToString(val)); + builder.addPart(metadata.name, Utils.valToString(val)); } } } - HttpEntity entity = builder.build(); - String ct = builder.build().getContentType().getValue(); - return new SerializedBody(ct, BodyPublishers.ofInputStream(() -> { - try { - return entity.getContent(); - } catch (IOException e) { - throw new UncheckedIOException(e); - } - })); + Multipart m = builder.build(); + return new SerializedBody(m.contentType(), m.bodyPublisher()); } - private static void serializeMultipartFile(MultipartEntityBuilder builder, Object file) + private static void serializeMultipartFile(String fieldName, Multipart.Builder builder, Object file) throws IllegalArgumentException, IllegalAccessException { if (Types.getType(file.getClass()) != Types.OBJECT) { throw new RuntimeException("Invalid type for multipart file"); } - String fieldName = ""; String fileName = ""; byte[] content = null; @@ -199,153 +177,147 @@ private static void serializeMultipartFile(MultipartEntityBuilder builder, Objec if (metadata.content) { content = (byte[]) val; } else { - fieldName = metadata.name; fileName = Utils.valToString(val); } } - if (fieldName.isBlank() || fileName.isBlank() || content == null) { + if (fileName.isBlank() || content == null) { throw new RuntimeException("Invalid multipart file"); } - - builder.addBinaryBody(fieldName, content, ContentType.APPLICATION_OCTET_STREAM, fileName); + byte[] cont = content; + builder.addPart(fieldName, () -> new ByteArrayInputStream(cont), fileName, + Optional.of("application/octet-stream")); } public static SerializedBody serializeFormData(Object value) throws IOException, IllegalArgumentException, IllegalAccessException { - List<NameValuePair> params = new ArrayList<>(); + List<NameValue> params = new ArrayList<>(); switch (Types.getType(value.getClass())) { - case MAP: - Map<?, ?> map = (Map<?, ?>) value; + case MAP: + Map<?, ?> map = (Map<?, ?>) value; + + for (Map.Entry<?, ?> entry : map.entrySet()) { + params.add( + new NameValue(Utils.valToString(entry.getKey()), Utils.valToString(entry.getValue()))); + } + break; + case OBJECT: + if (!Utils.allowIntrospection(value.getClass())) { + throw new RuntimeException("Invalid type for form data"); + } + Field[] fields = value.getClass().getDeclaredFields(); + + for (Field field : fields) { + field.setAccessible(true); + Object val = Utils.resolveOptionals(field.get(value)); - for (Map.Entry<?, ?> entry : map.entrySet()) { - params.add( - new BasicNameValuePair(Utils.valToString(entry.getKey()), - Utils.valToString(entry.getValue()))); + if (val == null) { + continue; } - break; - case OBJECT: - if (!Utils.allowIntrospection(value.getClass())) { - throw new RuntimeException("Invalid type for form data"); + + FormMetadata metadata = FormMetadata.parse(field); + if (metadata == null) { + continue; } - Field[] fields = value.getClass().getDeclaredFields(); - - for (Field field : fields) { - field.setAccessible(true); - Object val = Utils.resolveOptionals(field.get(value)); - - if (val == null) { - continue; - } - FormMetadata metadata = FormMetadata.parse(field); - if (metadata == null) { - continue; - } + if (metadata.json) { + ObjectMapper mapper = JSON.getMapper(); + String json = mapper.writeValueAsString(val); + params.add(new NameValue(metadata.name, json)); + } else { + switch (Types.getType(val.getClass())) { + case OBJECT: { + if (!Utils.allowIntrospection(val.getClass())) { + params.add(new NameValue(metadata.name, String.valueOf(val))); + } else { - if (metadata.json) { - ObjectMapper mapper = JSON.getMapper(); - String json = mapper.writeValueAsString(val); - params.add(new BasicNameValuePair(metadata.name, json)); - } else { - switch (Types.getType(val.getClass())) { - case OBJECT: { - if (!Utils.allowIntrospection(val.getClass())) { - params.add(new BasicNameValuePair(metadata.name, String.valueOf(val))); - } else { + Field[] valFields = val.getClass().getDeclaredFields(); - Field[] valFields = val.getClass().getDeclaredFields(); - - List<String> items = new ArrayList<>(); - - for (Field valField : valFields) { - valField.setAccessible(true); - Object v = Utils.resolveOptionals(valField.get(val)); - if (v == null) { - continue; - } - - FormMetadata valMetadata = FormMetadata.parse(valField); - if (valMetadata == null) { - continue; - } - - if (metadata.explode) { - params.add(new BasicNameValuePair(valMetadata.name, - Utils.valToString(v))); - } else { - items.add(String.format("%s,%s", valMetadata.name, - Utils.valToString(v))); - } - } - - if (items.size() > 0) { - params.add(new BasicNameValuePair(metadata.name, String.join(",", items))); - } + List<String> items = new ArrayList<>(); + + for (Field valField : valFields) { + valField.setAccessible(true); + Object v = Utils.resolveOptionals(valField.get(val)); + if (v == null) { + continue; } - break; - } - case MAP: { - Map<?, ?> valMap = (Map<?, ?>) val; - - List<String> items = new ArrayList<>(); - - for (Map.Entry<?, ?> entry : valMap.entrySet()) { - if (metadata.explode) { - params.add(new BasicNameValuePair(Utils.valToString(entry.getKey()), - Utils.valToString(entry.getValue()))); - } else { - items.add(String.format("%s,%s", entry.getKey(), entry.getValue())); - } + + FormMetadata valMetadata = FormMetadata.parse(valField); + if (valMetadata == null) { + continue; } - if (items.size() > 0) { - params.add(new BasicNameValuePair(metadata.name, String.join(",", items))); + if (metadata.explode) { + params.add(new NameValue(valMetadata.name, Utils.valToString(v))); + } else { + items.add(String.format("%s,%s", valMetadata.name, Utils.valToString(v))); } + } - break; + if (items.size() > 0) { + params.add(new NameValue(metadata.name, String.join(",", items))); } - case ARRAY: { - final List<?> array = Utils.toList(val); + } + break; + } + case MAP: { + Map<?, ?> valMap = (Map<?, ?>) val; - List<String> items = new ArrayList<>(); + List<String> items = new ArrayList<>(); - for (Object item : array) { - if (metadata.explode) { - params.add(new BasicNameValuePair(metadata.name, Utils.valToString(item))); - } else { - items.add(Utils.valToString(item)); - } - } + for (Map.Entry<?, ?> entry : valMap.entrySet()) { + if (metadata.explode) { + params.add(new NameValue(Utils.valToString(entry.getKey()), + Utils.valToString(entry.getValue()))); + } else { + items.add(String.format("%s,%s", entry.getKey(), entry.getValue())); + } + } - if (items.size() > 0) { - params.add(new BasicNameValuePair(metadata.name, String.join(",", items))); - } + if (items.size() > 0) { + params.add(new NameValue(metadata.name, String.join(",", items))); + } - break; + break; + } + case ARRAY: { + final List<?> array = Utils.toList(val); + + List<String> items = new ArrayList<>(); + + for (Object item : array) { + if (metadata.explode) { + params.add(new NameValue(metadata.name, Utils.valToString(item))); + } else { + items.add(Utils.valToString(item)); } - default: - params.add(new BasicNameValuePair(metadata.name, Utils.valToString(val))); - break; } + + if (items.size() > 0) { + params.add(new NameValue(metadata.name, String.join(",", items))); + } + + break; + } + default: + params.add(new NameValue(metadata.name, Utils.valToString(val))); + break; } } - break; - default: - throw new RuntimeException("Invalid type for form data"); + } + break; + default: + throw new RuntimeException("Invalid type for form data"); } - UrlEncodedFormEntity entity = new UrlEncodedFormEntity(params); - String ct = entity.getContentType().getValue(); // ensure that a fresh open input stream is provided every time - // by the BodyPublisher - return new SerializedBody(ct, BodyPublishers.ofInputStream(() -> { - try { - return entity.getContent(); - } catch (IOException e) { - throw new UncheckedIOException(e); - } + // by the BodyPublisher + String contentType = "application/x-www-form-urlencoded; charset=ISO-8859-1"; + return new SerializedBody(contentType, BodyPublishers.ofInputStream(() -> { + String query = QueryEncoding.formatQuery(params, StandardCharsets.ISO_8859_1, true); + return new ByteArrayInputStream(query.getBytes(StandardCharsets.ISO_8859_1)); })); } -} \ No newline at end of file + +} diff --git a/src/main/java/com/airbyte/api/utils/Utils.java b/src/main/java/com/airbyte/api/utils/Utils.java index 042d6563b..289779fb3 100644 --- a/src/main/java/com/airbyte/api/utils/Utils.java +++ b/src/main/java/com/airbyte/api/utils/Utils.java @@ -819,11 +819,13 @@ private void load() { }; } - private static <T> T rethrow(Throwable e) { + static <T> T rethrow(Throwable e) { if (e instanceof RuntimeException) { throw (RuntimeException) e; } else if (e instanceof Error) { throw (Error) e; + } else if (e instanceof IOException) { + throw new UncheckedIOException((IOException) e); } else { throw new RuntimeException(e); }