From fd08b359e40fefa1a56f27bd4f3f63dd9fdee045 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 25 Jan 2025 00:17:59 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.476.0 --- .gitignore | 1 + .speakeasy/gen.lock | 168 +++-- .speakeasy/workflow.lock | 14 +- README.md | 367 +++++++++- RELEASES.md | 12 +- USAGE.md | 7 + build.gradle | 21 +- docs/models/shared/Allow.md | 6 +- docs/models/shared/AzureOpenAI.md | 12 +- docs/models/shared/Cohere.md | 8 +- docs/models/shared/ConfiguredStreamMapper.md | 1 + docs/models/shared/ConnectionCreateRequest.md | 2 +- docs/models/shared/ConnectionPatchRequest.md | 2 +- docs/models/shared/DestinationAstraMode.md | 2 +- ...tionAstraSchemasEmbeddingEmbedding1Mode.md | 8 - ...tionAstraSchemasEmbeddingEmbedding5Mode.md | 8 + ...ationAstraSchemasEmbeddingEmbeddingMode.md | 6 +- .../DestinationAstraSchemasEmbeddingMode.md | 6 +- .../shared/DestinationAstraSchemasMode.md | 6 +- docs/models/shared/DestinationOracle.md | 2 +- .../shared/DestinationOracleEncryption.md | 4 + docs/models/shared/DestinationPostgresMode.md | 6 +- .../shared/DestinationPostgresSchemasMode.md | 6 +- ...tionPostgresSchemasSSLModeSSLModes1Mode.md | 8 - ...tionPostgresSchemasSSLModeSSLModes5Mode.md | 8 + ...ationPostgresSchemasSSLModeSSLModesMode.md | 6 +- .../DestinationPostgresSchemasSslModeMode.md | 6 +- docs/models/shared/Disable.md | 6 +- docs/models/shared/Encryption.md | 2 - docs/models/shared/EncryptionAES.md | 13 + .../shared/EncryptionMapperAlgorithm.md | 9 + docs/models/shared/EncryptionRSA.md | 11 + docs/models/shared/Equal.md | 10 + docs/models/shared/Fake.md | 6 +- docs/models/shared/FieldRenaming.md | 9 + docs/models/shared/Greythr.md | 8 + docs/models/shared/Hashing.md | 10 + docs/models/shared/HashingMethod.md | 16 + docs/models/shared/HuggingFaceDatasets.md | 8 + docs/models/shared/MapperConfiguration.md | 5 - docs/models/shared/Mode.md | 11 +- docs/models/shared/Navan.md | 8 + docs/models/shared/Not.md | 9 + docs/models/shared/OpenAI.md | 8 +- docs/models/shared/OpenAICompatible.md | 14 +- docs/models/shared/Padding.md | 9 + docs/models/shared/Pingdom.md | 8 + docs/models/shared/Prefer.md | 6 +- docs/models/shared/Require.md | 6 +- docs/models/shared/Resolution.md | 10 + docs/models/shared/RowFiltering.md | 8 + docs/models/shared/RowFilteringOperation.md | 2 + .../shared/RowFilteringOperationType.md | 9 + docs/models/shared/SourceAsana.md | 11 +- docs/models/shared/SourceGreythr.md | 12 + .../shared/SourceHuggingFaceDatasets.md | 11 + docs/models/shared/SourceMode.md | 2 +- docs/models/shared/SourceModeMode.md | 8 + docs/models/shared/SourceNavan.md | 11 + docs/models/shared/SourcePingdom.md | 12 + .../shared/StreamConfigurationsInput.md | 10 + docs/models/shared/VerifyCa.md | 10 +- docs/sdks/connections/README.md | 11 + docs/sdks/destinations/README.md | 3 + docs/sdks/jobs/README.md | 2 + docs/sdks/sources/README.md | 21 +- docs/sdks/streams/README.md | 1 + docs/sdks/workspaces/README.md | 3 + gen.yaml | 2 +- src/main/java/com/airbyte/api/Airbyte.java | 1 - .../java/com/airbyte/api/Connections.java | 50 +- .../java/com/airbyte/api/Destinations.java | 60 +- src/main/java/com/airbyte/api/Health.java | 10 +- src/main/java/com/airbyte/api/Jobs.java | 40 +- .../java/com/airbyte/api/Organizations.java | 10 +- .../java/com/airbyte/api/Permissions.java | 50 +- .../com/airbyte/api/SDKConfiguration.java | 4 +- src/main/java/com/airbyte/api/Sources.java | 70 +- src/main/java/com/airbyte/api/Streams.java | 10 +- src/main/java/com/airbyte/api/Users.java | 10 +- src/main/java/com/airbyte/api/Workspaces.java | 60 +- .../api/models/shared/APIEndpointPrefix.java | 11 + .../airbyte/api/models/shared/APIServer.java | 11 + .../api/models/shared/AWSEnvironment.java | 11 + .../airbyte/api/models/shared/AWSRegion.java | 11 + .../shared/AWSSellerPartnerAccountType.java | 11 + ...enIsRequiredForAuthenticationRequests.java | 11 + .../api/models/shared/ActionReportTime.java | 11 + .../api/models/shared/Activecampaign.java | 11 + .../api/models/shared/ActorTypeEnum.java | 11 + .../airbyte/api/models/shared/Agilecrm.java | 11 + .../com/airbyte/api/models/shared/Aha.java | 11 + .../airbyte/api/models/shared/Airbyte.java | 11 + .../airbyte/api/models/shared/Aircall.java | 11 + .../com/airbyte/api/models/shared/Akeneo.java | 11 + .../airbyte/api/models/shared/Algolia.java | 11 + .../com/airbyte/api/models/shared/Allow.java | 10 +- .../airbyte/api/models/shared/AmazonSqs.java | 11 + .../airbyte/api/models/shared/Amplitude.java | 11 + .../api/models/shared/ApifyDataset.java | 11 + .../airbyte/api/models/shared/Appcues.java | 11 + .../airbyte/api/models/shared/Appfigures.java | 11 + .../airbyte/api/models/shared/Appfollow.java | 11 + .../api/models/shared/AppleSearchAds.java | 11 + .../airbyte/api/models/shared/Apptivo.java | 11 + .../com/airbyte/api/models/shared/Ashby.java | 11 + .../com/airbyte/api/models/shared/Astra.java | 11 + .../com/airbyte/api/models/shared/Auth0.java | 11 + .../airbyte/api/models/shared/AuthMethod.java | 11 + .../airbyte/api/models/shared/AuthType.java | 11 + .../api/models/shared/AwsCloudtrail.java | 11 + .../api/models/shared/AwsDatalake.java | 11 + .../api/models/shared/AzureOpenAI.java | 10 +- .../airbyte/api/models/shared/AzureTable.java | 11 + .../airbyte/api/models/shared/BambooHr.java | 11 + .../api/models/shared/BaseURLPrefix.java | 11 + .../airbyte/api/models/shared/Basecamp.java | 11 + .../com/airbyte/api/models/shared/Beamer.java | 11 + .../airbyte/api/models/shared/Bigmailer.java | 11 + .../airbyte/api/models/shared/Bigquery.java | 11 + .../com/airbyte/api/models/shared/Bitly.java | 11 + .../airbyte/api/models/shared/Blogger.java | 11 + ...ordIsRequiredForAuthenticationRequest.java | 11 + .../com/airbyte/api/models/shared/Box.java | 11 + .../airbyte/api/models/shared/Braintree.java | 11 + .../com/airbyte/api/models/shared/Braze.java | 11 + .../airbyte/api/models/shared/BreezyHr.java | 11 + .../com/airbyte/api/models/shared/Brevo.java | 11 + .../com/airbyte/api/models/shared/Brex.java | 11 + .../airbyte/api/models/shared/Bugsnag.java | 11 + .../airbyte/api/models/shared/Buildkite.java | 11 + .../airbyte/api/models/shared/BunnyInc.java | 11 + .../airbyte/api/models/shared/Buzzsprout.java | 11 + .../airbyte/api/models/shared/CacheType.java | 11 + .../com/airbyte/api/models/shared/CalCom.java | 11 + .../airbyte/api/models/shared/Calendly.java | 11 + .../airbyte/api/models/shared/Callrail.java | 11 + .../api/models/shared/CampaignMonitor.java | 11 + .../airbyte/api/models/shared/Campayn.java | 11 + .../com/airbyte/api/models/shared/Canny.java | 11 + .../airbyte/api/models/shared/CapsuleCrm.java | 11 + .../models/shared/CaptureModeAdvanced.java | 11 + .../models/shared/CareQualityCommission.java | 11 + .../com/airbyte/api/models/shared/Cart.java | 11 + .../airbyte/api/models/shared/CastorEdc.java | 11 + .../api/models/shared/CatalogType.java | 11 + .../airbyte/api/models/shared/Categories.java | 11 + .../airbyte/api/models/shared/Category.java | 11 + .../airbyte/api/models/shared/Chameleon.java | 11 + .../airbyte/api/models/shared/Chargebee.java | 11 + .../airbyte/api/models/shared/Chargedesk.java | 11 + .../airbyte/api/models/shared/Chargify.java | 11 + .../airbyte/api/models/shared/Chartmogul.java | 11 + .../shared/ChooseHowToPartitionData.java | 11 + .../com/airbyte/api/models/shared/Cimis.java | 11 + .../com/airbyte/api/models/shared/Cin7.java | 11 + .../com/airbyte/api/models/shared/Circa.java | 11 + .../airbyte/api/models/shared/Circleci.java | 11 + .../airbyte/api/models/shared/ClarifAi.java | 11 + .../com/airbyte/api/models/shared/Clazar.java | 11 + .../api/models/shared/ClickWindowDays.java | 11 + .../airbyte/api/models/shared/Clickhouse.java | 11 + .../airbyte/api/models/shared/ClickupApi.java | 11 + .../airbyte/api/models/shared/Clockify.java | 11 + .../airbyte/api/models/shared/Clockodo.java | 11 + .../airbyte/api/models/shared/CloseCom.java | 11 + .../airbyte/api/models/shared/Cloudbeds.java | 11 + .../airbyte/api/models/shared/Coassemble.java | 11 + .../com/airbyte/api/models/shared/Coda.java | 11 + .../com/airbyte/api/models/shared/Codec.java | 11 + .../airbyte/api/models/shared/Codefresh.java | 11 + .../com/airbyte/api/models/shared/Cohere.java | 10 +- .../airbyte/api/models/shared/CoinApi.java | 11 + .../api/models/shared/Coinmarketcap.java | 11 + .../shared/CompressionCodecOptional.java | 11 + .../api/models/shared/CompressionType.java | 11 + .../airbyte/api/models/shared/Concord.java | 11 + .../airbyte/api/models/shared/Configcat.java | 11 + .../models/shared/ConfiguredStreamMapper.java | 51 ++ .../airbyte/api/models/shared/Confluence.java | 11 + .../shared/ConnectionCreateRequest.java | 18 +- .../models/shared/ConnectionPatchRequest.java | 18 +- .../models/shared/ConnectionStatusEnum.java | 11 + .../models/shared/ConnectionSyncModeEnum.java | 11 + .../api/models/shared/ConnectionType.java | 11 + .../api/models/shared/ContentType.java | 11 + .../models/shared/ConversionReportTime.java | 11 + .../airbyte/api/models/shared/Convertkit.java | 11 + .../com/airbyte/api/models/shared/Convex.java | 11 + .../com/airbyte/api/models/shared/Copper.java | 11 + .../api/models/shared/Countercyclical.java | 11 + .../airbyte/api/models/shared/Country.java | 11 + .../api/models/shared/CredentialType.java | 11 + .../api/models/shared/CredentialsTitle.java | 11 + .../airbyte/api/models/shared/CustomerIo.java | 11 + .../api/models/shared/CustomerStatus.java | 11 + .../airbyte/api/models/shared/DataCenter.java | 11 + .../api/models/shared/DataCenterID.java | 11 + .../api/models/shared/DataCenterLocation.java | 11 + .../api/models/shared/DataFreshness.java | 11 + .../airbyte/api/models/shared/DataRegion.java | 11 + .../airbyte/api/models/shared/DataSource.java | 11 + .../airbyte/api/models/shared/DataType.java | 11 + .../airbyte/api/models/shared/Databricks.java | 11 + .../airbyte/api/models/shared/Datadog.java | 11 + .../airbyte/api/models/shared/Datascope.java | 11 + .../api/models/shared/DatasetLocation.java | 11 + .../com/airbyte/api/models/shared/Dbt.java | 11 + .../api/models/shared/DefaultVectorizer.java | 11 + .../airbyte/api/models/shared/Delighted.java | 11 + .../api/models/shared/DeliveryType.java | 11 + .../com/airbyte/api/models/shared/Deputy.java | 11 + .../shared/DestinationAstraLanguage.java | 11 + .../models/shared/DestinationAstraMode.java | 13 +- ...onAstraSchemasEmbeddingEmbedding1Mode.java | 23 - ...onAstraSchemasEmbeddingEmbedding5Mode.java | 34 + ...ionAstraSchemasEmbeddingEmbeddingMode.java | 13 +- .../DestinationAstraSchemasEmbeddingMode.java | 13 +- .../shared/DestinationAstraSchemasMode.java | 13 +- ...DestinationAstraSchemasProcessingMode.java | 11 + ...straSchemasProcessingTextSplitterMode.java | 11 + ...rocessingTextSplitterTextSplitterMode.java | 11 + ...onAwsDatalakeCompressionCodecOptional.java | 11 + ...estinationAwsDatalakeCredentialsTitle.java | 11 + ...tinationAwsDatalakeFormatTypeWildcard.java | 11 + ...ationAzureBlobStorageAzureBlobStorage.java | 11 + ...DestinationAzureBlobStorageFormatType.java | 11 + .../DestinationBigqueryCredentialType.java | 11 + .../shared/DestinationBigqueryMethod.java | 11 + ...tinationClickhouseSchemasTunnelMethod.java | 11 + .../DestinationClickhouseTunnelMethod.java | 11 + .../shared/DestinationDatabricksAuthType.java | 11 + .../DestinationDatabricksSchemasAuthType.java | 11 + .../shared/DestinationDevNullLoggingType.java | 11 + .../DestinationDevNullSchemasLoggingType.java | 11 + ...masTestDestinationTestDestinationType.java | 11 + ...tionDevNullSchemasTestDestinationType.java | 11 + ...DestinationDevNullTestDestinationType.java | 11 + .../DestinationElasticsearchMethod.java | 11 + ...archSchemasAuthenticationMethodMethod.java | 11 + ...DestinationElasticsearchSchemasMethod.java | 11 + ...ationElasticsearchSchemasTunnelMethod.java | 11 + ...searchSchemasTunnelMethodTunnelMethod.java | 11 + .../DestinationElasticsearchTunnelMethod.java | 11 + .../shared/DestinationFireboltMethod.java | 11 + .../DestinationFireboltSchemasMethod.java | 11 + .../models/shared/DestinationGcsCodec.java | 11 + .../DestinationGcsCompressionCodec.java | 11 + .../shared/DestinationGcsCompressionType.java | 11 + .../shared/DestinationGcsFormatType.java | 11 + .../api/models/shared/DestinationGcsGcs.java | 11 + .../shared/DestinationGcsSchemasCodec.java | 11 + .../DestinationGcsSchemasCompressionType.java | 11 + .../DestinationGcsSchemasFormatCodec.java | 11 + ...nationGcsSchemasFormatCompressionType.java | 11 + ...DestinationGcsSchemasFormatFormatType.java | 11 + ...ionGcsSchemasFormatOutputFormat1Codec.java | 11 + ...tionGcsSchemasFormatOutputFormatCodec.java | 11 + ...csSchemasFormatOutputFormatFormatType.java | 11 + .../DestinationGcsSchemasFormatType.java | 11 + .../DestinationGoogleSheetsGoogleSheets.java | 11 + .../shared/DestinationIcebergCatalogType.java | 11 + .../DestinationIcebergS3BucketRegion.java | 11 + ...cebergSchemasCatalogConfigCatalogType.java | 11 + ...ConfigIcebergCatalogConfigCatalogType.java | 11 + .../DestinationIcebergSchemasCatalogType.java | 11 + .../shared/DestinationIcebergStorageType.java | 11 + .../shared/DestinationMilvusLanguage.java | 11 + .../models/shared/DestinationMilvusMode.java | 11 + ...nMilvusSchemasEmbeddingEmbedding5Mode.java | 11 + ...onMilvusSchemasEmbeddingEmbeddingMode.java | 11 + ...DestinationMilvusSchemasEmbeddingMode.java | 11 + ...SchemasIndexingAuthAuthenticationMode.java | 11 + ...tinationMilvusSchemasIndexingAuthMode.java | 11 + .../DestinationMilvusSchemasIndexingMode.java | 11 + .../shared/DestinationMilvusSchemasMode.java | 11 + ...estinationMilvusSchemasProcessingMode.java | 11 + ...lvusSchemasProcessingTextSplitterMode.java | 11 + ...rocessingTextSplitterTextSplitterMode.java | 11 + .../DestinationMongodbAuthorization.java | 11 + .../shared/DestinationMongodbInstance.java | 11 + ...estinationMongodbSchemasAuthorization.java | 11 + .../DestinationMongodbSchemasInstance.java | 11 + ...DestinationMongodbSchemasTunnelMethod.java | 11 + ...ongodbSchemasTunnelMethodTunnelMethod.java | 11 + .../DestinationMongodbTunnelMethod.java | 11 + .../DestinationMssqlSchemasSslMethod.java | 11 + ...inationMssqlSchemasSslMethodSslMethod.java | 11 + .../DestinationMssqlSchemasTunnelMethod.java | 11 + ...nMssqlSchemasTunnelMethodTunnelMethod.java | 11 + .../shared/DestinationMssqlSslMethod.java | 11 + .../shared/DestinationMssqlTunnelMethod.java | 11 + .../DestinationMysqlSchemasTunnelMethod.java | 11 + ...nMysqlSchemasTunnelMethodTunnelMethod.java | 11 + .../shared/DestinationMysqlTunnelMethod.java | 11 + .../api/models/shared/DestinationOracle.java | 18 +- .../shared/DestinationOracleEncryption.java | 107 +++ .../DestinationOracleEncryptionMethod.java | 11 + ...tinationOracleSchemasEncryptionMethod.java | 11 + .../DestinationOracleSchemasTunnelMethod.java | 11 + ...OracleSchemasTunnelMethodTunnelMethod.java | 11 + .../shared/DestinationOracleTunnelMethod.java | 11 + .../shared/DestinationPgvectorLanguage.java | 11 + .../shared/DestinationPgvectorMode.java | 11 + ...gvectorSchemasEmbeddingEmbedding5Mode.java | 11 + ...PgvectorSchemasEmbeddingEmbeddingMode.java | 11 + ...stinationPgvectorSchemasEmbeddingMode.java | 11 + .../DestinationPgvectorSchemasMode.java | 11 + ...tinationPgvectorSchemasProcessingMode.java | 11 + ...ctorSchemasProcessingTextSplitterMode.java | 11 + ...rocessingTextSplitterTextSplitterMode.java | 11 + .../shared/DestinationPineconeLanguage.java | 11 + .../shared/DestinationPineconeMode.java | 11 + ...ineconeSchemasEmbeddingEmbedding5Mode.java | 11 + ...PineconeSchemasEmbeddingEmbeddingMode.java | 11 + ...stinationPineconeSchemasEmbeddingMode.java | 11 + .../DestinationPineconeSchemasMode.java | 11 + ...tinationPineconeSchemasProcessingMode.java | 11 + ...coneSchemasProcessingTextSplitterMode.java | 11 + ...rocessingTextSplitterTextSplitterMode.java | 11 + .../shared/DestinationPostgresMode.java | 13 +- .../DestinationPostgresSchemasMode.java | 13 +- ...onPostgresSchemasSSLModeSSLModes1Mode.java | 23 - ...onPostgresSchemasSSLModeSSLModes5Mode.java | 34 + ...onPostgresSchemasSSLModeSSLModes6Mode.java | 11 + ...ionPostgresSchemasSSLModeSSLModesMode.java | 13 +- ...DestinationPostgresSchemasSslModeMode.java | 13 +- ...estinationPostgresSchemasTunnelMethod.java | 11 + ...stgresSchemasTunnelMethodTunnelMethod.java | 11 + .../DestinationPostgresTunnelMethod.java | 11 + .../shared/DestinationQdrantLanguage.java | 11 + .../models/shared/DestinationQdrantMode.java | 11 + ...nQdrantSchemasEmbeddingEmbedding5Mode.java | 11 + ...onQdrantSchemasEmbeddingEmbeddingMode.java | 11 + ...DestinationQdrantSchemasEmbeddingMode.java | 11 + ...onQdrantSchemasIndexingAuthMethodMode.java | 11 + .../DestinationQdrantSchemasIndexingMode.java | 11 + .../shared/DestinationQdrantSchemasMode.java | 11 + ...estinationQdrantSchemasProcessingMode.java | 11 + ...rantSchemasProcessingTextSplitterMode.java | 11 + ...rocessingTextSplitterTextSplitterMode.java | 11 + .../models/shared/DestinationRedisMode.java | 11 + .../shared/DestinationRedisSchemasMode.java | 11 + .../DestinationRedisSchemasTunnelMethod.java | 11 + ...nRedisSchemasTunnelMethodTunnelMethod.java | 11 + .../shared/DestinationRedisTunnelMethod.java | 11 + .../shared/DestinationRedshiftMethod.java | 11 + .../DestinationRedshiftS3BucketRegion.java | 11 + ...estinationRedshiftSchemasTunnelMethod.java | 11 + ...dshiftSchemasTunnelMethodTunnelMethod.java | 11 + .../DestinationRedshiftTunnelMethod.java | 11 + .../api/models/shared/DestinationS3Codec.java | 11 + .../shared/DestinationS3CompressionType.java | 11 + .../shared/DestinationS3Flattening.java | 11 + .../shared/DestinationS3FormatType.java | 11 + .../DestinationS3GlueCompressionType.java | 11 + .../shared/DestinationS3GlueFormatType.java | 11 + .../DestinationS3GlueS3BucketRegion.java | 11 + ...stinationS3GlueSchemasCompressionType.java | 11 + .../shared/DestinationS3S3BucketRegion.java | 11 + .../shared/DestinationS3SchemasCodec.java | 11 + .../DestinationS3SchemasCompressionCodec.java | 11 + .../DestinationS3SchemasCompressionType.java | 11 + .../DestinationS3SchemasFlattening.java | 11 + .../DestinationS3SchemasFormatCodec.java | 11 + ...inationS3SchemasFormatCompressionType.java | 11 + .../DestinationS3SchemasFormatFormatType.java | 11 + ...tionS3SchemasFormatOutputFormat3Codec.java | 11 + ...matOutputFormat3CompressionCodecCodec.java | 11 + ...ationS3SchemasFormatOutputFormatCodec.java | 11 + ...emasFormatOutputFormatCompressionType.java | 11 + ...S3SchemasFormatOutputFormatFormatType.java | 11 + .../DestinationS3SchemasFormatType.java | 11 + .../shared/DestinationSnowflakeAuthType.java | 11 + .../DestinationSnowflakeCortexLanguage.java | 11 + .../DestinationSnowflakeCortexMode.java | 11 + ...eCortexSchemasEmbeddingEmbedding5Mode.java | 11 + ...keCortexSchemasEmbeddingEmbeddingMode.java | 11 + ...onSnowflakeCortexSchemasEmbeddingMode.java | 11 + ...DestinationSnowflakeCortexSchemasMode.java | 11 + ...nSnowflakeCortexSchemasProcessingMode.java | 11 + ...rtexSchemasProcessingTextSplitterMode.java | 11 + ...rocessingTextSplitterTextSplitterMode.java | 11 + .../DestinationSnowflakeSchemasAuthType.java | 11 + ...onSnowflakeSchemasCredentialsAuthType.java | 11 + .../shared/DestinationSnowflakeSnowflake.java | 11 + .../shared/DestinationTeradataMode.java | 11 + .../DestinationTeradataSchemasMode.java | 11 + ...onTeradataSchemasSSLModeSSLModes5Mode.java | 11 + ...onTeradataSchemasSSLModeSSLModes6Mode.java | 11 + ...ionTeradataSchemasSSLModeSSLModesMode.java | 11 + ...DestinationTeradataSchemasSslModeMode.java | 11 + .../shared/DestinationWeaviateLanguage.java | 11 + .../shared/DestinationWeaviateMode.java | 11 + ...eaviateSchemasEmbeddingEmbedding5Mode.java | 11 + ...eaviateSchemasEmbeddingEmbedding6Mode.java | 11 + ...eaviateSchemasEmbeddingEmbedding7Mode.java | 11 + ...WeaviateSchemasEmbeddingEmbeddingMode.java | 11 + ...stinationWeaviateSchemasEmbeddingMode.java | 11 + ...SchemasIndexingAuthAuthenticationMode.java | 11 + ...nationWeaviateSchemasIndexingAuthMode.java | 11 + ...estinationWeaviateSchemasIndexingMode.java | 11 + .../DestinationWeaviateSchemasMode.java | 11 + ...tinationWeaviateSchemasProcessingMode.java | 11 + ...iateSchemasProcessingTextSplitterMode.java | 11 + ...rocessingTextSplitterTextSplitterMode.java | 11 + .../shared/DestinationYellowbrickMode.java | 11 + .../DestinationYellowbrickSchemasMode.java | 11 + ...ellowbrickSchemasSSLModeSSLModes5Mode.java | 11 + ...ellowbrickSchemasSSLModeSSLModes6Mode.java | 11 + ...YellowbrickSchemasSSLModeSSLModesMode.java | 11 + ...tinationYellowbrickSchemasSslModeMode.java | 11 + ...inationYellowbrickSchemasTunnelMethod.java | 11 + ...wbrickSchemasTunnelMethodTunnelMethod.java | 11 + .../DestinationYellowbrickTunnelMethod.java | 11 + .../airbyte/api/models/shared/DetailType.java | 11 + .../airbyte/api/models/shared/DevNull.java | 11 + .../airbyte/api/models/shared/Dimension.java | 11 + .../airbyte/api/models/shared/Disable.java | 10 +- .../api/models/shared/DistanceMetric.java | 11 + .../com/airbyte/api/models/shared/Dixa.java | 11 + .../airbyte/api/models/shared/Dockerhub.java | 11 + .../com/airbyte/api/models/shared/Domain.java | 11 + .../api/models/shared/DomainRegionCode.java | 11 + .../com/airbyte/api/models/shared/Dremio.java | 11 + .../com/airbyte/api/models/shared/Drip.java | 11 + .../api/models/shared/DropboxSign.java | 11 + .../com/airbyte/api/models/shared/Duckdb.java | 11 + .../api/models/shared/DynamoDBRegion.java | 11 + .../airbyte/api/models/shared/Dynamodb.java | 11 + .../airbyte/api/models/shared/EConomic.java | 11 + .../airbyte/api/models/shared/Easypost.java | 11 + .../airbyte/api/models/shared/Easypromos.java | 11 + .../api/models/shared/Elasticemail.java | 11 + .../api/models/shared/Elasticsearch.java | 11 + .../api/models/shared/Emailoctopus.java | 11 + .../api/models/shared/EmploymentHero.java | 11 + .../airbyte/api/models/shared/Encharge.java | 11 + .../airbyte/api/models/shared/Encryption.java | 105 +-- .../api/models/shared/EncryptionAES.java | 235 +++++++ .../models/shared/EncryptionAlgorithm.java | 11 + .../shared/EncryptionMapperAlgorithm.java | 35 + .../api/models/shared/EncryptionMethod.java | 11 + .../api/models/shared/EncryptionRSA.java | 177 +++++ .../models/shared/EngagementWindowDays.java | 11 + .../com/airbyte/api/models/shared/Entity.java | 11 + .../api/models/shared/Environment.java | 11 + .../com/airbyte/api/models/shared/Equal.java | 172 +++++ .../airbyte/api/models/shared/Eventbrite.java | 11 + .../airbyte/api/models/shared/Eventee.java | 11 + .../airbyte/api/models/shared/Eventzilla.java | 11 + .../api/models/shared/ExchangeRates.java | 11 + .../api/models/shared/Ezofficeinventory.java | 11 + .../airbyte/api/models/shared/Factorial.java | 11 + .../com/airbyte/api/models/shared/Fake.java | 10 +- .../com/airbyte/api/models/shared/Faker.java | 11 + .../com/airbyte/api/models/shared/Fauna.java | 11 + .../api/models/shared/FieldRenaming.java | 142 ++++ .../com/airbyte/api/models/shared/File.java | 11 + .../api/models/shared/FileStorageFormat.java | 11 + .../airbyte/api/models/shared/Filetype.java | 11 + .../airbyte/api/models/shared/Fillout.java | 11 + .../com/airbyte/api/models/shared/Filter.java | 11 + .../airbyte/api/models/shared/FilterName.java | 11 + .../airbyte/api/models/shared/FilterType.java | 11 + .../com/airbyte/api/models/shared/Finage.java | 11 + .../api/models/shared/FinancialModelling.java | 11 + .../airbyte/api/models/shared/Finnhub.java | 11 + .../airbyte/api/models/shared/Finnworlds.java | 11 + .../airbyte/api/models/shared/Firebolt.java | 11 + .../api/models/shared/Firehydrant.java | 11 + .../airbyte/api/models/shared/Firestore.java | 11 + .../airbyte/api/models/shared/Flattening.java | 11 + .../airbyte/api/models/shared/Fleetio.java | 11 + .../airbyte/api/models/shared/Flexmail.java | 11 + .../airbyte/api/models/shared/Flexport.java | 11 + .../com/airbyte/api/models/shared/Float.java | 11 + .../com/airbyte/api/models/shared/Flowlu.java | 11 + .../airbyte/api/models/shared/FormatType.java | 11 + .../api/models/shared/FormatTypeWildcard.java | 11 + .../airbyte/api/models/shared/Formbricks.java | 11 + .../api/models/shared/FreeAgentConnector.java | 11 + .../api/models/shared/Freightview.java | 11 + .../airbyte/api/models/shared/Freshbooks.java | 11 + .../api/models/shared/Freshcaller.java | 11 + .../airbyte/api/models/shared/Freshchat.java | 11 + .../airbyte/api/models/shared/Freshdesk.java | 11 + .../airbyte/api/models/shared/Freshsales.java | 11 + .../api/models/shared/Freshservice.java | 11 + .../com/airbyte/api/models/shared/Front.java | 11 + .../airbyte/api/models/shared/Fulcrum.java | 11 + .../api/models/shared/GCSBucketRegion.java | 11 + .../GCSTmpFilesAfterwardProcessing.java | 11 + .../api/models/shared/GainsightPx.java | 11 + .../api/models/shared/GeographyEnum.java | 11 + .../models/shared/GeographyEnumNoDefault.java | 11 + .../airbyte/api/models/shared/Getgist.java | 11 + .../airbyte/api/models/shared/Getlago.java | 11 + .../airbyte/api/models/shared/Gitbook.java | 11 + .../airbyte/api/models/shared/Glassfrog.java | 11 + .../com/airbyte/api/models/shared/Gmail.java | 11 + .../com/airbyte/api/models/shared/Gnews.java | 11 + .../shared/GoCardlessAPIEnvironment.java | 11 + .../airbyte/api/models/shared/Gocardless.java | 11 + .../airbyte/api/models/shared/Goldcast.java | 11 + .../com/airbyte/api/models/shared/Gong.java | 11 + .../api/models/shared/GoogleCalendar.java | 11 + .../api/models/shared/GoogleClassroom.java | 11 + .../api/models/shared/GoogleDirectory.java | 11 + .../api/models/shared/GoogleForms.java | 11 + .../shared/GooglePagespeedInsights.java | 11 + .../api/models/shared/GoogleTasks.java | 11 + .../api/models/shared/GoogleWebfonts.java | 11 + .../airbyte/api/models/shared/Gorgias.java | 11 + .../api/models/shared/Granularity.java | 11 + .../GranularityForGeoLocationRegion.java | 11 + .../shared/GranularityForPeriodicReports.java | 11 + .../airbyte/api/models/shared/Greenhouse.java | 11 + .../airbyte/api/models/shared/Greythr.java | 34 + .../com/airbyte/api/models/shared/Gridly.java | 11 + .../airbyte/api/models/shared/GroupBy.java | 11 + .../com/airbyte/api/models/shared/Guru.java | 11 + .../airbyte/api/models/shared/Gutendex.java | 11 + .../api/models/shared/HardcodedRecords.java | 11 + .../airbyte/api/models/shared/Harvest.java | 11 + .../airbyte/api/models/shared/Hashing.java | 183 +++++ .../api/models/shared/HashingMethod.java | 43 ++ .../models/shared/HeaderDefinitionType.java | 11 + .../com/airbyte/api/models/shared/Height.java | 11 + .../com/airbyte/api/models/shared/Hibob.java | 11 + .../airbyte/api/models/shared/HighLevel.java | 11 + .../airbyte/api/models/shared/Hubplanner.java | 11 + .../models/shared/HuggingFaceDatasets.java | 34 + .../airbyte/api/models/shared/Humanitix.java | 11 + .../airbyte/api/models/shared/Iceberg.java | 11 + .../api/models/shared/IlluminaBasespace.java | 11 + .../com/airbyte/api/models/shared/In.java | 11 + .../airbyte/api/models/shared/IncidentIo.java | 11 + .../api/models/shared/Inflowinventory.java | 11 + .../airbyte/api/models/shared/Insightly.java | 11 + .../airbyte/api/models/shared/Instance.java | 11 + .../airbyte/api/models/shared/Instatus.java | 11 + .../airbyte/api/models/shared/Interval.java | 11 + .../InvalidCDCPositionBehaviorAdvanced.java | 11 + .../airbyte/api/models/shared/Invoiced.java | 11 + .../api/models/shared/Invoiceninja.java | 11 + .../airbyte/api/models/shared/Ip2whois.java | 11 + .../airbyte/api/models/shared/Iterable.java | 11 + .../com/airbyte/api/models/shared/Jira.java | 11 + .../api/models/shared/JobStatusEnum.java | 11 + .../api/models/shared/JobTypeEnum.java | 11 + .../airbyte/api/models/shared/Jobnimbus.java | 11 + .../airbyte/api/models/shared/Jotform.java | 11 + .../airbyte/api/models/shared/JustSift.java | 11 + .../airbyte/api/models/shared/Justcall.java | 11 + .../airbyte/api/models/shared/K6Cloud.java | 11 + .../com/airbyte/api/models/shared/Katana.java | 11 + .../com/airbyte/api/models/shared/Kind.java | 11 + .../com/airbyte/api/models/shared/Kisi.java | 11 + .../api/models/shared/Kissmetrics.java | 11 + .../com/airbyte/api/models/shared/Klarna.java | 11 + .../airbyte/api/models/shared/KlausApi.java | 11 + .../airbyte/api/models/shared/Klaviyo.java | 11 + .../com/airbyte/api/models/shared/Kyve.java | 11 + .../api/models/shared/LSNCommitBehaviour.java | 11 + .../com/airbyte/api/models/shared/Lang.java | 11 + .../airbyte/api/models/shared/Language.java | 11 + .../api/models/shared/Launchdarkly.java | 11 + .../airbyte/api/models/shared/Leadfeeder.java | 11 + .../airbyte/api/models/shared/Lemlist.java | 11 + .../api/models/shared/LessAnnoyingCrm.java | 11 + .../com/airbyte/api/models/shared/Level.java | 11 + .../api/models/shared/LightspeedRetail.java | 11 + .../api/models/shared/LinkedinPages.java | 11 + .../airbyte/api/models/shared/Linnworks.java | 11 + .../com/airbyte/api/models/shared/Lob.java | 11 + .../api/models/shared/LoggingType.java | 11 + .../airbyte/api/models/shared/Lokalise.java | 11 + .../com/airbyte/api/models/shared/Looker.java | 11 + .../com/airbyte/api/models/shared/Luma.java | 11 + .../airbyte/api/models/shared/Mailerlite.java | 11 + .../airbyte/api/models/shared/Mailgun.java | 11 + .../api/models/shared/MailjetMail.java | 11 + .../airbyte/api/models/shared/MailjetSms.java | 11 + .../airbyte/api/models/shared/Mailosaur.java | 11 + .../airbyte/api/models/shared/Mailtrap.java | 11 + .../models/shared/MapperConfiguration.java | 98 ++- .../api/models/shared/MarketNewsCategory.java | 11 + .../airbyte/api/models/shared/Marketo.java | 11 + .../api/models/shared/Marketstack.java | 11 + .../airbyte/api/models/shared/Mention.java | 11 + .../airbyte/api/models/shared/Metabase.java | 11 + .../com/airbyte/api/models/shared/Method.java | 11 + .../api/models/shared/MicrosoftDataverse.java | 11 + .../api/models/shared/MicrosoftEntraId.java | 11 + .../api/models/shared/MicrosoftLists.java | 11 + .../com/airbyte/api/models/shared/Milvus.java | 11 + .../com/airbyte/api/models/shared/Miro.java | 11 + .../airbyte/api/models/shared/Missive.java | 11 + .../com/airbyte/api/models/shared/Mixmax.java | 11 + .../airbyte/api/models/shared/Mixpanel.java | 11 + .../com/airbyte/api/models/shared/Mode.java | 18 +- .../airbyte/api/models/shared/Mongodb.java | 11 + .../airbyte/api/models/shared/MongodbV2.java | 11 + .../airbyte/api/models/shared/Motherduck.java | 11 + .../com/airbyte/api/models/shared/Mssql.java | 11 + .../com/airbyte/api/models/shared/Mux.java | 11 + .../airbyte/api/models/shared/MyHours.java | 11 + .../com/airbyte/api/models/shared/Mysql.java | 11 + .../com/airbyte/api/models/shared/N8n.java | 11 + .../shared/NamespaceDefinitionEnum.java | 11 + .../NamespaceDefinitionEnumNoDefault.java | 11 + .../com/airbyte/api/models/shared/Nasa.java | 11 + .../com/airbyte/api/models/shared/Navan.java | 34 + .../airbyte/api/models/shared/Netsuite.java | 11 + .../airbyte/api/models/shared/NewsApi.java | 11 + .../airbyte/api/models/shared/NewsdataIo.java | 11 + .../com/airbyte/api/models/shared/Nocrm.java | 11 + .../NonBreakingSchemaUpdatesBehaviorEnum.java | 11 + ...ingSchemaUpdatesBehaviorEnumNoDefault.java | 11 + .../api/models/shared/Normalization.java | 11 + .../shared/NormalizationFlattening.java | 11 + .../api/models/shared/NorthpassLms.java | 11 + .../com/airbyte/api/models/shared/Not.java | 132 ++++ .../airbyte/api/models/shared/Nullable.java | 11 + .../airbyte/api/models/shared/Nutshell.java | 11 + .../com/airbyte/api/models/shared/Nylas.java | 11 + .../airbyte/api/models/shared/Nytimes.java | 11 + .../api/models/shared/OAuthActorNames.java | 11 + .../com/airbyte/api/models/shared/Okta.java | 11 + .../airbyte/api/models/shared/Omnisend.java | 11 + .../airbyte/api/models/shared/Oncehub.java | 11 + .../airbyte/api/models/shared/Onepagecrm.java | 11 + .../airbyte/api/models/shared/Onesignal.java | 11 + .../airbyte/api/models/shared/Onfleet.java | 11 + .../com/airbyte/api/models/shared/OpenAI.java | 10 +- .../api/models/shared/OpenAICompatible.java | 10 +- .../airbyte/api/models/shared/OpenDataDc.java | 11 + .../com/airbyte/api/models/shared/Openaq.java | 11 + .../airbyte/api/models/shared/Openfda.java | 11 + .../api/models/shared/Openweather.java | 11 + .../airbyte/api/models/shared/Operator.java | 11 + .../api/models/shared/OpinionStage.java | 11 + .../airbyte/api/models/shared/Opsgenie.java | 11 + .../api/models/shared/OptionTitle.java | 11 + .../com/airbyte/api/models/shared/Oracle.java | 11 + .../com/airbyte/api/models/shared/Orb.java | 11 + .../com/airbyte/api/models/shared/Orbit.java | 11 + ...ginDatacenterOfTheSurveyMonkeyAccount.java | 11 + .../com/airbyte/api/models/shared/Oura.java | 11 + .../api/models/shared/OutbrainAmplify.java | 11 + .../airbyte/api/models/shared/Outreach.java | 11 + .../com/airbyte/api/models/shared/Oveit.java | 11 + .../shared/PabblySubscriptionsBilling.java | 11 + .../airbyte/api/models/shared/Padding.java | 35 + .../airbyte/api/models/shared/Pandadoc.java | 11 + .../airbyte/api/models/shared/Paperform.java | 11 + .../airbyte/api/models/shared/Papersign.java | 11 + .../com/airbyte/api/models/shared/Pardot.java | 11 + .../api/models/shared/ParsingStrategy.java | 11 + .../api/models/shared/PaypalTransaction.java | 11 + .../airbyte/api/models/shared/Paystack.java | 11 + .../com/airbyte/api/models/shared/Pendo.java | 11 + .../airbyte/api/models/shared/Pennylane.java | 11 + .../PeriodUsedForMostPopularStreams.java | 11 + .../api/models/shared/PermissionScope.java | 11 + .../api/models/shared/PermissionType.java | 11 + .../airbyte/api/models/shared/Persistiq.java | 11 + .../airbyte/api/models/shared/Persona.java | 11 + .../airbyte/api/models/shared/PexelsApi.java | 11 + .../airbyte/api/models/shared/Pgvector.java | 11 + .../com/airbyte/api/models/shared/Picqer.java | 11 + .../airbyte/api/models/shared/Pinecone.java | 11 + .../airbyte/api/models/shared/Pingdom.java | 34 + .../airbyte/api/models/shared/Pipedrive.java | 11 + .../airbyte/api/models/shared/Pipeliner.java | 11 + .../api/models/shared/PivotCategory.java | 11 + .../api/models/shared/PivotalTracker.java | 11 + .../com/airbyte/api/models/shared/Piwik.java | 11 + .../com/airbyte/api/models/shared/Plaid.java | 11 + .../api/models/shared/PlaidEnvironment.java | 11 + .../airbyte/api/models/shared/Planhat.java | 11 + .../airbyte/api/models/shared/Plausible.java | 11 + .../com/airbyte/api/models/shared/Plugin.java | 11 + .../com/airbyte/api/models/shared/Pocket.java | 11 + .../airbyte/api/models/shared/Pokeapi.java | 11 + .../api/models/shared/PokemonName.java | 11 + .../api/models/shared/PolygonStockApi.java | 11 + .../airbyte/api/models/shared/Postgres.java | 11 + .../airbyte/api/models/shared/Posthog.java | 11 + .../api/models/shared/Postmarkapp.java | 11 + .../com/airbyte/api/models/shared/Prefer.java | 10 +- .../airbyte/api/models/shared/Prestashop.java | 11 + .../com/airbyte/api/models/shared/Pretix.java | 11 + .../airbyte/api/models/shared/Primetric.java | 11 + .../api/models/shared/ProductCatalog.java | 11 + .../api/models/shared/Productboard.java | 11 + .../airbyte/api/models/shared/Productive.java | 11 + .../models/shared/PublicPermissionType.java | 11 + .../com/airbyte/api/models/shared/Pubsub.java | 11 + .../com/airbyte/api/models/shared/Pypi.java | 11 + .../com/airbyte/api/models/shared/Qdrant.java | 11 + .../airbyte/api/models/shared/Qualaroo.java | 11 + .../airbyte/api/models/shared/Quickbooks.java | 11 + .../com/airbyte/api/models/shared/Railz.java | 11 + .../com/airbyte/api/models/shared/Range.java | 11 + .../airbyte/api/models/shared/Recharge.java | 11 + .../airbyte/api/models/shared/Recreation.java | 11 + .../airbyte/api/models/shared/Recruitee.java | 11 + .../airbyte/api/models/shared/Recurly.java | 11 + .../com/airbyte/api/models/shared/Reddit.java | 11 + .../com/airbyte/api/models/shared/Redis.java | 11 + .../airbyte/api/models/shared/Redshift.java | 11 + .../api/models/shared/Referralhero.java | 11 + .../com/airbyte/api/models/shared/Region.java | 11 + .../airbyte/api/models/shared/Rentcast.java | 11 + .../api/models/shared/Repairshopr.java | 11 + .../airbyte/api/models/shared/ReplyIo.java | 11 + .../airbyte/api/models/shared/ReportName.java | 11 + .../models/shared/ReportRecordTypeEnum.java | 11 + .../models/shared/ReportingDataObject.java | 11 + .../airbyte/api/models/shared/Require.java | 10 +- .../airbyte/api/models/shared/Resolution.java | 36 + .../airbyte/api/models/shared/Retently.java | 11 + .../airbyte/api/models/shared/Revenuecat.java | 11 + .../api/models/shared/RevolutMerchant.java | 11 + .../airbyte/api/models/shared/RkiCovid.java | 11 + .../airbyte/api/models/shared/Rocketlane.java | 11 + .../airbyte/api/models/shared/Rollbar.java | 11 + .../com/airbyte/api/models/shared/Rootly.java | 11 + .../api/models/shared/RowFiltering.java | 89 +++ .../models/shared/RowFilteringOperation.java | 24 + .../shared/RowFilteringOperationType.java | 35 + .../com/airbyte/api/models/shared/Rss.java | 11 + .../com/airbyte/api/models/shared/Ruddr.java | 11 + .../com/airbyte/api/models/shared/S3.java | 11 + .../api/models/shared/S3BucketRegion.java | 11 + .../com/airbyte/api/models/shared/S3Glue.java | 11 + .../api/models/shared/Safetyculture.java | 11 + .../com/airbyte/api/models/shared/SageHr.java | 11 + .../airbyte/api/models/shared/Salesflare.java | 11 + .../airbyte/api/models/shared/Salesloft.java | 11 + .../api/models/shared/SapFieldglass.java | 11 + .../airbyte/api/models/shared/Savvycal.java | 11 + .../api/models/shared/ScheduleTypeEnum.java | 11 + .../shared/ScheduleTypeWithBasicEnum.java | 11 + .../airbyte/api/models/shared/ScopeType.java | 11 + .../airbyte/api/models/shared/Scryfall.java | 11 + .../api/models/shared/SearchCriteria.java | 11 + .../airbyte/api/models/shared/SearchIn.java | 11 + .../api/models/shared/SearchScope.java | 11 + .../com/airbyte/api/models/shared/Secoda.java | 11 + .../airbyte/api/models/shared/Segment.java | 11 + .../airbyte/api/models/shared/Sendgrid.java | 11 + .../airbyte/api/models/shared/Sendinblue.java | 11 + .../airbyte/api/models/shared/Sendowl.java | 11 + .../airbyte/api/models/shared/Sendpulse.java | 11 + .../airbyte/api/models/shared/Senseforce.java | 11 + .../com/airbyte/api/models/shared/Sentry.java | 11 + .../models/shared/SerializationLibrary.java | 11 + .../api/models/shared/Sevenshifts.java | 11 + .../com/airbyte/api/models/shared/Sftp.java | 11 + .../airbyte/api/models/shared/SftpBulk.java | 11 + .../airbyte/api/models/shared/SftpJson.java | 11 + ...areTypeUsedForMostPopularSharedStream.java | 11 + .../airbyte/api/models/shared/Sharetribe.java | 11 + .../com/airbyte/api/models/shared/Shippo.java | 11 + .../airbyte/api/models/shared/Shortcut.java | 11 + .../airbyte/api/models/shared/Shortio.java | 11 + .../api/models/shared/SigmaComputing.java | 11 + .../com/airbyte/api/models/shared/Simfin.java | 11 + .../airbyte/api/models/shared/Simplecast.java | 11 + .../airbyte/api/models/shared/Simplesat.java | 11 + .../com/airbyte/api/models/shared/Site.java | 11 + .../com/airbyte/api/models/shared/Smaily.java | 11 + .../api/models/shared/Smartengage.java | 11 + .../airbyte/api/models/shared/Smartreach.java | 11 + .../api/models/shared/Smartwaiver.java | 11 + .../api/models/shared/SnowflakeCortex.java | 11 + .../models/shared/SolarwindsServiceDesk.java | 11 + .../airbyte/api/models/shared/SonarCloud.java | 11 + .../com/airbyte/api/models/shared/SortBy.java | 11 + .../models/shared/SourceAirtableAirtable.java | 11 + .../shared/SourceAirtableAuthMethod.java | 11 + .../SourceAirtableSchemasAuthMethod.java | 11 + .../shared/SourceAmazonAdsAmazonAds.java | 11 + .../shared/SourceAmazonAdsAuthType.java | 11 + ...mazonSellerPartnerAmazonSellerPartner.java | 11 + .../SourceAmazonSellerPartnerAuthType.java | 11 + .../shared/SourceAmazonSqsAWSRegion.java | 11 + .../api/models/shared/SourceAsana.java | 73 +- .../api/models/shared/SourceAsanaAsana.java | 11 + .../shared/SourceAsanaCredentialsTitle.java | 11 + .../SourceAsanaSchemasCredentialsTitle.java | 11 + ...ourceAuth0SchemasAuthenticationMethod.java | 11 + ...chemasCredentialsAuthenticationMethod.java | 11 + .../SourceAzureBlobStorageAuthType.java | 11 + ...ourceAzureBlobStorageAzureBlobStorage.java | 11 + .../SourceAzureBlobStorageFiletype.java | 11 + ...eAzureBlobStorageHeaderDefinitionType.java | 11 + .../shared/SourceAzureBlobStorageMode.java | 11 + ...SourceAzureBlobStorageSchemasAuthType.java | 11 + ...SourceAzureBlobStorageSchemasFiletype.java | 11 + ...lobStorageSchemasHeaderDefinitionType.java | 11 + ...zureBlobStorageSchemasStreamsFiletype.java | 11 + ...obStorageSchemasStreamsFormatFiletype.java | 11 + .../models/shared/SourceBigqueryBigquery.java | 11 + .../models/shared/SourceBingAdsBingAds.java | 11 + .../shared/SourceBraintreeEnvironment.java | 11 + .../api/models/shared/SourceCartAuthType.java | 11 + .../shared/SourceCartSchemasAuthType.java | 11 + .../shared/SourceClickhouseClickhouse.java | 11 + .../SourceClickhouseSchemasTunnelMethod.java | 11 + ...khouseSchemasTunnelMethodTunnelMethod.java | 11 + .../shared/SourceClickhouseTunnelMethod.java | 11 + .../shared/SourceConcordEnvironment.java | 11 + .../models/shared/SourceConfiguration.java | 630 +++++++++--------- .../api/models/shared/SourceConvexConvex.java | 11 + .../models/shared/SourceDriftCredentials.java | 11 + .../api/models/shared/SourceDriftDrift.java | 11 + .../shared/SourceDriftSchemasCredentials.java | 11 + .../models/shared/SourceDynamodbAuthType.java | 11 + .../models/shared/SourceDynamodbDynamodb.java | 11 + .../shared/SourceDynamodbDynamodbRegion.java | 11 + .../shared/SourceDynamodbSchemasAuthType.java | 11 + ...urceFacebookMarketingActionReportTime.java | 11 + .../SourceFacebookMarketingAuthType.java | 11 + ...rceFacebookMarketingFacebookMarketing.java | 11 + ...ourceFacebookMarketingSchemasAuthType.java | 11 + .../SourceFacebookMarketingValidEnums.java | 11 + .../shared/SourceFaunaDeletionMode.java | 11 + .../SourceFaunaSchemasDeletionMode.java | 11 + .../models/shared/SourceFileFileFormat.java | 11 + .../SourceFileSchemasProviderStorage.java | 11 + ...chemasProviderStorageProvider6Storage.java | 11 + ...chemasProviderStorageProvider7Storage.java | 11 + ...chemasProviderStorageProvider8Storage.java | 11 + ...SchemasProviderStorageProviderStorage.java | 11 + .../shared/SourceFileSchemasStorage.java | 11 + .../api/models/shared/SourceFileStorage.java | 11 + .../models/shared/SourceFireboltFirebolt.java | 11 + .../api/models/shared/SourceGcsAuthType.java | 11 + .../api/models/shared/SourceGcsFiletype.java | 11 + .../api/models/shared/SourceGcsGcs.java | 11 + .../shared/SourceGcsHeaderDefinitionType.java | 11 + .../api/models/shared/SourceGcsMode.java | 11 + .../shared/SourceGcsParsingStrategy.java | 11 + .../shared/SourceGcsSchemasAuthType.java | 11 + .../shared/SourceGcsSchemasFiletype.java | 11 + .../SourceGcsSchemasHeaderDefinitionType.java | 11 + .../models/shared/SourceGcsSchemasMode.java | 11 + .../SourceGcsSchemasStreamsFiletype.java | 11 + ...SourceGcsSchemasStreamsFormatFiletype.java | 11 + ...csSchemasStreamsFormatFormat6Filetype.java | 11 + ...GcsSchemasStreamsFormatFormatFiletype.java | 11 + ...GcsSchemasStreamsHeaderDefinitionType.java | 11 + .../shared/SourceGcsValidationPolicy.java | 11 + .../api/models/shared/SourceGithubGithub.java | 11 + .../shared/SourceGithubOptionTitle.java | 11 + .../models/shared/SourceGitlabAuthType.java | 11 + .../api/models/shared/SourceGitlabGitlab.java | 11 + .../shared/SourceGitlabSchemasAuthType.java | 11 + .../api/models/shared/SourceGnewsCountry.java | 11 + .../models/shared/SourceGnewsLanguage.java | 11 + .../api/models/shared/SourceGnewsSortBy.java | 11 + .../shared/SourceGoogleAdsGoogleAds.java | 11 + .../SourceGoogleAnalyticsDataApiAuthType.java | 11 + .../SourceGoogleAnalyticsDataApiEnabled.java | 11 + ...ourceGoogleAnalyticsDataApiFilterName.java | 11 + ...ourceGoogleAnalyticsDataApiFilterType.java | 11 + ...nalyticsDataApiGoogleAnalyticsDataApi.java | 11 + ...urceGoogleAnalyticsDataApiGranularity.java | 11 + ...GoogleAnalyticsDataApiSchemasAuthType.java | 11 + ...ressionsFilterFilter4ToValueValueType.java | 11 + ...ter1ExpressionsFilterFilter4ValueType.java | 11 + ...ter1ExpressionsFilterFilterFilterName.java | 11 + ...onsFilter1ExpressionsFilterFilterName.java | 11 + ...lter1ExpressionsFilterFilterValueType.java | 11 + ...imensionsFilter1ExpressionsFilterName.java | 11 + ...ionsFilter1ExpressionsFilterValueType.java | 11 + ...imensionsFilter1ExpressionsValidEnums.java | 11 + ...DimensionsFilter1ExpressionsValueType.java | 11 + ...sionFilterDimensionsFilter1FilterName.java | 11 + ...sionFilterDimensionsFilter1ValidEnums.java | 11 + ...nsionFilterDimensionsFilter1ValueType.java | 11 + ...ressionsFilterFilter4ToValueValueType.java | 11 + ...ter2ExpressionsFilterFilter4ValueType.java | 11 + ...lter2ExpressionsFilterFilterValueType.java | 11 + ...imensionsFilter2ExpressionsFilterName.java | 11 + ...ionsFilter2ExpressionsFilterValueType.java | 11 + ...DimensionsFilter2ExpressionsValueType.java | 11 + ...sionFilterDimensionsFilter2FilterName.java | 11 + ...sionFilterDimensionsFilter2ValidEnums.java | 11 + ...nsionFilterDimensionsFilter2ValueType.java | 11 + ...pressionFilterFilter4ToValueValueType.java | 11 + ...lter3ExpressionFilterFilter4ValueType.java | 11 + ...lter3ExpressionFilterFilterFilterName.java | 11 + ...ionsFilter3ExpressionFilterFilterName.java | 11 + ...ilter3ExpressionFilterFilterValueType.java | 11 + ...DimensionsFilter3ExpressionFilterName.java | 11 + ...sionsFilter3ExpressionFilterValueType.java | 11 + ...rDimensionsFilter3ExpressionValueType.java | 11 + ...sionFilterDimensionsFilter3FilterName.java | 11 + ...sionFilterDimensionsFilter3ValidEnums.java | 11 + ...nsionFilterDimensionsFilter3ValueType.java | 11 + ...nsionFilterDimensionsFilterFilterName.java | 11 + ...nsionFilterDimensionsFilterValidEnums.java | 11 + ...ensionFilterDimensionsFilterValueType.java | 11 + ...ReportsArrayDimensionFilterFilterName.java | 11 + ...ReportsArrayDimensionFilterValidEnums.java | 11 + ...mReportsArrayDimensionFilterValueType.java | 11 + ...taApiSchemasCustomReportsArrayEnabled.java | 11 + ...piSchemasCustomReportsArrayFilterName.java | 11 + ...piSchemasCustomReportsArrayFilterType.java | 11 + ...tomReportsArrayMetricFilterFilterName.java | 11 + ...tomReportsArrayMetricFilterFilterType.java | 11 + ...ter1ExpressionsFilterFilter3ValueType.java | 11 + ...xpressionsFilterFilter3ValueValueType.java | 11 + ...ter1ExpressionsFilterFilterFilterName.java | 11 + ...icsFilter1ExpressionsFilterFilterName.java | 11 + ...lter1ExpressionsFilterFilterValueType.java | 11 + ...erMetricsFilter1ExpressionsFilterName.java | 11 + ...ricsFilter1ExpressionsFilterValueType.java | 11 + ...terMetricsFilter1ExpressionsValueType.java | 11 + ...yMetricFilterMetricsFilter1FilterName.java | 11 + ...yMetricFilterMetricsFilter1ValidEnums.java | 11 + ...ayMetricFilterMetricsFilter1ValueType.java | 11 + ...ressionsFilterFilter4ToValueValueType.java | 11 + ...ter2ExpressionsFilterFilter4ValueType.java | 11 + ...ter2ExpressionsFilterFilterFilterName.java | 11 + ...icsFilter2ExpressionsFilterFilterName.java | 11 + ...lter2ExpressionsFilterFilterValueType.java | 11 + ...erMetricsFilter2ExpressionsFilterName.java | 11 + ...ricsFilter2ExpressionsFilterValueType.java | 11 + ...erMetricsFilter2ExpressionsValidEnums.java | 11 + ...terMetricsFilter2ExpressionsValueType.java | 11 + ...yMetricFilterMetricsFilter2FilterName.java | 11 + ...yMetricFilterMetricsFilter2ValidEnums.java | 11 + ...ayMetricFilterMetricsFilter2ValueType.java | 11 + ...pressionFilterFilter4ToValueValueType.java | 11 + ...lter3ExpressionFilterFilter4ValueType.java | 11 + ...lter3ExpressionFilterFilterFilterName.java | 11 + ...ricsFilter3ExpressionFilterFilterName.java | 11 + ...ilter3ExpressionFilterFilterValueType.java | 11 + ...terMetricsFilter3ExpressionFilterName.java | 11 + ...tricsFilter3ExpressionFilterValueType.java | 11 + ...terMetricsFilter3ExpressionValidEnums.java | 11 + ...lterMetricsFilter3ExpressionValueType.java | 11 + ...yMetricFilterMetricsFilter3FilterName.java | 11 + ...yMetricFilterMetricsFilter3FilterType.java | 11 + ...yMetricFilterMetricsFilter3ValidEnums.java | 11 + ...ayMetricFilterMetricsFilter3ValueType.java | 11 + ...rMetricsFilter4FilterFilter4ValueType.java | 11 + ...cFilterMetricsFilter4FilterFilterName.java | 11 + ...erMetricsFilter4FilterFilterValueType.java | 11 + ...yMetricFilterMetricsFilter4FilterName.java | 11 + ...yMetricFilterMetricsFilter4FilterType.java | 11 + ...icFilterMetricsFilter4FilterValueType.java | 11 + ...ayMetricFilterMetricsFilter4ValueType.java | 11 + ...ayMetricFilterMetricsFilterFilterName.java | 11 + ...ayMetricFilterMetricsFilterFilterType.java | 11 + ...ayMetricFilterMetricsFilterValidEnums.java | 11 + ...rayMetricFilterMetricsFilterValueType.java | 11 + ...tomReportsArrayMetricFilterValidEnums.java | 11 + ...stomReportsArrayMetricFilterValueType.java | 11 + ...piSchemasCustomReportsArrayValidEnums.java | 11 + ...ApiSchemasCustomReportsArrayValueType.java | 11 + ...ogleAnalyticsDataApiSchemasFilterName.java | 11 + ...ogleAnalyticsDataApiSchemasFilterType.java | 11 + ...ogleAnalyticsDataApiSchemasValidEnums.java | 11 + ...oogleAnalyticsDataApiSchemasValueType.java | 11 + ...ourceGoogleAnalyticsDataApiValidEnums.java | 11 + ...SourceGoogleAnalyticsDataApiValueType.java | 11 + ...SourceGoogleDirectoryCredentialsTitle.java | 11 + ...oogleDirectorySchemasCredentialsTitle.java | 11 + .../shared/SourceGoogleDriveAuthType.java | 11 + .../shared/SourceGoogleDriveFiletype.java | 11 + .../shared/SourceGoogleDriveGoogleDrive.java | 11 + ...SourceGoogleDriveHeaderDefinitionType.java | 11 + .../models/shared/SourceGoogleDriveMode.java | 11 + .../SourceGoogleDriveParsingStrategy.java | 11 + .../SourceGoogleDriveSchemasAuthType.java | 11 + .../SourceGoogleDriveSchemasFiletype.java | 11 + ...oogleDriveSchemasHeaderDefinitionType.java | 11 + ...urceGoogleDriveSchemasStreamsFiletype.java | 11 + ...ogleDriveSchemasStreamsFormatFiletype.java | 11 + ...iveSchemasStreamsFormatFormatFiletype.java | 11 + ...iveSchemasStreamsHeaderDefinitionType.java | 11 + .../SourceGoogleDriveValidationPolicy.java | 11 + .../SourceGoogleSearchConsoleAuthType.java | 11 + ...oogleSearchConsoleGoogleSearchConsole.java | 11 + ...rceGoogleSearchConsoleSchemasAuthType.java | 11 + .../SourceGoogleSearchConsoleValidEnums.java | 11 + .../shared/SourceGoogleSheetsAuthType.java | 11 + .../SourceGoogleSheetsGoogleSheets.java | 11 + .../SourceGoogleSheetsSchemasAuthType.java | 11 + .../api/models/shared/SourceGreythr.java | 243 +++++++ .../models/shared/SourceHarvestAuthType.java | 11 + .../shared/SourceHarvestSchemasAuthType.java | 11 + .../models/shared/SourceHubspotAuthType.java | 11 + .../models/shared/SourceHubspotHubspot.java | 11 + .../shared/SourceHubspotSchemasAuthType.java | 11 + .../shared/SourceHuggingFaceDatasets.java | 242 +++++++ .../shared/SourceInstagramInstagram.java | 11 + .../models/shared/SourceIntercomIntercom.java | 11 + .../shared/SourceJotformApiEndpoint.java | 11 + .../SourceJotformSchemasApiEndpoint.java | 11 + .../api/models/shared/SourceKlarnaRegion.java | 11 + .../shared/SourceLeverHiringAuthType.java | 11 + .../shared/SourceLeverHiringEnvironment.java | 11 + .../shared/SourceLeverHiringLeverHiring.java | 11 + .../SourceLeverHiringSchemasAuthType.java | 11 + .../shared/SourceLinkedinAdsAuthMethod.java | 11 + .../shared/SourceLinkedinAdsLinkedinAds.java | 11 + .../SourceLinkedinAdsSchemasAuthMethod.java | 11 + .../shared/SourceLinkedinPagesAuthMethod.java | 11 + .../SourceLinkedinPagesSchemasAuthMethod.java | 11 + .../shared/SourceMailchimpAuthType.java | 11 + .../shared/SourceMailchimpMailchimp.java | 11 + .../SourceMailchimpSchemasAuthType.java | 11 + .../SourceMicrosoftOnedriveAuthType.java | 11 + .../SourceMicrosoftOnedriveFiletype.java | 11 + ...MicrosoftOnedriveHeaderDefinitionType.java | 11 + ...rceMicrosoftOnedriveMicrosoftOnedrive.java | 11 + .../shared/SourceMicrosoftOnedriveMode.java | 11 + ...ourceMicrosoftOnedriveParsingStrategy.java | 11 + ...ourceMicrosoftOnedriveSchemasAuthType.java | 11 + ...ourceMicrosoftOnedriveSchemasFiletype.java | 11 + ...ftOnedriveSchemasHeaderDefinitionType.java | 11 + ...crosoftOnedriveSchemasStreamsFiletype.java | 11 + ...tOnedriveSchemasStreamsFormatFiletype.java | 11 + ...iveSchemasStreamsFormatFormatFiletype.java | 11 + ...iveSchemasStreamsHeaderDefinitionType.java | 11 + ...urceMicrosoftOnedriveValidationPolicy.java | 11 + .../SourceMicrosoftSharepointAuthType.java | 11 + .../SourceMicrosoftSharepointFiletype.java | 11 + ...crosoftSharepointHeaderDefinitionType.java | 11 + ...icrosoftSharepointMicrosoftSharepoint.java | 11 + .../shared/SourceMicrosoftSharepointMode.java | 11 + ...rceMicrosoftSharepointParsingStrategy.java | 11 + ...rceMicrosoftSharepointSchemasAuthType.java | 11 + ...rceMicrosoftSharepointSchemasFiletype.java | 11 + ...SharepointSchemasHeaderDefinitionType.java | 11 + ...osoftSharepointSchemasStreamsFiletype.java | 11 + ...harepointSchemasStreamsFormatFiletype.java | 11 + ...ntSchemasStreamsFormatFormat6Filetype.java | 11 + ...intSchemasStreamsFormatFormatFiletype.java | 11 + ...intSchemasStreamsHeaderDefinitionType.java | 11 + .../SourceMicrosoftSharepointSearchScope.java | 11 + ...ceMicrosoftSharepointValidationPolicy.java | 11 + .../shared/SourceMicrosoftTeamsAuthType.java | 11 + .../SourceMicrosoftTeamsMicrosoftTeams.java | 11 + .../SourceMicrosoftTeamsSchemasAuthType.java | 11 + .../shared/SourceMixpanelOptionTitle.java | 11 + .../models/shared/SourceMixpanelRegion.java | 11 + .../SourceMixpanelSchemasOptionTitle.java | 11 + .../airbyte/api/models/shared/SourceMode.java | 8 +- .../api/models/shared/SourceModeMode.java | 34 + .../models/shared/SourceMondayAuthType.java | 11 + .../api/models/shared/SourceMondayMonday.java | 11 + .../shared/SourceMondaySchemasAuthType.java | 11 + .../shared/SourceMongodbV2ClusterType.java | 11 + .../SourceMongodbV2SchemasClusterType.java | 11 + ...sqlInvalidCDCPositionBehaviorAdvanced.java | 11 + .../api/models/shared/SourceMssqlMethod.java | 11 + .../api/models/shared/SourceMssqlMssql.java | 11 + .../shared/SourceMssqlSchemasMethod.java | 11 + ...sqlSchemasSSLMethodSSLMethodSSLMethod.java | 11 + .../shared/SourceMssqlSchemasSslMethod.java | 11 + .../SourceMssqlSchemasSslMethodSslMethod.java | 11 + .../SourceMssqlSchemasTunnelMethod.java | 11 + ...eMssqlSchemasTunnelMethodTunnelMethod.java | 11 + .../shared/SourceMssqlTunnelMethod.java | 11 + ...sqlInvalidCDCPositionBehaviorAdvanced.java | 11 + .../api/models/shared/SourceMysqlMethod.java | 11 + .../api/models/shared/SourceMysqlMode.java | 11 + .../api/models/shared/SourceMysqlMysql.java | 11 + .../shared/SourceMysqlSchemasMethod.java | 11 + .../models/shared/SourceMysqlSchemasMode.java | 11 + ...SourceMysqlSchemasSSLModeSSLModesMode.java | 11 + .../shared/SourceMysqlSchemasSslModeMode.java | 11 + .../SourceMysqlSchemasTunnelMethod.java | 11 + ...eMysqlSchemasTunnelMethodTunnelMethod.java | 11 + .../shared/SourceMysqlTunnelMethod.java | 11 + .../api/models/shared/SourceNavan.java | 168 +++++ .../models/shared/SourceNotionAuthType.java | 11 + .../api/models/shared/SourceNotionNotion.java | 11 + .../shared/SourceNotionSchemasAuthType.java | 11 + .../api/models/shared/SourceOktaAuthType.java | 11 + .../shared/SourceOktaSchemasAuthType.java | 11 + .../SourceOktaSchemasCredentialsAuthType.java | 11 + .../shared/SourceOracleConnectionType.java | 11 + .../SourceOracleEncryptionAlgorithm.java | 11 + .../shared/SourceOracleEncryptionMethod.java | 11 + .../api/models/shared/SourceOracleOracle.java | 11 + ...acleSchemasEncryptionEncryptionMethod.java | 11 + .../SourceOracleSchemasEncryptionMethod.java | 11 + .../SourceOracleSchemasTunnelMethod.java | 11 + ...OracleSchemasTunnelMethodTunnelMethod.java | 11 + .../shared/SourceOracleTunnelMethod.java | 11 + .../api/models/shared/SourcePingdom.java | 242 +++++++ .../shared/SourcePinterestAuthMethod.java | 11 + .../models/shared/SourcePinterestLevel.java | 11 + .../shared/SourcePinterestPinterest.java | 11 + .../SourcePinterestSchemasValidEnums.java | 11 + .../shared/SourcePinterestValidEnums.java | 11 + .../api/models/shared/SourcePocketSortBy.java | 11 + ...resInvalidCDCPositionBehaviorAdvanced.java | 11 + .../models/shared/SourcePostgresMethod.java | 11 + .../api/models/shared/SourcePostgresMode.java | 11 + .../models/shared/SourcePostgresPostgres.java | 11 + .../shared/SourcePostgresSchemasMethod.java | 11 + .../shared/SourcePostgresSchemasMode.java | 11 + ...ostgresSchemasReplicationMethodMethod.java | 11 + ...cePostgresSchemasSSLModeSSLModes5Mode.java | 11 + ...cePostgresSchemasSSLModeSSLModes6Mode.java | 11 + ...rcePostgresSchemasSSLModeSSLModesMode.java | 11 + .../SourcePostgresSchemasSslModeMode.java | 11 + .../SourcePostgresSchemasTunnelMethod.java | 11 + ...stgresSchemasTunnelMethodTunnelMethod.java | 11 + .../shared/SourcePostgresTunnelMethod.java | 11 + .../shared/SourceQuickbooksAuthType.java | 11 + .../SourceRdStationMarketingAuthType.java | 11 + ...eRdStationMarketingRdStationMarketing.java | 11 + .../models/shared/SourceRedshiftRedshift.java | 11 + .../models/shared/SourceRetentlyAuthType.java | 11 + .../shared/SourceRetentlySchemasAuthType.java | 11 + .../SourceRevolutMerchantEnvironment.java | 11 + .../models/shared/SourceS3DeliveryType.java | 11 + .../api/models/shared/SourceS3Filetype.java | 11 + .../shared/SourceS3HeaderDefinitionType.java | 11 + .../api/models/shared/SourceS3Mode.java | 11 + .../shared/SourceS3ParsingStrategy.java | 11 + .../airbyte/api/models/shared/SourceS3S3.java | 11 + .../shared/SourceS3SchemasFiletype.java | 11 + .../SourceS3SchemasHeaderDefinitionType.java | 11 + .../SourceS3SchemasStreamsFiletype.java | 11 + .../SourceS3SchemasStreamsFormatFiletype.java | 11 + ...S3SchemasStreamsFormatFormat6Filetype.java | 11 + ...eS3SchemasStreamsFormatFormatFiletype.java | 11 + ...eS3SchemasStreamsHeaderDefinitionType.java | 11 + .../shared/SourceS3ValidationPolicy.java | 11 + .../shared/SourceSalesforceSalesforce.java | 11 + .../shared/SourceSalesloftAuthType.java | 11 + .../SourceSalesloftSchemasAuthType.java | 11 + .../models/shared/SourceSftpAuthMethod.java | 11 + .../models/shared/SourceSftpBulkAuthType.java | 11 + .../shared/SourceSftpBulkDeliveryType.java | 11 + .../models/shared/SourceSftpBulkFiletype.java | 11 + .../SourceSftpBulkHeaderDefinitionType.java | 11 + .../api/models/shared/SourceSftpBulkMode.java | 11 + .../shared/SourceSftpBulkParsingStrategy.java | 11 + .../shared/SourceSftpBulkSchemasAuthType.java | 11 + .../SourceSftpBulkSchemasDeliveryType.java | 11 + .../shared/SourceSftpBulkSchemasFiletype.java | 11 + ...ceSftpBulkSchemasHeaderDefinitionType.java | 11 + .../shared/SourceSftpBulkSchemasMode.java | 11 + .../SourceSftpBulkSchemasStreamsFiletype.java | 11 + ...eSftpBulkSchemasStreamsFormatFiletype.java | 11 + ...lkSchemasStreamsFormatFormat6Filetype.java | 11 + ...ulkSchemasStreamsFormatFormatFiletype.java | 11 + ...ulkSchemasStreamsHeaderDefinitionType.java | 11 + .../SourceSftpBulkValidationPolicy.java | 11 + .../shared/SourceSftpSchemasAuthMethod.java | 11 + .../shared/SourceShopifyAuthMethod.java | 11 + .../SourceShopifySchemasAuthMethod.java | 11 + .../models/shared/SourceShopifyShopify.java | 11 + .../models/shared/SourceSlackOptionTitle.java | 11 + .../shared/SourceSlackSchemasOptionTitle.java | 11 + .../api/models/shared/SourceSlackSlack.java | 11 + .../shared/SourceSmartsheetsAuthType.java | 11 + .../SourceSmartsheetsSchemasAuthType.java | 11 + .../shared/SourceSmartsheetsSmartsheets.java | 11 + ...rceSnapchatMarketingSnapchatMarketing.java | 11 + .../shared/SourceSnowflakeAuthType.java | 11 + .../SourceSnowflakeSchemasAuthType.java | 11 + ...ceSnowflakeSchemasCredentialsAuthType.java | 11 + .../shared/SourceSnowflakeSnowflake.java | 11 + .../models/shared/SourceSquareAuthType.java | 11 + .../shared/SourceSquareSchemasAuthType.java | 11 + .../models/shared/SourceStravaAuthType.java | 11 + .../shared/SourceSurveySparrowUrlBase.java | 11 + .../shared/SourceSurveymonkeyAuthMethod.java | 11 + .../SourceSurveymonkeySurveymonkey.java | 11 + .../shared/SourceTiktokMarketingAuthType.java | 11 + .../SourceTiktokMarketingSchemasAuthType.java | 11 + .../SourceTiktokMarketingTiktokMarketing.java | 11 + .../shared/SourceTremendousEnvironment.java | 11 + .../shared/SourceTrustpilotAuthType.java | 11 + .../SourceTrustpilotSchemasAuthType.java | 11 + .../models/shared/SourceTypeformAuthType.java | 11 + .../shared/SourceTypeformSchemasAuthType.java | 11 + .../models/shared/SourceTypeformTypeform.java | 11 + .../models/shared/SourceVitallyStatus.java | 11 + .../SourceYahooFinancePriceInterval.java | 11 + ...ourceYoutubeAnalyticsYoutubeAnalytics.java | 11 + .../shared/SourceZendeskChatCredentials.java | 11 + .../SourceZendeskChatSchemasCredentials.java | 11 + .../shared/SourceZendeskChatZendeskChat.java | 11 + .../SourceZendeskSunshineAuthMethod.java | 11 + ...ourceZendeskSunshineSchemasAuthMethod.java | 11 + .../SourceZendeskSupportCredentials.java | 11 + ...ourceZendeskSupportSchemasCredentials.java | 11 + .../SourceZendeskSupportZendeskSupport.java | 11 + .../shared/SourceZendeskTalkAuthType.java | 11 + .../SourceZendeskTalkSchemasAuthType.java | 11 + .../shared/SourceZendeskTalkZendeskTalk.java | 11 + ...rceZohoAnalyticsMetadataApiDataCenter.java | 11 + .../shared/SourceZohoBiginDataCenter.java | 11 + .../shared/SourceZohoBillingRegion.java | 11 + .../models/shared/SourceZohoBooksRegion.java | 11 + .../shared/SourceZohoCampaignDataCenter.java | 11 + .../shared/SourceZohoCrmEnvironment.java | 11 + .../shared/SourceZohoExpenseDataCenter.java | 11 + .../shared/SourceZohoInvoiceRegion.java | 11 + .../airbyte/api/models/shared/SpacexApi.java | 11 + .../airbyte/api/models/shared/Sparkpost.java | 11 + .../airbyte/api/models/shared/SplitIo.java | 11 + .../airbyte/api/models/shared/Spotlercrm.java | 11 + .../com/airbyte/api/models/shared/Square.java | 11 + .../api/models/shared/Squarespace.java | 11 + .../com/airbyte/api/models/shared/State.java | 11 + .../api/models/shared/StateFilterEnum.java | 11 + .../api/models/shared/StatisticsInterval.java | 11 + .../airbyte/api/models/shared/Statsig.java | 11 + .../com/airbyte/api/models/shared/Status.java | 11 + .../airbyte/api/models/shared/Statuspage.java | 11 + .../airbyte/api/models/shared/Stockdata.java | 11 + .../airbyte/api/models/shared/Storage.java | 11 + .../api/models/shared/StorageType.java | 11 + .../airbyte/api/models/shared/Strategies.java | 11 + .../com/airbyte/api/models/shared/Strava.java | 11 + .../shared/StreamConfigurationsInput.java | 115 ++++ .../api/models/shared/StreamMapperType.java | 11 + .../com/airbyte/api/models/shared/Stripe.java | 11 + .../api/models/shared/SurveySparrow.java | 11 + .../airbyte/api/models/shared/Survicate.java | 11 + .../shared/SwipeUpAttributionWindow.java | 11 + .../airbyte/api/models/shared/Systeme.java | 11 + .../airbyte/api/models/shared/Taboola.java | 11 + .../api/models/shared/TargetsType.java | 11 + .../airbyte/api/models/shared/Teamtailor.java | 11 + .../airbyte/api/models/shared/Teamwork.java | 11 + .../models/shared/TechnicalIndicatorType.java | 11 + .../com/airbyte/api/models/shared/Tempo.java | 11 + .../airbyte/api/models/shared/Teradata.java | 11 + .../models/shared/TestDestinationType.java | 11 + .../airbyte/api/models/shared/Testrail.java | 11 + .../api/models/shared/TheGuardianApi.java | 11 + .../airbyte/api/models/shared/Thinkific.java | 11 + .../api/models/shared/Ticketmaster.java | 11 + .../api/models/shared/Tickettailor.java | 11 + .../api/models/shared/TimeAggregates.java | 11 + .../airbyte/api/models/shared/TimeFrame.java | 11 + .../api/models/shared/TimeGranularity.java | 11 + .../models/shared/TimeGranularityType.java | 11 + .../api/models/shared/TimeInterval.java | 11 + .../airbyte/api/models/shared/TimePeriod.java | 11 + .../com/airbyte/api/models/shared/Timely.java | 11 + .../airbyte/api/models/shared/Timeplus.java | 11 + .../airbyte/api/models/shared/Tinyemail.java | 11 + .../airbyte/api/models/shared/Todoist.java | 11 + .../api/models/shared/TopHeadlinesTopic.java | 11 + .../airbyte/api/models/shared/TrackPms.java | 11 + .../shared/TransformationQueryRunType.java | 11 + .../com/airbyte/api/models/shared/Trello.java | 11 + .../airbyte/api/models/shared/Tremendous.java | 11 + .../airbyte/api/models/shared/Trustpilot.java | 11 + .../api/models/shared/TunnelMethod.java | 11 + .../api/models/shared/TvmazeSchedule.java | 11 + .../airbyte/api/models/shared/TwelveData.java | 11 + .../com/airbyte/api/models/shared/Twilio.java | 11 + .../api/models/shared/TwilioTaskrouter.java | 11 + .../airbyte/api/models/shared/Twitter.java | 11 + .../airbyte/api/models/shared/Typesense.java | 11 + .../airbyte/api/models/shared/URLRegion.java | 11 + .../airbyte/api/models/shared/Ubidots.java | 11 + .../api/models/shared/UnitOfMeasure.java | 11 + .../com/airbyte/api/models/shared/Units.java | 11 + .../airbyte/api/models/shared/Unleash.java | 11 + .../airbyte/api/models/shared/Uppromote.java | 11 + .../airbyte/api/models/shared/UrlBase.java | 11 + .../airbyte/api/models/shared/UsCensus.java | 11 + .../airbyte/api/models/shared/Uservoice.java | 11 + .../models/shared/ValidActionBreakdowns.java | 11 + .../api/models/shared/ValidAdSetStatuses.java | 11 + .../api/models/shared/ValidAdStatuses.java | 11 + .../api/models/shared/ValidBreakdowns.java | 11 + .../models/shared/ValidCampaignStatuses.java | 11 + .../api/models/shared/ValidationPolicy.java | 11 + .../airbyte/api/models/shared/Validenums.java | 11 + .../airbyte/api/models/shared/ValueType.java | 11 + .../airbyte/api/models/shared/Vantage.java | 11 + .../airbyte/api/models/shared/Vectara.java | 11 + .../com/airbyte/api/models/shared/Veeqo.java | 11 + .../com/airbyte/api/models/shared/Vercel.java | 11 + .../airbyte/api/models/shared/VerifyCa.java | 10 +- .../models/shared/ViewAttributionWindow.java | 11 + .../api/models/shared/ViewWindowDays.java | 11 + .../api/models/shared/VismaEconomic.java | 11 + .../airbyte/api/models/shared/Vitally.java | 11 + .../com/airbyte/api/models/shared/Vwo.java | 11 + .../airbyte/api/models/shared/Waiteraid.java | 11 + .../api/models/shared/WasabiStatsApi.java | 11 + .../api/models/shared/Weatherstack.java | 11 + .../airbyte/api/models/shared/Weaviate.java | 11 + .../api/models/shared/WebScrapper.java | 11 + .../airbyte/api/models/shared/Webflow.java | 11 + .../airbyte/api/models/shared/WhenIWork.java | 11 + .../api/models/shared/WhiskyHunter.java | 11 + .../api/models/shared/WikipediaPageviews.java | 11 + .../api/models/shared/Woocommerce.java | 11 + .../airbyte/api/models/shared/Wordpress.java | 11 + .../airbyte/api/models/shared/Workable.java | 11 + .../api/models/shared/Workflowmax.java | 11 + .../airbyte/api/models/shared/Workramp.java | 11 + .../com/airbyte/api/models/shared/Wrike.java | 11 + .../com/airbyte/api/models/shared/Wufoo.java | 11 + .../com/airbyte/api/models/shared/Xkcd.java | 11 + .../com/airbyte/api/models/shared/Xsolla.java | 11 + .../api/models/shared/YahooFinancePrice.java | 11 + .../api/models/shared/YandexMetrica.java | 11 + .../api/models/shared/Yellowbrick.java | 11 + .../com/airbyte/api/models/shared/Yotpo.java | 11 + .../api/models/shared/YouNeedABudgetYnab.java | 11 + .../api/models/shared/YoutubeData.java | 11 + .../models/shared/ZapierSupportedStorage.java | 11 + .../api/models/shared/ZendeskSunshine.java | 11 + .../airbyte/api/models/shared/Zenefits.java | 11 + .../airbyte/api/models/shared/Zenloop.java | 11 + .../shared/ZohoAnalyticsMetadataApi.java | 11 + .../airbyte/api/models/shared/ZohoBigin.java | 11 + .../api/models/shared/ZohoBilling.java | 11 + .../airbyte/api/models/shared/ZohoBooks.java | 11 + .../api/models/shared/ZohoCRMEdition.java | 11 + .../api/models/shared/ZohoCampaign.java | 11 + .../airbyte/api/models/shared/ZohoCrm.java | 11 + .../airbyte/api/models/shared/ZohoDesk.java | 11 + .../api/models/shared/ZohoExpense.java | 11 + .../api/models/shared/ZohoInventory.java | 11 + .../api/models/shared/ZohoInvoice.java | 11 + .../api/models/shared/ZonkaFeedback.java | 11 + .../com/airbyte/api/models/shared/Zoom.java | 11 + .../airbyte/api/utils/BigDecimalString.java | 30 +- .../airbyte/api/utils/BigIntegerString.java | 30 +- .../com/airbyte/api/utils/RequestBody.java | 32 +- 1346 files changed, 17938 insertions(+), 829 deletions(-) delete mode 100644 docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.md create mode 100644 docs/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.md create mode 100644 docs/models/shared/DestinationOracleEncryption.md delete mode 100644 docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.md create mode 100644 docs/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.md create mode 100644 docs/models/shared/EncryptionAES.md create mode 100644 docs/models/shared/EncryptionMapperAlgorithm.md create mode 100644 docs/models/shared/EncryptionRSA.md create mode 100644 docs/models/shared/Equal.md create mode 100644 docs/models/shared/FieldRenaming.md create mode 100644 docs/models/shared/Greythr.md create mode 100644 docs/models/shared/Hashing.md create mode 100644 docs/models/shared/HashingMethod.md create mode 100644 docs/models/shared/HuggingFaceDatasets.md create mode 100644 docs/models/shared/Navan.md create mode 100644 docs/models/shared/Not.md create mode 100644 docs/models/shared/Padding.md create mode 100644 docs/models/shared/Pingdom.md create mode 100644 docs/models/shared/Resolution.md create mode 100644 docs/models/shared/RowFiltering.md create mode 100644 docs/models/shared/RowFilteringOperation.md create mode 100644 docs/models/shared/RowFilteringOperationType.md create mode 100644 docs/models/shared/SourceGreythr.md create mode 100644 docs/models/shared/SourceHuggingFaceDatasets.md create mode 100644 docs/models/shared/SourceModeMode.md create mode 100644 docs/models/shared/SourceNavan.md create mode 100644 docs/models/shared/SourcePingdom.md create mode 100644 docs/models/shared/StreamConfigurationsInput.md delete mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding1Mode.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java delete mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.java create mode 100644 src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.java create mode 100644 src/main/java/com/airbyte/api/models/shared/EncryptionAES.java create mode 100644 src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.java create mode 100644 src/main/java/com/airbyte/api/models/shared/EncryptionRSA.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Equal.java create mode 100644 src/main/java/com/airbyte/api/models/shared/FieldRenaming.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Greythr.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Hashing.java create mode 100644 src/main/java/com/airbyte/api/models/shared/HashingMethod.java create mode 100644 src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Navan.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Not.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Padding.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Pingdom.java create mode 100644 src/main/java/com/airbyte/api/models/shared/Resolution.java create mode 100644 src/main/java/com/airbyte/api/models/shared/RowFiltering.java create mode 100644 src/main/java/com/airbyte/api/models/shared/RowFilteringOperation.java create mode 100644 src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceGreythr.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceModeMode.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourceNavan.java create mode 100644 src/main/java/com/airbyte/api/models/shared/SourcePingdom.java create mode 100644 src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java 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..2a6120fb0 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: 20c551a95555f120a6f86c0a4ded0f8e docVersion: 1.0.0 - speakeasyVersion: 1.453.10 - generationVersion: 2.474.15 - releaseVersion: 1.6.0 - configChecksum: d006360ef852d40cb8491ae4b4ea9373 + speakeasyVersion: 1.476.0 + generationVersion: 2.496.0 + releaseVersion: 1.7.0 + configChecksum: b182c7f077c447cb636826fcf5839ac0 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 + core: 3.33.5 globalSecurity: 2.82.7 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 @@ -318,7 +318,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 @@ -467,6 +467,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 +532,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 @@ -774,12 +775,16 @@ 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 @@ -797,6 +802,7 @@ generatedFiles: - docs/models/shared/Faker.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 @@ -885,6 +891,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,6 +902,8 @@ 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 @@ -904,6 +913,7 @@ generatedFiles: - 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/IAMRole.md - docs/models/shared/IAMUser.md @@ -1026,6 +1036,7 @@ generatedFiles: - docs/models/shared/NamespaceDefinitionEnumNoDefault.md - docs/models/shared/Nasa.md - docs/models/shared/NativeNetworkEncryptionNNE.md + - docs/models/shared/Navan.md - docs/models/shared/Netsuite.md - docs/models/shared/NewsApi.md - docs/models/shared/NewsdataIo.md @@ -1041,6 +1052,7 @@ 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/Notion.md - docs/models/shared/NotionCredentials.md @@ -1090,6 +1102,7 @@ generatedFiles: - 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 @@ -1117,6 +1130,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 @@ -1187,6 +1201,7 @@ generatedFiles: - docs/models/shared/ReportingDataObject.md - docs/models/shared/Require.md - docs/models/shared/Required.md + - docs/models/shared/Resolution.md - docs/models/shared/Retently.md - docs/models/shared/Revenuecat.md - docs/models/shared/RevolutMerchant.md @@ -1195,6 +1210,9 @@ generatedFiles: - 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 @@ -1834,6 +1852,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 @@ -1853,6 +1872,7 @@ 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/SourceIlluminaBasespace.md - docs/models/shared/SourceIncidentIo.md @@ -2007,6 +2027,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 @@ -2059,6 +2080,7 @@ generatedFiles: - 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/SourceNewsdataIo.md @@ -2133,6 +2155,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 @@ -2530,6 +2553,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 @@ -3043,7 +3067,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 @@ -3192,6 +3216,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 +3281,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 @@ -3499,12 +3524,16 @@ 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 @@ -3522,6 +3551,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Faker.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 @@ -3610,6 +3640,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,6 +3651,8 @@ 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 @@ -3629,6 +3662,7 @@ generatedFiles: - 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/IAMRole.java - src/main/java/com/airbyte/api/models/shared/IAMUser.java @@ -3751,6 +3785,7 @@ generatedFiles: - 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/Netsuite.java - src/main/java/com/airbyte/api/models/shared/NewsApi.java - src/main/java/com/airbyte/api/models/shared/NewsdataIo.java @@ -3766,6 +3801,7 @@ 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/Notion.java - src/main/java/com/airbyte/api/models/shared/NotionCredentials.java @@ -3815,6 +3851,7 @@ generatedFiles: - 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 @@ -3842,6 +3879,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 @@ -3912,6 +3950,7 @@ generatedFiles: - 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/Retently.java - src/main/java/com/airbyte/api/models/shared/Revenuecat.java - src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java @@ -3920,6 +3959,9 @@ generatedFiles: - 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 @@ -4559,6 +4601,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 @@ -4578,6 +4621,7 @@ 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/SourceIlluminaBasespace.java - src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java @@ -4732,6 +4776,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 @@ -4784,6 +4829,7 @@ generatedFiles: - 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/SourceNewsdataIo.java @@ -4858,6 +4904,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 @@ -5255,6 +5302,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 @@ -5453,16 +5501,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": "", "nonBreakingSchemaUpdatesBehavior": "ignore", "sourceId": "95e66a59-8045-4307-9678-63bc3c9b8c93"} responses: "200": - application/json: {"connectionId": "", "createdAt": 781932, "destinationId": "", "name": "", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "deprecated", "workspaceId": ""} + application/json: {"configurations": {}, "connectionId": "", "createdAt": 781932, "dataResidency": "auto", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "deprecated", "workspaceId": ""} 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": "1328ef85-1ea7-4fd4-b78a-5873822bcbf2", "namespaceDefinition": "destination", "namespaceFormat": "", "nonBreakingSchemaUpdatesBehavior": "ignore", "sourceId": "0d0b7adc-3b02-490e-a47c-6957e4827afd"} responses: "200": - application/json: {"connectionId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "createdAt": 633409, "destinationId": "", "name": "", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "active", "workspaceId": ""} + application/json: {"configurations": {}, "connectionId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "createdAt": 633409, "dataResidency": "auto", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "active", "workspaceId": ""} deleteConnection: speakeasy-default-delete-connection: parameters: @@ -5475,44 +5523,49 @@ examples: connectionId: "" responses: "200": - application/json: {"connectionId": "", "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": "", "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", "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": "", "createdAt": 726733, "destinationId": "", "name": "test-connection", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "deprecated", "workspaceId": ""}, {"connectionId": "", "createdAt": 909205, "destinationId": "", "name": "", "schedule": {"scheduleType": "manual"}, "sourceId": "", "status": "inactive", "workspaceId": ""}, {"connectionId": "", "createdAt": 374233, "destinationId": "", "name": "", "schedule": {"scheduleType": "cron"}, "sourceId": "49237019-645d-47d4-b45b-5eddf97775ce", "status": "deprecated", "workspaceId": ""}, {"connectionId": "", "createdAt": 731924, "destinationId": "al312fs-0ab1-4f72-9ed7-0b8fc27c5826", "name": "", "schedule": {"scheduleType": "manual"}, "sourceId": "", "status": "inactive", "workspaceId": ""}, {"connectionId": "", "createdAt": 901846, "destinationId": "", "name": "", "schedule": {"scheduleType": "manual"}, "sourceId": "", "status": "deprecated", "workspaceId": ""}, {"connectionId": "", "createdAt": 475200, "destinationId": "", "name": "", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "active", "workspaceId": ""}, {"connectionId": "", "createdAt": 143014, "dataResidency": "auto", "destinationId": "", "name": "", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "active", "workspaceId": ""}], "next": "https://api.airbyte.com/v1/connections?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/connections?limit=5&offset=0"} + application/json: {"data": [{"configurations": {}, "connectionId": "", "createdAt": 726733, "dataResidency": "auto", "destinationId": "", "name": "test-connection", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "deprecated", "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 909205, "dataResidency": "auto", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "", "status": "inactive", "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 374233, "dataResidency": "auto", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "49237019-645d-47d4-b45b-5eddf97775ce", "status": "deprecated", "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 731924, "dataResidency": "auto", "destinationId": "al312fs-0ab1-4f72-9ed7-0b8fc27c5826", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "", "status": "inactive", "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 901846, "dataResidency": "auto", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "", "status": "deprecated", "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 475200, "dataResidency": "auto", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "active", "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 143014, "dataResidency": "auto", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "active", "workspaceId": ""}], "next": "https://api.airbyte.com/v1/connections?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/connections?limit=5&offset=0"} patchConnection: Connection Update Request Example: parameters: path: connectionId: "" requestBody: - application/json: {"name": "Postgres-to-Bigquery"} + application/json: {"name": "Postgres-to-Bigquery", "namespaceFormat": ""} responses: "200": - application/json: {"connectionId": "", "createdAt": 106227, "destinationId": "", "name": "", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "active", "workspaceId": ""} + application/json: {"configurations": {}, "connectionId": "", "createdAt": 106227, "dataResidency": "auto", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "active", "workspaceId": ""} Connection Get Response Example: parameters: path: connectionId: "" requestBody: - application/json: {"namespaceFormat": "${SOURCE_NAMESPACE}"} + application/json: {"namespaceFormat": ""} responses: "200": - application/json: {"connectionId": "", "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": "", "createdAt": 184214, "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", "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": "", "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": {"embedding": {}, "indexing": {"auth": {"password": "0SAaZ1kxEg7h49V", "username": "Sonny.Miller"}, "collection": "", "db": "", "host": "tcp://my-local-milvus:19530", "text_field": "text", "vector_field": "vector"}, "omit_raw_text": false, "processing": {"chunk_overlap": 0, "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"} 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": "", "workspaceId": "b4797bfc-7d8a-4652-9eb4-9a265e47b02e"} + application/json: {"configuration": {"credential": {"credential_type": "HMAC_KEY", "hmac_key_access_id": "1234567890abcdefghij1234", "hmac_key_secret": "1234567890abcdefghij1234567890ABCDEFGHIJ"}, "format": {"format_type": "JSONL"}, "gcs_bucket_name": "airbyte_sync", "gcs_bucket_path": "data_sync/test", "gcs_bucket_region": "us"}, "name": "", "workspaceId": "b4797bfc-7d8a-4652-9eb4-9a265e47b02e"} responses: "200": - application/json: {"configuration": {"bucket_name": "", "credentials": {"aws_access_key_id": "", "aws_secret_access_key": ""}, "lakeformation_database_name": ""}, "createdAt": 948482, "definitionId": "", "destinationId": "af0c3c67-aa61-419f-8922-95b0bf840e86", "destinationType": "", "name": "", "workspaceId": ""} + application/json: {"configuration": {"bucket_name": "", "credentials": {"aws_access_key_id": "", "aws_secret_access_key": ""}, "glue_catalog_float_as_decimal": false, "lakeformation_database_name": "", "lakeformation_governed_tables": false, "partitioning": "NO PARTITIONING", "region": ""}, "createdAt": 948482, "definitionId": "", "destinationId": "af0c3c67-aa61-419f-8922-95b0bf840e86", "destinationType": "", "name": "", "workspaceId": ""} deleteDestination: speakeasy-default-delete-destination: parameters: @@ -5525,12 +5578,17 @@ examples: destinationId: "" responses: "200": - application/json: {"configuration": {"host": "cooperative-brochure.biz", "sid": "", "username": "Colt_Greenfelder"}, "createdAt": 243454, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "My Destination", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"host": "cooperative-brochure.biz", "port": 1521, "schema": "airbyte", "sid": "", "username": "Colt_Greenfelder"}, "createdAt": 243454, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "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,13 +5598,13 @@ examples: application/json: {"configuration": {"destination_path": "motherduck:"}, "name": "My Destination"} responses: "200": - application/json: {"configuration": {"database": "", "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": "", "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: "" requestBody: - application/json: {"configuration": {"corpus_name": "", "customer_id": "", "oauth2": {"client_id": "", "client_secret": ""}}} + application/json: {"configuration": {"corpus_name": "", "customer_id": "", "oauth2": {"client_id": "", "client_secret": ""}, "parallelize": false, "title_field": ""}} responses: "200": application/json: {"configuration": {"destination_path": "motherduck:"}, "createdAt": 663057, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} @@ -5556,7 +5614,7 @@ examples: path: destinationId: "" requestBody: - application/json: {"configuration": {"database": "", "host": "urban-receptor.org", "username": "Kaylie_Terry"}, "name": "My Destination"} + application/json: {"configuration": {"database": "", "host": "urban-receptor.org", "port": 8123, "ssl": false, "username": "Kaylie_Terry"}, "name": "My Destination"} responses: "200": application/json: {"configuration": {"project_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"} @@ -5565,10 +5623,10 @@ examples: path: destinationId: "" 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": ""} + application/json: {"configuration": {"credential": {"credential_type": "HMAC_KEY", "hmac_key_access_id": "1234567890abcdefghij1234", "hmac_key_secret": "1234567890abcdefghij1234567890ABCDEFGHIJ"}, "format": {"flattening": "No flattening", "format_type": "CSV"}, "gcs_bucket_name": "airbyte_sync", "gcs_bucket_path": "data_sync/test", "gcs_bucket_region": "us"}, "name": ""} responses: "200": - application/json: {"configuration": {"database": "", "host": "concerned-warming.biz", "username": "Helen.Lubowitz52"}, "createdAt": 490036, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"database": "", "host": "concerned-warming.biz", "port": 1433, "schema": "public", "username": "Helen.Lubowitz52"}, "createdAt": 490036, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} getHealthCheck: {} cancelJob: speakeasy-default-cancel-job: @@ -5603,6 +5661,8 @@ examples: "": parameters: query: + limit: 20 + offset: 0 createdAtStart: 1687450500000 createdAtEnd: 1687450500000 updatedAtStart: 1687450500000 @@ -5614,6 +5674,8 @@ examples: Job List Response Example: parameters: query: + limit: 20 + offset: 0 createdAtStart: 1687450500000 createdAtEnd: 1687450500000 updatedAtStart: 1687450500000 @@ -5671,16 +5733,16 @@ examples: createSource: Source Creation Request Example: requestBody: - application/json: {"configuration": {"api_key": "", "start_date": "2021-01-01T00:00:00Z"}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"database": "", "host": "specific-arcade.biz", "port": 5432, "username": "Twila_Sawayn52"}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} responses: "200": - application/json: {"configuration": {"api_key": ""}, "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": {"api_key": "", "subdomain": ""}, "createdAt": 972659, "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": ""}, "name": "", "workspaceId": "fdc883bf-195a-466e-bf9b-b403f120decf"} + application/json: {"configuration": {"num_workers": 3, "product_catalog": "2.0", "site": "airbyte-test", "site_api_key": "", "start_date": "2021-01-25T00:00:00Z"}, "name": "", "workspaceId": "95a66ef9-bb40-43f1-b20d-ecfefe50ecd4"} responses: "200": - application/json: {"configuration": {"token": ""}, "createdAt": 909345, "definitionId": "", "name": "", "sourceId": "0c31738c-0b2d-4887-b506-e2cd1c39cc35", "sourceType": "", "workspaceId": ""} + application/json: {"configuration": {"appid": "", "lat": "45.7603", "lon": "4.835659"}, "createdAt": 979831, "definitionId": "", "name": "", "sourceId": "0c31738c-0b2d-4887-b506-e2cd1c39cc35", "sourceType": "", "workspaceId": ""} deleteSource: speakeasy-default-delete-source: parameters: @@ -5693,7 +5755,7 @@ examples: sourceId: "" responses: "200": - application/json: {"configuration": {"credentials": {"access_token": ""}}, "createdAt": 227873, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"credentials": {"access_token": ""}, "enable_experimental_streams": false}, "createdAt": 227873, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} initiateOAuth: speakeasy-default-initiate-O-auth: requestBody: @@ -5703,16 +5765,19 @@ 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": "", "start_date": "2024-07-26T03:28:50.329Z"}, "createdAt": 736973, "definitionId": "", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/sources?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/sources?limit=5&offset=0"} + application/json: {"data": [{"configuration": {"api_key": "", "start_date": "2025-07-26T03:28:50.329Z"}, "createdAt": 736973, "definitionId": "", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/sources?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/sources?limit=5&offset=0"} patchSource: Source Update Request Example: parameters: path: sourceId: "" requestBody: - application/json: {"configuration": {"x-api-key": ""}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"access_key": "", "ignore_weekends": true, "start_date": "YYYY-MM-DD"}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} responses: "200": application/json: {"configuration": {"secret": ""}, "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"} @@ -5721,10 +5786,10 @@ examples: path: sourceId: "" requestBody: - application/json: {"configuration": {"api_key": ""}, "name": "My source"} + application/json: {"configuration": {"bearer_token": "", "entity": "kases", "start_date": "2023-11-16T08:29:40.113Z"}, "name": "My source"} responses: "200": - application/json: {"configuration": {"api_key": ""}, "createdAt": 291381, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"client_id": "", "client_secret": "", "tenant_id": "", "user_id": ""}, "createdAt": 925304, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} putSource: Source Update Request Example: parameters: @@ -5740,18 +5805,19 @@ examples: path: sourceId: "" requestBody: - application/json: {"configuration": {"client_id": "", "developer_token": "", "refresh_token": ""}, "name": ""} + application/json: {"configuration": {"client_id": "", "client_secret": "", "developer_token": "", "lookback_window": 0, "refresh_token": "", "tenant_id": "common"}, "name": ""} responses: "200": - application/json: {"configuration": {"api_token": ""}, "createdAt": 959713, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"username": "Vicenta.Botsford"}, "createdAt": 140365, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} getStreamProperties: speakeasy-default-get-stream-properties: parameters: query: sourceId: "" + ignoreCache: false responses: "200": - application/json: [] + application/json: [{}] listUsersWithinAnOrganization: speakeasy-default-list-users-within-an-organization: parameters: @@ -5773,13 +5839,13 @@ examples: application/json: {"name": "Company Workspace Name"} responses: "200": - application/json: {"name": "", "workspaceId": ""} + application/json: {"dataResidency": "auto", "name": "", "workspaceId": ""} Workspace Creation Response Example: requestBody: application/json: {"name": ""} responses: "200": - application/json: {"name": "", "workspaceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5"} + application/json: {"dataResidency": "auto", "name": "", "workspaceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5"} deleteWorkspace: speakeasy-default-delete-workspace: parameters: @@ -5795,6 +5861,11 @@ examples: application/json: {"dataResidency": "auto", "name": "Acme Company", "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"} @@ -5807,7 +5878,7 @@ examples: application/json: {"name": "Company Workspace Name"} responses: "200": - application/json: {"name": "", "workspaceId": ""} + application/json: {"dataResidency": "auto", "name": "", "workspaceId": ""} Workspace Update Response Example: parameters: path: @@ -5816,5 +5887,6 @@ examples: application/json: {"name": ""} responses: "200": - application/json: {"name": "", "workspaceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5"} + application/json: {"dataResidency": "auto", "name": "", "workspaceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5"} +examplesVersion: 1.0.0 generatedTests: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 45ee62e74..5848f3ebe 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.453.10 +speakeasyVersion: 1.476.0 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:92c5f934d42f342e56ea6bf73fd30de7cd6185b7d3e11f8c737a99f091a32beb + sourceBlobDigest: sha256:986e0a204bd4d6b411c07dbccc22df6b14844a5ce43aabe0d640fe9ef7446e52 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:92c5f934d42f342e56ea6bf73fd30de7cd6185b7d3e11f8c737a99f091a32beb + sourceBlobDigest: sha256:986e0a204bd4d6b411c07dbccc22df6b14844a5ce43aabe0d640fe9ef7446e52 codeSamplesNamespace: my-source-java-code-samples - codeSamplesRevisionDigest: sha256:4bcdc1c05c1002038c44996ff6e1425317394805a9bbc73842fbd2e75ccfab04 + codeSamplesRevisionDigest: sha256:14390e3208b1297e0372e68e9dd8c9a7d4c5380f74fab6e4edcf5e96d04bf768 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 66dc9051d..d6d4ea5e1 100755 --- a/README.md +++ b/README.md @@ -1 +1,366 @@ -undefined \ No newline at end of file +undefined + +## Summary + +airbyte-api: Programmatically control Airbyte Cloud, OSS & Enterprise. + + + +## Table of Contents + + * [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) + + + + +## 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 + + com.airbyte + api + 1.7.0 + +``` + +### 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 +``` + + + +## 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.GeographyEnum; +import com.airbyte.api.models.shared.NamespaceDefinitionEnum; +import com.airbyte.api.models.shared.NonBreakingSchemaUpdatesBehaviorEnum; +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") + .dataResidency(GeographyEnum.AUTO) + .name("Postgres-to-Bigquery") + .namespaceDefinition(NamespaceDefinitionEnum.DESTINATION) + .namespaceFormat("") + .nonBreakingSchemaUpdatesBehavior(NonBreakingSchemaUpdatesBehaviorEnum.IGNORE) + .build(); + + CreateConnectionResponse res = sdk.connections().createConnection() + .request(req) + .call(); + + if (res.connectionResponse().isPresent()) { + // handle response + } + } +} +``` + + + +## 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.GeographyEnum; +import com.airbyte.api.models.shared.NamespaceDefinitionEnum; +import com.airbyte.api.models.shared.NonBreakingSchemaUpdatesBehaviorEnum; +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") + .dataResidency(GeographyEnum.AUTO) + .name("Postgres-to-Bigquery") + .namespaceDefinition(NamespaceDefinitionEnum.DESTINATION) + .namespaceFormat("") + .nonBreakingSchemaUpdatesBehavior(NonBreakingSchemaUpdatesBehaviorEnum.IGNORE) + .build(); + + CreateConnectionResponse res = sdk.connections().createConnection() + .request(req) + .call(); + + if (res.connectionResponse().isPresent()) { + // handle response + } + } +} +``` + + + +## Available Resources and Operations + +
+Available methods + + +### [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 + +### [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 + +
+ + + +## 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.GeographyEnum; +import com.airbyte.api.models.shared.NamespaceDefinitionEnum; +import com.airbyte.api.models.shared.NonBreakingSchemaUpdatesBehaviorEnum; +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") + .dataResidency(GeographyEnum.AUTO) + .name("Postgres-to-Bigquery") + .namespaceDefinition(NamespaceDefinitionEnum.DESTINATION) + .namespaceFormat("") + .nonBreakingSchemaUpdatesBehavior(NonBreakingSchemaUpdatesBehaviorEnum.IGNORE) + .build(); + + CreateConnectionResponse res = sdk.connections().createConnection() + .request(req) + .call(); + + if (res.connectionResponse().isPresent()) { + // handle response + } + } +} +``` + + + +## Server Selection + +### Override Server URL Per-Client + +The default server can also 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.GeographyEnum; +import com.airbyte.api.models.shared.NamespaceDefinitionEnum; +import com.airbyte.api.models.shared.NonBreakingSchemaUpdatesBehaviorEnum; +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") + .dataResidency(GeographyEnum.AUTO) + .name("Postgres-to-Bigquery") + .namespaceDefinition(NamespaceDefinitionEnum.DESTINATION) + .namespaceFormat("") + .nonBreakingSchemaUpdatesBehavior(NonBreakingSchemaUpdatesBehaviorEnum.IGNORE) + .build(); + + CreateConnectionResponse res = sdk.connections().createConnection() + .request(req) + .call(); + + if (res.connectionResponse().isPresent()) { + // handle response + } + } +} +``` + + + diff --git a/RELEASES.md b/RELEASES.md index 52a5a2af8..69b8410b2 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-01-25 00:15:23 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.476.0 (2.496.0) 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/USAGE.md b/USAGE.md index 3657b9110..05f3839ae 100644 --- a/USAGE.md +++ b/USAGE.md @@ -5,6 +5,9 @@ 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.GeographyEnum; +import com.airbyte.api.models.shared.NamespaceDefinitionEnum; +import com.airbyte.api.models.shared.NonBreakingSchemaUpdatesBehaviorEnum; import com.airbyte.api.models.shared.SchemeBasicAuth; import com.airbyte.api.models.shared.Security; import java.lang.Exception; @@ -25,7 +28,11 @@ public class Application { ConnectionCreateRequest req = ConnectionCreateRequest.builder() .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") + .dataResidency(GeographyEnum.AUTO) .name("Postgres-to-Bigquery") + .namespaceDefinition(NamespaceDefinitionEnum.DESTINATION) + .namespaceFormat("") + .nonBreakingSchemaUpdatesBehavior(NonBreakingSchemaUpdatesBehaviorEnum.IGNORE) .build(); CreateConnectionResponse res = sdk.connections().createConnection() diff --git a/build.gradle b/build.gradle index 7b74434fc..41ed55c61 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,16 @@ 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 'org.apache.httpcomponents.client5:httpclient5:5.4.1' + implementation 'commons-io:commons-io:2.18.0' } - - apply from: 'build-extras.gradle' 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\](../../models/shared/DestinationPostgresMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `mode` | [Optional\](../../models/shared/DestinationPostgresSchemasMode.md) | :heavy_minus_sign: | N/A | \ 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\](../../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\](../../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/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\](../../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\](../../models/shared/DestinationAstraSchemasMode.md) | :heavy_minus_sign: | N/A | \ 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\* | :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..6d0989518 100644 --- a/docs/models/shared/ConnectionCreateRequest.md +++ b/docs/models/shared/ConnectionCreateRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `configurations` | [Optional\](../../models/shared/StreamConfigurations.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | +| `configurations` | [Optional\](../../models/shared/StreamConfigurationsInput.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | | `dataResidency` | [Optional\](../../models/shared/GeographyEnum.md) | :heavy_minus_sign: | N/A | | | `destinationId` | *String* | :heavy_check_mark: | N/A | | | `name` | *Optional\* | :heavy_minus_sign: | Optional name of the connection | | diff --git a/docs/models/shared/ConnectionPatchRequest.md b/docs/models/shared/ConnectionPatchRequest.md index 4cec96c57..24b6977b4 100644 --- a/docs/models/shared/ConnectionPatchRequest.md +++ b/docs/models/shared/ConnectionPatchRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `configurations` | [Optional\](../../models/shared/StreamConfigurations.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | +| `configurations` | [Optional\](../../models/shared/StreamConfigurationsInput.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | | `dataResidency` | [Optional\](../../models/shared/GeographyEnumNoDefault.md) | :heavy_minus_sign: | N/A | | | `name` | *Optional\* | :heavy_minus_sign: | Optional name of the connection | | | `namespaceDefinition` | [Optional\](../../models/shared/NamespaceDefinitionEnumNoDefault.md) | :heavy_minus_sign: | Define the location where the data will be stored in the destination | | 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/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\](../../models/shared/Encryption.md) | :heavy_minus_sign: | The encryption method which is used when communicating with the database. | | +| `encryption` | [Optional\](../../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\* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). | | | `password` | *Optional\* | :heavy_minus_sign: | 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/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/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\](../../models/shared/DestinationPostgresSchemasSSLModeSSLModes1Mode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `mode` | [Optional\](../../models/shared/DestinationPostgresMode.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/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/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\](../../models/shared/DestinationAstraSchemasMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `mode` | [Optional\](../../models/shared/DestinationAstraSchemasEmbeddingMode.md) | :heavy_minus_sign: | N/A | \ 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/Greythr.md b/docs/models/shared/Greythr.md new file mode 100644 index 000000000..5d035c107 --- /dev/null +++ b/docs/models/shared/Greythr.md @@ -0,0 +1,8 @@ +# Greythr + + +## Values + +| Name | Value | +| --------- | --------- | +| `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/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/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/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/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/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/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\](../../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\](../../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\* | :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\](../../models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.md) | :heavy_minus_sign: | N/A | | -| `modelName` | *Optional\* | :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\* | :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\](../../models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.md) | :heavy_minus_sign: | N/A | | +| `modelName` | *Optional\* | :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/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/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\](../../models/shared/DestinationPostgresSchemasMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `mode` | [Optional\](../../models/shared/DestinationPostgresSchemasSslModeMode.md) | :heavy_minus_sign: | N/A | \ 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\](../../models/shared/DestinationPostgresSchemasSslModeMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `mode` | [Optional\](../../models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.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/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/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\](../../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\](../../models/shared/SourceAsanaAsana.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `credentials` | [Optional\](../../models/shared/AuthenticationMechanism.md) | :heavy_minus_sign: | Choose how to authenticate to Github | | +| `numWorkers` | *Optional\* | :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 docs. | 1 | +| `organizationExportIds` | List\<*Object*> | :heavy_minus_sign: | Globally unique identifiers for the organization exports | | +| `sourceType` | [Optional\](../../models/shared/SourceAsanaAsana.md) | :heavy_minus_sign: | N/A | | \ 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\* | :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/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/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/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/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\* | :heavy_minus_sign: | N/A | probe1 | +| `resolution` | [Optional\](../../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/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/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\* | :heavy_minus_sign: | Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. | -| `mode` | [Optional\](../../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\* | :heavy_minus_sign: | Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. | +| `mode` | [Optional\](../../models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index 760ecd365..c75bca5c6 100644 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -23,6 +23,9 @@ 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.GeographyEnum; +import com.airbyte.api.models.shared.NamespaceDefinitionEnum; +import com.airbyte.api.models.shared.NonBreakingSchemaUpdatesBehaviorEnum; import com.airbyte.api.models.shared.SchemeBasicAuth; import com.airbyte.api.models.shared.Security; import java.lang.Exception; @@ -43,7 +46,11 @@ public class Application { ConnectionCreateRequest req = ConnectionCreateRequest.builder() .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") + .dataResidency(GeographyEnum.AUTO) .name("Postgres-to-Bigquery") + .namespaceDefinition(NamespaceDefinitionEnum.DESTINATION) + .namespaceFormat("") + .nonBreakingSchemaUpdatesBehavior(NonBreakingSchemaUpdatesBehaviorEnum.IGNORE) .build(); CreateConnectionResponse res = sdk.connections().createConnection() @@ -221,6 +228,9 @@ public class Application { .build(); ListConnectionsRequest req = ListConnectionsRequest.builder() + .includeDeleted(false) + .limit(20) + .offset(0) .build(); ListConnectionsResponse res = sdk.connections().listConnections() @@ -283,6 +293,7 @@ public class Application { PatchConnectionRequest req = PatchConnectionRequest.builder() .connectionPatchRequest(ConnectionPatchRequest.builder() .name("Postgres-to-Bigquery") + .namespaceFormat("") .build()) .connectionId("") .build(); diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index d8702cbc8..32299f9d2 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -250,6 +250,9 @@ public class Application { .build(); ListDestinationsRequest req = ListDestinationsRequest.builder() + .includeDeleted(false) + .limit(20) + .offset(0) .build(); ListDestinationsResponse res = sdk.destinations().listDestinations() diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index 605a4b1c9..885a01f86 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -225,6 +225,8 @@ public class Application { ListJobsRequest req = ListJobsRequest.builder() .createdAtEnd(OffsetDateTime.parse("1687450500000")) .createdAtStart(OffsetDateTime.parse("1687450500000")) + .limit(20) + .offset(0) .orderBy("updatedAt|DESC") .updatedAtEnd(OffsetDateTime.parse("1687450500000")) .updatedAtStart(OffsetDateTime.parse("1687450500000")) diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index 7eea9357e..b05c8b773 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -28,9 +28,8 @@ 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.SourceCreateRequest; -import com.airbyte.api.models.shared.SourcePosthog; +import com.airbyte.api.models.shared.SourcePostgres; import java.lang.Exception; -import java.time.OffsetDateTime; public class Application { @@ -46,9 +45,10 @@ public class Application { .build(); SourceCreateRequest req = SourceCreateRequest.builder() - .configuration(SourceConfiguration.of(SourcePosthog.builder() - .apiKey("") - .startDate(OffsetDateTime.parse("2021-01-01T00:00:00Z")) + .configuration(SourceConfiguration.of(SourcePostgres.builder() + .database("") + .host("specific-arcade.biz") + .username("Twila_Sawayn52") .build())) .name("My Source") .workspaceId("744cc0ed-7f05-4949-9e60-2a814f90c035") @@ -295,6 +295,9 @@ public class Application { .build(); ListSourcesRequest req = ListSourcesRequest.builder() + .includeDeleted(false) + .limit(20) + .offset(0) .workspaceIds(List.of( "df08f6b0-b364-4cc1-9b3f-96f5d2fccfb2,b0796797-de23-4fc7-a5e2-7e131314718c")) .build(); @@ -341,9 +344,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 +365,9 @@ public class Application { PatchSourceRequest req = PatchSourceRequest.builder() .sourceId("") .sourcePatchRequest(SourcePatchRequest.builder() - .configuration(SourceConfiguration.of(SourceEventzilla.builder() - .xApiKey("") + .configuration(SourceConfiguration.of(SourceExchangeRates.builder() + .accessKey("") + .startDate(LocalDate.parse("YYYY-MM-DD")) .build())) .name("My Source") .workspaceId("744cc0ed-7f05-4949-9e60-2a814f90c035") diff --git a/docs/sdks/streams/README.md b/docs/sdks/streams/README.md index 1517d61ea..8622154a2 100644 --- a/docs/sdks/streams/README.md +++ b/docs/sdks/streams/README.md @@ -38,6 +38,7 @@ public class Application { GetStreamPropertiesRequest req = GetStreamPropertiesRequest.builder() .sourceId("") + .ignoreCache(false) .build(); GetStreamPropertiesResponse res = sdk.streams().getStreamProperties() diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index 43d4b5938..f50482394 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -289,6 +289,9 @@ public class Application { .build(); ListWorkspacesRequest req = ListWorkspacesRequest.builder() + .includeDeleted(false) + .limit(20) + .offset(0) .build(); ListWorkspacesResponse res = sdk.workspaces().listWorkspaces() diff --git a/gen.yaml b/gen.yaml index 0609ffdad..ea92bac76 100644 --- a/gen.yaml +++ b/gen.yaml @@ -12,7 +12,7 @@ generation: 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..cce21a8fb 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; 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..e1c0bc4a2 100644 --- a/src/main/java/com/airbyte/api/SDKConfiguration.java +++ b/src/main/java/com/airbyte/api/SDKConfiguration.java @@ -30,8 +30,8 @@ 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.496.0"; private static final String BASE_PACKAGE = "com.airbyte.api"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", 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/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/shared/APIEndpointPrefix.java b/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java index 00e51fec0..2357338a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java +++ b/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum APIEndpointPrefix { API("api"), @@ -21,4 +23,13 @@ private APIEndpointPrefix(String value) { public String value() { return value; } + + public static Optional 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/APIServer.java b/src/main/java/com/airbyte/api/models/shared/APIServer.java index de11cb15e..2e26b9cbf 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIServer.java +++ b/src/main/java/com/airbyte/api/models/shared/APIServer.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum APIServer { US("us"), @@ -21,4 +23,13 @@ private APIServer(String value) { public String value() { return value; } + + public static Optional 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/AWSEnvironment.java b/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java index b6c352c3f..a4c33813a 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private AWSEnvironment(String value) { public String value() { return value; } + + public static Optional 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..f8e46b9f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSRegion.java @@ -6,6 +6,8 @@ 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 +46,13 @@ private AWSRegion(String value) { public String value() { return value; } + + public static Optional 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/AWSSellerPartnerAccountType.java b/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java index 0114b6712..81e301449 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private AWSSellerPartnerAccountType(String value) { public String value() { return value; } + + public static Optional 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/AccessTokenIsRequiredForAuthenticationRequests.java b/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java index 0f6871172..99d69ca40 100644 --- a/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java +++ b/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private AccessTokenIsRequiredForAuthenticationRequests(String value) { public String value() { return value; } + + public static Optional 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/ActionReportTime.java b/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java index c6ae9278d..85f1343c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java +++ b/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private ActionReportTime(String value) { public String value() { return value; } + + public static Optional 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..0138c404c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Activecampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/Activecampaign.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Activecampaign(String value) { public String value() { return value; } + + public static Optional 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..f393bed3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private ActorTypeEnum(String value) { public String value() { return value; } + + public static Optional 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/Agilecrm.java b/src/main/java/com/airbyte/api/models/shared/Agilecrm.java index 47d7cf718..06859b0f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Agilecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Agilecrm.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Agilecrm(String value) { public String value() { return value; } + + public static Optional 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..72e71d7f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Aha.java +++ b/src/main/java/com/airbyte/api/models/shared/Aha.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Aha(String value) { public String value() { return value; } + + public static Optional 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..fc6c9a8f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Airbyte.java +++ b/src/main/java/com/airbyte/api/models/shared/Airbyte.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Airbyte(String value) { public String value() { return value; } + + public static Optional 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/Aircall.java b/src/main/java/com/airbyte/api/models/shared/Aircall.java index 3b2814e83..4db796b93 100644 --- a/src/main/java/com/airbyte/api/models/shared/Aircall.java +++ b/src/main/java/com/airbyte/api/models/shared/Aircall.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Aircall(String value) { public String value() { return value; } + + public static Optional 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/Akeneo.java b/src/main/java/com/airbyte/api/models/shared/Akeneo.java index cc1db11a4..60e4f470a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Akeneo.java +++ b/src/main/java/com/airbyte/api/models/shared/Akeneo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Akeneo(String value) { public String value() { return value; } + + public static Optional 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..cfaa9a03a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Algolia.java +++ b/src/main/java/com/airbyte/api/models/shared/Algolia.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Algolia(String value) { public String value() { return value; } + + public static Optional 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..b3d94fd05 100644 --- a/src/main/java/com/airbyte/api/models/shared/Allow.java +++ b/src/main/java/com/airbyte/api/models/shared/Allow.java @@ -27,7 +27,7 @@ public class Allow { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; @JsonCreator public Allow() { @@ -37,8 +37,8 @@ public Allow() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } public final static Builder builder() { @@ -81,11 +81,11 @@ public Allow build() { ); } - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"allow\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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..253030815 100644 --- a/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java +++ b/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private AmazonSqs(String value) { public String value() { return value; } + + public static Optional 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..3854f5429 100644 --- a/src/main/java/com/airbyte/api/models/shared/Amplitude.java +++ b/src/main/java/com/airbyte/api/models/shared/Amplitude.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Amplitude(String value) { public String value() { return value; } + + public static Optional 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/ApifyDataset.java b/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java index 1475382da..0a6e77099 100644 --- a/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java +++ b/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ApifyDataset(String value) { public String value() { return value; } + + public static Optional 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..7c891c309 100644 --- a/src/main/java/com/airbyte/api/models/shared/Appcues.java +++ b/src/main/java/com/airbyte/api/models/shared/Appcues.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Appcues(String value) { public String value() { return value; } + + public static Optional 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..6fd05396a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Appfigures.java +++ b/src/main/java/com/airbyte/api/models/shared/Appfigures.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Appfigures(String value) { public String value() { return value; } + + public static Optional 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..a1392731b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Appfollow.java +++ b/src/main/java/com/airbyte/api/models/shared/Appfollow.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Appfollow(String value) { public String value() { return value; } + + public static Optional 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..64362e0cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java +++ b/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private AppleSearchAds(String value) { public String value() { return value; } + + public static Optional 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/Apptivo.java b/src/main/java/com/airbyte/api/models/shared/Apptivo.java index 1215db5b4..b91b203fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Apptivo.java +++ b/src/main/java/com/airbyte/api/models/shared/Apptivo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Apptivo(String value) { public String value() { return value; } + + public static Optional 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/Ashby.java b/src/main/java/com/airbyte/api/models/shared/Ashby.java index 195b543f4..ca5e0b624 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ashby.java +++ b/src/main/java/com/airbyte/api/models/shared/Ashby.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Ashby(String value) { public String value() { return value; } + + public static Optional 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..693cf830c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Astra.java +++ b/src/main/java/com/airbyte/api/models/shared/Astra.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Astra(String value) { public String value() { return value; } + + public static Optional 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..69418c216 100644 --- a/src/main/java/com/airbyte/api/models/shared/Auth0.java +++ b/src/main/java/com/airbyte/api/models/shared/Auth0.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Auth0(String value) { public String value() { return value; } + + public static Optional 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..5d77b83b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private AuthMethod(String value) { public String value() { return value; } + + public static Optional 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..a944eef9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthType.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum AuthType { CLIENT("Client"); @@ -20,4 +22,13 @@ private AuthType(String value) { public String value() { return value; } + + public static Optional 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/AwsCloudtrail.java b/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java index 946304935..0338edd17 100644 --- a/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java +++ b/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private AwsCloudtrail(String value) { public String value() { return value; } + + public static Optional 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..f4a3596cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java +++ b/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private AwsDatalake(String value) { public String value() { return value; } + + public static Optional 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/AzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java index 762422598..c8e41209a 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java @@ -39,7 +39,7 @@ public class AzureOpenAI { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; /** * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource @@ -79,8 +79,8 @@ public String deployment() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } /** @@ -202,11 +202,11 @@ public AzureOpenAI build() { openaiKey); } - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"azure_openai\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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..89b4da2dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureTable.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureTable.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private AzureTable(String value) { public String value() { return value; } + + public static Optional 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/BambooHr.java b/src/main/java/com/airbyte/api/models/shared/BambooHr.java index 9f32673ce..6ff2ef38a 100644 --- a/src/main/java/com/airbyte/api/models/shared/BambooHr.java +++ b/src/main/java/com/airbyte/api/models/shared/BambooHr.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private BambooHr(String value) { public String value() { return value; } + + public static Optional 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/BaseURLPrefix.java b/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java index 15e5679d5..0b66fb75d 100644 --- a/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java +++ b/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private BaseURLPrefix(String value) { public String value() { return value; } + + public static Optional 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..17d06b280 100644 --- a/src/main/java/com/airbyte/api/models/shared/Basecamp.java +++ b/src/main/java/com/airbyte/api/models/shared/Basecamp.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Basecamp(String value) { public String value() { return value; } + + public static Optional 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/Beamer.java b/src/main/java/com/airbyte/api/models/shared/Beamer.java index 4202bc9d7..3fa83979e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Beamer.java +++ b/src/main/java/com/airbyte/api/models/shared/Beamer.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Beamer(String value) { public String value() { return value; } + + public static Optional 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/Bigmailer.java b/src/main/java/com/airbyte/api/models/shared/Bigmailer.java index 118805f38..cc733166c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bigmailer.java +++ b/src/main/java/com/airbyte/api/models/shared/Bigmailer.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Bigmailer(String value) { public String value() { return value; } + + public static Optional 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..14c6475ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/Bigquery.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Bigquery(String value) { public String value() { return value; } + + public static Optional 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/Bitly.java b/src/main/java/com/airbyte/api/models/shared/Bitly.java index 99b59511e..d13352cae 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bitly.java +++ b/src/main/java/com/airbyte/api/models/shared/Bitly.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Bitly(String value) { public String value() { return value; } + + public static Optional 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..bd0d1c69a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Blogger.java +++ b/src/main/java/com/airbyte/api/models/shared/Blogger.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Blogger(String value) { public String value() { return value; } + + public static Optional 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..5eeb848ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private BothUsernameAndPasswordIsRequiredForAuthenticationRequest(String value) public String value() { return value; } + + public static Optional 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..f503fdb95 100644 --- a/src/main/java/com/airbyte/api/models/shared/Box.java +++ b/src/main/java/com/airbyte/api/models/shared/Box.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Box(String value) { public String value() { return value; } + + public static Optional 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..8887c3c3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Braintree.java +++ b/src/main/java/com/airbyte/api/models/shared/Braintree.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Braintree(String value) { public String value() { return value; } + + public static Optional 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..1c3b378e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Braze.java +++ b/src/main/java/com/airbyte/api/models/shared/Braze.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Braze(String value) { public String value() { return value; } + + public static Optional 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/BreezyHr.java b/src/main/java/com/airbyte/api/models/shared/BreezyHr.java index f0a3da06e..67105c5d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/BreezyHr.java +++ b/src/main/java/com/airbyte/api/models/shared/BreezyHr.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private BreezyHr(String value) { public String value() { return value; } + + public static Optional 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..814b0eb79 100644 --- a/src/main/java/com/airbyte/api/models/shared/Brevo.java +++ b/src/main/java/com/airbyte/api/models/shared/Brevo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Brevo(String value) { public String value() { return value; } + + public static Optional 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..ab3912854 100644 --- a/src/main/java/com/airbyte/api/models/shared/Brex.java +++ b/src/main/java/com/airbyte/api/models/shared/Brex.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Brex(String value) { public String value() { return value; } + + public static Optional 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..f7657f384 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bugsnag.java +++ b/src/main/java/com/airbyte/api/models/shared/Bugsnag.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Bugsnag(String value) { public String value() { return value; } + + public static Optional 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..ab768c957 100644 --- a/src/main/java/com/airbyte/api/models/shared/Buildkite.java +++ b/src/main/java/com/airbyte/api/models/shared/Buildkite.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Buildkite(String value) { public String value() { return value; } + + public static Optional 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..2acf87ddb 100644 --- a/src/main/java/com/airbyte/api/models/shared/BunnyInc.java +++ b/src/main/java/com/airbyte/api/models/shared/BunnyInc.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private BunnyInc(String value) { public String value() { return value; } + + public static Optional 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..4a1afb5b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java +++ b/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Buzzsprout(String value) { public String value() { return value; } + + public static Optional 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/CacheType.java b/src/main/java/com/airbyte/api/models/shared/CacheType.java index c23fd5315..ab38f717a 100644 --- a/src/main/java/com/airbyte/api/models/shared/CacheType.java +++ b/src/main/java/com/airbyte/api/models/shared/CacheType.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private CacheType(String value) { public String value() { return value; } + + public static Optional 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..df07747e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/CalCom.java +++ b/src/main/java/com/airbyte/api/models/shared/CalCom.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CalCom(String value) { public String value() { return value; } + + public static Optional 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..82f2ddfed 100644 --- a/src/main/java/com/airbyte/api/models/shared/Calendly.java +++ b/src/main/java/com/airbyte/api/models/shared/Calendly.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Calendly(String value) { public String value() { return value; } + + public static Optional 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..257a367d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Callrail.java +++ b/src/main/java/com/airbyte/api/models/shared/Callrail.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Callrail(String value) { public String value() { return value; } + + public static Optional 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..95142dcfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java +++ b/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CampaignMonitor(String value) { public String value() { return value; } + + public static Optional 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..51be02fc7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Campayn.java +++ b/src/main/java/com/airbyte/api/models/shared/Campayn.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Campayn(String value) { public String value() { return value; } + + public static Optional 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..87c2fe9b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Canny.java +++ b/src/main/java/com/airbyte/api/models/shared/Canny.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Canny(String value) { public String value() { return value; } + + public static Optional 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..76638c417 100644 --- a/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CapsuleCrm(String value) { public String value() { return value; } + + public static Optional 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/CaptureModeAdvanced.java b/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java index a1ca58054..b4944df7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private CaptureModeAdvanced(String value) { public String value() { return value; } + + public static Optional 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..8710f5cb0 100644 --- a/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java +++ b/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CareQualityCommission(String value) { public String value() { return value; } + + public static Optional 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..64adf7c48 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cart.java +++ b/src/main/java/com/airbyte/api/models/shared/Cart.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Cart(String value) { public String value() { return value; } + + public static Optional 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..d3e2bb53d 100644 --- a/src/main/java/com/airbyte/api/models/shared/CastorEdc.java +++ b/src/main/java/com/airbyte/api/models/shared/CastorEdc.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CastorEdc(String value) { public String value() { return value; } + + public static Optional 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..694596092 100644 --- a/src/main/java/com/airbyte/api/models/shared/CatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/CatalogType.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum CatalogType { HIVE("Hive"); @@ -20,4 +22,13 @@ private CatalogType(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (CatalogType o: CatalogType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } 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..c204e1ba6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Categories.java +++ b/src/main/java/com/airbyte/api/models/shared/Categories.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum Categories { ACCESSIBILITY("accessibility"), @@ -24,4 +26,13 @@ private Categories(String value) { public String value() { return value; } + + public static Optional 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..00eca688d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Category.java +++ b/src/main/java/com/airbyte/api/models/shared/Category.java @@ -6,6 +6,8 @@ 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 +31,13 @@ private Category(String value) { public String value() { return value; } + + public static Optional 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/Chameleon.java b/src/main/java/com/airbyte/api/models/shared/Chameleon.java index 599e3ccd8..4c979d371 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chameleon.java +++ b/src/main/java/com/airbyte/api/models/shared/Chameleon.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Chameleon(String value) { public String value() { return value; } + + public static Optional 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..d97d8c1dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chargebee.java +++ b/src/main/java/com/airbyte/api/models/shared/Chargebee.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Chargebee(String value) { public String value() { return value; } + + public static Optional 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..e06adb1c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chargedesk.java +++ b/src/main/java/com/airbyte/api/models/shared/Chargedesk.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Chargedesk(String value) { public String value() { return value; } + + public static Optional 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..a437f3868 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chargify.java +++ b/src/main/java/com/airbyte/api/models/shared/Chargify.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Chargify(String value) { public String value() { return value; } + + public static Optional 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..398d3c4d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chartmogul.java +++ b/src/main/java/com/airbyte/api/models/shared/Chartmogul.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Chartmogul(String value) { public String value() { return value; } + + public static Optional 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..b56bde52b 100644 --- a/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java +++ b/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java @@ -6,6 +6,8 @@ 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 +31,13 @@ private ChooseHowToPartitionData(String value) { public String value() { return value; } + + public static Optional 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..c627b5baf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cimis.java +++ b/src/main/java/com/airbyte/api/models/shared/Cimis.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Cimis(String value) { public String value() { return value; } + + public static Optional 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..288764159 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cin7.java +++ b/src/main/java/com/airbyte/api/models/shared/Cin7.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Cin7(String value) { public String value() { return value; } + + public static Optional 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..1516f10b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Circa.java +++ b/src/main/java/com/airbyte/api/models/shared/Circa.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Circa(String value) { public String value() { return value; } + + public static Optional 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..2cbcf6737 100644 --- a/src/main/java/com/airbyte/api/models/shared/Circleci.java +++ b/src/main/java/com/airbyte/api/models/shared/Circleci.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Circleci(String value) { public String value() { return value; } + + public static Optional 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..8741995b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClarifAi.java +++ b/src/main/java/com/airbyte/api/models/shared/ClarifAi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ClarifAi(String value) { public String value() { return value; } + + public static Optional 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..87d39264a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clazar.java +++ b/src/main/java/com/airbyte/api/models/shared/Clazar.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Clazar(String value) { public String value() { return value; } + + public static Optional 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..a1f6f699c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java +++ b/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java @@ -5,6 +5,8 @@ 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 +29,13 @@ private ClickWindowDays(long value) { public long value() { return value; } + + public static Optional 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..acf3c4ddd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/Clickhouse.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Clickhouse(String value) { public String value() { return value; } + + public static Optional 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..793cc83a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClickupApi.java +++ b/src/main/java/com/airbyte/api/models/shared/ClickupApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ClickupApi(String value) { public String value() { return value; } + + public static Optional 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..d4796471d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clockify.java +++ b/src/main/java/com/airbyte/api/models/shared/Clockify.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Clockify(String value) { public String value() { return value; } + + public static Optional 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..47d1c0a8f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clockodo.java +++ b/src/main/java/com/airbyte/api/models/shared/Clockodo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Clockodo(String value) { public String value() { return value; } + + public static Optional 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..d900a06a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/CloseCom.java +++ b/src/main/java/com/airbyte/api/models/shared/CloseCom.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CloseCom(String value) { public String value() { return value; } + + public static Optional 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..207b47df2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java +++ b/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Cloudbeds(String value) { public String value() { return value; } + + public static Optional 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/Coassemble.java b/src/main/java/com/airbyte/api/models/shared/Coassemble.java index 26c33ca20..7f2e4108c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Coassemble.java +++ b/src/main/java/com/airbyte/api/models/shared/Coassemble.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Coassemble(String value) { public String value() { return value; } + + public static Optional 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..72456218f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Coda.java +++ b/src/main/java/com/airbyte/api/models/shared/Coda.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Coda(String value) { public String value() { return value; } + + public static Optional 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..dc3e2115b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/Codec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Codec(String value) { public String value() { return value; } + + public static Optional 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..9a20a7a43 100644 --- a/src/main/java/com/airbyte/api/models/shared/Codefresh.java +++ b/src/main/java/com/airbyte/api/models/shared/Codefresh.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Codefresh(String value) { public String value() { return value; } + + public static Optional 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..d6020ab59 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cohere.java +++ b/src/main/java/com/airbyte/api/models/shared/Cohere.java @@ -30,7 +30,7 @@ public class Cohere { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; @JsonCreator public Cohere( @@ -47,8 +47,8 @@ public String cohereKey() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } public final static Builder builder() { @@ -108,11 +108,11 @@ public Cohere build() { cohereKey); } - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"cohere\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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..c0e237347 100644 --- a/src/main/java/com/airbyte/api/models/shared/CoinApi.java +++ b/src/main/java/com/airbyte/api/models/shared/CoinApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CoinApi(String value) { public String value() { return value; } + + public static Optional 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/Coinmarketcap.java b/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java index 0cc98f332..0c6fc2b3c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java +++ b/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Coinmarketcap(String value) { public String value() { return value; } + + public static Optional 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/CompressionCodecOptional.java b/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java index 58202a415..6ed7a4e68 100644 --- a/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java +++ b/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private CompressionCodecOptional(String value) { public String value() { return value; } + + public static Optional 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..75a99e500 100644 --- a/src/main/java/com/airbyte/api/models/shared/CompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/CompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CompressionType(String value) { public String value() { return value; } + + public static Optional 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..997494634 100644 --- a/src/main/java/com/airbyte/api/models/shared/Concord.java +++ b/src/main/java/com/airbyte/api/models/shared/Concord.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Concord(String value) { public String value() { return value; } + + public static Optional 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..2e6e9a06d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Configcat.java +++ b/src/main/java/com/airbyte/api/models/shared/Configcat.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Configcat(String value) { public String value() { return value; } + + public static Optional 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..352a243de 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java +++ b/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java @@ -8,14 +8,21 @@ 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 id; + /** * The values required to configure the mapper. */ @@ -27,13 +34,27 @@ public class ConfiguredStreamMapper { @JsonCreator public ConfiguredStreamMapper( + @JsonProperty("id") Optional 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 id() { + return id; + } /** * The values required to configure the mapper. @@ -52,6 +73,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 id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + /** * The values required to configure the mapper. */ @@ -77,6 +110,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 +118,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Objects.hash( + id, mapperConfiguration, type); } @@ -91,12 +126,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 id = Optional.empty(); + private MapperConfiguration mapperConfiguration; private StreamMapperType type; @@ -105,6 +143,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 id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + /** * The values required to configure the mapper. */ @@ -122,6 +172,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..40cee80cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Confluence.java +++ b/src/main/java/com/airbyte/api/models/shared/Confluence.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Confluence(String value) { public String value() { return value; } + + public static Optional 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/ConnectionCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java index 6147cdcc0..5531bcc82 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java @@ -27,7 +27,7 @@ public class ConnectionCreateRequest { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("configurations") - private Optional configurations; + private Optional configurations; @JsonInclude(Include.NON_ABSENT) @JsonProperty("dataResidency") @@ -87,7 +87,7 @@ public class ConnectionCreateRequest { @JsonCreator public ConnectionCreateRequest( - @JsonProperty("configurations") Optional configurations, + @JsonProperty("configurations") Optional configurations, @JsonProperty("dataResidency") Optional dataResidency, @JsonProperty("destinationId") String destinationId, @JsonProperty("name") Optional name, @@ -133,8 +133,8 @@ public ConnectionCreateRequest( */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional configurations() { - return (Optional) configurations; + public Optional configurations() { + return (Optional) configurations; } @SuppressWarnings("unchecked") @@ -217,7 +217,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 +226,7 @@ public ConnectionCreateRequest withConfigurations(StreamConfigurations configura /** * A list of configured stream options for a connection. */ - public ConnectionCreateRequest withConfigurations(Optional configurations) { + public ConnectionCreateRequest withConfigurations(Optional configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = configurations; return this; @@ -433,7 +433,7 @@ public String toString() { public final static class Builder { - private Optional configurations = Optional.empty(); + private Optional configurations = Optional.empty(); private Optional dataResidency; @@ -462,7 +462,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 +471,7 @@ public Builder configurations(StreamConfigurations configurations) { /** * A list of configured stream options for a connection. */ - public Builder configurations(Optional configurations) { + public Builder configurations(Optional configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = configurations; return this; 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..aa51dd494 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java @@ -27,7 +27,7 @@ public class ConnectionPatchRequest { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("configurations") - private Optional configurations; + private Optional configurations; @JsonInclude(Include.NON_ABSENT) @JsonProperty("dataResidency") @@ -81,7 +81,7 @@ public class ConnectionPatchRequest { @JsonCreator public ConnectionPatchRequest( - @JsonProperty("configurations") Optional configurations, + @JsonProperty("configurations") Optional configurations, @JsonProperty("dataResidency") Optional dataResidency, @JsonProperty("name") Optional name, @JsonProperty("namespaceDefinition") Optional namespaceDefinition, @@ -119,8 +119,8 @@ public ConnectionPatchRequest() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional configurations() { - return (Optional) configurations; + public Optional configurations() { + return (Optional) configurations; } @SuppressWarnings("unchecked") @@ -193,7 +193,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 +202,7 @@ public ConnectionPatchRequest withConfigurations(StreamConfigurations configurat /** * A list of configured stream options for a connection. */ - public ConnectionPatchRequest withConfigurations(Optional configurations) { + public ConnectionPatchRequest withConfigurations(Optional configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = configurations; return this; @@ -391,7 +391,7 @@ public String toString() { public final static class Builder { - private Optional configurations = Optional.empty(); + private Optional configurations = Optional.empty(); private Optional dataResidency = Optional.empty(); @@ -416,7 +416,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 +425,7 @@ public Builder configurations(StreamConfigurations configurations) { /** * A list of configured stream options for a connection. */ - public Builder configurations(Optional configurations) { + public Builder configurations(Optional configurations) { Utils.checkNotNull(configurations, "configurations"); this.configurations = configurations; return this; 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..e19f9f635 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum ConnectionStatusEnum { ACTIVE("active"), @@ -22,4 +24,13 @@ private ConnectionStatusEnum(String value) { public String value() { return value; } + + public static Optional 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..1c4b60f0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java @@ -6,6 +6,8 @@ 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"), @@ -23,4 +25,13 @@ private ConnectionSyncModeEnum(String value) { public String value() { return value; } + + public static Optional 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..b8d76282e 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionType.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ConnectionType(String value) { public String value() { return value; } + + public static Optional 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/ContentType.java b/src/main/java/com/airbyte/api/models/shared/ContentType.java index 3cdd68e6d..45918f197 100644 --- a/src/main/java/com/airbyte/api/models/shared/ContentType.java +++ b/src/main/java/com/airbyte/api/models/shared/ContentType.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private ContentType(String value) { public String value() { return value; } + + public static Optional 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..ed3eaa3ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java +++ b/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private ConversionReportTime(String value) { public String value() { return value; } + + public static Optional 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..c6da736d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Convertkit.java +++ b/src/main/java/com/airbyte/api/models/shared/Convertkit.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Convertkit(String value) { public String value() { return value; } + + public static Optional 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..11ccfd193 100644 --- a/src/main/java/com/airbyte/api/models/shared/Convex.java +++ b/src/main/java/com/airbyte/api/models/shared/Convex.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Convex(String value) { public String value() { return value; } + + public static Optional 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..3db9f5a47 100644 --- a/src/main/java/com/airbyte/api/models/shared/Copper.java +++ b/src/main/java/com/airbyte/api/models/shared/Copper.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Copper(String value) { public String value() { return value; } + + public static Optional 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/Countercyclical.java b/src/main/java/com/airbyte/api/models/shared/Countercyclical.java index d55a7bc7c..07d5dc67b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Countercyclical.java +++ b/src/main/java/com/airbyte/api/models/shared/Countercyclical.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Countercyclical(String value) { public String value() { return value; } + + public static Optional 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..1092d9b68 100644 --- a/src/main/java/com/airbyte/api/models/shared/Country.java +++ b/src/main/java/com/airbyte/api/models/shared/Country.java @@ -6,6 +6,8 @@ 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 @@ -78,4 +80,13 @@ private Country(String value) { public String value() { return value; } + + public static Optional 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/CredentialType.java b/src/main/java/com/airbyte/api/models/shared/CredentialType.java index fec7ef095..ef434f7a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/CredentialType.java +++ b/src/main/java/com/airbyte/api/models/shared/CredentialType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CredentialType(String value) { public String value() { return value; } + + public static Optional 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/CredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java index a2cffac89..18892eb3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private CredentialsTitle(String value) { public String value() { return value; } + + public static Optional 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/CustomerIo.java b/src/main/java/com/airbyte/api/models/shared/CustomerIo.java index 77d18bafa..1fd82c090 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomerIo.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomerIo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private CustomerIo(String value) { public String value() { return value; } + + public static Optional 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..3ff6d17e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * CustomerStatus - An enumeration. @@ -27,4 +29,13 @@ private CustomerStatus(String value) { public String value() { return value; } + + public static Optional 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..c84054a41 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/DataCenter.java @@ -6,6 +6,8 @@ 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"), @@ -23,4 +25,13 @@ private DataCenter(String value) { public String value() { return value; } + + public static Optional 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..32f1483e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataCenterID.java +++ b/src/main/java/com/airbyte/api/models/shared/DataCenterID.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private DataCenterID(String value) { public String value() { return value; } + + public static Optional 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..f9280b6f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java +++ b/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java @@ -6,6 +6,8 @@ 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 +30,13 @@ private DataCenterLocation(String value) { public String value() { return value; } + + public static Optional 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..9a283c417 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataFreshness.java +++ b/src/main/java/com/airbyte/api/models/shared/DataFreshness.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private DataFreshness(String value) { public String value() { return value; } + + public static Optional 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..e4390bfa5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DataRegion.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private DataRegion(String value) { public String value() { return value; } + + public static Optional 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..83f904879 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataSource.java +++ b/src/main/java/com/airbyte/api/models/shared/DataSource.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private DataSource(String value) { public String value() { return value; } + + public static Optional 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..8a2de2410 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataType.java +++ b/src/main/java/com/airbyte/api/models/shared/DataType.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private DataType(String value) { public String value() { return value; } + + public static Optional 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..eb3b17513 100644 --- a/src/main/java/com/airbyte/api/models/shared/Databricks.java +++ b/src/main/java/com/airbyte/api/models/shared/Databricks.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Databricks(String value) { public String value() { return value; } + + public static Optional 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..5605ad0cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Datadog.java +++ b/src/main/java/com/airbyte/api/models/shared/Datadog.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Datadog(String value) { public String value() { return value; } + + public static Optional 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..fa8f419a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Datascope.java +++ b/src/main/java/com/airbyte/api/models/shared/Datascope.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Datascope(String value) { public String value() { return value; } + + public static Optional 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..627c918ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java +++ b/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java @@ -6,6 +6,8 @@ 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 +68,13 @@ private DatasetLocation(String value) { public String value() { return value; } + + public static Optional 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/Dbt.java b/src/main/java/com/airbyte/api/models/shared/Dbt.java index 0751d1e5b..9107d96ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dbt.java +++ b/src/main/java/com/airbyte/api/models/shared/Dbt.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Dbt(String value) { public String value() { return value; } + + public static Optional 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..911f0a9f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java +++ b/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java @@ -6,6 +6,8 @@ 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 +32,13 @@ private DefaultVectorizer(String value) { public String value() { return value; } + + public static Optional 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/Delighted.java b/src/main/java/com/airbyte/api/models/shared/Delighted.java index 5592ca821..7673efc40 100644 --- a/src/main/java/com/airbyte/api/models/shared/Delighted.java +++ b/src/main/java/com/airbyte/api/models/shared/Delighted.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Delighted(String value) { public String value() { return value; } + + public static Optional 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/DeliveryType.java b/src/main/java/com/airbyte/api/models/shared/DeliveryType.java index b39b0c08b..92739eed5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/DeliveryType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DeliveryType(String value) { public String value() { return value; } + + public static Optional 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..ce241ce77 100644 --- a/src/main/java/com/airbyte/api/models/shared/Deputy.java +++ b/src/main/java/com/airbyte/api/models/shared/Deputy.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Deputy(String value) { public String value() { return value; } + + public static Optional 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/DestinationAstraLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java index ae6564c50..3e5533bd4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java @@ -6,6 +6,8 @@ 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 +40,13 @@ private DestinationAstraLanguage(String value) { public String value() { return value; } + + public static Optional 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..2c438b0c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java @@ -6,9 +6,11 @@ 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 +22,13 @@ private DestinationAstraMode(String value) { public String value() { return value; } + + public static Optional 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..35a93f5e6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.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 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 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..8c8ac4645 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java @@ -6,9 +6,11 @@ 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 +22,13 @@ private DestinationAstraSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..5f2b914ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java @@ -6,9 +6,11 @@ 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 +22,13 @@ private DestinationAstraSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..5aedf856b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java @@ -6,9 +6,11 @@ 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 +22,13 @@ private DestinationAstraSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..f6c16db72 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationAstraSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional 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..71c2113bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationAstraSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional 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..ffa6f762f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationAstraSchemasProcessingTextSplitterTextSplitterMode(String val public String value() { return value; } + + public static Optional 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/DestinationAwsDatalakeCompressionCodecOptional.java b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java index 761051608..0419bf62c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private DestinationAwsDatalakeCompressionCodecOptional(String value) { public String value() { return value; } + + public static Optional 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..9d33d80f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationAwsDatalakeCredentialsTitle(String value) { public String value() { return value; } + + public static Optional 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..94dee2e3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationAwsDatalakeFormatTypeWildcard(String value) { public String value() { return value; } + + public static Optional 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/DestinationAzureBlobStorageAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java index b410ede8a..c5348cfb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationAzureBlobStorageAzureBlobStorage(String value) { public String value() { return value; } + + public static Optional 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..4689263c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationAzureBlobStorageFormatType(String value) { public String value() { return value; } + + public static Optional 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/DestinationBigqueryCredentialType.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java index 215128e45..818b8d3cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationBigqueryCredentialType(String value) { public String value() { return value; } + + public static Optional 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/DestinationBigqueryMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java index 977646467..49857bb14 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationBigqueryMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationClickhouseSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java index 80dd868e9..28dd88107 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationClickhouseSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..60ed23aa8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationClickhouseTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationDatabricksAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java index acccbc5b7..2a4719ca3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationDatabricksAuthType(String value) { public String value() { return value; } + + public static Optional 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..aa192524d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationDatabricksSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/DestinationDevNullLoggingType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java index 63ab0b59c..cae9e3684 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationDevNullLoggingType(String value) { public String value() { return value; } + + public static Optional 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..2fbb34761 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationDevNullSchemasLoggingType(String value) { public String value() { return value; } + + public static Optional 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..bf69575a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationDevNullSchemasTestDestinationTestDestinationType(String value public String value() { return value; } + + public static Optional 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..fd5820c2e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationDevNullSchemasTestDestinationType(String value) { public String value() { return value; } + + public static Optional 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..4de851b5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationDevNullTestDestinationType(String value) { public String value() { return value; } + + public static Optional 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/DestinationElasticsearchMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java index e6588bd91..e01d486c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationElasticsearchMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationElasticsearchSchemasAuthenticationMethodMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java index 8ebb14d78..144c4d01f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationElasticsearchSchemasAuthenticationMethodMethod(String value) public String value() { return value; } + + public static Optional 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..3dcaffd00 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationElasticsearchSchemasMethod(String value) { public String value() { return value; } + + public static Optional 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..b202847ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationElasticsearchSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..011572c37 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationElasticsearchSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..ffc73294b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationElasticsearchTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationFireboltMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java index 5ea7c95f9..12691bd33 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationFireboltMethod(String value) { public String value() { return value; } + + public static Optional 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..953807f0a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationFireboltSchemasMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationGcsCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java index e29b200ed..105321ad4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsCodec(String value) { public String value() { return value; } + + public static Optional 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/DestinationGcsCompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java index ce2e9949b..5ba6b9732 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java @@ -6,6 +6,8 @@ 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 +31,13 @@ private DestinationGcsCompressionCodec(String value) { public String value() { return value; } + + public static Optional 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..2201075e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsCompressionType(String value) { public String value() { return value; } + + public static Optional 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..5b2f9bd70 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsFormatType(String value) { public String value() { return value; } + + public static Optional 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/DestinationGcsGcs.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java index 11a786985..413db3b93 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsGcs(String value) { public String value() { return value; } + + public static Optional 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/DestinationGcsSchemasCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java index d70a48640..40ef6e505 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsSchemasCodec(String value) { public String value() { return value; } + + public static Optional 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..fd7aeaeeb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsSchemasCompressionType(String value) { public String value() { return value; } + + public static Optional 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..f6062c683 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsSchemasFormatCodec(String value) { public String value() { return value; } + + public static Optional 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..2a004ed0f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsSchemasFormatCompressionType(String value) { public String value() { return value; } + + public static Optional 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..81655fbd9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsSchemasFormatFormatType(String value) { public String value() { return value; } + + public static Optional 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..8d396a525 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsSchemasFormatOutputFormat1Codec(String value) { public String value() { return value; } + + public static Optional 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..2eb06f27f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsSchemasFormatOutputFormatCodec(String value) { public String value() { return value; } + + public static Optional 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..0ccc81abc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsSchemasFormatOutputFormatFormatType(String value) { public String value() { return value; } + + public static Optional 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..e32273f61 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGcsSchemasFormatType(String value) { public String value() { return value; } + + public static Optional 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/DestinationGoogleSheetsGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java index 0aa7587d2..2874300a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationGoogleSheetsGoogleSheets(String value) { public String value() { return value; } + + public static Optional 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/DestinationIcebergCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java index eec934563..198899a66 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergCatalogType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationIcebergCatalogType(String value) { public String value() { return value; } + + public static Optional 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/DestinationIcebergS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java index 56ff31858..067ebf60c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergS3BucketRegion.java @@ -6,6 +6,8 @@ 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 +58,13 @@ private DestinationIcebergS3BucketRegion(String value) { public String value() { return value; } + + public static Optional 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..4fc01bff0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigCatalogType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationIcebergSchemasCatalogConfigCatalogType(String value) { public String value() { return value; } + + public static Optional 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/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java index 398bb4ebc..822445254 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationIcebergSchemasCatalogConfigIcebergCatalogConfigCatalogType(St public String value() { return value; } + + public static Optional 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..09bccf9ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergSchemasCatalogType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationIcebergSchemasCatalogType(String value) { public String value() { return value; } + + public static Optional 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..54c718a12 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationIcebergStorageType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationIcebergStorageType(String value) { public String value() { return value; } + + public static Optional 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/DestinationMilvusLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java index 87fde4b9e..2f9dded0a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java @@ -6,6 +6,8 @@ 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 +40,13 @@ private DestinationMilvusLanguage(String value) { public String value() { return value; } + + public static Optional 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..9f40956fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java index 6bbc8f31d..688d012af 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional 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..49861f5cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..98f3ee6fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..8f7140da2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasIndexingAuthAuthenticationMode(String value) { public String value() { return value; } + + public static Optional 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..c6dc936d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasIndexingAuthMode(String value) { public String value() { return value; } + + public static Optional 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..c68e5aedd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasIndexingMode(String value) { public String value() { return value; } + + public static Optional 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..b713f5cd7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..e8eeb28d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional 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..c76429ab8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional 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..8a4273118 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode(String va public String value() { return value; } + + public static Optional 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/DestinationMongodbAuthorization.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java index 4ae0c2629..342fe4dad 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMongodbAuthorization(String value) { public String value() { return value; } + + public static Optional 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..d35dbebf9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMongodbInstance(String value) { public String value() { return value; } + + public static Optional 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/DestinationMongodbSchemasAuthorization.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java index 771986d2b..a97e94b81 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMongodbSchemasAuthorization(String value) { public String value() { return value; } + + public static Optional 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..2d17efc9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationMongodbSchemasInstance(String value) { public String value() { return value; } + + public static Optional 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..3b263bf0f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationMongodbSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..87ea9da4e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationMongodbSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..e63bba5a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationMongodbTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationMssqlSchemasSslMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethod.java index 73124406c..da7be55ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethod.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private DestinationMssqlSchemasSslMethod(String value) { public String value() { return value; } + + public static Optional 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..089ba8fbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethodSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasSslMethodSslMethod.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private DestinationMssqlSchemasSslMethodSslMethod(String value) { public String value() { return value; } + + public static Optional 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..a6503250c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationMssqlSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (DestinationMssqlSchemasTunnelMethod o: DestinationMssqlSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java index 92d36ef06..88d8e3df2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationMssqlSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (DestinationMssqlSchemasTunnelMethodTunnelMethod o: DestinationMssqlSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSslMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSslMethod.java index 7ca0127c0..eca87fec3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSslMethod.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum DestinationMssqlSslMethod { UNENCRYPTED("unencrypted"); @@ -20,4 +22,13 @@ private DestinationMssqlSslMethod(String value) { public String value() { return value; } + + public static Optional 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..a0b17cf11 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationMssqlTunnelMethod(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (DestinationMssqlTunnelMethod o: DestinationMssqlTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java index 302f3ca72..205ef3f60 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationMysqlSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..241274887 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationMysqlSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..28ec6bbce 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationMysqlTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..1295ef11f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java @@ -31,7 +31,7 @@ public class DestinationOracle { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption") - private Optional encryption; + private Optional encryption; /** * The hostname of the database. @@ -95,7 +95,7 @@ public class DestinationOracle { @JsonCreator public DestinationOracle( - @JsonProperty("encryption") Optional encryption, + @JsonProperty("encryption") Optional encryption, @JsonProperty("host") String host, @JsonProperty("jdbc_url_params") Optional jdbcUrlParams, @JsonProperty("password") Optional password, @@ -145,8 +145,8 @@ public Oracle destinationType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional encryption() { - return (Optional) encryption; + public Optional encryption() { + return (Optional) encryption; } /** @@ -229,7 +229,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 +238,7 @@ public DestinationOracle withEncryption(Encryption encryption) { /** * The encryption method which is used when communicating with the database. */ - public DestinationOracle withEncryption(Optional encryption) { + public DestinationOracle withEncryption(Optional encryption) { Utils.checkNotNull(encryption, "encryption"); this.encryption = encryption; return this; @@ -436,7 +436,7 @@ public String toString() { public final static class Builder { - private Optional encryption = Optional.empty(); + private Optional encryption = Optional.empty(); private String host; @@ -463,7 +463,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 +472,7 @@ public Builder encryption(Encryption encryption) { /** * The encryption method which is used when communicating with the database. */ - public Builder encryption(Optional encryption) { + public Builder encryption(Optional 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..b6624d18f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java @@ -0,0 +1,107 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package com.airbyte.api.models.shared; + + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +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(){})); + } + + public static DestinationOracleEncryption of(NativeNetworkEncryptionNNE value) { + Utils.checkNotNull(value, "value"); + return new DestinationOracleEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static DestinationOracleEncryption of(TLSEncryptedVerifyCertificate value) { + Utils.checkNotNull(value, "value"); + return new DestinationOracleEncryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *
    + *
  • {@code com.airbyte.api.models.shared.DestinationOracleUnencrypted}
  • + *
  • {@code com.airbyte.api.models.shared.NativeNetworkEncryptionNNE}
  • + *
  • {@code com.airbyte.api.models.shared.TLSEncryptedVerifyCertificate}
  • + *
+ * + *

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

+     * if (obj.value() instanceof String) {
+     *     String answer = (String) obj.value();
+     *     System.out.println("answer=" + answer);
+     * }
+     * 
+ * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + 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 { + + public _Deserializer() { + super(DestinationOracleEncryption.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(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..7c98c3dbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationOracleEncryptionMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationOracleSchemasEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java index a6ef80fa3..28b0fc7f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationOracleSchemasEncryptionMethod(String value) { public String value() { return value; } + + public static Optional 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..7110cc16b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationOracleSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..2b227a135 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationOracleSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..7e039df9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationOracleTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationPgvectorLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java index c672843ad..5785dd631 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java @@ -6,6 +6,8 @@ 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 +40,13 @@ private DestinationPgvectorLanguage(String value) { public String value() { return value; } + + public static Optional 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..2a2ebe306 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPgvectorMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java index 97811aecc..924f5d3cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPgvectorSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional 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..5571d8285 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPgvectorSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..7475b587b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPgvectorSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..cd35c2631 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPgvectorSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..6c1b60f8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPgvectorSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional 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..2b78d0886 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPgvectorSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional 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..d72c0d545 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode(String public String value() { return value; } + + public static Optional 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/DestinationPineconeLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java index 2340fde92..abd5e517c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java @@ -6,6 +6,8 @@ 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 +40,13 @@ private DestinationPineconeLanguage(String value) { public String value() { return value; } + + public static Optional 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..25de6e1d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPineconeMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java index d4dad7147..335101425 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPineconeSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional 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..c2da365e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPineconeSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..d4abb6890 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPineconeSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..f4573f293 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPineconeSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..91c0aed51 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPineconeSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional 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..c9d91f32f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPineconeSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional 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..37d0c32c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode(String public String value() { return value; } + + public static Optional 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/DestinationPostgresMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java index f8a18c8d0..778323b0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java @@ -6,9 +6,11 @@ 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 +22,13 @@ private DestinationPostgresMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationPostgresSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java index 9a4e881cf..c91e37116 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java @@ -6,9 +6,11 @@ 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 +22,13 @@ private DestinationPostgresSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..63f42ab7b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.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 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 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..bfac58abd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationPostgresSchemasSSLModeSSLModes6Mode(String value) { public String value() { return value; } + + public static Optional 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..6c0fc2d66 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java @@ -6,9 +6,11 @@ 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 +22,13 @@ private DestinationPostgresSchemasSSLModeSSLModesMode(String value) { public String value() { return value; } + + public static Optional 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..b8271eeaa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java @@ -6,9 +6,11 @@ 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 +22,13 @@ private DestinationPostgresSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional 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..c527652f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationPostgresSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..e42665f40 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationPostgresSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..f83b31b05 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationPostgresTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationQdrantLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java index 2ba3793d0..fcd04c4d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java @@ -6,6 +6,8 @@ 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 +40,13 @@ private DestinationQdrantLanguage(String value) { public String value() { return value; } + + public static Optional 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..85cf83a0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java index 0178e38c9..48d2716c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional 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..f2d70c12b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..2d4612ba3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..0d63cec22 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantSchemasIndexingAuthMethodMode(String value) { public String value() { return value; } + + public static Optional 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..28838914c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantSchemasIndexingMode(String value) { public String value() { return value; } + + public static Optional 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..0df635cf9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..01feac9bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional 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..a960a5d5d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional 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..494332a54 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode(String va public String value() { return value; } + + public static Optional 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/DestinationRedisMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java index 8b349e674..2a7f11df6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationRedisMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationRedisSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java index bcc8f8a07..a1890fb20 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationRedisSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..1f2a63254 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationRedisSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..6e7ee3da2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationRedisSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..90d90dfed 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationRedisTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationRedshiftMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java index a871af157..25252845d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationRedshiftMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationRedshiftS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java index 67aed7ba5..bd212be49 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java @@ -6,6 +6,8 @@ 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 +58,13 @@ private DestinationRedshiftS3BucketRegion(String value) { public String value() { return value; } + + public static Optional 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/DestinationRedshiftSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java index 8b88106e5..e5d94a1c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationRedshiftSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..6e82e1f1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationRedshiftSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..7a46f4cf5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationRedshiftTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/DestinationS3Codec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java index 675c7701b..86736e1e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3Codec(String value) { public String value() { return value; } + + public static Optional 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/DestinationS3CompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java index 38a319b1e..a79e0b130 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3CompressionType(String value) { public String value() { return value; } + + public static Optional 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/DestinationS3Flattening.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java index 025c71374..bc4ece838 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * DestinationS3Flattening - Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details. @@ -24,4 +26,13 @@ private DestinationS3Flattening(String value) { public String value() { return value; } + + public static Optional 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..4b5d9c03b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3FormatType(String value) { public String value() { return value; } + + public static Optional 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/DestinationS3GlueCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompressionType.java index 68ec8dc02..c32ce133f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueCompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3GlueCompressionType(String value) { public String value() { return value; } + + public static Optional 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/DestinationS3GlueFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFormatType.java index d1e917f20..b5a1f1ec1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueFormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3GlueFormatType(String value) { public String value() { return value; } + + public static Optional 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/DestinationS3GlueS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueS3BucketRegion.java index 5f57717cf..b80bff2d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueS3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueS3BucketRegion.java @@ -6,6 +6,8 @@ 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 +58,13 @@ private DestinationS3GlueS3BucketRegion(String value) { public String value() { return value; } + + public static Optional 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..6956df624 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueSchemasCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GlueSchemasCompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3GlueSchemasCompressionType(String value) { public String value() { return value; } + + public static Optional 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/DestinationS3S3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java index 38a43d7ca..96b7cf5c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java @@ -6,6 +6,8 @@ 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 +58,13 @@ private DestinationS3S3BucketRegion(String value) { public String value() { return value; } + + public static Optional 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..c09326f3c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasCodec(String value) { public String value() { return value; } + + public static Optional 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/DestinationS3SchemasCompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java index da5cc4bcb..19e42c249 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java @@ -6,6 +6,8 @@ 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 +31,13 @@ private DestinationS3SchemasCompressionCodec(String value) { public String value() { return value; } + + public static Optional 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..c9404ce48 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasCompressionType(String value) { public String value() { return value; } + + public static Optional 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 index a9d2ccf6e..3307dfa53 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * DestinationS3SchemasFlattening - Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. @@ -24,4 +26,13 @@ private DestinationS3SchemasFlattening(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (DestinationS3SchemasFlattening o: DestinationS3SchemasFlattening.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } 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..94636bc0f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasFormatCodec(String value) { public String value() { return value; } + + public static Optional 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..1d25d5bf8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasFormatCompressionType(String value) { public String value() { return value; } + + public static Optional 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..566b0a555 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasFormatFormatType(String value) { public String value() { return value; } + + public static Optional 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/DestinationS3SchemasFormatOutputFormat3Codec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java index 05df3f3fc..b81abf050 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasFormatOutputFormat3Codec(String value) { public String value() { return value; } + + public static Optional 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..0488b7c8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec(String valu public String value() { return value; } + + public static Optional 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..7daf9a684 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasFormatOutputFormatCodec(String value) { public String value() { return value; } + + public static Optional 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..3cd7a97c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasFormatOutputFormatCompressionType(String value) { public String value() { return value; } + + public static Optional 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..c741440e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasFormatOutputFormatFormatType(String value) { public String value() { return value; } + + public static Optional 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..c999bccf8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationS3SchemasFormatType(String value) { public String value() { return value; } + + public static Optional 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/DestinationSnowflakeAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java index fe0f4e05d..2d3423340 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeAuthType(String value) { public String value() { return value; } + + public static Optional 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/DestinationSnowflakeCortexLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java index 43b8d2638..54439a9f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java @@ -6,6 +6,8 @@ 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 +40,13 @@ private DestinationSnowflakeCortexLanguage(String value) { public String value() { return value; } + + public static Optional 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..c5300a5a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeCortexMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java index e9f5dd924..76a347d4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional 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..79fcccbc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..464bb5443 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeCortexSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..502f795a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeCortexSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..13b3fc9d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeCortexSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional 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..b0b073efe 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeCortexSchemasProcessingTextSplitterMode(String value public String value() { return value; } + + public static Optional 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..223c9cc47 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode( public String value() { return value; } + + public static Optional 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/DestinationSnowflakeSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java index 3776bf283..05b7f6536 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..2b611bf9f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeSchemasCredentialsAuthType(String value) { public String value() { return value; } + + public static Optional 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..c22dd5ae4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationSnowflakeSnowflake(String value) { public String value() { return value; } + + public static Optional 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/DestinationTeradataMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java index 965fd0050..97b6210dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationTeradataMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationTeradataSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java index c89511cb8..b149c6f5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationTeradataSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..7b874f1a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationTeradataSchemasSSLModeSSLModes5Mode(String value) { public String value() { return value; } + + public static Optional 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..c3ff49a45 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationTeradataSchemasSSLModeSSLModes6Mode(String value) { public String value() { return value; } + + public static Optional 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..a3684248c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationTeradataSchemasSSLModeSSLModesMode(String value) { public String value() { return value; } + + public static Optional 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..a939b18c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationTeradataSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationWeaviateLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java index 5b8cb1e86..9b6bf397f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java @@ -6,6 +6,8 @@ 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 +40,13 @@ private DestinationWeaviateLanguage(String value) { public String value() { return value; } + + public static Optional 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..13293ebe1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java index b0cc7f589..abe9cc2bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasEmbeddingEmbedding5Mode(String value) { public String value() { return value; } + + public static Optional 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..780eaa7cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasEmbeddingEmbedding6Mode(String value) { public String value() { return value; } + + public static Optional 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..a9a099c9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasEmbeddingEmbedding7Mode(String value) { public String value() { return value; } + + public static Optional 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..584ad9f7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasEmbeddingEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..092ca5009 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasEmbeddingMode(String value) { public String value() { return value; } + + public static Optional 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..b0eac47ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasIndexingAuthAuthenticationMode(String value) { public String value() { return value; } + + public static Optional 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..b9bb28c05 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasIndexingAuthMode(String value) { public String value() { return value; } + + public static Optional 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..fc0d8ffdb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasIndexingMode(String value) { public String value() { return value; } + + public static Optional 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..9c1684dfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..579ea8f4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasProcessingMode(String value) { public String value() { return value; } + + public static Optional 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..c68e906c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasProcessingTextSplitterMode(String value) { public String value() { return value; } + + public static Optional 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..ef6867388 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode(String public String value() { return value; } + + public static Optional 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/DestinationYellowbrickMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java index 596ac9bc5..7cf954dc9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationYellowbrickMode(String value) { public String value() { return value; } + + public static Optional 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/DestinationYellowbrickSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java index f21b480b0..36acf35e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationYellowbrickSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..d0328dce5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationYellowbrickSchemasSSLModeSSLModes5Mode(String value) { public String value() { return value; } + + public static Optional 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..deaa6fe98 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationYellowbrickSchemasSSLModeSSLModes6Mode(String value) { public String value() { return value; } + + public static Optional 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..043b5a849 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationYellowbrickSchemasSSLModeSSLModesMode(String value) { public String value() { return value; } + + public static Optional 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..6612994fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DestinationYellowbrickSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional 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..2ed7b93e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationYellowbrickSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..bc6cf91d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationYellowbrickSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..70d1ff679 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private DestinationYellowbrickTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/DetailType.java b/src/main/java/com/airbyte/api/models/shared/DetailType.java index f61ea87c7..187e44ae7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DetailType.java +++ b/src/main/java/com/airbyte/api/models/shared/DetailType.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private DetailType(String value) { public String value() { return value; } + + public static Optional 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/DevNull.java b/src/main/java/com/airbyte/api/models/shared/DevNull.java index ce5f87778..52c734272 100644 --- a/src/main/java/com/airbyte/api/models/shared/DevNull.java +++ b/src/main/java/com/airbyte/api/models/shared/DevNull.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DevNull(String value) { public String value() { return value; } + + public static Optional 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..213c613f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dimension.java +++ b/src/main/java/com/airbyte/api/models/shared/Dimension.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private Dimension(String value) { public String value() { return value; } + + public static Optional 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/Disable.java b/src/main/java/com/airbyte/api/models/shared/Disable.java index 956ed4c62..127c80323 100644 --- a/src/main/java/com/airbyte/api/models/shared/Disable.java +++ b/src/main/java/com/airbyte/api/models/shared/Disable.java @@ -27,7 +27,7 @@ public class Disable { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; @JsonCreator public Disable() { @@ -37,8 +37,8 @@ public Disable() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } public final static Builder builder() { @@ -81,11 +81,11 @@ public Disable build() { ); } - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"disable\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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..b3d20fa79 100644 --- a/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java +++ b/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private DistanceMetric(String value) { public String value() { return value; } + + public static Optional 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..cc1c0b5c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dixa.java +++ b/src/main/java/com/airbyte/api/models/shared/Dixa.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Dixa(String value) { public String value() { return value; } + + public static Optional 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..11cdf8b23 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dockerhub.java +++ b/src/main/java/com/airbyte/api/models/shared/Dockerhub.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Dockerhub(String value) { public String value() { return value; } + + public static Optional 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/Domain.java b/src/main/java/com/airbyte/api/models/shared/Domain.java index c25cf1347..821de6d19 100644 --- a/src/main/java/com/airbyte/api/models/shared/Domain.java +++ b/src/main/java/com/airbyte/api/models/shared/Domain.java @@ -6,6 +6,8 @@ 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 +32,13 @@ private Domain(String value) { public String value() { return value; } + + public static Optional 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..c6a9774fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java +++ b/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private DomainRegionCode(String value) { public String value() { return value; } + + public static Optional 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/Dremio.java b/src/main/java/com/airbyte/api/models/shared/Dremio.java index 12df5e83c..6ce65bb89 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dremio.java +++ b/src/main/java/com/airbyte/api/models/shared/Dremio.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Dremio(String value) { public String value() { return value; } + + public static Optional 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/Drip.java b/src/main/java/com/airbyte/api/models/shared/Drip.java index b7da95bec..82f681ce9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Drip.java +++ b/src/main/java/com/airbyte/api/models/shared/Drip.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Drip(String value) { public String value() { return value; } + + public static Optional 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..d3cd1ab4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DropboxSign.java +++ b/src/main/java/com/airbyte/api/models/shared/DropboxSign.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private DropboxSign(String value) { public String value() { return value; } + + public static Optional 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..6d4fd17d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Duckdb.java +++ b/src/main/java/com/airbyte/api/models/shared/Duckdb.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Duckdb(String value) { public String value() { return value; } + + public static Optional 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..d54b6d92b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java @@ -6,6 +6,8 @@ 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 +58,13 @@ private DynamoDBRegion(String value) { public String value() { return value; } + + public static Optional 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..7ae8c8b82 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/Dynamodb.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Dynamodb(String value) { public String value() { return value; } + + public static Optional 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..b7512f12c 100644 --- a/src/main/java/com/airbyte/api/models/shared/EConomic.java +++ b/src/main/java/com/airbyte/api/models/shared/EConomic.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private EConomic(String value) { public String value() { return value; } + + public static Optional 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/Easypost.java b/src/main/java/com/airbyte/api/models/shared/Easypost.java index 17717bdad..c2b29054b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Easypost.java +++ b/src/main/java/com/airbyte/api/models/shared/Easypost.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Easypost(String value) { public String value() { return value; } + + public static Optional 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..1a24fe856 100644 --- a/src/main/java/com/airbyte/api/models/shared/Easypromos.java +++ b/src/main/java/com/airbyte/api/models/shared/Easypromos.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Easypromos(String value) { public String value() { return value; } + + public static Optional 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..911fa58ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/Elasticemail.java +++ b/src/main/java/com/airbyte/api/models/shared/Elasticemail.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Elasticemail(String value) { public String value() { return value; } + + public static Optional 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..3392a1328 100644 --- a/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java +++ b/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Elasticsearch(String value) { public String value() { return value; } + + public static Optional 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/Emailoctopus.java b/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java index 80160009d..e3a5090de 100644 --- a/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java +++ b/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Emailoctopus(String value) { public String value() { return value; } + + public static Optional 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/EmploymentHero.java b/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java index 2f4a2a2fb..5ab7b5feb 100644 --- a/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java +++ b/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private EmploymentHero(String value) { public String value() { return value; } + + public static Optional 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/Encharge.java b/src/main/java/com/airbyte/api/models/shared/Encharge.java index 0ba2d9289..d9709dc0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Encharge.java +++ b/src/main/java/com/airbyte/api/models/shared/Encharge.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Encharge(String value) { public String value() { return value; } + + public static Optional 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/Encryption.java b/src/main/java/com/airbyte/api/models/shared/Encryption.java index 0032dab79..390489074 100644 --- a/src/main/java/com/airbyte/api/models/shared/Encryption.java +++ b/src/main/java/com/airbyte/api/models/shared/Encryption.java @@ -5,103 +5,20 @@ 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 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(){})); - } - public static Encryption of(NativeNetworkEncryptionNNE value) { - Utils.checkNotNull(value, "value"); - return new Encryption(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } +@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(){})); - } - - /** - * Returns an instance of one of these types: - *
    - *
  • {@code com.airbyte.api.models.shared.DestinationOracleUnencrypted}
  • - *
  • {@code com.airbyte.api.models.shared.NativeNetworkEncryptionNNE}
  • - *
  • {@code com.airbyte.api.models.shared.TLSEncryptedVerifyCertificate}
  • - *
- * - *

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

-     * if (obj.value() instanceof String) {
-     *     String answer = (String) obj.value();
-     *     System.out.println("answer=" + answer);
-     * }
-     * 
- * - * @return value of oneOf type - **/ - public java.lang.Object value() { - return value.value(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - 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 { + String algorithm(); - public _Deserializer() { - super(Encryption.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); - } - } - - @Override - public String toString() { - return Utils.toString(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..ad25caec9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionAES.java @@ -0,0 +1,235 @@ +/* + * 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..b002a899a 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private EncryptionAlgorithm(String value) { public String value() { return value; } + + public static Optional 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..3d5ab02d6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.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 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 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..f21f8378f 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private EncryptionMethod(String value) { public String value() { return value; } + + public static Optional 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..11f87dc18 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionRSA.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; + + +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..13dd5c8dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java +++ b/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java @@ -5,6 +5,8 @@ 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 +29,13 @@ private EngagementWindowDays(long value) { public long value() { return value; } + + public static Optional 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/Entity.java b/src/main/java/com/airbyte/api/models/shared/Entity.java index ad4c93b9c..1070cb118 100644 --- a/src/main/java/com/airbyte/api/models/shared/Entity.java +++ b/src/main/java/com/airbyte/api/models/shared/Entity.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum Entity { PARTIES("parties"), @@ -22,4 +24,13 @@ private Entity(String value) { public String value() { return value; } + + public static Optional 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..5491f6eda 100644 --- a/src/main/java/com/airbyte/api/models/shared/Environment.java +++ b/src/main/java/com/airbyte/api/models/shared/Environment.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private Environment(String value) { public String value() { return value; } + + public static Optional 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..1da53d14c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Equal.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.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..71af75803 100644 --- a/src/main/java/com/airbyte/api/models/shared/Eventbrite.java +++ b/src/main/java/com/airbyte/api/models/shared/Eventbrite.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Eventbrite(String value) { public String value() { return value; } + + public static Optional 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..f105a2206 100644 --- a/src/main/java/com/airbyte/api/models/shared/Eventee.java +++ b/src/main/java/com/airbyte/api/models/shared/Eventee.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Eventee(String value) { public String value() { return value; } + + public static Optional 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..683ed1f2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Eventzilla.java +++ b/src/main/java/com/airbyte/api/models/shared/Eventzilla.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Eventzilla(String value) { public String value() { return value; } + + public static Optional 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/ExchangeRates.java b/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java index 89e531282..b19c0b0fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java +++ b/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ExchangeRates(String value) { public String value() { return value; } + + public static Optional 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/Ezofficeinventory.java b/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java index c77191166..8cd4defe7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Ezofficeinventory(String value) { public String value() { return value; } + + public static Optional 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/Factorial.java b/src/main/java/com/airbyte/api/models/shared/Factorial.java index 47c520814..2de1a405f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Factorial.java +++ b/src/main/java/com/airbyte/api/models/shared/Factorial.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Factorial(String value) { public String value() { return value; } + + public static Optional 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/Fake.java b/src/main/java/com/airbyte/api/models/shared/Fake.java index e9c615999..fd34e185a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fake.java +++ b/src/main/java/com/airbyte/api/models/shared/Fake.java @@ -27,7 +27,7 @@ public class Fake { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; @JsonCreator public Fake() { @@ -37,8 +37,8 @@ public Fake() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } public final static Builder builder() { @@ -81,11 +81,11 @@ public Fake build() { ); } - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"fake\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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..e4ea8d2af 100644 --- a/src/main/java/com/airbyte/api/models/shared/Faker.java +++ b/src/main/java/com/airbyte/api/models/shared/Faker.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Faker(String value) { public String value() { return value; } + + public static Optional 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/Fauna.java b/src/main/java/com/airbyte/api/models/shared/Fauna.java index baefeaea7..c7702210b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fauna.java +++ b/src/main/java/com/airbyte/api/models/shared/Fauna.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Fauna(String value) { public String value() { return value; } + + public static Optional 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/FieldRenaming.java b/src/main/java/com/airbyte/api/models/shared/FieldRenaming.java new file mode 100644 index 000000000..a4b82ddd8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/FieldRenaming.java @@ -0,0 +1,142 @@ +/* + * 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..8eede1c44 100644 --- a/src/main/java/com/airbyte/api/models/shared/File.java +++ b/src/main/java/com/airbyte/api/models/shared/File.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private File(String value) { public String value() { return value; } + + public static Optional 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/FileStorageFormat.java b/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java index 0334a314d..6f7100eec 100644 --- a/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/FileStorageFormat.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum FileStorageFormat { PARQUET("Parquet"), @@ -21,4 +23,13 @@ private FileStorageFormat(String value) { public String value() { return value; } + + public static Optional 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..d51536ac4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/Filetype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Filetype(String value) { public String value() { return value; } + + public static Optional 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..8afe5c796 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fillout.java +++ b/src/main/java/com/airbyte/api/models/shared/Fillout.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Fillout(String value) { public String value() { return value; } + + public static Optional 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..38b3848d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Filter.java +++ b/src/main/java/com/airbyte/api/models/shared/Filter.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private Filter(String value) { public String value() { return value; } + + public static Optional 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/FilterName.java b/src/main/java/com/airbyte/api/models/shared/FilterName.java index 65ba73d56..90218b55f 100644 --- a/src/main/java/com/airbyte/api/models/shared/FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/FilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private FilterName(String value) { public String value() { return value; } + + public static Optional 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..9ee71977b 100644 --- a/src/main/java/com/airbyte/api/models/shared/FilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/FilterType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private FilterType(String value) { public String value() { return value; } + + public static Optional 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..4a9281aa6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Finage.java +++ b/src/main/java/com/airbyte/api/models/shared/Finage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Finage(String value) { public String value() { return value; } + + public static Optional 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..ab528d294 100644 --- a/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java +++ b/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private FinancialModelling(String value) { public String value() { return value; } + + public static Optional 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..89ff07282 100644 --- a/src/main/java/com/airbyte/api/models/shared/Finnhub.java +++ b/src/main/java/com/airbyte/api/models/shared/Finnhub.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Finnhub(String value) { public String value() { return value; } + + public static Optional 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..c89ef626c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Finnworlds.java +++ b/src/main/java/com/airbyte/api/models/shared/Finnworlds.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Finnworlds(String value) { public String value() { return value; } + + public static Optional 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..17f7b6017 100644 --- a/src/main/java/com/airbyte/api/models/shared/Firebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/Firebolt.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Firebolt(String value) { public String value() { return value; } + + public static Optional 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..22087fed4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Firehydrant.java +++ b/src/main/java/com/airbyte/api/models/shared/Firehydrant.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Firehydrant(String value) { public String value() { return value; } + + public static Optional 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..51e7033b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Firestore.java +++ b/src/main/java/com/airbyte/api/models/shared/Firestore.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Firestore(String value) { public String value() { return value; } + + public static Optional 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/Flattening.java b/src/main/java/com/airbyte/api/models/shared/Flattening.java index 8ee0448f7..35fc7bd2a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flattening.java +++ b/src/main/java/com/airbyte/api/models/shared/Flattening.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * Flattening - Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details. @@ -24,4 +26,13 @@ private Flattening(String value) { public String value() { return value; } + + public static Optional 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..9952a8dfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fleetio.java +++ b/src/main/java/com/airbyte/api/models/shared/Fleetio.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Fleetio(String value) { public String value() { return value; } + + public static Optional 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..72e8df20e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flexmail.java +++ b/src/main/java/com/airbyte/api/models/shared/Flexmail.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Flexmail(String value) { public String value() { return value; } + + public static Optional 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..beb61ef67 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flexport.java +++ b/src/main/java/com/airbyte/api/models/shared/Flexport.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Flexport(String value) { public String value() { return value; } + + public static Optional 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..dd26ffc13 100644 --- a/src/main/java/com/airbyte/api/models/shared/Float.java +++ b/src/main/java/com/airbyte/api/models/shared/Float.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Float(String value) { public String value() { return value; } + + public static Optional 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..923052016 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flowlu.java +++ b/src/main/java/com/airbyte/api/models/shared/Flowlu.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Flowlu(String value) { public String value() { return value; } + + public static Optional 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/FormatType.java b/src/main/java/com/airbyte/api/models/shared/FormatType.java index 026e13a83..d5e21d3e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/FormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/FormatType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private FormatType(String value) { public String value() { return value; } + + public static Optional 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..aff0285c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private FormatTypeWildcard(String value) { public String value() { return value; } + + public static Optional 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..321a8ad1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Formbricks.java +++ b/src/main/java/com/airbyte/api/models/shared/Formbricks.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Formbricks(String value) { public String value() { return value; } + + public static Optional 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..820494c07 100644 --- a/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java +++ b/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private FreeAgentConnector(String value) { public String value() { return value; } + + public static Optional 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..2facace2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freightview.java +++ b/src/main/java/com/airbyte/api/models/shared/Freightview.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Freightview(String value) { public String value() { return value; } + + public static Optional 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..ef7447cd9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshbooks.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Freshbooks(String value) { public String value() { return value; } + + public static Optional 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..eec6940d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshcaller.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshcaller.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Freshcaller(String value) { public String value() { return value; } + + public static Optional 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..c08d9a101 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshchat.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshchat.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Freshchat(String value) { public String value() { return value; } + + public static Optional 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..7a29e7b13 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshdesk.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshdesk.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Freshdesk(String value) { public String value() { return value; } + + public static Optional 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..5308103cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshsales.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshsales.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Freshsales(String value) { public String value() { return value; } + + public static Optional 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..5edb50198 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshservice.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshservice.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Freshservice(String value) { public String value() { return value; } + + public static Optional 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/Front.java b/src/main/java/com/airbyte/api/models/shared/Front.java index f97a54144..e074b664c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Front.java +++ b/src/main/java/com/airbyte/api/models/shared/Front.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Front(String value) { public String value() { return value; } + + public static Optional 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..fbf9d9256 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fulcrum.java +++ b/src/main/java/com/airbyte/api/models/shared/Fulcrum.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Fulcrum(String value) { public String value() { return value; } + + public static Optional 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/GCSBucketRegion.java b/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java index cc1c86a3d..087f5400e 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java @@ -6,6 +6,8 @@ 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 +59,13 @@ private GCSBucketRegion(String value) { public String value() { return value; } + + public static Optional 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/GCSTmpFilesAfterwardProcessing.java b/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java index 5fe1b9be1..fa1a723e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private GCSTmpFilesAfterwardProcessing(String value) { public String value() { return value; } + + public static Optional 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..6dda47635 100644 --- a/src/main/java/com/airbyte/api/models/shared/GainsightPx.java +++ b/src/main/java/com/airbyte/api/models/shared/GainsightPx.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private GainsightPx(String value) { public String value() { return value; } + + public static Optional 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/GeographyEnum.java b/src/main/java/com/airbyte/api/models/shared/GeographyEnum.java index 5ff189688..ed869f2de 100644 --- a/src/main/java/com/airbyte/api/models/shared/GeographyEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/GeographyEnum.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum GeographyEnum { AUTO("auto"), @@ -22,4 +24,13 @@ private GeographyEnum(String value) { public String value() { return value; } + + public static Optional 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..41582105e 100644 --- a/src/main/java/com/airbyte/api/models/shared/GeographyEnumNoDefault.java +++ b/src/main/java/com/airbyte/api/models/shared/GeographyEnumNoDefault.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum GeographyEnumNoDefault { AUTO("auto"), @@ -22,4 +24,13 @@ private GeographyEnumNoDefault(String value) { public String value() { return value; } + + public static Optional 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..549669a7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Getgist.java +++ b/src/main/java/com/airbyte/api/models/shared/Getgist.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Getgist(String value) { public String value() { return value; } + + public static Optional 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..dc868af3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Getlago.java +++ b/src/main/java/com/airbyte/api/models/shared/Getlago.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Getlago(String value) { public String value() { return value; } + + public static Optional 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..7c289cddd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gitbook.java +++ b/src/main/java/com/airbyte/api/models/shared/Gitbook.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Gitbook(String value) { public String value() { return value; } + + public static Optional 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/Glassfrog.java b/src/main/java/com/airbyte/api/models/shared/Glassfrog.java index 963b65d84..03746966f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Glassfrog.java +++ b/src/main/java/com/airbyte/api/models/shared/Glassfrog.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Glassfrog(String value) { public String value() { return value; } + + public static Optional 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/Gmail.java b/src/main/java/com/airbyte/api/models/shared/Gmail.java index d7274ba7e..880289eb5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gmail.java +++ b/src/main/java/com/airbyte/api/models/shared/Gmail.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Gmail(String value) { public String value() { return value; } + + public static Optional 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..7734abb3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gnews.java +++ b/src/main/java/com/airbyte/api/models/shared/Gnews.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Gnews(String value) { public String value() { return value; } + + public static Optional 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..ea0a7df14 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private GoCardlessAPIEnvironment(String value) { public String value() { return value; } + + public static Optional 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..606bcca29 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gocardless.java +++ b/src/main/java/com/airbyte/api/models/shared/Gocardless.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Gocardless(String value) { public String value() { return value; } + + public static Optional 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..93a97115c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Goldcast.java +++ b/src/main/java/com/airbyte/api/models/shared/Goldcast.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Goldcast(String value) { public String value() { return value; } + + public static Optional 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..6998b8bf7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gong.java +++ b/src/main/java/com/airbyte/api/models/shared/Gong.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Gong(String value) { public String value() { return value; } + + public static Optional 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/GoogleCalendar.java b/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java index c04076bb4..00110b8f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private GoogleCalendar(String value) { public String value() { return value; } + + public static Optional 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..2e716f849 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private GoogleClassroom(String value) { public String value() { return value; } + + public static Optional 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/GoogleDirectory.java b/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java index 96d4190d5..634e018be 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private GoogleDirectory(String value) { public String value() { return value; } + + public static Optional 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/GoogleForms.java b/src/main/java/com/airbyte/api/models/shared/GoogleForms.java index 6f8ec4803..5d7aaca30 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleForms.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleForms.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private GoogleForms(String value) { public String value() { return value; } + + public static Optional 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..673ee6908 100644 --- a/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java +++ b/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private GooglePagespeedInsights(String value) { public String value() { return value; } + + public static Optional 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/GoogleTasks.java b/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java index 5889fa644..47cd928d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private GoogleTasks(String value) { public String value() { return value; } + + public static Optional 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..780703e68 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private GoogleWebfonts(String value) { public String value() { return value; } + + public static Optional 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..907bcfdbb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gorgias.java +++ b/src/main/java/com/airbyte/api/models/shared/Gorgias.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Gorgias(String value) { public String value() { return value; } + + public static Optional 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..f0bcb6979 100644 --- a/src/main/java/com/airbyte/api/models/shared/Granularity.java +++ b/src/main/java/com/airbyte/api/models/shared/Granularity.java @@ -6,6 +6,8 @@ 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 +29,13 @@ private Granularity(String value) { public String value() { return value; } + + public static Optional 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..047d98e4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private GranularityForGeoLocationRegion(String value) { public String value() { return value; } + + public static Optional 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..eddc80c41 100644 --- a/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java +++ b/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private GranularityForPeriodicReports(String value) { public String value() { return value; } + + public static Optional 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..17317bd29 100644 --- a/src/main/java/com/airbyte/api/models/shared/Greenhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/Greenhouse.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Greenhouse(String value) { public String value() { return value; } + + public static Optional 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..c8d3f8e35 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Greythr.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 Greythr { + GREYTHR("greythr"); + + @JsonValue + private final String value; + + private Greythr(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional 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..0cab558ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gridly.java +++ b/src/main/java/com/airbyte/api/models/shared/Gridly.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Gridly(String value) { public String value() { return value; } + + public static Optional 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..b8d5cbd1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/GroupBy.java +++ b/src/main/java/com/airbyte/api/models/shared/GroupBy.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private GroupBy(String value) { public String value() { return value; } + + public static Optional 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..e4ae95fb9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Guru.java +++ b/src/main/java/com/airbyte/api/models/shared/Guru.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Guru(String value) { public String value() { return value; } + + public static Optional 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..c16b3e010 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gutendex.java +++ b/src/main/java/com/airbyte/api/models/shared/Gutendex.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Gutendex(String value) { public String value() { return value; } + + public static Optional 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/HardcodedRecords.java b/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java index 2cb48a425..5f4650e7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private HardcodedRecords(String value) { public String value() { return value; } + + public static Optional 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..e5888bb5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Harvest.java +++ b/src/main/java/com/airbyte/api/models/shared/Harvest.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Harvest(String value) { public String value() { return value; } + + public static Optional 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..57a686706 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Hashing.java @@ -0,0 +1,183 @@ +/* + * 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..7ad7c99fc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/HashingMethod.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; + +/** + * 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 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/HeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java index f17b45f93..1f76a10b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private HeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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..979d1d594 100644 --- a/src/main/java/com/airbyte/api/models/shared/Height.java +++ b/src/main/java/com/airbyte/api/models/shared/Height.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Height(String value) { public String value() { return value; } + + public static Optional 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/Hibob.java b/src/main/java/com/airbyte/api/models/shared/Hibob.java index d7a201476..f6995336f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hibob.java +++ b/src/main/java/com/airbyte/api/models/shared/Hibob.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Hibob(String value) { public String value() { return value; } + + public static Optional 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..771ede561 100644 --- a/src/main/java/com/airbyte/api/models/shared/HighLevel.java +++ b/src/main/java/com/airbyte/api/models/shared/HighLevel.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private HighLevel(String value) { public String value() { return value; } + + public static Optional 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/Hubplanner.java b/src/main/java/com/airbyte/api/models/shared/Hubplanner.java index b94613de4..87691d27e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hubplanner.java +++ b/src/main/java/com/airbyte/api/models/shared/Hubplanner.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Hubplanner(String value) { public String value() { return value; } + + public static Optional 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/HuggingFaceDatasets.java b/src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java new file mode 100644 index 000000000..2571a55f4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.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 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 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..17a6541df 100644 --- a/src/main/java/com/airbyte/api/models/shared/Humanitix.java +++ b/src/main/java/com/airbyte/api/models/shared/Humanitix.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Humanitix(String value) { public String value() { return value; } + + public static Optional 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/Iceberg.java b/src/main/java/com/airbyte/api/models/shared/Iceberg.java index 2969b6a8d..f7ed52d94 100644 --- a/src/main/java/com/airbyte/api/models/shared/Iceberg.java +++ b/src/main/java/com/airbyte/api/models/shared/Iceberg.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Iceberg(String value) { public String value() { return value; } + + public static Optional 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/IlluminaBasespace.java b/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java index 478a9c7bc..4b79b0389 100644 --- a/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java +++ b/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private IlluminaBasespace(String value) { public String value() { return value; } + + public static Optional 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..0121216cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/In.java +++ b/src/main/java/com/airbyte/api/models/shared/In.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum In { TITLE("title"), @@ -22,4 +24,13 @@ private In(String value) { public String value() { return value; } + + public static Optional 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/IncidentIo.java b/src/main/java/com/airbyte/api/models/shared/IncidentIo.java index 6d687327f..343169214 100644 --- a/src/main/java/com/airbyte/api/models/shared/IncidentIo.java +++ b/src/main/java/com/airbyte/api/models/shared/IncidentIo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private IncidentIo(String value) { public String value() { return value; } + + public static Optional 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/Inflowinventory.java b/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java index 576f892fe..38c9936d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Inflowinventory(String value) { public String value() { return value; } + + public static Optional 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/Insightly.java b/src/main/java/com/airbyte/api/models/shared/Insightly.java index c5673080f..92b0ec09c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Insightly.java +++ b/src/main/java/com/airbyte/api/models/shared/Insightly.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Insightly(String value) { public String value() { return value; } + + public static Optional 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/Instance.java b/src/main/java/com/airbyte/api/models/shared/Instance.java index 5cdd7318e..26e834be1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Instance.java +++ b/src/main/java/com/airbyte/api/models/shared/Instance.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Instance(String value) { public String value() { return value; } + + public static Optional 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..f578b0c99 100644 --- a/src/main/java/com/airbyte/api/models/shared/Instatus.java +++ b/src/main/java/com/airbyte/api/models/shared/Instatus.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Instatus(String value) { public String value() { return value; } + + public static Optional 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/Interval.java b/src/main/java/com/airbyte/api/models/shared/Interval.java index 8d69a9677..9f4d8a360 100644 --- a/src/main/java/com/airbyte/api/models/shared/Interval.java +++ b/src/main/java/com/airbyte/api/models/shared/Interval.java @@ -6,6 +6,8 @@ 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 @@ -33,4 +35,13 @@ private Interval(String value) { public String value() { return value; } + + public static Optional 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/InvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java index a981fe36f..c79bba4ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private InvalidCDCPositionBehaviorAdvanced(String value) { public String value() { return value; } + + public static Optional 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..fb31cab73 100644 --- a/src/main/java/com/airbyte/api/models/shared/Invoiced.java +++ b/src/main/java/com/airbyte/api/models/shared/Invoiced.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Invoiced(String value) { public String value() { return value; } + + public static Optional 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..708f358ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java +++ b/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Invoiceninja(String value) { public String value() { return value; } + + public static Optional 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..5e28befd2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ip2whois.java +++ b/src/main/java/com/airbyte/api/models/shared/Ip2whois.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Ip2whois(String value) { public String value() { return value; } + + public static Optional 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..5a1654aa1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Iterable.java +++ b/src/main/java/com/airbyte/api/models/shared/Iterable.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Iterable(String value) { public String value() { return value; } + + public static Optional 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/Jira.java b/src/main/java/com/airbyte/api/models/shared/Jira.java index 59c3762a8..7552a1a2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Jira.java +++ b/src/main/java/com/airbyte/api/models/shared/Jira.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Jira(String value) { public String value() { return value; } + + public static Optional 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/JobStatusEnum.java b/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java index 349046167..c716f125d 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum JobStatusEnum { PENDING("pending"), @@ -25,4 +27,13 @@ private JobStatusEnum(String value) { public String value() { return value; } + + public static Optional 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..3ff0b5cfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private JobTypeEnum(String value) { public String value() { return value; } + + public static Optional 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..27dd78ee1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java +++ b/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Jobnimbus(String value) { public String value() { return value; } + + public static Optional 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/Jotform.java b/src/main/java/com/airbyte/api/models/shared/Jotform.java index 6e738a162..6f8b330f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Jotform.java +++ b/src/main/java/com/airbyte/api/models/shared/Jotform.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Jotform(String value) { public String value() { return value; } + + public static Optional 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/JustSift.java b/src/main/java/com/airbyte/api/models/shared/JustSift.java index d7b2c4011..34a49ae45 100644 --- a/src/main/java/com/airbyte/api/models/shared/JustSift.java +++ b/src/main/java/com/airbyte/api/models/shared/JustSift.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private JustSift(String value) { public String value() { return value; } + + public static Optional 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..4ad944b61 100644 --- a/src/main/java/com/airbyte/api/models/shared/Justcall.java +++ b/src/main/java/com/airbyte/api/models/shared/Justcall.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Justcall(String value) { public String value() { return value; } + + public static Optional 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..338e95c16 100644 --- a/src/main/java/com/airbyte/api/models/shared/K6Cloud.java +++ b/src/main/java/com/airbyte/api/models/shared/K6Cloud.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private K6Cloud(String value) { public String value() { return value; } + + public static Optional 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..6ed820433 100644 --- a/src/main/java/com/airbyte/api/models/shared/Katana.java +++ b/src/main/java/com/airbyte/api/models/shared/Katana.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Katana(String value) { public String value() { return value; } + + public static Optional 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/Kind.java b/src/main/java/com/airbyte/api/models/shared/Kind.java index b1c162c0c..756b2cf78 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kind.java +++ b/src/main/java/com/airbyte/api/models/shared/Kind.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private Kind(String value) { public String value() { return value; } + + public static Optional 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..4117ea299 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kisi.java +++ b/src/main/java/com/airbyte/api/models/shared/Kisi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Kisi(String value) { public String value() { return value; } + + public static Optional 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..220880463 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java +++ b/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Kissmetrics(String value) { public String value() { return value; } + + public static Optional 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..ee50fc850 100644 --- a/src/main/java/com/airbyte/api/models/shared/Klarna.java +++ b/src/main/java/com/airbyte/api/models/shared/Klarna.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Klarna(String value) { public String value() { return value; } + + public static Optional 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..3d1cfd8cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/KlausApi.java +++ b/src/main/java/com/airbyte/api/models/shared/KlausApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private KlausApi(String value) { public String value() { return value; } + + public static Optional 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..01bca9bd1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Klaviyo.java +++ b/src/main/java/com/airbyte/api/models/shared/Klaviyo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Klaviyo(String value) { public String value() { return value; } + + public static Optional 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..92eb78f69 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kyve.java +++ b/src/main/java/com/airbyte/api/models/shared/Kyve.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Kyve(String value) { public String value() { return value; } + + public static Optional 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..5f82035e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java +++ b/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private LSNCommitBehaviour(String value) { public String value() { return value; } + + public static Optional 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..51d218810 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lang.java +++ b/src/main/java/com/airbyte/api/models/shared/Lang.java @@ -6,6 +6,8 @@ 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 +73,13 @@ private Lang(String value) { public String value() { return value; } + + public static Optional 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..476dba070 100644 --- a/src/main/java/com/airbyte/api/models/shared/Language.java +++ b/src/main/java/com/airbyte/api/models/shared/Language.java @@ -6,6 +6,8 @@ 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 @@ -38,4 +40,13 @@ private Language(String value) { public String value() { return value; } + + public static Optional 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..e1c183e55 100644 --- a/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java +++ b/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Launchdarkly(String value) { public String value() { return value; } + + public static Optional 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..0b20a6472 100644 --- a/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java +++ b/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Leadfeeder(String value) { public String value() { return value; } + + public static Optional 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..afe8a331d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lemlist.java +++ b/src/main/java/com/airbyte/api/models/shared/Lemlist.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Lemlist(String value) { public String value() { return value; } + + public static Optional 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..1cdf47279 100644 --- a/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private LessAnnoyingCrm(String value) { public String value() { return value; } + + public static Optional 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..d21cf679d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Level.java +++ b/src/main/java/com/airbyte/api/models/shared/Level.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private Level(String value) { public String value() { return value; } + + public static Optional 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/LightspeedRetail.java b/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java index c1fbf6515..32ae41501 100644 --- a/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java +++ b/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private LightspeedRetail(String value) { public String value() { return value; } + + public static Optional 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/LinkedinPages.java b/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java index 8ea76b416..27be73ec4 100644 --- a/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java +++ b/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private LinkedinPages(String value) { public String value() { return value; } + + public static Optional 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..7d84f66f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Linnworks.java +++ b/src/main/java/com/airbyte/api/models/shared/Linnworks.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Linnworks(String value) { public String value() { return value; } + + public static Optional 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/Lob.java b/src/main/java/com/airbyte/api/models/shared/Lob.java index 2c3cabb8d..4ee161d9d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lob.java +++ b/src/main/java/com/airbyte/api/models/shared/Lob.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Lob(String value) { public String value() { return value; } + + public static Optional 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/LoggingType.java b/src/main/java/com/airbyte/api/models/shared/LoggingType.java index 757dba0d4..18b8857bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoggingType.java +++ b/src/main/java/com/airbyte/api/models/shared/LoggingType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private LoggingType(String value) { public String value() { return value; } + + public static Optional 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/Lokalise.java b/src/main/java/com/airbyte/api/models/shared/Lokalise.java index 5af6b7890..99c5091af 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lokalise.java +++ b/src/main/java/com/airbyte/api/models/shared/Lokalise.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Lokalise(String value) { public String value() { return value; } + + public static Optional 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..72e641d28 100644 --- a/src/main/java/com/airbyte/api/models/shared/Looker.java +++ b/src/main/java/com/airbyte/api/models/shared/Looker.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Looker(String value) { public String value() { return value; } + + public static Optional 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..2ced286ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/Luma.java +++ b/src/main/java/com/airbyte/api/models/shared/Luma.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Luma(String value) { public String value() { return value; } + + public static Optional 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/Mailerlite.java b/src/main/java/com/airbyte/api/models/shared/Mailerlite.java index a5ce8e996..3b156d0e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailerlite.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailerlite.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mailerlite(String value) { public String value() { return value; } + + public static Optional 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/Mailgun.java b/src/main/java/com/airbyte/api/models/shared/Mailgun.java index b3fb1e8a1..db64e1a2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailgun.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailgun.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mailgun(String value) { public String value() { return value; } + + public static Optional 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..40f5ee928 100644 --- a/src/main/java/com/airbyte/api/models/shared/MailjetMail.java +++ b/src/main/java/com/airbyte/api/models/shared/MailjetMail.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private MailjetMail(String value) { public String value() { return value; } + + public static Optional 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..67e2d8216 100644 --- a/src/main/java/com/airbyte/api/models/shared/MailjetSms.java +++ b/src/main/java/com/airbyte/api/models/shared/MailjetSms.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private MailjetSms(String value) { public String value() { return value; } + + public static Optional 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..198180991 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailosaur.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailosaur.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mailosaur(String value) { public String value() { return value; } + + public static Optional 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..862522d24 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailtrap.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailtrap.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mailtrap(String value) { public String value() { return value; } + + public static Optional 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..fea4feb6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java @@ -5,28 +5,77 @@ 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(){})); + } + + public static MapperConfiguration of(FieldRenaming value) { + Utils.checkNotNull(value, "value"); + return new MapperConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public final static Builder builder() { - return new Builder(); + public static MapperConfiguration of(RowFiltering value) { + Utils.checkNotNull(value, "value"); + return new MapperConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static MapperConfiguration of(Encryption value) { + Utils.checkNotNull(value, "value"); + return new MapperConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + /** + * Returns an instance of one of these types: + *
    + *
  • {@code com.airbyte.api.models.shared.Hashing}
  • + *
  • {@code com.airbyte.api.models.shared.FieldRenaming}
  • + *
  • {@code com.airbyte.api.models.shared.RowFiltering}
  • + *
  • {@code com.airbyte.api.models.shared.Encryption}
  • + *
+ * + *

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

+     * if (obj.value() instanceof String) {
+     *     String answer = (String) obj.value();
+     *     System.out.println("answer=" + answer);
+     * }
+     * 
+ * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -35,30 +84,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 { + + public _Deserializer() { + super(MapperConfiguration.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } } - 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..e5a3d03e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java +++ b/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private MarketNewsCategory(String value) { public String value() { return value; } + + public static Optional 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..15a85b483 100644 --- a/src/main/java/com/airbyte/api/models/shared/Marketo.java +++ b/src/main/java/com/airbyte/api/models/shared/Marketo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Marketo(String value) { public String value() { return value; } + + public static Optional 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..fec9ce848 100644 --- a/src/main/java/com/airbyte/api/models/shared/Marketstack.java +++ b/src/main/java/com/airbyte/api/models/shared/Marketstack.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Marketstack(String value) { public String value() { return value; } + + public static Optional 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..4aace9b8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mention.java +++ b/src/main/java/com/airbyte/api/models/shared/Mention.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mention(String value) { public String value() { return value; } + + public static Optional 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/Metabase.java b/src/main/java/com/airbyte/api/models/shared/Metabase.java index 627c23d3e..3da557b1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Metabase.java +++ b/src/main/java/com/airbyte/api/models/shared/Metabase.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Metabase(String value) { public String value() { return value; } + + public static Optional 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..73b28b2e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Method.java +++ b/src/main/java/com/airbyte/api/models/shared/Method.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Method(String value) { public String value() { return value; } + + public static Optional 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/MicrosoftDataverse.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java index 0ea1d6ab6..023a9983b 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private MicrosoftDataverse(String value) { public String value() { return value; } + + public static Optional 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..e56a2ca35 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private MicrosoftEntraId(String value) { public String value() { return value; } + + public static Optional 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..25b3eee84 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private MicrosoftLists(String value) { public String value() { return value; } + + public static Optional 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/Milvus.java b/src/main/java/com/airbyte/api/models/shared/Milvus.java index 2bf46bc53..f8df0ce1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Milvus.java +++ b/src/main/java/com/airbyte/api/models/shared/Milvus.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Milvus(String value) { public String value() { return value; } + + public static Optional 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..f7a045112 100644 --- a/src/main/java/com/airbyte/api/models/shared/Miro.java +++ b/src/main/java/com/airbyte/api/models/shared/Miro.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Miro(String value) { public String value() { return value; } + + public static Optional 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..e4651059f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Missive.java +++ b/src/main/java/com/airbyte/api/models/shared/Missive.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Missive(String value) { public String value() { return value; } + + public static Optional 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..668f69f75 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mixmax.java +++ b/src/main/java/com/airbyte/api/models/shared/Mixmax.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mixmax(String value) { public String value() { return value; } + + public static Optional 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..5a5f70c03 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mixpanel.java +++ b/src/main/java/com/airbyte/api/models/shared/Mixpanel.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mixpanel(String value) { public String value() { return value; } + + public static Optional 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..2a7f50ed6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/Mode.java @@ -6,9 +6,16 @@ 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 +27,13 @@ private Mode(String value) { public String value() { return value; } + + public static Optional 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/Mongodb.java b/src/main/java/com/airbyte/api/models/shared/Mongodb.java index 092746746..1ced6cc36 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mongodb.java +++ b/src/main/java/com/airbyte/api/models/shared/Mongodb.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mongodb(String value) { public String value() { return value; } + + public static Optional 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..431026eb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongodbV2.java +++ b/src/main/java/com/airbyte/api/models/shared/MongodbV2.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private MongodbV2(String value) { public String value() { return value; } + + public static Optional 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..9120361d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Motherduck.java +++ b/src/main/java/com/airbyte/api/models/shared/Motherduck.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Motherduck(String value) { public String value() { return value; } + + public static Optional 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..31efb50a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mssql.java +++ b/src/main/java/com/airbyte/api/models/shared/Mssql.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mssql(String value) { public String value() { return value; } + + public static Optional 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/Mux.java b/src/main/java/com/airbyte/api/models/shared/Mux.java index b882294f4..6539098ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mux.java +++ b/src/main/java/com/airbyte/api/models/shared/Mux.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mux(String value) { public String value() { return value; } + + public static Optional 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..53d5744f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/MyHours.java +++ b/src/main/java/com/airbyte/api/models/shared/MyHours.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private MyHours(String value) { public String value() { return value; } + + public static Optional 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..5b8c5f54c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mysql.java +++ b/src/main/java/com/airbyte/api/models/shared/Mysql.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Mysql(String value) { public String value() { return value; } + + public static Optional 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..6d2672bc1 100644 --- a/src/main/java/com/airbyte/api/models/shared/N8n.java +++ b/src/main/java/com/airbyte/api/models/shared/N8n.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private N8n(String value) { public String value() { return value; } + + public static Optional 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/NamespaceDefinitionEnum.java b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java index b452cda0b..ab108d1e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private NamespaceDefinitionEnum(String value) { public String value() { return value; } + + public static Optional 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..66645728f 100644 --- a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java +++ b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private NamespaceDefinitionEnumNoDefault(String value) { public String value() { return value; } + + public static Optional 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..cd784d932 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nasa.java +++ b/src/main/java/com/airbyte/api/models/shared/Nasa.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Nasa(String value) { public String value() { return value; } + + public static Optional 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/Navan.java b/src/main/java/com/airbyte/api/models/shared/Navan.java new file mode 100644 index 000000000..6abe30a6d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Navan.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 Navan { + NAVAN("navan"); + + @JsonValue + private final String value; + + private Navan(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional 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/Netsuite.java b/src/main/java/com/airbyte/api/models/shared/Netsuite.java index 8f081d236..be892a5d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Netsuite.java +++ b/src/main/java/com/airbyte/api/models/shared/Netsuite.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Netsuite(String value) { public String value() { return value; } + + public static Optional 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..da4b23171 100644 --- a/src/main/java/com/airbyte/api/models/shared/NewsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/NewsApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private NewsApi(String value) { public String value() { return value; } + + public static Optional 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/NewsdataIo.java b/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java index 5ced9a69d..31bb635a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java +++ b/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private NewsdataIo(String value) { public String value() { return value; } + + public static Optional 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/Nocrm.java b/src/main/java/com/airbyte/api/models/shared/Nocrm.java index 54e6a8a14..dcec75ab7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nocrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Nocrm.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Nocrm(String value) { public String value() { return value; } + + public static Optional 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..2cb920697 100644 --- a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private NonBreakingSchemaUpdatesBehaviorEnum(String value) { public String value() { return value; } + + public static Optional 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..1d000e6f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java +++ b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private NonBreakingSchemaUpdatesBehaviorEnumNoDefault(String value) { public String value() { return value; } + + public static Optional 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/Normalization.java b/src/main/java/com/airbyte/api/models/shared/Normalization.java index ec12c3af5..94f4ecc8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Normalization.java +++ b/src/main/java/com/airbyte/api/models/shared/Normalization.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private Normalization(String value) { public String value() { return value; } + + public static Optional 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..8ed6d6e2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/NormalizationFlattening.java +++ b/src/main/java/com/airbyte/api/models/shared/NormalizationFlattening.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private NormalizationFlattening(String value) { public String value() { return value; } + + public static Optional 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..8191556fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java +++ b/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private NorthpassLms(String value) { public String value() { return value; } + + public static Optional 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..5b8adc5d7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Not.java @@ -0,0 +1,132 @@ +/* + * 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 conditions; + + @JsonProperty("type") + private RowFilteringOperationType type; + + @JsonCreator + public Not( + @JsonProperty("conditions") List 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 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 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 conditions; + + private RowFilteringOperationType type; + + private Builder() { + // force use of static builder() method + } + + /** + * Conditions to evaluate with the NOT operator. + */ + public Builder conditions(List 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/Nullable.java b/src/main/java/com/airbyte/api/models/shared/Nullable.java index e67b87128..3f35d6406 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nullable.java +++ b/src/main/java/com/airbyte/api/models/shared/Nullable.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum Nullable { TITLE("title"), @@ -22,4 +24,13 @@ private Nullable(String value) { public String value() { return value; } + + public static Optional 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/Nutshell.java b/src/main/java/com/airbyte/api/models/shared/Nutshell.java index 210f13921..4ff5aed97 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nutshell.java +++ b/src/main/java/com/airbyte/api/models/shared/Nutshell.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Nutshell(String value) { public String value() { return value; } + + public static Optional 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..bc89827c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nylas.java +++ b/src/main/java/com/airbyte/api/models/shared/Nylas.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Nylas(String value) { public String value() { return value; } + + public static Optional 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..1b621cadf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nytimes.java +++ b/src/main/java/com/airbyte/api/models/shared/Nytimes.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Nytimes(String value) { public String value() { return value; } + + public static Optional 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/OAuthActorNames.java b/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java index c39242193..6f262d221 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum OAuthActorNames { AIRTABLE("airtable"), @@ -61,4 +63,13 @@ private OAuthActorNames(String value) { public String value() { return value; } + + public static Optional 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/Okta.java b/src/main/java/com/airbyte/api/models/shared/Okta.java index 32541cd01..0802ac41a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Okta.java +++ b/src/main/java/com/airbyte/api/models/shared/Okta.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Okta(String value) { public String value() { return value; } + + public static Optional 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..73257d3a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Omnisend.java +++ b/src/main/java/com/airbyte/api/models/shared/Omnisend.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Omnisend(String value) { public String value() { return value; } + + public static Optional 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..8539c4f2e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oncehub.java +++ b/src/main/java/com/airbyte/api/models/shared/Oncehub.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Oncehub(String value) { public String value() { return value; } + + public static Optional 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..2a7a009d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Onepagecrm(String value) { public String value() { return value; } + + public static Optional 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..7f27e4fe1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Onesignal.java +++ b/src/main/java/com/airbyte/api/models/shared/Onesignal.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Onesignal(String value) { public String value() { return value; } + + public static Optional 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..c2e625b45 100644 --- a/src/main/java/com/airbyte/api/models/shared/Onfleet.java +++ b/src/main/java/com/airbyte/api/models/shared/Onfleet.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Onfleet(String value) { public String value() { return value; } + + public static Optional 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..da44cfa7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/OpenAI.java @@ -27,7 +27,7 @@ public class OpenAI { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; @JsonProperty("openai_key") private String openaiKey; @@ -42,8 +42,8 @@ public OpenAI( @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } @JsonIgnore @@ -108,11 +108,11 @@ public OpenAI build() { openaiKey); } - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"openai\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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..5a8100fd0 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java @@ -44,7 +44,7 @@ public class OpenAICompatible { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; /** * The name of the model to use for embedding @@ -99,8 +99,8 @@ public long dimensions() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } /** @@ -281,11 +281,11 @@ public OpenAICompatible build() { "\"\"", new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"openai_compatible\"", - new TypeReference>() {}); + new TypeReference>() {}); private static final LazySingletonValue> _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..744e3dc89 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java +++ b/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private OpenDataDc(String value) { public String value() { return value; } + + public static Optional 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..8a23ef079 100644 --- a/src/main/java/com/airbyte/api/models/shared/Openaq.java +++ b/src/main/java/com/airbyte/api/models/shared/Openaq.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Openaq(String value) { public String value() { return value; } + + public static Optional 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..d4a30ce52 100644 --- a/src/main/java/com/airbyte/api/models/shared/Openfda.java +++ b/src/main/java/com/airbyte/api/models/shared/Openfda.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Openfda(String value) { public String value() { return value; } + + public static Optional 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..537032739 100644 --- a/src/main/java/com/airbyte/api/models/shared/Openweather.java +++ b/src/main/java/com/airbyte/api/models/shared/Openweather.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Openweather(String value) { public String value() { return value; } + + public static Optional 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..5ca2c045d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Operator.java +++ b/src/main/java/com/airbyte/api/models/shared/Operator.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private Operator(String value) { public String value() { return value; } + + public static Optional 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..33751b405 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpinionStage.java +++ b/src/main/java/com/airbyte/api/models/shared/OpinionStage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private OpinionStage(String value) { public String value() { return value; } + + public static Optional 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..e5724cac6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Opsgenie.java +++ b/src/main/java/com/airbyte/api/models/shared/Opsgenie.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Opsgenie(String value) { public String value() { return value; } + + public static Optional 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..472997e5b 100644 --- a/src/main/java/com/airbyte/api/models/shared/OptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/OptionTitle.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private OptionTitle(String value) { public String value() { return value; } + + public static Optional 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/Oracle.java b/src/main/java/com/airbyte/api/models/shared/Oracle.java index db82b7cb6..dcc8cafb4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oracle.java +++ b/src/main/java/com/airbyte/api/models/shared/Oracle.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Oracle(String value) { public String value() { return value; } + + public static Optional 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..d7d24ee3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Orb.java +++ b/src/main/java/com/airbyte/api/models/shared/Orb.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Orb(String value) { public String value() { return value; } + + public static Optional 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 index 0cb1fd04c..0d723723b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Orbit.java +++ b/src/main/java/com/airbyte/api/models/shared/Orbit.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum Orbit { ORBIT("orbit"); @@ -20,4 +22,13 @@ private Orbit(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (Orbit o: Orbit.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } 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..0c63bf3d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java +++ b/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private OriginDatacenterOfTheSurveyMonkeyAccount(String value) { public String value() { return value; } + + public static Optional 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..163df1b1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oura.java +++ b/src/main/java/com/airbyte/api/models/shared/Oura.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Oura(String value) { public String value() { return value; } + + public static Optional 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..6414cb8ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java +++ b/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private OutbrainAmplify(String value) { public String value() { return value; } + + public static Optional 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/Outreach.java b/src/main/java/com/airbyte/api/models/shared/Outreach.java index dd2565d7c..66a9c0dbe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Outreach.java +++ b/src/main/java/com/airbyte/api/models/shared/Outreach.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Outreach(String value) { public String value() { return value; } + + public static Optional 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..c388eac66 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oveit.java +++ b/src/main/java/com/airbyte/api/models/shared/Oveit.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Oveit(String value) { public String value() { return value; } + + public static Optional 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..e08a9fe2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private PabblySubscriptionsBilling(String value) { public String value() { return value; } + + public static Optional 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..19389b284 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Padding.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 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 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..036275b2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pandadoc.java +++ b/src/main/java/com/airbyte/api/models/shared/Pandadoc.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pandadoc(String value) { public String value() { return value; } + + public static Optional 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..119f5ee68 100644 --- a/src/main/java/com/airbyte/api/models/shared/Paperform.java +++ b/src/main/java/com/airbyte/api/models/shared/Paperform.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Paperform(String value) { public String value() { return value; } + + public static Optional 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..f758fdc7c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Papersign.java +++ b/src/main/java/com/airbyte/api/models/shared/Papersign.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Papersign(String value) { public String value() { return value; } + + public static Optional 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..902060762 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pardot.java +++ b/src/main/java/com/airbyte/api/models/shared/Pardot.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pardot(String value) { public String value() { return value; } + + public static Optional 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/ParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java index 73684f870..48302311d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private ParsingStrategy(String value) { public String value() { return value; } + + public static Optional 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/PaypalTransaction.java b/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java index af08303bb..064aee93a 100644 --- a/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java +++ b/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private PaypalTransaction(String value) { public String value() { return value; } + + public static Optional 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..4429fe145 100644 --- a/src/main/java/com/airbyte/api/models/shared/Paystack.java +++ b/src/main/java/com/airbyte/api/models/shared/Paystack.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Paystack(String value) { public String value() { return value; } + + public static Optional 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..cfedd1a30 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pendo.java +++ b/src/main/java/com/airbyte/api/models/shared/Pendo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pendo(String value) { public String value() { return value; } + + public static Optional 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..5ec60aae9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pennylane.java +++ b/src/main/java/com/airbyte/api/models/shared/Pennylane.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pennylane(String value) { public String value() { return value; } + + public static Optional 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..7ed690443 100644 --- a/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java +++ b/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java @@ -5,6 +5,8 @@ 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 +26,13 @@ private PeriodUsedForMostPopularStreams(long value) { public long value() { return value; } + + public static Optional 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/PermissionScope.java b/src/main/java/com/airbyte/api/models/shared/PermissionScope.java index bf47a30a6..e595fe459 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionScope.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionScope.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private PermissionScope(String value) { public String value() { return value; } + + public static Optional 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..70adfad9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionType.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionType.java @@ -6,6 +6,8 @@ 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 +35,13 @@ private PermissionType(String value) { public String value() { return value; } + + public static Optional 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/Persistiq.java b/src/main/java/com/airbyte/api/models/shared/Persistiq.java index 1a10714a3..676d158c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Persistiq.java +++ b/src/main/java/com/airbyte/api/models/shared/Persistiq.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Persistiq(String value) { public String value() { return value; } + + public static Optional 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..876baceb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Persona.java +++ b/src/main/java/com/airbyte/api/models/shared/Persona.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Persona(String value) { public String value() { return value; } + + public static Optional 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/PexelsApi.java b/src/main/java/com/airbyte/api/models/shared/PexelsApi.java index a8f800d12..68d5ae765 100644 --- a/src/main/java/com/airbyte/api/models/shared/PexelsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/PexelsApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private PexelsApi(String value) { public String value() { return value; } + + public static Optional 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..2436c6d48 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pgvector.java +++ b/src/main/java/com/airbyte/api/models/shared/Pgvector.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pgvector(String value) { public String value() { return value; } + + public static Optional 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..03c508b47 100644 --- a/src/main/java/com/airbyte/api/models/shared/Picqer.java +++ b/src/main/java/com/airbyte/api/models/shared/Picqer.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Picqer(String value) { public String value() { return value; } + + public static Optional 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..f42b783a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pinecone.java +++ b/src/main/java/com/airbyte/api/models/shared/Pinecone.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pinecone(String value) { public String value() { return value; } + + public static Optional 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..201a6c2a3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Pingdom.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 Pingdom { + PINGDOM("pingdom"); + + @JsonValue + private final String value; + + private Pingdom(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional 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/Pipedrive.java b/src/main/java/com/airbyte/api/models/shared/Pipedrive.java index eb4d6243d..d21b3fab1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pipedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/Pipedrive.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pipedrive(String value) { public String value() { return value; } + + public static Optional 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..3d38a7398 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pipeliner.java +++ b/src/main/java/com/airbyte/api/models/shared/Pipeliner.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pipeliner(String value) { public String value() { return value; } + + public static Optional 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..69f69ae99 100644 --- a/src/main/java/com/airbyte/api/models/shared/PivotCategory.java +++ b/src/main/java/com/airbyte/api/models/shared/PivotCategory.java @@ -6,6 +6,8 @@ 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 +45,13 @@ private PivotCategory(String value) { public String value() { return value; } + + public static Optional 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..02b050384 100644 --- a/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java +++ b/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private PivotalTracker(String value) { public String value() { return value; } + + public static Optional 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..b374fc1ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/Piwik.java +++ b/src/main/java/com/airbyte/api/models/shared/Piwik.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Piwik(String value) { public String value() { return value; } + + public static Optional 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..b7f229adf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Plaid.java +++ b/src/main/java/com/airbyte/api/models/shared/Plaid.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Plaid(String value) { public String value() { return value; } + + public static Optional 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..648a5b331 100644 --- a/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * PlaidEnvironment - The Plaid environment. @@ -25,4 +27,13 @@ private PlaidEnvironment(String value) { public String value() { return value; } + + public static Optional 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..5a9260c53 100644 --- a/src/main/java/com/airbyte/api/models/shared/Planhat.java +++ b/src/main/java/com/airbyte/api/models/shared/Planhat.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Planhat(String value) { public String value() { return value; } + + public static Optional 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..cb671f6ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/Plausible.java +++ b/src/main/java/com/airbyte/api/models/shared/Plausible.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Plausible(String value) { public String value() { return value; } + + public static Optional 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..00715f14f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Plugin.java +++ b/src/main/java/com/airbyte/api/models/shared/Plugin.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private Plugin(String value) { public String value() { return value; } + + public static Optional 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..fe134fe31 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pocket.java +++ b/src/main/java/com/airbyte/api/models/shared/Pocket.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pocket(String value) { public String value() { return value; } + + public static Optional 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..b718eda10 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pokeapi.java +++ b/src/main/java/com/airbyte/api/models/shared/Pokeapi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pokeapi(String value) { public String value() { return value; } + + public static Optional 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..7bb6ef314 100644 --- a/src/main/java/com/airbyte/api/models/shared/PokemonName.java +++ b/src/main/java/com/airbyte/api/models/shared/PokemonName.java @@ -6,6 +6,8 @@ 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 +922,13 @@ private PokemonName(String value) { public String value() { return value; } + + public static Optional 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..44628bce7 100644 --- a/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java +++ b/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private PolygonStockApi(String value) { public String value() { return value; } + + public static Optional 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..88eac32f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Postgres.java +++ b/src/main/java/com/airbyte/api/models/shared/Postgres.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Postgres(String value) { public String value() { return value; } + + public static Optional 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/Posthog.java b/src/main/java/com/airbyte/api/models/shared/Posthog.java index ac8644d39..5b2756dee 100644 --- a/src/main/java/com/airbyte/api/models/shared/Posthog.java +++ b/src/main/java/com/airbyte/api/models/shared/Posthog.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Posthog(String value) { public String value() { return value; } + + public static Optional 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..3ba1f57f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java +++ b/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Postmarkapp(String value) { public String value() { return value; } + + public static Optional 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..0fae07d9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Prefer.java +++ b/src/main/java/com/airbyte/api/models/shared/Prefer.java @@ -27,7 +27,7 @@ public class Prefer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; @JsonCreator public Prefer() { @@ -37,8 +37,8 @@ public Prefer() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } public final static Builder builder() { @@ -81,11 +81,11 @@ public Prefer build() { ); } - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"prefer\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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..a4670ba59 100644 --- a/src/main/java/com/airbyte/api/models/shared/Prestashop.java +++ b/src/main/java/com/airbyte/api/models/shared/Prestashop.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Prestashop(String value) { public String value() { return value; } + + public static Optional 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..c0e259611 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pretix.java +++ b/src/main/java/com/airbyte/api/models/shared/Pretix.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pretix(String value) { public String value() { return value; } + + public static Optional 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..2fb313357 100644 --- a/src/main/java/com/airbyte/api/models/shared/Primetric.java +++ b/src/main/java/com/airbyte/api/models/shared/Primetric.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Primetric(String value) { public String value() { return value; } + + public static Optional 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/ProductCatalog.java b/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java index 791d52b92..2cd67be0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java +++ b/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private ProductCatalog(String value) { public String value() { return value; } + + public static Optional 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..62694d647 100644 --- a/src/main/java/com/airbyte/api/models/shared/Productboard.java +++ b/src/main/java/com/airbyte/api/models/shared/Productboard.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Productboard(String value) { public String value() { return value; } + + public static Optional 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..5f7695457 100644 --- a/src/main/java/com/airbyte/api/models/shared/Productive.java +++ b/src/main/java/com/airbyte/api/models/shared/Productive.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Productive(String value) { public String value() { return value; } + + public static Optional 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/PublicPermissionType.java b/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java index 3f260465c..b118860fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java +++ b/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java @@ -6,6 +6,8 @@ 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 +33,13 @@ private PublicPermissionType(String value) { public String value() { return value; } + + public static Optional 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..6b90423b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pubsub.java +++ b/src/main/java/com/airbyte/api/models/shared/Pubsub.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pubsub(String value) { public String value() { return value; } + + public static Optional 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..a56a759c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pypi.java +++ b/src/main/java/com/airbyte/api/models/shared/Pypi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Pypi(String value) { public String value() { return value; } + + public static Optional 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..642e7fa39 100644 --- a/src/main/java/com/airbyte/api/models/shared/Qdrant.java +++ b/src/main/java/com/airbyte/api/models/shared/Qdrant.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Qdrant(String value) { public String value() { return value; } + + public static Optional 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..1eacc3b08 100644 --- a/src/main/java/com/airbyte/api/models/shared/Qualaroo.java +++ b/src/main/java/com/airbyte/api/models/shared/Qualaroo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Qualaroo(String value) { public String value() { return value; } + + public static Optional 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/Quickbooks.java b/src/main/java/com/airbyte/api/models/shared/Quickbooks.java index 4b1c1c98b..82cfb2729 100644 --- a/src/main/java/com/airbyte/api/models/shared/Quickbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/Quickbooks.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Quickbooks(String value) { public String value() { return value; } + + public static Optional 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/Railz.java b/src/main/java/com/airbyte/api/models/shared/Railz.java index 81f4cae6f..b1cb3673c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Railz.java +++ b/src/main/java/com/airbyte/api/models/shared/Railz.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Railz(String value) { public String value() { return value; } + + public static Optional 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/Range.java b/src/main/java/com/airbyte/api/models/shared/Range.java index a6b90a2ab..88a25aa86 100644 --- a/src/main/java/com/airbyte/api/models/shared/Range.java +++ b/src/main/java/com/airbyte/api/models/shared/Range.java @@ -6,6 +6,8 @@ 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 +35,13 @@ private Range(String value) { public String value() { return value; } + + public static Optional 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/Recharge.java b/src/main/java/com/airbyte/api/models/shared/Recharge.java index 81aad59bc..738e9d680 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recharge.java +++ b/src/main/java/com/airbyte/api/models/shared/Recharge.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Recharge(String value) { public String value() { return value; } + + public static Optional 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..344a7696d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recreation.java +++ b/src/main/java/com/airbyte/api/models/shared/Recreation.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Recreation(String value) { public String value() { return value; } + + public static Optional 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..45084479a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recruitee.java +++ b/src/main/java/com/airbyte/api/models/shared/Recruitee.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Recruitee(String value) { public String value() { return value; } + + public static Optional 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..f481e9af9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recurly.java +++ b/src/main/java/com/airbyte/api/models/shared/Recurly.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Recurly(String value) { public String value() { return value; } + + public static Optional 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..19fc03b1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Reddit.java +++ b/src/main/java/com/airbyte/api/models/shared/Reddit.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Reddit(String value) { public String value() { return value; } + + public static Optional 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..5e8c76626 100644 --- a/src/main/java/com/airbyte/api/models/shared/Redis.java +++ b/src/main/java/com/airbyte/api/models/shared/Redis.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Redis(String value) { public String value() { return value; } + + public static Optional 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..34c51e54d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Redshift.java +++ b/src/main/java/com/airbyte/api/models/shared/Redshift.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Redshift(String value) { public String value() { return value; } + + public static Optional 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..f76848d23 100644 --- a/src/main/java/com/airbyte/api/models/shared/Referralhero.java +++ b/src/main/java/com/airbyte/api/models/shared/Referralhero.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Referralhero(String value) { public String value() { return value; } + + public static Optional 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..51f1c1199 100644 --- a/src/main/java/com/airbyte/api/models/shared/Region.java +++ b/src/main/java/com/airbyte/api/models/shared/Region.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private Region(String value) { public String value() { return value; } + + public static Optional 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..80db67750 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rentcast.java +++ b/src/main/java/com/airbyte/api/models/shared/Rentcast.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Rentcast(String value) { public String value() { return value; } + + public static Optional 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..670a1572b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Repairshopr.java +++ b/src/main/java/com/airbyte/api/models/shared/Repairshopr.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Repairshopr(String value) { public String value() { return value; } + + public static Optional 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/ReplyIo.java b/src/main/java/com/airbyte/api/models/shared/ReplyIo.java index aa67bd0df..7beec5f22 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReplyIo.java +++ b/src/main/java/com/airbyte/api/models/shared/ReplyIo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ReplyIo(String value) { public String value() { return value; } + + public static Optional 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/ReportName.java b/src/main/java/com/airbyte/api/models/shared/ReportName.java index a9cc878f4..1f773f2a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportName.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportName.java @@ -6,6 +6,8 @@ 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"), @@ -64,4 +66,13 @@ private ReportName(String value) { public String value() { return value; } + + public static Optional 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/ReportRecordTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/ReportRecordTypeEnum.java index af83ee081..17e0bda44 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportRecordTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportRecordTypeEnum.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * ReportRecordTypeEnum - An enumeration. @@ -30,4 +32,13 @@ private ReportRecordTypeEnum(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (ReportRecordTypeEnum o: ReportRecordTypeEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } 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..204f592d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java @@ -6,6 +6,8 @@ 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 +58,13 @@ private ReportingDataObject(String value) { public String value() { return value; } + + public static Optional 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..dcfdeb919 100644 --- a/src/main/java/com/airbyte/api/models/shared/Require.java +++ b/src/main/java/com/airbyte/api/models/shared/Require.java @@ -27,7 +27,7 @@ public class Require { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; @JsonCreator public Require() { @@ -37,8 +37,8 @@ public Require() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } public final static Builder builder() { @@ -81,11 +81,11 @@ public Require build() { ); } - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"require\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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..90fc14d3e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Resolution.java @@ -0,0 +1,36 @@ +/* + * 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 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/Retently.java b/src/main/java/com/airbyte/api/models/shared/Retently.java index 233075291..02b11d83d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Retently.java +++ b/src/main/java/com/airbyte/api/models/shared/Retently.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Retently(String value) { public String value() { return value; } + + public static Optional 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..75dfe5fc8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Revenuecat.java +++ b/src/main/java/com/airbyte/api/models/shared/Revenuecat.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Revenuecat(String value) { public String value() { return value; } + + public static Optional 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..5043c705b 100644 --- a/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java +++ b/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private RevolutMerchant(String value) { public String value() { return value; } + + public static Optional 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/RkiCovid.java b/src/main/java/com/airbyte/api/models/shared/RkiCovid.java index 6253ea5ee..e713643c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/RkiCovid.java +++ b/src/main/java/com/airbyte/api/models/shared/RkiCovid.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private RkiCovid(String value) { public String value() { return value; } + + public static Optional 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/Rocketlane.java b/src/main/java/com/airbyte/api/models/shared/Rocketlane.java index eeecafcb0..d7d2b874a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rocketlane.java +++ b/src/main/java/com/airbyte/api/models/shared/Rocketlane.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Rocketlane(String value) { public String value() { return value; } + + public static Optional 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/Rollbar.java b/src/main/java/com/airbyte/api/models/shared/Rollbar.java index 49dcbf8c1..a58facf9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rollbar.java +++ b/src/main/java/com/airbyte/api/models/shared/Rollbar.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Rollbar(String value) { public String value() { return value; } + + public static Optional 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..b3cb836c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rootly.java +++ b/src/main/java/com/airbyte/api/models/shared/Rootly.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Rootly(String value) { public String value() { return value; } + + public static Optional 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..79ee2f6a6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RowFiltering.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.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..d98d8f472 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RowFilteringOperation.java @@ -0,0 +1,24 @@ +/* + * 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..081d271e4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.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 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 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..87abc9182 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rss.java +++ b/src/main/java/com/airbyte/api/models/shared/Rss.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Rss(String value) { public String value() { return value; } + + public static Optional 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..15a5e97dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ruddr.java +++ b/src/main/java/com/airbyte/api/models/shared/Ruddr.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Ruddr(String value) { public String value() { return value; } + + public static Optional 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..7ea3191db 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3.java +++ b/src/main/java/com/airbyte/api/models/shared/S3.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private S3(String value) { public String value() { return value; } + + public static Optional 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/S3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java index f13bd6b43..3bae5500d 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java @@ -6,6 +6,8 @@ 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 +58,13 @@ private S3BucketRegion(String value) { public String value() { return value; } + + public static Optional 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/S3Glue.java b/src/main/java/com/airbyte/api/models/shared/S3Glue.java index 2cb643e28..21f87fec0 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3Glue.java +++ b/src/main/java/com/airbyte/api/models/shared/S3Glue.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private S3Glue(String value) { public String value() { return value; } + + public static Optional 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/Safetyculture.java b/src/main/java/com/airbyte/api/models/shared/Safetyculture.java index 68aa38898..c73711e05 100644 --- a/src/main/java/com/airbyte/api/models/shared/Safetyculture.java +++ b/src/main/java/com/airbyte/api/models/shared/Safetyculture.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Safetyculture(String value) { public String value() { return value; } + + public static Optional 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..1a4156e9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SageHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SageHr.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SageHr(String value) { public String value() { return value; } + + public static Optional 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..25cd6f633 100644 --- a/src/main/java/com/airbyte/api/models/shared/Salesflare.java +++ b/src/main/java/com/airbyte/api/models/shared/Salesflare.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Salesflare(String value) { public String value() { return value; } + + public static Optional 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/Salesloft.java b/src/main/java/com/airbyte/api/models/shared/Salesloft.java index 337858290..e7a901d68 100644 --- a/src/main/java/com/airbyte/api/models/shared/Salesloft.java +++ b/src/main/java/com/airbyte/api/models/shared/Salesloft.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Salesloft(String value) { public String value() { return value; } + + public static Optional 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/SapFieldglass.java b/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java index 1e9305652..42dd3394f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java +++ b/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SapFieldglass(String value) { public String value() { return value; } + + public static Optional 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..6aea0d588 100644 --- a/src/main/java/com/airbyte/api/models/shared/Savvycal.java +++ b/src/main/java/com/airbyte/api/models/shared/Savvycal.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Savvycal(String value) { public String value() { return value; } + + public static Optional 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/ScheduleTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java index 9e07bd8de..810e5033b 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum ScheduleTypeEnum { MANUAL("manual"), @@ -21,4 +23,13 @@ private ScheduleTypeEnum(String value) { public String value() { return value; } + + public static Optional 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..7b5369f28 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum ScheduleTypeWithBasicEnum { MANUAL("manual"), @@ -22,4 +24,13 @@ private ScheduleTypeWithBasicEnum(String value) { public String value() { return value; } + + public static Optional 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/ScopeType.java b/src/main/java/com/airbyte/api/models/shared/ScopeType.java index 3b2468070..d951f6297 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScopeType.java +++ b/src/main/java/com/airbyte/api/models/shared/ScopeType.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum ScopeType { PERSONAL("Personal"), @@ -21,4 +23,13 @@ private ScopeType(String value) { public String value() { return value; } + + public static Optional 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..f1a82182b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Scryfall.java +++ b/src/main/java/com/airbyte/api/models/shared/Scryfall.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Scryfall(String value) { public String value() { return value; } + + public static Optional 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..795a1d70f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java +++ b/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java @@ -6,6 +6,8 @@ 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"), @@ -27,4 +29,13 @@ private SearchCriteria(String value) { public String value() { return value; } + + public static Optional 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..482a7a57d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SearchIn.java +++ b/src/main/java/com/airbyte/api/models/shared/SearchIn.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SearchIn { TITLE("title"), @@ -22,4 +24,13 @@ private SearchIn(String value) { public String value() { return value; } + + public static Optional 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..a9e6bdf86 100644 --- a/src/main/java/com/airbyte/api/models/shared/SearchScope.java +++ b/src/main/java/com/airbyte/api/models/shared/SearchScope.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SearchScope(String value) { public String value() { return value; } + + public static Optional 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..26d1843c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Secoda.java +++ b/src/main/java/com/airbyte/api/models/shared/Secoda.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Secoda(String value) { public String value() { return value; } + + public static Optional 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/Segment.java b/src/main/java/com/airbyte/api/models/shared/Segment.java index e77a46d65..ab20ba704 100644 --- a/src/main/java/com/airbyte/api/models/shared/Segment.java +++ b/src/main/java/com/airbyte/api/models/shared/Segment.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Segment(String value) { public String value() { return value; } + + public static Optional 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/Sendgrid.java b/src/main/java/com/airbyte/api/models/shared/Sendgrid.java index 5f52c2537..ca3a17187 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendgrid.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendgrid.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Sendgrid(String value) { public String value() { return value; } + + public static Optional 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..9f8daa81b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendinblue.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendinblue.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Sendinblue(String value) { public String value() { return value; } + + public static Optional 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..fb3874b82 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendowl.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendowl.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Sendowl(String value) { public String value() { return value; } + + public static Optional 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..71a2af350 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendpulse.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendpulse.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Sendpulse(String value) { public String value() { return value; } + + public static Optional 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..8a5d177e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Senseforce.java +++ b/src/main/java/com/airbyte/api/models/shared/Senseforce.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Senseforce(String value) { public String value() { return value; } + + public static Optional 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..112940fb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sentry.java +++ b/src/main/java/com/airbyte/api/models/shared/Sentry.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Sentry(String value) { public String value() { return value; } + + public static Optional 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..98e52abb9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SerializationLibrary.java +++ b/src/main/java/com/airbyte/api/models/shared/SerializationLibrary.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private SerializationLibrary(String value) { public String value() { return value; } + + public static Optional 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/Sevenshifts.java b/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java index 09392a382..c218335d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java +++ b/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Sevenshifts(String value) { public String value() { return value; } + + public static Optional 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..180da207c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sftp.java +++ b/src/main/java/com/airbyte/api/models/shared/Sftp.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Sftp(String value) { public String value() { return value; } + + public static Optional 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..8dd51d16c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SftpBulk.java +++ b/src/main/java/com/airbyte/api/models/shared/SftpBulk.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SftpBulk(String value) { public String value() { return value; } + + public static Optional 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..4b4008447 100644 --- a/src/main/java/com/airbyte/api/models/shared/SftpJson.java +++ b/src/main/java/com/airbyte/api/models/shared/SftpJson.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SftpJson(String value) { public String value() { return value; } + + public static Optional 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..ced6cc9e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java +++ b/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * ShareTypeUsedForMostPopularSharedStream - Share Type @@ -23,4 +25,13 @@ private ShareTypeUsedForMostPopularSharedStream(String value) { public String value() { return value; } + + public static Optional 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..81bdee7b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sharetribe.java +++ b/src/main/java/com/airbyte/api/models/shared/Sharetribe.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Sharetribe(String value) { public String value() { return value; } + + public static Optional 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..59b3705ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shippo.java +++ b/src/main/java/com/airbyte/api/models/shared/Shippo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Shippo(String value) { public String value() { return value; } + + public static Optional 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/Shortcut.java b/src/main/java/com/airbyte/api/models/shared/Shortcut.java index d0792a21e..400f096fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shortcut.java +++ b/src/main/java/com/airbyte/api/models/shared/Shortcut.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Shortcut(String value) { public String value() { return value; } + + public static Optional 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..70c359ce4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shortio.java +++ b/src/main/java/com/airbyte/api/models/shared/Shortio.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Shortio(String value) { public String value() { return value; } + + public static Optional 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..c9ef503a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java +++ b/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SigmaComputing(String value) { public String value() { return value; } + + public static Optional 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/Simfin.java b/src/main/java/com/airbyte/api/models/shared/Simfin.java index 444ed70d5..e4aa20636 100644 --- a/src/main/java/com/airbyte/api/models/shared/Simfin.java +++ b/src/main/java/com/airbyte/api/models/shared/Simfin.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Simfin(String value) { public String value() { return value; } + + public static Optional 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..de1f5094a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Simplecast.java +++ b/src/main/java/com/airbyte/api/models/shared/Simplecast.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Simplecast(String value) { public String value() { return value; } + + public static Optional 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..c75105eab 100644 --- a/src/main/java/com/airbyte/api/models/shared/Simplesat.java +++ b/src/main/java/com/airbyte/api/models/shared/Simplesat.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Simplesat(String value) { public String value() { return value; } + + public static Optional 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/Site.java b/src/main/java/com/airbyte/api/models/shared/Site.java index 5036b1a33..aa162e4b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Site.java +++ b/src/main/java/com/airbyte/api/models/shared/Site.java @@ -6,6 +6,8 @@ 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 +29,13 @@ private Site(String value) { public String value() { return value; } + + public static Optional 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/Smaily.java b/src/main/java/com/airbyte/api/models/shared/Smaily.java index 6fd7b43af..a9845a8ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smaily.java +++ b/src/main/java/com/airbyte/api/models/shared/Smaily.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Smaily(String value) { public String value() { return value; } + + public static Optional 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..b94005096 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartengage.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartengage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Smartengage(String value) { public String value() { return value; } + + public static Optional 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..4640182bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartreach.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartreach.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Smartreach(String value) { public String value() { return value; } + + public static Optional 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/Smartwaiver.java b/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java index 0d73ed4a0..4158a5f8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Smartwaiver(String value) { public String value() { return value; } + + public static Optional 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/SnowflakeCortex.java b/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java index 31e719525..61240e36c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java +++ b/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SnowflakeCortex(String value) { public String value() { return value; } + + public static Optional 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/SolarwindsServiceDesk.java b/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java index bbd11a1aa..876286aca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SolarwindsServiceDesk(String value) { public String value() { return value; } + + public static Optional 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..d07c306d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SonarCloud.java +++ b/src/main/java/com/airbyte/api/models/shared/SonarCloud.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SonarCloud(String value) { public String value() { return value; } + + public static Optional 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..3d732e1cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SortBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SortBy.java @@ -6,6 +6,8 @@ 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, @@ -27,4 +29,13 @@ private SortBy(String value) { public String value() { return value; } + + public static Optional 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/SourceAirtableAirtable.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java index da6a33b70..69c745587 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAirtableAirtable(String value) { public String value() { return value; } + + public static Optional 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..2e04d60d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAirtableAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceAirtableSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java index 029df1f71..03c1b464a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAirtableSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceAmazonAdsAmazonAds.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java index c2dba19da..2ef2eea10 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAmazonAdsAmazonAds(String value) { public String value() { return value; } + + public static Optional 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..10edebdbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAmazonAdsAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceAmazonSellerPartnerAmazonSellerPartner.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java index 689333787..28d605505 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAmazonSellerPartnerAmazonSellerPartner(String value) { public String value() { return value; } + + public static Optional 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..3042cdb8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAmazonSellerPartnerAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceAmazonSqsAWSRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java index 0c5977673..db332df2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java @@ -6,6 +6,8 @@ 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 +57,13 @@ private SourceAmazonSqsAWSRegion(String value) { public String value() { return value; } + + public static Optional 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/SourceAsana.java b/src/main/java/com/airbyte/api/models/shared/SourceAsana.java index a5102517d..ed7b460cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsana.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsana.java @@ -13,6 +13,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; @@ -31,6 +32,13 @@ public class SourceAsana { @JsonProperty("credentials") private Optional credentials; + /** + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your 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 numWorkers; + /** * Globally unique identifiers for the organization exports */ @@ -45,16 +53,19 @@ public class SourceAsana { @JsonCreator public SourceAsana( @JsonProperty("credentials") Optional credentials, + @JsonProperty("num_workers") Optional numWorkers, @JsonProperty("organization_export_ids") Optional> 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 +77,14 @@ public Optional credentials() { return (Optional) credentials; } + /** + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + */ + @JsonIgnore + public Optional numWorkers() { + return numWorkers; + } + /** * Globally unique identifiers for the organization exports */ @@ -103,6 +122,24 @@ public SourceAsana withCredentials(Optional 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 numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + /** * Globally unique identifiers for the organization exports */ @@ -132,6 +169,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 +178,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( credentials, + numWorkers, organizationExportIds, sourceType); } @@ -148,6 +187,7 @@ public int hashCode() { public String toString() { return Utils.toString(SourceAsana.class, "credentials", credentials, + "numWorkers", numWorkers, "organizationExportIds", organizationExportIds, "sourceType", sourceType); } @@ -156,6 +196,8 @@ public final static class Builder { private Optional credentials = Optional.empty(); + private Optional numWorkers; + private Optional> organizationExportIds = Optional.empty(); private Builder() { @@ -180,6 +222,24 @@ public Builder credentials(Optional credentia return this; } + /** + * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + */ + 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 numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + /** * Globally unique identifiers for the organization exports */ @@ -199,11 +259,20 @@ public Builder organizationExportIds(Optional> 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> _SINGLETON_VALUE_NumWorkers = + new LazySingletonValue<>( + "num_workers", + "10", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java b/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java index 3277c330d..3c0352310 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAsanaAsana(String value) { public String value() { return value; } + + public static Optional 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..e06b44eda 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourceAsanaCredentialsTitle - OAuth Credentials @@ -23,4 +25,13 @@ private SourceAsanaCredentialsTitle(String value) { public String value() { return value; } + + public static Optional 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..62ffa4983 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourceAsanaSchemasCredentialsTitle - PAT Credentials @@ -23,4 +25,13 @@ private SourceAsanaSchemasCredentialsTitle(String value) { public String value() { return value; } + + public static Optional 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/SourceAuth0SchemasAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java index 0977eb4c1..ff66f5e81 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private SourceAuth0SchemasAuthenticationMethod(String value) { public String value() { return value; } + + public static Optional 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..135d6c2f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private SourceAuth0SchemasCredentialsAuthenticationMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceAzureBlobStorageAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java index 6e7c520bb..d566b69b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAzureBlobStorageAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceAzureBlobStorageAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java index 3f7111a69..5e407041b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAzureBlobStorageAzureBlobStorage(String value) { public String value() { return value; } + + public static Optional 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..7d6547ec7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAzureBlobStorageFiletype(String value) { public String value() { return value; } + + public static Optional 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..5e2c4a41d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAzureBlobStorageHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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..c3b273c03 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAzureBlobStorageMode(String value) { public String value() { return value; } + + public static Optional 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..89d8307f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private SourceAzureBlobStorageSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceAzureBlobStorageSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java index 0d587ee7d..edbe1f87c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAzureBlobStorageSchemasFiletype(String value) { public String value() { return value; } + + public static Optional 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..4a6eada13 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAzureBlobStorageSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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..9e396822c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAzureBlobStorageSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional 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..433a2136f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceAzureBlobStorageSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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/SourceBigqueryBigquery.java b/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java index a6d43190a..77c563fc9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceBigqueryBigquery(String value) { public String value() { return value; } + + public static Optional 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/SourceBingAdsBingAds.java b/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java index ae74be7eb..f88965225 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceBingAdsBingAds(String value) { public String value() { return value; } + + public static Optional 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/SourceBraintreeEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java index e37ed23cd..008b3f3e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private SourceBraintreeEnvironment(String value) { public String value() { return value; } + + public static Optional 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/SourceCartAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java index aa5eafe58..d6b2fd516 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceCartAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceCartSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java index 09e209b53..b27a71b01 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceCartSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceClickhouseClickhouse.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java index 3cebf8ee9..908118780 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceClickhouseClickhouse(String value) { public String value() { return value; } + + public static Optional 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/SourceClickhouseSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java index 1ab0b4027..c701def88 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceClickhouseSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..d8d4105f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceClickhouseSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..a231dd65b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceClickhouseTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceConcordEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java index 9bd45eb49..abac68a8e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private SourceConcordEnvironment(String value) { public String value() { return value; } + + public static Optional 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/SourceConfiguration.java b/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java index ed87858e0..5e6053150 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java @@ -842,6 +842,11 @@ public static SourceConfiguration of(SourceGreenhouse value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceGreythr value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceGridly value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -892,6 +897,11 @@ public static SourceConfiguration of(SourceHubspot value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceHuggingFaceDatasets value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceHumanitix value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1232,6 +1242,11 @@ public static SourceConfiguration of(SourceNasa value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceNavan value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceNetsuite value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1437,6 +1452,11 @@ public static SourceConfiguration of(SourcePicqer value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourcePingdom value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourcePinterest value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -2462,6 +2482,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceGoogleWebfonts}
  • *
  • {@code com.airbyte.api.models.shared.SourceGorgias}
  • *
  • {@code com.airbyte.api.models.shared.SourceGreenhouse}
  • + *
  • {@code com.airbyte.api.models.shared.SourceGreythr}
  • *
  • {@code com.airbyte.api.models.shared.SourceGridly}
  • *
  • {@code com.airbyte.api.models.shared.SourceGuru}
  • *
  • {@code com.airbyte.api.models.shared.SourceGutendex}
  • @@ -2472,6 +2493,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceHighLevel}
  • *
  • {@code com.airbyte.api.models.shared.SourceHubplanner}
  • *
  • {@code com.airbyte.api.models.shared.SourceHubspot}
  • + *
  • {@code com.airbyte.api.models.shared.SourceHuggingFaceDatasets}
  • *
  • {@code com.airbyte.api.models.shared.SourceHumanitix}
  • *
  • {@code com.airbyte.api.models.shared.SourceIlluminaBasespace}
  • *
  • {@code com.airbyte.api.models.shared.SourceIncidentIo}
  • @@ -2540,6 +2562,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceMysql}
  • *
  • {@code com.airbyte.api.models.shared.SourceN8n}
  • *
  • {@code com.airbyte.api.models.shared.SourceNasa}
  • + *
  • {@code com.airbyte.api.models.shared.SourceNavan}
  • *
  • {@code com.airbyte.api.models.shared.SourceNetsuite}
  • *
  • {@code com.airbyte.api.models.shared.SourceNewsApi}
  • *
  • {@code com.airbyte.api.models.shared.SourceNewsdataIo}
  • @@ -2581,6 +2604,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourcePersona}
  • *
  • {@code com.airbyte.api.models.shared.SourcePexelsApi}
  • *
  • {@code com.airbyte.api.models.shared.SourcePicqer}
  • + *
  • {@code com.airbyte.api.models.shared.SourcePingdom}
  • *
  • {@code com.airbyte.api.models.shared.SourcePinterest}
  • *
  • {@code com.airbyte.api.models.shared.SourcePipedrive}
  • *
  • {@code com.airbyte.api.models.shared.SourcePipeliner}
  • @@ -2796,455 +2820,459 @@ public _Deserializer() { TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java b/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java index bb90d3047..ca8538159 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceConvexConvex(String value) { public String value() { return value; } + + public static Optional 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/SourceDriftCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java index bd1f4dd1d..054a28afd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceDriftCredentials(String value) { public String value() { return value; } + + public static Optional 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..b8f0f4f83 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceDriftDrift(String value) { public String value() { return value; } + + public static Optional 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/SourceDriftSchemasCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java index 7ecf59371..16c7d8af7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceDriftSchemasCredentials(String value) { public String value() { return value; } + + public static Optional 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/SourceDynamodbAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java index e4efa29ad..2cccf774e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceDynamodbAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceDynamodbDynamodb.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java index b326e3038..7a2e5709b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceDynamodbDynamodb(String value) { public String value() { return value; } + + public static Optional 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..8893ae8c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java @@ -6,6 +6,8 @@ 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 +58,13 @@ private SourceDynamodbDynamodbRegion(String value) { public String value() { return value; } + + public static Optional 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..79ae007b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceDynamodbSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceFacebookMarketingActionReportTime.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java index bb82e9dc4..3f73024b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceFacebookMarketingActionReportTime(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (SourceFacebookMarketingActionReportTime o: SourceFacebookMarketingActionReportTime.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java index 81a165e58..ad68f4d04 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFacebookMarketingAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceFacebookMarketingFacebookMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java index 889504558..d5f3f5891 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFacebookMarketingFacebookMarketing(String value) { public String value() { return value; } + + public static Optional 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..e5d595a4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFacebookMarketingSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..0028311e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourceFacebookMarketingValidEnums - An enumeration. @@ -153,4 +155,13 @@ private SourceFacebookMarketingValidEnums(String value) { public String value() { return value; } + + public static Optional 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/SourceFaunaDeletionMode.java b/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java index 36ec284a7..b819bb2b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceFaunaDeletionMode { IGNORE("ignore"); @@ -20,4 +22,13 @@ private SourceFaunaDeletionMode(String value) { public String value() { return value; } + + public static Optional 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..127211dd5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private SourceFaunaSchemasDeletionMode(String value) { public String value() { return value; } + + public static Optional 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/SourceFileFileFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java index 2507c58bc..2abf90bbe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileFileFormat.java @@ -6,6 +6,8 @@ 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 +33,13 @@ private SourceFileFileFormat(String value) { public String value() { return value; } + + public static Optional 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..d46e36bd1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFileSchemasProviderStorage(String value) { public String value() { return value; } + + public static Optional 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..a95da3ed6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFileSchemasProviderStorageProvider6Storage(String value) { public String value() { return value; } + + public static Optional 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..0adf5daa3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFileSchemasProviderStorageProvider7Storage(String value) { public String value() { return value; } + + public static Optional 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..c9e319b87 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceFileSchemasProviderStorageProvider8Storage(String value) { public String value() { return value; } + + public static Optional 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..22e4cee42 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFileSchemasProviderStorageProviderStorage(String value) { public String value() { return value; } + + public static Optional 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..aa8dbb9d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFileSchemasStorage(String value) { public String value() { return value; } + + public static Optional 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..f36199d53 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFileStorage(String value) { public String value() { return value; } + + public static Optional 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/SourceFireboltFirebolt.java b/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java index e30e6f420..50232fe85 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceFireboltFirebolt(String value) { public String value() { return value; } + + public static Optional 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/SourceGcsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java index 7798d1d3c..d768a1687 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGcsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java index 2ffd61253..c46b525e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsFiletype(String value) { public String value() { return value; } + + public static Optional 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/SourceGcsGcs.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java index 1cbc0585d..07629e5c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsGcs(String value) { public String value() { return value; } + + public static Optional 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..d48c58d1f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceGcsMode.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java index 7c78b2ff4..596e40d5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsMode(String value) { public String value() { return value; } + + public static Optional 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/SourceGcsParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java index 0bdd0e99f..74e907106 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private SourceGcsParsingStrategy(String value) { public String value() { return value; } + + public static Optional 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/SourceGcsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java index 8670767e8..132972bd8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..937784d0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsSchemasFiletype(String value) { public String value() { return value; } + + public static Optional 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..4a25e8c25 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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..c5ac9951e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..9689c8e14 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional 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..a36f878a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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..5dd3dbb8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsSchemasStreamsFormatFormat6Filetype(String value) { public String value() { return value; } + + public static Optional 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..54f50c99a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsSchemasStreamsFormatFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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..8edcb85f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGcsSchemasStreamsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceGcsValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java index 69b044292..dc03f4f5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceGcsValidationPolicy(String value) { public String value() { return value; } + + public static Optional 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/SourceGithubGithub.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java index f5e9afb4c..5de05f4f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGithubGithub(String value) { public String value() { return value; } + + public static Optional 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..74d8650d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGithubOptionTitle(String value) { public String value() { return value; } + + public static Optional 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/SourceGitlabAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java index 0cbba6eea..9055baacf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGitlabAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGitlabGitlab.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java index 82fa5b868..3a1fb8271 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGitlabGitlab(String value) { public String value() { return value; } + + public static Optional 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/SourceGitlabSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java index 55d29eb7c..9bd2b12bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGitlabSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGnewsCountry.java b/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java index faf676fb8..648205ff1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java @@ -6,6 +6,8 @@ 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 +54,13 @@ private SourceGnewsCountry(String value) { public String value() { return value; } + + public static Optional 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..1672c8990 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceGnewsLanguage { AR("ar"), @@ -41,4 +43,13 @@ private SourceGnewsLanguage(String value) { public String value() { return value; } + + public static Optional 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..8e3db6ac7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java @@ -6,6 +6,8 @@ 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: @@ -28,4 +30,13 @@ private SourceGnewsSortBy(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAdsGoogleAds.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java index 187f43c0a..65944075f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAdsGoogleAds(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java index c9e2da88d..9cba5eb93 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiEnabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java index 832a6b2b8..63a804612 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiEnabled(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java index 88bc6dd6a..aae61b3e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiFilterName(String value) { public String value() { return value; } + + public static Optional 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..fc8e45b24 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiFilterType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java index 70848fbe7..03f8f1966 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi(String value) { public String value() { return value; } + + public static Optional 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..e6814531d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private SourceGoogleAnalyticsDataApiGranularity(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java index 1b5aa44fe..0467f98ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java index 537e767f0..282e4c3d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..8cd89dde7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..e02c5a8be 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..49452d605 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..f5d38b66f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java index 3385d5416..3bb53d667 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..237817a5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java index e81bc4a2c..6f538ef03 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -25,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..c7cfac383 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..97662899b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java index f7a830cc2..1d83621be 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -26,4 +28,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..1c4ae9bfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java index a6ec666e7..c47ce9b32 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..4471d3ebd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..18e1324be 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..174893829 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..1eb791d8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..c96a13595 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..b9a308af9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java index 36a08001c..81778acda 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -26,4 +28,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..5d3cdd0f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java index 38cc9953e..cda5f4f69 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..6720e7376 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..e3363bfeb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..872d4594f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..0627439b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java index 789215345..91b8951d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..0fbb50f07 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java index e6cb11c6c..b3b44d406 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java index e5c283709..d688994ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java index 6b123369d..e049852b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -25,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..32dfd35a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java index 8e377ea07..decb798e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java index 724e82245..32aa55363 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -26,4 +28,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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..dddf0d4e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDime public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java index eb8c0b562..7f58122b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilt public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java index 233af4a47..c7f447709 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -25,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterVali public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java index 77c00d35d..f3db550af 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValu public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java index d748f436a..016455f7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled(String valu public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java index 6a13a6c86..3f6be35fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName(String v public String value() { return value; } + + public static Optional 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..22fd6b720 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType(String v public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java index 0b38e09c9..ef012694e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterN public String value() { return value; } + + public static Optional 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..4091f3840 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterT public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java index 44baf6dc8..392cab88f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..e3d0df883 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..7f2ee2df2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..417678513 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..d1eeae89a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java index e65e12438..4fa01af47 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..23899ec70 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java index 5603524e7..d2db892e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java index 25ca8ff67..0f53919db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java index 2d73eb863..eecc3d13f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -26,4 +28,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..2d8f4f921 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java index 96267a9d1..aa98b0351 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..7d83495d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..8c1ee7a7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..0a1a52168 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..c0a25813e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java index b23c85598..d6649234a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..bad7057e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java index 220887cfb..eac3180e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -25,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..bf1bdb21f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..7c2309968 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java index d55b263df..1267b7d14 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -26,4 +28,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..0b6f5884c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java index 183482f34..2de46ce42 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..3c2426302 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..d72620a38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..f1d9cc4d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..c232e220a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java index c018c57a9..90813219a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..9ddd61643 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java index ee1ed4ba0..457926172 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -25,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..bc00bf0cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java index ee8fb18fe..10fef3f61 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..121793930 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java index 84110d776..e7c4508bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -26,4 +28,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java index c2118d302..1719ceb81 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..351822b1f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..3306d4b9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..c0aa04b95 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..358b885dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..d817f9b49 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..0281f992c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..7c8a6d9cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java index da9bc5ba6..c692120c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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..b8d96ec9f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java index 3a0aaba6a..b4f09a2f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -25,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java index a86efa4c5..dda9be3fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetrics public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java index 6204651f8..bfa26e4d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -25,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEn public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java index e95c58f5b..2037dc32b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueTy public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java index 3ddb910fe..e72a36f8e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -26,4 +28,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums(String v public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java index 16d0781b9..adfb5a49a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType(String va public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java index cda4fa98b..4fa2b0d7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasFilterName(String value) { public String value() { return value; } + + public static Optional 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..7223fbf61 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasFilterType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java index e1fee3f70..740a50890 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -25,4 +27,13 @@ private SourceGoogleAnalyticsDataApiSchemasValidEnums(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiSchemasValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java index 0d38de6c0..d2adf0ce4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiSchemasValueType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java index 260df2512..da56584e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java @@ -6,6 +6,8 @@ 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"), @@ -26,4 +28,13 @@ private SourceGoogleAnalyticsDataApiValidEnums(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleAnalyticsDataApiValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java index 43407ac99..6c7c73bc6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleAnalyticsDataApiValueType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDirectoryCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java index 3198278c0..493ef33a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourceGoogleDirectoryCredentialsTitle - Authentication Scenario @@ -23,4 +25,13 @@ private SourceGoogleDirectoryCredentialsTitle(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDirectorySchemasCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java index 6e19c74cf..fe2db8523 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourceGoogleDirectorySchemasCredentialsTitle - Authentication Scenario @@ -23,4 +25,13 @@ private SourceGoogleDirectorySchemasCredentialsTitle(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDriveAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java index 6cacdf92f..0a6ae6942 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDriveFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java index 69dc2964c..b7572a9b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveFiletype(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDriveGoogleDrive.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java index af97824c2..589cec8db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveGoogleDrive(String value) { public String value() { return value; } + + public static Optional 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..abf21448c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDriveMode.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java index 32dd640bc..898970cf9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveMode(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDriveParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java index cc3bfb622..8ef056fb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private SourceGoogleDriveParsingStrategy(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDriveSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java index 16ef00d33..a6b5a8ae6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDriveSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java index f82af6f8b..0339c7e07 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveSchemasFiletype(String value) { public String value() { return value; } + + public static Optional 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..b6c3dbcb5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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..8624d58a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional 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..4fb149ded 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java index 67eb3ec1b..6e3848861 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveSchemasStreamsFormatFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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..7614cd195 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleDriveSchemasStreamsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleDriveValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java index 17f4255d5..eb5a3593c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceGoogleDriveValidationPolicy(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleSearchConsoleAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java index 5cb03b843..b622b2eb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleSearchConsoleAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleSearchConsoleGoogleSearchConsole.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java index bc5914a89..07ba2d7b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleSearchConsoleGoogleSearchConsole(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleSearchConsoleSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java index 676dd1669..356b2bc0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleSearchConsoleSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleSearchConsoleValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java index a2aa9b215..f387563db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java @@ -6,6 +6,8 @@ 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 +29,13 @@ private SourceGoogleSearchConsoleValidEnums(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleSheetsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java index 263d605e8..62a9da9e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleSheetsAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGoogleSheetsGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java index 2f948cf2e..755d4fb7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleSheetsGoogleSheets(String value) { public String value() { return value; } + + public static Optional 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..578a93ed0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceGoogleSheetsSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceGreythr.java b/src/main/java/com/airbyte/api/models/shared/SourceGreythr.java new file mode 100644 index 000000000..5d00e2cf3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGreythr.java @@ -0,0 +1,243 @@ +/* + * 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 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 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 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 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 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 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 _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"greythr\"", + new TypeReference() {}); + } +} + 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..06f7c28e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceHarvestAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceHarvestSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java index 3653df84f..099721853 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceHarvestSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceHubspotAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java index b95d34c91..62ad26e61 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceHubspotAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceHubspotHubspot.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java index 8c73399e5..0cd928318 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceHubspotHubspot(String value) { public String value() { return value; } + + public static Optional 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/SourceHubspotSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java index a8c966fe1..40b298138 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceHubspotSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..17f21c4e8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.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.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> 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> datasetSubsets; + + @JsonProperty("sourceType") + private HuggingFaceDatasets sourceType; + + @JsonCreator + public SourceHuggingFaceDatasets( + @JsonProperty("dataset_name") String datasetName, + @JsonProperty("dataset_splits") Optional> datasetSplits, + @JsonProperty("dataset_subsets") Optional> 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> datasetSplits() { + return (Optional>) datasetSplits; + } + + /** + * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> datasetSubsets() { + return (Optional>) 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 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> 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 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> 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> datasetSplits = Optional.empty(); + + private Optional> datasetSubsets = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder datasetName(String datasetName) { + Utils.checkNotNull(datasetName, "datasetName"); + this.datasetName = datasetName; + return this; + } + + /** + * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + */ + public Builder datasetSplits(List 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> 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 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> datasetSubsets) { + Utils.checkNotNull(datasetSubsets, "datasetSubsets"); + this.datasetSubsets = datasetSubsets; + return this; + } + + public SourceHuggingFaceDatasets build() { + return new SourceHuggingFaceDatasets( + datasetName, + datasetSplits, + datasetSubsets); + } + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"hugging-face-datasets\"", + new TypeReference() {}); + } +} + 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..53cadbe1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceInstagramInstagram(String value) { public String value() { return value; } + + public static Optional 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/SourceIntercomIntercom.java b/src/main/java/com/airbyte/api/models/shared/SourceIntercomIntercom.java index 032878818..fda1a2ba2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIntercomIntercom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIntercomIntercom.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceIntercomIntercom { INTERCOM("intercom"); @@ -20,4 +22,13 @@ private SourceIntercomIntercom(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (SourceIntercomIntercom o: SourceIntercomIntercom.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } 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..2a6b510c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceJotformApiEndpoint { BASIC("basic"); @@ -20,4 +22,13 @@ private SourceJotformApiEndpoint(String value) { public String value() { return value; } + + public static Optional 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..417f44241 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceJotformSchemasApiEndpoint { ENTERPRISE("enterprise"); @@ -20,4 +22,13 @@ private SourceJotformSchemasApiEndpoint(String value) { public String value() { return value; } + + public static Optional 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/SourceKlarnaRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java index 2f854c84a..bad81ed41 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceKlarnaRegion(String value) { public String value() { return value; } + + public static Optional 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/SourceLeverHiringAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java index b84efa151..f9aa6dde4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceLeverHiringAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceLeverHiringEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java index de7e859b3..0948548dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private SourceLeverHiringEnvironment(String value) { public String value() { return value; } + + public static Optional 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..246dc3e03 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceLeverHiringLeverHiring(String value) { public String value() { return value; } + + public static Optional 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..3c91a1738 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceLeverHiringSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceLinkedinAdsAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java index b108aea0b..b63c5123f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceLinkedinAdsAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceLinkedinAdsLinkedinAds.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java index 97b9dd64c..d3b989d38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceLinkedinAdsLinkedinAds(String value) { public String value() { return value; } + + public static Optional 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/SourceLinkedinAdsSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java index 604d5e627..9790696b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceLinkedinAdsSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceLinkedinPagesAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java index 34290c9ec..877854566 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceLinkedinPagesAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceLinkedinPagesSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java index fe83d23b4..53f7bd311 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceLinkedinPagesSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceMailchimpAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java index 163a83431..a238f940d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMailchimpAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceMailchimpMailchimp.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java index c0344f2a7..e57455acd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMailchimpMailchimp(String value) { public String value() { return value; } + + public static Optional 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/SourceMailchimpSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java index 50a673e93..2181fb2c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMailchimpSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftOnedriveAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java index 619c97acc..bde381dd0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftOnedriveFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java index 853f1223d..abc7d3f4c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveFiletype(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftOnedriveHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java index 75c0f6ce8..834f6bd3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftOnedriveMicrosoftOnedrive.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java index d7b04702d..b4f0eee04 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveMicrosoftOnedrive(String value) { public String value() { return value; } + + public static Optional 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..cb782b632 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveMode(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftOnedriveParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java index e43f813a9..5a2023c62 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private SourceMicrosoftOnedriveParsingStrategy(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftOnedriveSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java index 676a6abd4..5c7ad65ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..fdbb9a58d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveSchemasFiletype(String value) { public String value() { return value; } + + public static Optional 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..1c670b5e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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..76a7d3185 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional 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..ac7f4d869 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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..2e2892c73 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype(String value) public String value() { return value; } + + public static Optional 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..3d597304c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType(String value) public String value() { return value; } + + public static Optional 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/SourceMicrosoftOnedriveValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java index e9016bbf6..4c23546ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceMicrosoftOnedriveValidationPolicy(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftSharepointAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java index 1f4329c4c..a94541038 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftSharepointFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java index dc4e61841..279dd526a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointFiletype(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftSharepointHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java index 60d927c77..c041a4cb7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftSharepointMicrosoftSharepoint.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java index 113efe97d..6bb2afead 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointMicrosoftSharepoint(String value) { public String value() { return value; } + + public static Optional 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..9dc5d5fdd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointMode(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftSharepointParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java index fd80cafae..af97a0c64 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private SourceMicrosoftSharepointParsingStrategy(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftSharepointSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java index d515c74f4..d1452f2c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftSharepointSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java index 1800f2018..8f6274e88 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointSchemasFiletype(String value) { public String value() { return value; } + + public static Optional 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..48ff47619 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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..f9f3c3255 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional 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..fb0ea80a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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..bc1a0c87b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype(String valu public String value() { return value; } + + public static Optional 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..9e4196ed0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype(String value public String value() { return value; } + + public static Optional 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..fe7dbd629 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType(String value public String value() { return value; } + + public static Optional 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..fe0e562be 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceMicrosoftSharepointSearchScope(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftSharepointValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java index 5d32d22e3..80607357b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceMicrosoftSharepointValidationPolicy(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftTeamsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java index 72a742163..e63e14347 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftTeamsAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceMicrosoftTeamsMicrosoftTeams.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java index 639e87af3..96092533a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftTeamsMicrosoftTeams(String value) { public String value() { return value; } + + public static Optional 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..befc30ac0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMicrosoftTeamsSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceMixpanelOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java index 729a65fba..2d072f082 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMixpanelOptionTitle(String value) { public String value() { return value; } + + public static Optional 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..53893a711 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private SourceMixpanelRegion(String value) { public String value() { return value; } + + public static Optional 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..b39f58843 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMixpanelSchemasOptionTitle(String value) { public String value() { return value; } + + public static Optional 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..88c3ae3c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMode.java @@ -31,7 +31,7 @@ public class SourceMode { private String apiToken; @JsonProperty("sourceType") - private Mode sourceType; + private SourceModeMode sourceType; @JsonProperty("workspace") private String workspace; @@ -67,7 +67,7 @@ public String apiToken() { } @JsonIgnore - public Mode sourceType() { + public SourceModeMode sourceType() { return sourceType; } @@ -181,11 +181,11 @@ public SourceMode build() { workspace); } - private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"mode\"", - new TypeReference() {}); + new TypeReference() {}); } } 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..636dd9589 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceModeMode.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 SourceModeMode { + MODE("mode"); + + @JsonValue + private final String value; + + private SourceModeMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional 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/SourceMondayAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java index a8f30cffc..76616850d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMondayAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceMondayMonday.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java index 97bb1883c..e1388b5de 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMondayMonday(String value) { public String value() { return value; } + + public static Optional 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/SourceMondaySchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java index 4ce1e6650..79303cf99 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMondaySchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceMongodbV2ClusterType.java b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java index 50d4ac28d..d371218b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private SourceMongodbV2ClusterType(String value) { public String value() { return value; } + + public static Optional 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..6dab3614e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private SourceMongodbV2SchemasClusterType(String value) { public String value() { return value; } + + public static Optional 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/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java index 36f0ef4c4..01e108d0a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private SourceMssqlInvalidCDCPositionBehaviorAdvanced(String value) { public String value() { return value; } + + public static Optional 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..43d10eb55 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMssqlMethod(String value) { public String value() { return value; } + + public static Optional 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..1c79f04ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMssqlMssql(String value) { public String value() { return value; } + + public static Optional 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/SourceMssqlSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java index 86a7d3259..3c11eb131 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMssqlSchemasMethod(String value) { public String value() { return value; } + + public static Optional 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..9f88313b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private SourceMssqlSchemasSSLMethodSSLMethodSSLMethod(String value) { public String value() { return value; } + + public static Optional 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..63ce1901d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceMssqlSchemasSslMethod { UNENCRYPTED("unencrypted"); @@ -20,4 +22,13 @@ private SourceMssqlSchemasSslMethod(String value) { public String value() { return value; } + + public static Optional 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..fb511d462 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private SourceMssqlSchemasSslMethodSslMethod(String value) { public String value() { return value; } + + public static Optional 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..d64a2bf58 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceMssqlSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..5ea590e15 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceMssqlSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..bf1762c67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceMssqlTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java index 67c387995..6b89a2971 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java @@ -6,6 +6,8 @@ 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. @@ -24,4 +26,13 @@ private SourceMysqlInvalidCDCPositionBehaviorAdvanced(String value) { public String value() { return value; } + + public static Optional 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..f6a8dfa04 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlMethod { CDC("CDC"); @@ -20,4 +22,13 @@ private SourceMysqlMethod(String value) { public String value() { return value; } + + public static Optional 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..52173e07f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMysqlMode(String value) { public String value() { return value; } + + public static Optional 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..14ad491ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMysqlMysql(String value) { public String value() { return value; } + + public static Optional 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/SourceMysqlSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java index 3d9de91e9..366beeb99 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlSchemasMethod { STANDARD("STANDARD"); @@ -20,4 +22,13 @@ private SourceMysqlSchemasMethod(String value) { public String value() { return value; } + + public static Optional 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..421f67906 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMysqlSchemasMode(String value) { public String value() { return value; } + + public static Optional 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 index 4b345895e..4b956bb70 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSSLModeSSLModesMode.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceMysqlSchemasSSLModeSSLModesMode { VERIFY_IDENTITY("verify_identity"); @@ -20,4 +22,13 @@ private SourceMysqlSchemasSSLModeSSLModesMode(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (SourceMysqlSchemasSSLModeSSLModesMode o: SourceMysqlSchemasSSLModeSSLModesMode.values()) { + 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..ee393c2d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceMysqlSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional 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..9ddd4787c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourceMysqlSchemasTunnelMethod - Connect through a jump server tunnel host using username and ssh key @@ -23,4 +25,13 @@ private SourceMysqlSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..cb3409bd4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourceMysqlSchemasTunnelMethodTunnelMethod - Connect through a jump server tunnel host using username and password authentication @@ -23,4 +25,13 @@ private SourceMysqlSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..e6bb23558 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourceMysqlTunnelMethod - No ssh tunnel needed to connect to database @@ -23,4 +25,13 @@ private SourceMysqlTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceNavan.java b/src/main/java/com/airbyte/api/models/shared/SourceNavan.java new file mode 100644 index 000000000..82626939e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceNavan.java @@ -0,0 +1,168 @@ +/* + * 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 _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"navan\"", + new TypeReference() {}); + } +} + 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..2e339f7f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceNotionAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceNotionNotion.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java index a9ceafb72..5ca8f21fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceNotionNotion(String value) { public String value() { return value; } + + public static Optional 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/SourceNotionSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java index 937d727bf..69ce70850 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceNotionSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceOktaAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java index d3ac13d82..28e9c0c1f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceOktaAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceOktaSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java index 8b6f30978..9bc39f968 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceOktaSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..ebe6f5584 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceOktaSchemasCredentialsAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceOracleConnectionType.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java index 31772299e..bcf5ca05f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceOracleConnectionType(String value) { public String value() { return value; } + + public static Optional 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/SourceOracleEncryptionAlgorithm.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java index 21efdf3e1..b1681bd6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceOracleEncryptionAlgorithm(String value) { public String value() { return value; } + + public static Optional 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..4fab8bb2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceOracleEncryptionMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceOracleOracle.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java index e279dffa9..0336a4db6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceOracleOracle(String value) { public String value() { return value; } + + public static Optional 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/SourceOracleSchemasEncryptionEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java index 7813d0707..7fa063450 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceOracleSchemasEncryptionEncryptionMethod(String value) { public String value() { return value; } + + public static Optional 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..e0534d675 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceOracleSchemasEncryptionMethod(String value) { public String value() { return value; } + + public static Optional 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..6e7d8aec0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceOracleSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..fc73f3d5d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceOracleSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceOracleTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java index 7bbc1da35..1222518c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceOracleTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/SourcePingdom.java b/src/main/java/com/airbyte/api/models/shared/SourcePingdom.java new file mode 100644 index 000000000..81861caed --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourcePingdom.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.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 probes; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("resolution") + private Optional resolution; + + @JsonProperty("sourceType") + private Pingdom sourceType; + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourcePingdom( + @JsonProperty("api_key") String apiKey, + @JsonProperty("probes") Optional probes, + @JsonProperty("resolution") Optional 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 probes() { + return probes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional resolution() { + return (Optional) 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 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 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 probes = Optional.empty(); + + private Optional resolution; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public Builder probes(String probes) { + Utils.checkNotNull(probes, "probes"); + this.probes = Optional.ofNullable(probes); + return this; + } + + public Builder probes(Optional 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 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> _SINGLETON_VALUE_Resolution = + new LazySingletonValue<>( + "resolution", + "\"hour\"", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"pingdom\"", + new TypeReference() {}); + } +} + 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..b6b55b1f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePinterestAuthMethod(String value) { public String value() { return value; } + + public static Optional 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..97d6af935 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java @@ -6,6 +6,8 @@ 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 +36,13 @@ private SourcePinterestLevel(String value) { public String value() { return value; } + + public static Optional 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..4e7d21094 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePinterestPinterest(String value) { public String value() { return value; } + + public static Optional 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..6cb72bf04 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourcePinterestSchemasValidEnums - An enumeration. @@ -134,4 +136,13 @@ private SourcePinterestSchemasValidEnums(String value) { public String value() { return value; } + + public static Optional 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..e8eed9930 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * SourcePinterestValidEnums - An enumeration. @@ -24,4 +26,13 @@ private SourcePinterestValidEnums(String value) { public String value() { return value; } + + public static Optional 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/SourcePocketSortBy.java b/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java index fca493da2..55fa57399 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private SourcePocketSortBy(String value) { public String value() { return value; } + + public static Optional 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/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java index 0e0b0d847..8e79ded08 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private SourcePostgresInvalidCDCPositionBehaviorAdvanced(String value) { public String value() { return value; } + + public static Optional 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..49df10a33 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresMethod(String value) { public String value() { return value; } + + public static Optional 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..203792bf1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresMode(String value) { public String value() { return value; } + + public static Optional 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/SourcePostgresPostgres.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java index cbeb73e55..8f089c9f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresPostgres(String value) { public String value() { return value; } + + public static Optional 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/SourcePostgresSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java index 94beacbb4..18798ed70 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresSchemasMethod(String value) { public String value() { return value; } + + public static Optional 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..eb19e20c0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..193319886 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresSchemasReplicationMethodMethod(String value) { public String value() { return value; } + + public static Optional 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..57943a86f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresSchemasSSLModeSSLModes5Mode(String value) { public String value() { return value; } + + public static Optional 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..1411b0819 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresSchemasSSLModeSSLModes6Mode(String value) { public String value() { return value; } + + public static Optional 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..ac3f821f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresSchemasSSLModeSSLModesMode(String value) { public String value() { return value; } + + public static Optional 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..1cea1142f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourcePostgresSchemasSslModeMode(String value) { public String value() { return value; } + + public static Optional 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..f1bea9523 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourcePostgresSchemasTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..8b4d4a6c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourcePostgresSchemasTunnelMethodTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..9b2bdc453 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourcePostgresTunnelMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceQuickbooksAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java index 7e99dcc77..4d1a103a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceQuickbooksAuthType { OAUTH20("oauth2.0"); @@ -20,4 +22,13 @@ private SourceQuickbooksAuthType(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (SourceQuickbooksAuthType o: SourceQuickbooksAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } 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..c9808b9b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceRdStationMarketingAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceRdStationMarketingRdStationMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java index 527c3c2dd..b6ae9c1c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceRdStationMarketingRdStationMarketing(String value) { public String value() { return value; } + + public static Optional 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/SourceRedshiftRedshift.java b/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java index 85bf0cc4e..d0b5278d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceRedshiftRedshift(String value) { public String value() { return value; } + + public static Optional 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/SourceRetentlyAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java index ef3267a95..21280ab1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceRetentlyAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceRetentlySchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java index 148e2fff7..71df4ea52 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceRetentlySchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceRevolutMerchantEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java index d42418260..ef788dca0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private SourceRevolutMerchantEnvironment(String value) { public String value() { return value; } + + public static Optional 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/SourceS3DeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java index 02bf58180..569452d16 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java @@ -6,6 +6,8 @@ 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"); @@ -20,4 +22,13 @@ private SourceS3DeliveryType(String value) { public String value() { return value; } + + public static Optional 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/SourceS3Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java index c74bd95f5..dc805e94a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3Filetype(String value) { public String value() { return value; } + + public static Optional 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/SourceS3HeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java index 15144b8d9..276dff734 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3HeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceS3Mode.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java index ad92e045d..c6725430a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3Mode(String value) { public String value() { return value; } + + public static Optional 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/SourceS3ParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java index 0caa451dd..f0fd63ca8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private SourceS3ParsingStrategy(String value) { public String value() { return value; } + + public static Optional 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/SourceS3S3.java b/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java index d98791338..c98ba0fb9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3S3(String value) { public String value() { return value; } + + public static Optional 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/SourceS3SchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java index 23a0cec44..eb5afd63b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3SchemasFiletype(String value) { public String value() { return value; } + + public static Optional 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..f218c1062 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3SchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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..af7850d51 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3SchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional 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..3784d5439 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3SchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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..eed49ed0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3SchemasStreamsFormatFormat6Filetype(String value) { public String value() { return value; } + + public static Optional 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..edc835f49 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3SchemasStreamsFormatFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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..bdf704bc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceS3SchemasStreamsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceS3ValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java index ac48f8e7e..96ded1c16 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceS3ValidationPolicy(String value) { public String value() { return value; } + + public static Optional 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/SourceSalesforceSalesforce.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java index afff1946f..5f800ab75 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSalesforceSalesforce(String value) { public String value() { return value; } + + public static Optional 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/SourceSalesloftAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java index 307fdcf8e..637e30d55 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSalesloftAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceSalesloftSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java index ab6b37871..7efd71b1a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSalesloftSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java index b3147f302..77be822e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceSftpAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpBulkAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java index e80fa5cb1..a397420b2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpBulkDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java index 35729201f..75cd3db1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkDeliveryType(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpBulkFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java index 44872cdcd..c69f9cc0e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkFiletype(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpBulkHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java index 1fe7e7823..2f2ee610d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpBulkMode.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java index b1f30ec01..2921163d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkMode(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpBulkParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java index ff0bf8c86..61e373efa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private SourceSftpBulkParsingStrategy(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpBulkSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java index 80b77b561..cfeb130a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..159469b89 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasDeliveryType(String value) { public String value() { return value; } + + public static Optional 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..8f2f769ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasFiletype(String value) { public String value() { return value; } + + public static Optional 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..afd828330 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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..680c6d31d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasMode(String value) { public String value() { return value; } + + public static Optional 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..acf7475f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasStreamsFiletype(String value) { public String value() { return value; } + + public static Optional 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..92fb9bacb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasStreamsFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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..12c72aa76 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasStreamsFormatFormat6Filetype(String value) { public String value() { return value; } + + public static Optional 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..28019b95d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasStreamsFormatFormatFiletype(String value) { public String value() { return value; } + + public static Optional 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..25becbcc4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSftpBulkSchemasStreamsHeaderDefinitionType(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpBulkValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java index 20415dc88..d1ca7a330 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceSftpBulkValidationPolicy(String value) { public String value() { return value; } + + public static Optional 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/SourceSftpSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java index 4590c1ef7..bad65e9de 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private SourceSftpSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceShopifyAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java index 64959af82..8348f922a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceShopifyAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceShopifySchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java index 9c907bba9..4ebc78100 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceShopifySchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional 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..357dcb0a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceShopifyShopify(String value) { public String value() { return value; } + + public static Optional 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/SourceSlackOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java index b04b86f35..43481d7a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSlackOptionTitle(String value) { public String value() { return value; } + + public static Optional 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..d8b1dce63 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSlackSchemasOptionTitle(String value) { public String value() { return value; } + + public static Optional 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..28b492b09 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSlackSlack(String value) { public String value() { return value; } + + public static Optional 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/SourceSmartsheetsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java index 373a1be5c..b2d0c8f1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSmartsheetsAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceSmartsheetsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java index 2cce3bb40..8b944e9df 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSmartsheetsSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..49d6f8275 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSmartsheetsSmartsheets(String value) { public String value() { return value; } + + public static Optional 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/SourceSnapchatMarketingSnapchatMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java index c7c49f4cf..f6fffc8ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSnapchatMarketingSnapchatMarketing(String value) { public String value() { return value; } + + public static Optional 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/SourceSnowflakeAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java index ceddb393a..16af158df 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSnowflakeAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceSnowflakeSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java index 062cecc88..1173beca4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSnowflakeSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..16238c6ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSnowflakeSchemasCredentialsAuthType(String value) { public String value() { return value; } + + public static Optional 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..36a240365 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSnowflakeSnowflake(String value) { public String value() { return value; } + + public static Optional 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/SourceSquareAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java index 26a1b1c80..d0dfd1c45 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSquareAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceSquareSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java index f1e260af2..34db4e7f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSquareSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceStravaAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java index 3731137c3..bdd2c0391 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceStravaAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceSurveySparrowUrlBase.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java index b5cf62473..8a0d2d143 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSurveySparrowUrlBase(String value) { public String value() { return value; } + + public static Optional 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/SourceSurveymonkeyAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java index 42cd71665..3aaa3b2e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSurveymonkeyAuthMethod(String value) { public String value() { return value; } + + public static Optional 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..ac9869441 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceSurveymonkeySurveymonkey(String value) { public String value() { return value; } + + public static Optional 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/SourceTiktokMarketingAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java index 33e6bfe63..582720cd9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceTiktokMarketingAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceTiktokMarketingSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java index 7c3d4e183..1af6b3283 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceTiktokMarketingSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..ad1816ee5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceTiktokMarketingTiktokMarketing(String value) { public String value() { return value; } + + public static Optional 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/SourceTremendousEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java index 3881ceaf9..b4b5753fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceTremendousEnvironment { API("api"), @@ -21,4 +23,13 @@ private SourceTremendousEnvironment(String value) { public String value() { return value; } + + public static Optional 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/SourceTrustpilotAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java index f605b5da3..7ec07c87e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceTrustpilotAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceTrustpilotSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java index 5a05ff599..44c066c3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceTrustpilotSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceTypeformAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java index 0229befa1..ae6390f30 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceTypeformAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceTypeformSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java index c1d907b0d..c1713f0fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceTypeformSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..cd0850ff9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceTypeformTypeform(String value) { public String value() { return value; } + + public static Optional 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/SourceVitallyStatus.java b/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java index 5c46c27e7..472fcf77f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceVitallyStatus(String value) { public String value() { return value; } + + public static Optional 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/SourceYahooFinancePriceInterval.java b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java index 516707283..f01faa8da 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java @@ -6,6 +6,8 @@ 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 +35,13 @@ private SourceYahooFinancePriceInterval(String value) { public String value() { return value; } + + public static Optional 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/SourceYoutubeAnalyticsYoutubeAnalytics.java b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java index 2a3d12f5b..226919cd7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceYoutubeAnalyticsYoutubeAnalytics(String value) { public String value() { return value; } + + public static Optional 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/SourceZendeskChatCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java index 3e5b5a1c3..ee75c97da 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskChatCredentials(String value) { public String value() { return value; } + + public static Optional 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/SourceZendeskChatSchemasCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java index e3d2b6242..0a63edce2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskChatSchemasCredentials(String value) { public String value() { return value; } + + public static Optional 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..167616ed0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatZendeskChat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatZendeskChat.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskChatZendeskChat(String value) { public String value() { return value; } + + public static Optional 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/SourceZendeskSunshineAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java index 1e529781b..7abdaa9e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskSunshineAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceZendeskSunshineSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java index a916c7f51..cd13d64df 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskSunshineSchemasAuthMethod(String value) { public String value() { return value; } + + public static Optional 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/SourceZendeskSupportCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java index 894bb2bcc..0a8aaed90 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskSupportCredentials(String value) { public String value() { return value; } + + public static Optional 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/SourceZendeskSupportSchemasCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java index e2415af51..d71c5b357 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskSupportSchemasCredentials(String value) { public String value() { return value; } + + public static Optional 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..dd2914e59 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskSupportZendeskSupport(String value) { public String value() { return value; } + + public static Optional 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/SourceZendeskTalkAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java index 14c10da8c..2edbdfda0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskTalkAuthType(String value) { public String value() { return value; } + + public static Optional 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/SourceZendeskTalkSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java index 671e0f48b..012a718a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskTalkSchemasAuthType(String value) { public String value() { return value; } + + public static Optional 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..cb486668e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SourceZendeskTalkZendeskTalk(String value) { public String value() { return value; } + + public static Optional 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/SourceZohoAnalyticsMetadataApiDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java index 8a97ab7eb..b26041ff1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceZohoAnalyticsMetadataApiDataCenter { COM("com"), @@ -25,4 +27,13 @@ private SourceZohoAnalyticsMetadataApiDataCenter(String value) { public String value() { return value; } + + public static Optional 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/SourceZohoBiginDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java index 016712077..50af5ded3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java @@ -6,6 +6,8 @@ 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 +30,13 @@ private SourceZohoBiginDataCenter(String value) { public String value() { return value; } + + public static Optional 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/SourceZohoBillingRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java index 160ae94f8..21d5ba452 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceZohoBillingRegion { COM("com"), @@ -27,4 +29,13 @@ private SourceZohoBillingRegion(String value) { public String value() { return value; } + + public static Optional 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/SourceZohoBooksRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java index af8c6f4f7..aed3d2d86 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java @@ -6,6 +6,8 @@ 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 +32,13 @@ private SourceZohoBooksRegion(String value) { public String value() { return value; } + + public static Optional 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/SourceZohoCampaignDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java index d93cb56cb..047fbcb97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceZohoCampaignDataCenter { COM("com"), @@ -25,4 +27,13 @@ private SourceZohoCampaignDataCenter(String value) { public String value() { return value; } + + public static Optional 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/SourceZohoCrmEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java index 6958d5f9a..b400f7fb4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SourceZohoCrmEnvironment(String value) { public String value() { return value; } + + public static Optional 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/SourceZohoExpenseDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java index eb2ca8983..88c341303 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java @@ -6,6 +6,8 @@ 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 +32,13 @@ private SourceZohoExpenseDataCenter(String value) { public String value() { return value; } + + public static Optional 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/SourceZohoInvoiceRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java index f98952c51..c7cc8d5bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum SourceZohoInvoiceRegion { COM("com"), @@ -27,4 +29,13 @@ private SourceZohoInvoiceRegion(String value) { public String value() { return value; } + + public static Optional 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/SpacexApi.java b/src/main/java/com/airbyte/api/models/shared/SpacexApi.java index 84e589225..793578d0f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SpacexApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SpacexApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SpacexApi(String value) { public String value() { return value; } + + public static Optional 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..65a6b668a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sparkpost.java +++ b/src/main/java/com/airbyte/api/models/shared/Sparkpost.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Sparkpost(String value) { public String value() { return value; } + + public static Optional 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..f53bbc7d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SplitIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SplitIo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SplitIo(String value) { public String value() { return value; } + + public static Optional 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..4393c1644 100644 --- a/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Spotlercrm(String value) { public String value() { return value; } + + public static Optional 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..444a9e700 100644 --- a/src/main/java/com/airbyte/api/models/shared/Square.java +++ b/src/main/java/com/airbyte/api/models/shared/Square.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Square(String value) { public String value() { return value; } + + public static Optional 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..efb65c63d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Squarespace.java +++ b/src/main/java/com/airbyte/api/models/shared/Squarespace.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Squarespace(String value) { public String value() { return value; } + + public static Optional 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/State.java b/src/main/java/com/airbyte/api/models/shared/State.java index b647aef72..6014ac20c 100644 --- a/src/main/java/com/airbyte/api/models/shared/State.java +++ b/src/main/java/com/airbyte/api/models/shared/State.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private State(String value) { public String value() { return value; } + + public static Optional 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 index 346d64899..5f4878a33 100644 --- a/src/main/java/com/airbyte/api/models/shared/StateFilterEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/StateFilterEnum.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * StateFilterEnum - An enumeration. @@ -25,4 +27,13 @@ private StateFilterEnum(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (StateFilterEnum o: StateFilterEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } 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..86072ae7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private StatisticsInterval(String value) { public String value() { return value; } + + public static Optional 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..bef0c9115 100644 --- a/src/main/java/com/airbyte/api/models/shared/Statsig.java +++ b/src/main/java/com/airbyte/api/models/shared/Statsig.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Statsig(String value) { public String value() { return value; } + + public static Optional 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..e9f304479 100644 --- a/src/main/java/com/airbyte/api/models/shared/Status.java +++ b/src/main/java/com/airbyte/api/models/shared/Status.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum Status { ACTIVE("ACTIVE"), @@ -22,4 +24,13 @@ private Status(String value) { public String value() { return value; } + + public static Optional 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..d19718479 100644 --- a/src/main/java/com/airbyte/api/models/shared/Statuspage.java +++ b/src/main/java/com/airbyte/api/models/shared/Statuspage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Statuspage(String value) { public String value() { return value; } + + public static Optional 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..199cd278f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Stockdata.java +++ b/src/main/java/com/airbyte/api/models/shared/Stockdata.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Stockdata(String value) { public String value() { return value; } + + public static Optional 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..704d02340 100644 --- a/src/main/java/com/airbyte/api/models/shared/Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/Storage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Storage(String value) { public String value() { return value; } + + public static Optional 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/StorageType.java b/src/main/java/com/airbyte/api/models/shared/StorageType.java index b706f06ae..9b8aeffca 100644 --- a/src/main/java/com/airbyte/api/models/shared/StorageType.java +++ b/src/main/java/com/airbyte/api/models/shared/StorageType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private StorageType(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (StorageType o: StorageType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Strategies.java b/src/main/java/com/airbyte/api/models/shared/Strategies.java index ecd0903e2..a1ab003f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Strategies.java +++ b/src/main/java/com/airbyte/api/models/shared/Strategies.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum Strategies { DESKTOP("desktop"), @@ -21,4 +23,13 @@ private Strategies(String value) { public String value() { return value; } + + public static Optional 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..e713d7abe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Strava.java +++ b/src/main/java/com/airbyte/api/models/shared/Strava.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Strava(String value) { public String value() { return value; } + + public static Optional 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/StreamConfigurationsInput.java b/src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java new file mode 100644 index 000000000..6088ee671 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java @@ -0,0 +1,115 @@ +/* + * 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> streams; + + @JsonCreator + public StreamConfigurationsInput( + @JsonProperty("streams") Optional> streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = streams; + } + + public StreamConfigurationsInput() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> streams() { + return (Optional>) streams; + } + + public final static Builder builder() { + return new Builder(); + } + + public StreamConfigurationsInput withStreams(List streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = Optional.ofNullable(streams); + return this; + } + + public StreamConfigurationsInput withStreams(Optional> streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = streams; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + 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> streams = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder streams(List streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = Optional.ofNullable(streams); + return this; + } + + public Builder streams(Optional> 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..58077fe03 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum StreamMapperType { HASHING("hashing"), @@ -23,4 +25,13 @@ private StreamMapperType(String value) { public String value() { return value; } + + public static Optional 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/Stripe.java b/src/main/java/com/airbyte/api/models/shared/Stripe.java index cb8800203..dce30227c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Stripe.java +++ b/src/main/java/com/airbyte/api/models/shared/Stripe.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Stripe(String value) { public String value() { return value; } + + public static Optional 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/SurveySparrow.java b/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java index 15a1f0fd2..273eebc32 100644 --- a/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java +++ b/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private SurveySparrow(String value) { public String value() { return value; } + + public static Optional 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/Survicate.java b/src/main/java/com/airbyte/api/models/shared/Survicate.java index 35e7e50d5..f08029697 100644 --- a/src/main/java/com/airbyte/api/models/shared/Survicate.java +++ b/src/main/java/com/airbyte/api/models/shared/Survicate.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Survicate(String value) { public String value() { return value; } + + public static Optional 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..0bf04a993 100644 --- a/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java +++ b/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private SwipeUpAttributionWindow(String value) { public String value() { return value; } + + public static Optional 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/Systeme.java b/src/main/java/com/airbyte/api/models/shared/Systeme.java index 8c908cd38..94b0bcff2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Systeme.java +++ b/src/main/java/com/airbyte/api/models/shared/Systeme.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Systeme(String value) { public String value() { return value; } + + public static Optional 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/Taboola.java b/src/main/java/com/airbyte/api/models/shared/Taboola.java index 96d01aea9..4cd092b58 100644 --- a/src/main/java/com/airbyte/api/models/shared/Taboola.java +++ b/src/main/java/com/airbyte/api/models/shared/Taboola.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Taboola(String value) { public String value() { return value; } + + public static Optional 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/TargetsType.java b/src/main/java/com/airbyte/api/models/shared/TargetsType.java index 72d2100fd..411456892 100644 --- a/src/main/java/com/airbyte/api/models/shared/TargetsType.java +++ b/src/main/java/com/airbyte/api/models/shared/TargetsType.java @@ -6,6 +6,8 @@ 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"), @@ -23,4 +25,13 @@ private TargetsType(String value) { public String value() { return value; } + + public static Optional 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..0fc413fc8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Teamtailor.java +++ b/src/main/java/com/airbyte/api/models/shared/Teamtailor.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Teamtailor(String value) { public String value() { return value; } + + public static Optional 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..aa02ee037 100644 --- a/src/main/java/com/airbyte/api/models/shared/Teamwork.java +++ b/src/main/java/com/airbyte/api/models/shared/Teamwork.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Teamwork(String value) { public String value() { return value; } + + public static Optional 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..51bbb7f2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java +++ b/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java @@ -6,6 +6,8 @@ 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 +32,13 @@ private TechnicalIndicatorType(String value) { public String value() { return value; } + + public static Optional 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..68750a8e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tempo.java +++ b/src/main/java/com/airbyte/api/models/shared/Tempo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Tempo(String value) { public String value() { return value; } + + public static Optional 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..2ef801832 100644 --- a/src/main/java/com/airbyte/api/models/shared/Teradata.java +++ b/src/main/java/com/airbyte/api/models/shared/Teradata.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Teradata(String value) { public String value() { return value; } + + public static Optional 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/TestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java index 5bce42ef3..35d60d46d 100644 --- a/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private TestDestinationType(String value) { public String value() { return value; } + + public static Optional 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..5c668f464 100644 --- a/src/main/java/com/airbyte/api/models/shared/Testrail.java +++ b/src/main/java/com/airbyte/api/models/shared/Testrail.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Testrail(String value) { public String value() { return value; } + + public static Optional 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/TheGuardianApi.java b/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java index 88776c1f8..7c9ecce13 100644 --- a/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java +++ b/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private TheGuardianApi(String value) { public String value() { return value; } + + public static Optional 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/Thinkific.java b/src/main/java/com/airbyte/api/models/shared/Thinkific.java index b886ac532..d0ad3ec69 100644 --- a/src/main/java/com/airbyte/api/models/shared/Thinkific.java +++ b/src/main/java/com/airbyte/api/models/shared/Thinkific.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Thinkific(String value) { public String value() { return value; } + + public static Optional 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/Ticketmaster.java b/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java index 4c1d18fca..ea71f3a10 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java +++ b/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Ticketmaster(String value) { public String value() { return value; } + + public static Optional 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..3d6d6c72a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tickettailor.java +++ b/src/main/java/com/airbyte/api/models/shared/Tickettailor.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Tickettailor(String value) { public String value() { return value; } + + public static Optional 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/TimeAggregates.java b/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java index 5f805d5d1..0acbd0ffa 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java @@ -6,6 +6,8 @@ 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 +31,13 @@ private TimeAggregates(String value) { public String value() { return value; } + + public static Optional 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..43a797163 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeFrame.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeFrame.java @@ -6,6 +6,8 @@ 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 +30,13 @@ private TimeFrame(String value) { public String value() { return value; } + + public static Optional 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..9001502c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java @@ -6,6 +6,8 @@ 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 +28,13 @@ private TimeGranularity(String value) { public String value() { return value; } + + public static Optional 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..375a4669a 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private TimeGranularityType(String value) { public String value() { return value; } + + public static Optional 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..113953cb8 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeInterval.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum TimeInterval { DAILY("daily"), @@ -26,4 +28,13 @@ private TimeInterval(String value) { public String value() { return value; } + + public static Optional 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..80285a556 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimePeriod.java +++ b/src/main/java/com/airbyte/api/models/shared/TimePeriod.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private TimePeriod(String value) { public String value() { return value; } + + public static Optional 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..352fc8ac9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Timely.java +++ b/src/main/java/com/airbyte/api/models/shared/Timely.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Timely(String value) { public String value() { return value; } + + public static Optional 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..a347dfef1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Timeplus.java +++ b/src/main/java/com/airbyte/api/models/shared/Timeplus.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Timeplus(String value) { public String value() { return value; } + + public static Optional 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..0e68bb73f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tinyemail.java +++ b/src/main/java/com/airbyte/api/models/shared/Tinyemail.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Tinyemail(String value) { public String value() { return value; } + + public static Optional 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/Todoist.java b/src/main/java/com/airbyte/api/models/shared/Todoist.java index 4ab571783..55d656000 100644 --- a/src/main/java/com/airbyte/api/models/shared/Todoist.java +++ b/src/main/java/com/airbyte/api/models/shared/Todoist.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Todoist(String value) { public String value() { return value; } + + public static Optional 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/TopHeadlinesTopic.java b/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java index d7998d23d..574ec498d 100644 --- a/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java +++ b/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java @@ -6,6 +6,8 @@ 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 +33,13 @@ private TopHeadlinesTopic(String value) { public String value() { return value; } + + public static Optional 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..f3b645285 100644 --- a/src/main/java/com/airbyte/api/models/shared/TrackPms.java +++ b/src/main/java/com/airbyte/api/models/shared/TrackPms.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private TrackPms(String value) { public String value() { return value; } + + public static Optional 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..ac1ba9564 100644 --- a/src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java +++ b/src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java @@ -6,6 +6,8 @@ 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 +26,13 @@ private TransformationQueryRunType(String value) { public String value() { return value; } + + public static Optional fromValue(String value) { + for (TransformationQueryRunType o: TransformationQueryRunType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Trello.java b/src/main/java/com/airbyte/api/models/shared/Trello.java index 8ec9bade7..6147e0b3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Trello.java +++ b/src/main/java/com/airbyte/api/models/shared/Trello.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Trello(String value) { public String value() { return value; } + + public static Optional 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..23f8c239a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tremendous.java +++ b/src/main/java/com/airbyte/api/models/shared/Tremendous.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Tremendous(String value) { public String value() { return value; } + + public static Optional 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..fe0816c35 100644 --- a/src/main/java/com/airbyte/api/models/shared/Trustpilot.java +++ b/src/main/java/com/airbyte/api/models/shared/Trustpilot.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Trustpilot(String value) { public String value() { return value; } + + public static Optional 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..0f0b88965 100644 --- a/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java @@ -6,6 +6,8 @@ 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 +25,13 @@ private TunnelMethod(String value) { public String value() { return value; } + + public static Optional 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..7c43359a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java +++ b/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private TvmazeSchedule(String value) { public String value() { return value; } + + public static Optional 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..50ad04a55 100644 --- a/src/main/java/com/airbyte/api/models/shared/TwelveData.java +++ b/src/main/java/com/airbyte/api/models/shared/TwelveData.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private TwelveData(String value) { public String value() { return value; } + + public static Optional 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..e5d3489a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Twilio.java +++ b/src/main/java/com/airbyte/api/models/shared/Twilio.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Twilio(String value) { public String value() { return value; } + + public static Optional 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..443c0a6a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java +++ b/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private TwilioTaskrouter(String value) { public String value() { return value; } + + public static Optional 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..6493f0c29 100644 --- a/src/main/java/com/airbyte/api/models/shared/Twitter.java +++ b/src/main/java/com/airbyte/api/models/shared/Twitter.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Twitter(String value) { public String value() { return value; } + + public static Optional 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/Typesense.java b/src/main/java/com/airbyte/api/models/shared/Typesense.java index b4d438c2f..d7f4e7c23 100644 --- a/src/main/java/com/airbyte/api/models/shared/Typesense.java +++ b/src/main/java/com/airbyte/api/models/shared/Typesense.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Typesense(String value) { public String value() { return value; } + + public static Optional 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..c3fbec563 100644 --- a/src/main/java/com/airbyte/api/models/shared/URLRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/URLRegion.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private URLRegion(String value) { public String value() { return value; } + + public static Optional 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..54adae9a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ubidots.java +++ b/src/main/java/com/airbyte/api/models/shared/Ubidots.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Ubidots(String value) { public String value() { return value; } + + public static Optional 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/UnitOfMeasure.java b/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java index 2a0c1d8d0..68ddfc769 100644 --- a/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java +++ b/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum UnitOfMeasure { E("E"), @@ -21,4 +23,13 @@ private UnitOfMeasure(String value) { public String value() { return value; } + + public static Optional 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..0370951c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Units.java +++ b/src/main/java/com/airbyte/api/models/shared/Units.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private Units(String value) { public String value() { return value; } + + public static Optional 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..3532b8771 100644 --- a/src/main/java/com/airbyte/api/models/shared/Unleash.java +++ b/src/main/java/com/airbyte/api/models/shared/Unleash.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Unleash(String value) { public String value() { return value; } + + public static Optional 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/Uppromote.java b/src/main/java/com/airbyte/api/models/shared/Uppromote.java index e6dfc8b4d..4cfc5abb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Uppromote.java +++ b/src/main/java/com/airbyte/api/models/shared/Uppromote.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Uppromote(String value) { public String value() { return value; } + + public static Optional 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..726294f5a 100644 --- a/src/main/java/com/airbyte/api/models/shared/UrlBase.java +++ b/src/main/java/com/airbyte/api/models/shared/UrlBase.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private UrlBase(String value) { public String value() { return value; } + + public static Optional 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..cc968f559 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsCensus.java +++ b/src/main/java/com/airbyte/api/models/shared/UsCensus.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private UsCensus(String value) { public String value() { return value; } + + public static Optional 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/Uservoice.java b/src/main/java/com/airbyte/api/models/shared/Uservoice.java index f1da34195..e46fd6b75 100644 --- a/src/main/java/com/airbyte/api/models/shared/Uservoice.java +++ b/src/main/java/com/airbyte/api/models/shared/Uservoice.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Uservoice(String value) { public String value() { return value; } + + public static Optional 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..e0e5aff3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * ValidActionBreakdowns - An enumeration. @@ -33,4 +35,13 @@ private ValidActionBreakdowns(String value) { public String value() { return value; } + + public static Optional 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..c46bfd26e 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * ValidAdSetStatuses - An enumeration. @@ -29,4 +31,13 @@ private ValidAdSetStatuses(String value) { public String value() { return value; } + + public static Optional 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..0f2544348 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * ValidAdStatuses - An enumeration. @@ -34,4 +36,13 @@ private ValidAdStatuses(String value) { public String value() { return value; } + + public static Optional 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..289b49c8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * ValidBreakdowns - An enumeration. @@ -65,4 +67,13 @@ private ValidBreakdowns(String value) { public String value() { return value; } + + public static Optional 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..00e97082a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; /** * ValidCampaignStatuses - An enumeration. @@ -28,4 +30,13 @@ private ValidCampaignStatuses(String value) { public String value() { return value; } + + public static Optional 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..3f4bac2bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java @@ -6,6 +6,8 @@ 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 +27,13 @@ private ValidationPolicy(String value) { public String value() { return value; } + + public static Optional 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..0a62810da 100644 --- a/src/main/java/com/airbyte/api/models/shared/Validenums.java +++ b/src/main/java/com/airbyte/api/models/shared/Validenums.java @@ -6,6 +6,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; +import java.util.Objects; +import java.util.Optional; public enum Validenums { SHEETCREATED_AT("sheetcreatedAt"), @@ -36,4 +38,13 @@ private Validenums(String value) { public String value() { return value; } + + public static Optional 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/ValueType.java b/src/main/java/com/airbyte/api/models/shared/ValueType.java index 82d07831b..121e9b774 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/ValueType.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ValueType(String value) { public String value() { return value; } + + public static Optional 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..1279c13af 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vantage.java +++ b/src/main/java/com/airbyte/api/models/shared/Vantage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Vantage(String value) { public String value() { return value; } + + public static Optional 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..6c13beef7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vectara.java +++ b/src/main/java/com/airbyte/api/models/shared/Vectara.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Vectara(String value) { public String value() { return value; } + + public static Optional 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..b2ba3aec8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Veeqo.java +++ b/src/main/java/com/airbyte/api/models/shared/Veeqo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Veeqo(String value) { public String value() { return value; } + + public static Optional 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..6a0779626 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vercel.java +++ b/src/main/java/com/airbyte/api/models/shared/Vercel.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Vercel(String value) { public String value() { return value; } + + public static Optional 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..56d5c9de6 100644 --- a/src/main/java/com/airbyte/api/models/shared/VerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/VerifyCa.java @@ -40,7 +40,7 @@ public class VerifyCa { @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") - private Optional mode; + private Optional mode; @JsonCreator public VerifyCa( @@ -76,8 +76,8 @@ public Optional clientKeyPassword() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional mode() { - return (Optional) mode; + public Optional mode() { + return (Optional) mode; } public final static Builder builder() { @@ -185,11 +185,11 @@ public VerifyCa build() { clientKeyPassword); } - private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", "\"verify-ca\"", - new TypeReference>() {}); + new TypeReference>() {}); } } 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..33f7260a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java +++ b/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java @@ -6,6 +6,8 @@ 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 +29,13 @@ private ViewAttributionWindow(String value) { public String value() { return value; } + + public static Optional 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..c431b0491 100644 --- a/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java +++ b/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java @@ -5,6 +5,8 @@ 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 +29,13 @@ private ViewWindowDays(long value) { public long value() { return value; } + + public static Optional 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..f5d21b8e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java +++ b/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private VismaEconomic(String value) { public String value() { return value; } + + public static Optional 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..c07efe11a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vitally.java +++ b/src/main/java/com/airbyte/api/models/shared/Vitally.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Vitally(String value) { public String value() { return value; } + + public static Optional 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..1eb2b0612 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vwo.java +++ b/src/main/java/com/airbyte/api/models/shared/Vwo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Vwo(String value) { public String value() { return value; } + + public static Optional 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..6f351e97e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Waiteraid.java +++ b/src/main/java/com/airbyte/api/models/shared/Waiteraid.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Waiteraid(String value) { public String value() { return value; } + + public static Optional 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..7388799c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private WasabiStatsApi(String value) { public String value() { return value; } + + public static Optional 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..b3d88c203 100644 --- a/src/main/java/com/airbyte/api/models/shared/Weatherstack.java +++ b/src/main/java/com/airbyte/api/models/shared/Weatherstack.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Weatherstack(String value) { public String value() { return value; } + + public static Optional 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..f3c0d9b1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Weaviate.java +++ b/src/main/java/com/airbyte/api/models/shared/Weaviate.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Weaviate(String value) { public String value() { return value; } + + public static Optional 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..2800fd4c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/WebScrapper.java +++ b/src/main/java/com/airbyte/api/models/shared/WebScrapper.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private WebScrapper(String value) { public String value() { return value; } + + public static Optional 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..9b18e4add 100644 --- a/src/main/java/com/airbyte/api/models/shared/Webflow.java +++ b/src/main/java/com/airbyte/api/models/shared/Webflow.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Webflow(String value) { public String value() { return value; } + + public static Optional 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/WhenIWork.java b/src/main/java/com/airbyte/api/models/shared/WhenIWork.java index 04ad28ec5..5ea39c46d 100644 --- a/src/main/java/com/airbyte/api/models/shared/WhenIWork.java +++ b/src/main/java/com/airbyte/api/models/shared/WhenIWork.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private WhenIWork(String value) { public String value() { return value; } + + public static Optional 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..279e45a4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java +++ b/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private WhiskyHunter(String value) { public String value() { return value; } + + public static Optional 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..37d790857 100644 --- a/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java +++ b/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private WikipediaPageviews(String value) { public String value() { return value; } + + public static Optional 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..d292af415 100644 --- a/src/main/java/com/airbyte/api/models/shared/Woocommerce.java +++ b/src/main/java/com/airbyte/api/models/shared/Woocommerce.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Woocommerce(String value) { public String value() { return value; } + + public static Optional 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..b63acf420 100644 --- a/src/main/java/com/airbyte/api/models/shared/Wordpress.java +++ b/src/main/java/com/airbyte/api/models/shared/Wordpress.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Wordpress(String value) { public String value() { return value; } + + public static Optional 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..109cf17c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workable.java +++ b/src/main/java/com/airbyte/api/models/shared/Workable.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Workable(String value) { public String value() { return value; } + + public static Optional 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/Workflowmax.java b/src/main/java/com/airbyte/api/models/shared/Workflowmax.java index cef6e6d4a..5f5b27205 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workflowmax.java +++ b/src/main/java/com/airbyte/api/models/shared/Workflowmax.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Workflowmax(String value) { public String value() { return value; } + + public static Optional 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..43c6975ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workramp.java +++ b/src/main/java/com/airbyte/api/models/shared/Workramp.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Workramp(String value) { public String value() { return value; } + + public static Optional 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/Wrike.java b/src/main/java/com/airbyte/api/models/shared/Wrike.java index 823e56939..6dce5f071 100644 --- a/src/main/java/com/airbyte/api/models/shared/Wrike.java +++ b/src/main/java/com/airbyte/api/models/shared/Wrike.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Wrike(String value) { public String value() { return value; } + + public static Optional 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..ee1ddec33 100644 --- a/src/main/java/com/airbyte/api/models/shared/Wufoo.java +++ b/src/main/java/com/airbyte/api/models/shared/Wufoo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Wufoo(String value) { public String value() { return value; } + + public static Optional 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..f3d2fc0ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/Xkcd.java +++ b/src/main/java/com/airbyte/api/models/shared/Xkcd.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Xkcd(String value) { public String value() { return value; } + + public static Optional 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..22df0f88b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Xsolla.java +++ b/src/main/java/com/airbyte/api/models/shared/Xsolla.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Xsolla(String value) { public String value() { return value; } + + public static Optional 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/YahooFinancePrice.java b/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java index 448afa300..35fd1b140 100644 --- a/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java +++ b/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private YahooFinancePrice(String value) { public String value() { return value; } + + public static Optional 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..fc7aab917 100644 --- a/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java +++ b/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private YandexMetrica(String value) { public String value() { return value; } + + public static Optional 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..05e676c17 100644 --- a/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java +++ b/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Yellowbrick(String value) { public String value() { return value; } + + public static Optional 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..7fd5e413d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Yotpo.java +++ b/src/main/java/com/airbyte/api/models/shared/Yotpo.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Yotpo(String value) { public String value() { return value; } + + public static Optional 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..81f4fadec 100644 --- a/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java +++ b/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private YouNeedABudgetYnab(String value) { public String value() { return value; } + + public static Optional 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/YoutubeData.java b/src/main/java/com/airbyte/api/models/shared/YoutubeData.java index a913d69a3..54ac06d3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/YoutubeData.java +++ b/src/main/java/com/airbyte/api/models/shared/YoutubeData.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private YoutubeData(String value) { public String value() { return value; } + + public static Optional 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..aae3226ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZapierSupportedStorage(String value) { public String value() { return value; } + + public static Optional 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/ZendeskSunshine.java b/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java index 08a9140a5..c385c5585 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZendeskSunshine(String value) { public String value() { return value; } + + public static Optional 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/Zenefits.java b/src/main/java/com/airbyte/api/models/shared/Zenefits.java index 279388479..7eb7eb4fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zenefits.java +++ b/src/main/java/com/airbyte/api/models/shared/Zenefits.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Zenefits(String value) { public String value() { return value; } + + public static Optional 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..89a05293e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zenloop.java +++ b/src/main/java/com/airbyte/api/models/shared/Zenloop.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Zenloop(String value) { public String value() { return value; } + + public static Optional 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..6afbf473c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoAnalyticsMetadataApi(String value) { public String value() { return value; } + + public static Optional 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..284d5dc67 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoBigin(String value) { public String value() { return value; } + + public static Optional 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..5f36a911e 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoBilling(String value) { public String value() { return value; } + + public static Optional 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..2d4d6b297 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoBooks(String value) { public String value() { return value; } + + public static Optional 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..984dd1eb7 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java @@ -6,6 +6,8 @@ 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 +29,13 @@ private ZohoCRMEdition(String value) { public String value() { return value; } + + public static Optional 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..73c54a84c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoCampaign(String value) { public String value() { return value; } + + public static Optional 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..308da916a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoCrm(String value) { public String value() { return value; } + + public static Optional 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..cb7aeb776 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoDesk(String value) { public String value() { return value; } + + public static Optional 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..6ab09d609 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoExpense(String value) { public String value() { return value; } + + public static Optional 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..8d473fab2 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoInventory(String value) { public String value() { return value; } + + public static Optional 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..1dc79cc4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZohoInvoice(String value) { public String value() { return value; } + + public static Optional 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..adfbe6144 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java +++ b/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private ZonkaFeedback(String value) { public String value() { return value; } + + public static Optional 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..f7c78ae19 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zoom.java +++ b/src/main/java/com/airbyte/api/models/shared/Zoom.java @@ -6,6 +6,8 @@ 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 +22,13 @@ private Zoom(String value) { public String value() { return value; } + + public static Optional 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/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 { + @SuppressWarnings("serial") + public static final class Serializer extends StdSerializer { - private static final long serialVersionUID = -3828937716095008071L; - - public BigDecimalStringSerializer() { - this(null); - } - - public BigDecimalStringSerializer(Class 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 { - - private static final long serialVersionUID = -2474225842945673085L; - - public BigDecimalStringDeserializer() { - this(null); - } + @SuppressWarnings("serial") + public static final class Deserializer extends StdDeserializer { - public BigDecimalStringDeserializer(Class 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 { + @SuppressWarnings("serial") + public static final class Serializer extends StdSerializer { - private static final long serialVersionUID = -2474225842945673085L; - - public BigIntegerStringSerializer() { - this(null); - } - - public BigIntegerStringSerializer(Class 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 { - - private static final long serialVersionUID = -2474225842945673085L; - - public BigIntegerStringDeserializer() { - this(null); - } + @SuppressWarnings("serial") + public static final class Deserializer extends StdDeserializer { - public BigIntegerStringDeserializer(Class t) { - super(t); + protected Deserializer() { + super(BigIntegerString.class); } @Override diff --git a/src/main/java/com/airbyte/api/utils/RequestBody.java b/src/main/java/com/airbyte/api/utils/RequestBody.java index c877c6641..d8fe240f2 100644 --- a/src/main/java/com/airbyte/api/utils/RequestBody.java +++ b/src/main/java/com/airbyte/api/utils/RequestBody.java @@ -12,17 +12,16 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.regex.Pattern; import java.util.Optional; +import java.util.regex.Pattern; -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 org.apache.hc.client5.http.entity.UrlEncodedFormEntity; +import org.apache.hc.client5.http.entity.mime.HttpMultipartMode; +import org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder; +import org.apache.hc.core5.http.ContentType; +import org.apache.hc.core5.http.HttpEntity; +import org.apache.hc.core5.http.NameValuePair; +import org.apache.hc.core5.http.message.BasicNameValuePair; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.databind.ObjectMapper; @@ -120,7 +119,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); + builder.setMode(HttpMultipartMode.EXTENDED); String boundary = "-------------" + System.currentTimeMillis(); builder.setBoundary(boundary); @@ -143,7 +142,7 @@ 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); @@ -161,7 +160,7 @@ private static SerializedBody serializeMultipart(Object value) } HttpEntity entity = builder.build(); - String ct = builder.build().getContentType().getValue(); + String ct = builder.build().getContentType(); return new SerializedBody(ct, BodyPublishers.ofInputStream(() -> { try { return entity.getContent(); @@ -171,13 +170,12 @@ private static SerializedBody serializeMultipart(Object value) })); } - private static void serializeMultipartFile(MultipartEntityBuilder builder, Object file) + private static void serializeMultipartFile(String fieldName, MultipartEntityBuilder 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,12 +197,11 @@ 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"); } @@ -336,8 +333,9 @@ public static SerializedBody serializeFormData(Object value) throw new RuntimeException("Invalid type for form data"); } + @SuppressWarnings("resource") UrlEncodedFormEntity entity = new UrlEncodedFormEntity(params); - String ct = entity.getContentType().getValue(); + String ct = entity.getContentType(); // ensure that a fresh open input stream is provided every time // by the BodyPublisher return new SerializedBody(ct, BodyPublishers.ofInputStream(() -> {