diff --git a/.goreleaser.yml b/.goreleaser.yml index 34516dd95..23f50b302 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,3 @@ -version: 2 # Visit https://goreleaser.com for documentation on how to customize this # behavior. before: @@ -58,4 +57,4 @@ release: # If you want to manually examine the release before its live, uncomment this line: # draft: true changelog: - disable: true + skip: true diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index d2a141270..bf4d62eb5 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 83e5483d-e9a0-4437-bced-361e3d1a002e management: - docChecksum: f4fd4d7fa7b66fed557afd0da34c6d79 + docChecksum: ffd32f87e1171c711ed1cd4a2a9a0e18 docVersion: 1.0.0 speakeasyVersion: 1.335.2 generationVersion: 2.372.3 - releaseVersion: 0.7.1 - configChecksum: 70a295d2cf4a28b42867fbba6bc0f0de + releaseVersion: 0.7.0 + configChecksum: 1c7f50b6a94006f98a421e082288d58f repoURL: https://github.com/airbytehq/terraform-provider-airbyte.git features: terraform: @@ -19,6 +19,7 @@ features: groups: 2.81.2 nullables: 0.0.0 oauth2ClientCredentials: 0.1.0 + sets: 0.1.2 unions: 2.81.15 generatedFiles: - internal/sdk/connections.go @@ -71,6 +72,7 @@ generatedFiles: - internal/sdk/models/operations/createdestinationfirestore.go - internal/sdk/models/operations/createdestinationgcs.go - internal/sdk/models/operations/createdestinationgooglesheets.go + - internal/sdk/models/operations/createdestinationlangchain.go - internal/sdk/models/operations/createdestinationmilvus.go - internal/sdk/models/operations/createdestinationmongodb.go - internal/sdk/models/operations/createdestinationmssql.go @@ -109,6 +111,7 @@ generatedFiles: - internal/sdk/models/operations/deletedestinationfirestore.go - internal/sdk/models/operations/deletedestinationgcs.go - internal/sdk/models/operations/deletedestinationgooglesheets.go + - internal/sdk/models/operations/deletedestinationlangchain.go - internal/sdk/models/operations/deletedestinationmilvus.go - internal/sdk/models/operations/deletedestinationmongodb.go - internal/sdk/models/operations/deletedestinationmssql.go @@ -147,6 +150,7 @@ generatedFiles: - internal/sdk/models/operations/getdestinationfirestore.go - internal/sdk/models/operations/getdestinationgcs.go - internal/sdk/models/operations/getdestinationgooglesheets.go + - internal/sdk/models/operations/getdestinationlangchain.go - internal/sdk/models/operations/getdestinationmilvus.go - internal/sdk/models/operations/getdestinationmongodb.go - internal/sdk/models/operations/getdestinationmssql.go @@ -187,6 +191,7 @@ generatedFiles: - internal/sdk/models/operations/putdestinationfirestore.go - internal/sdk/models/operations/putdestinationgcs.go - internal/sdk/models/operations/putdestinationgooglesheets.go + - internal/sdk/models/operations/putdestinationlangchain.go - internal/sdk/models/operations/putdestinationmilvus.go - internal/sdk/models/operations/putdestinationmongodb.go - internal/sdk/models/operations/putdestinationmssql.go @@ -242,7 +247,6 @@ generatedFiles: - internal/sdk/models/operations/createsourcecart.go - internal/sdk/models/operations/createsourcechargebee.go - internal/sdk/models/operations/createsourcechartmogul.go - - internal/sdk/models/operations/createsourceclazar.go - internal/sdk/models/operations/createsourceclickhouse.go - internal/sdk/models/operations/createsourceclickupapi.go - internal/sdk/models/operations/createsourceclockify.go @@ -254,7 +258,6 @@ generatedFiles: - internal/sdk/models/operations/createsourceconfluence.go - internal/sdk/models/operations/createsourceconvex.go - internal/sdk/models/operations/createsourcecustom.go - - internal/sdk/models/operations/createsourcedatadog.go - internal/sdk/models/operations/createsourcedatascope.go - internal/sdk/models/operations/createsourcedelighted.go - internal/sdk/models/operations/createsourcedixa.go @@ -279,9 +282,9 @@ generatedFiles: - internal/sdk/models/operations/createsourcegitlab.go - internal/sdk/models/operations/createsourceglassfrog.go - internal/sdk/models/operations/createsourcegnews.go - - internal/sdk/models/operations/createsourcegoldcast.go - internal/sdk/models/operations/createsourcegoogleads.go - internal/sdk/models/operations/createsourcegoogleanalyticsdataapi.go + - internal/sdk/models/operations/createsourcegoogleanalyticsv4serviceaccountonly.go - internal/sdk/models/operations/createsourcegoogledirectory.go - internal/sdk/models/operations/createsourcegoogledrive.go - internal/sdk/models/operations/createsourcegooglepagespeedinsights.go @@ -351,6 +354,7 @@ generatedFiles: - internal/sdk/models/operations/createsourceposthog.go - internal/sdk/models/operations/createsourcepostmarkapp.go - internal/sdk/models/operations/createsourceprestashop.go + - internal/sdk/models/operations/createsourcepunkapi.go - internal/sdk/models/operations/createsourcepypi.go - internal/sdk/models/operations/createsourcequalaroo.go - internal/sdk/models/operations/createsourcerailz.go @@ -439,7 +443,6 @@ generatedFiles: - internal/sdk/models/operations/deletesourcecart.go - internal/sdk/models/operations/deletesourcechargebee.go - internal/sdk/models/operations/deletesourcechartmogul.go - - internal/sdk/models/operations/deletesourceclazar.go - internal/sdk/models/operations/deletesourceclickhouse.go - internal/sdk/models/operations/deletesourceclickupapi.go - internal/sdk/models/operations/deletesourceclockify.go @@ -451,7 +454,6 @@ generatedFiles: - internal/sdk/models/operations/deletesourceconfluence.go - internal/sdk/models/operations/deletesourceconvex.go - internal/sdk/models/operations/deletesourcecustom.go - - internal/sdk/models/operations/deletesourcedatadog.go - internal/sdk/models/operations/deletesourcedatascope.go - internal/sdk/models/operations/deletesourcedelighted.go - internal/sdk/models/operations/deletesourcedixa.go @@ -476,9 +478,9 @@ generatedFiles: - internal/sdk/models/operations/deletesourcegitlab.go - internal/sdk/models/operations/deletesourceglassfrog.go - internal/sdk/models/operations/deletesourcegnews.go - - internal/sdk/models/operations/deletesourcegoldcast.go - internal/sdk/models/operations/deletesourcegoogleads.go - internal/sdk/models/operations/deletesourcegoogleanalyticsdataapi.go + - internal/sdk/models/operations/deletesourcegoogleanalyticsv4serviceaccountonly.go - internal/sdk/models/operations/deletesourcegoogledirectory.go - internal/sdk/models/operations/deletesourcegoogledrive.go - internal/sdk/models/operations/deletesourcegooglepagespeedinsights.go @@ -548,6 +550,7 @@ generatedFiles: - internal/sdk/models/operations/deletesourceposthog.go - internal/sdk/models/operations/deletesourcepostmarkapp.go - internal/sdk/models/operations/deletesourceprestashop.go + - internal/sdk/models/operations/deletesourcepunkapi.go - internal/sdk/models/operations/deletesourcepypi.go - internal/sdk/models/operations/deletesourcequalaroo.go - internal/sdk/models/operations/deletesourcerailz.go @@ -636,7 +639,6 @@ generatedFiles: - internal/sdk/models/operations/getsourcecart.go - internal/sdk/models/operations/getsourcechargebee.go - internal/sdk/models/operations/getsourcechartmogul.go - - internal/sdk/models/operations/getsourceclazar.go - internal/sdk/models/operations/getsourceclickhouse.go - internal/sdk/models/operations/getsourceclickupapi.go - internal/sdk/models/operations/getsourceclockify.go @@ -648,7 +650,6 @@ generatedFiles: - internal/sdk/models/operations/getsourceconfluence.go - internal/sdk/models/operations/getsourceconvex.go - internal/sdk/models/operations/getsourcecustom.go - - internal/sdk/models/operations/getsourcedatadog.go - internal/sdk/models/operations/getsourcedatascope.go - internal/sdk/models/operations/getsourcedelighted.go - internal/sdk/models/operations/getsourcedixa.go @@ -673,9 +674,9 @@ generatedFiles: - internal/sdk/models/operations/getsourcegitlab.go - internal/sdk/models/operations/getsourceglassfrog.go - internal/sdk/models/operations/getsourcegnews.go - - internal/sdk/models/operations/getsourcegoldcast.go - internal/sdk/models/operations/getsourcegoogleads.go - internal/sdk/models/operations/getsourcegoogleanalyticsdataapi.go + - internal/sdk/models/operations/getsourcegoogleanalyticsv4serviceaccountonly.go - internal/sdk/models/operations/getsourcegoogledirectory.go - internal/sdk/models/operations/getsourcegoogledrive.go - internal/sdk/models/operations/getsourcegooglepagespeedinsights.go @@ -745,6 +746,7 @@ generatedFiles: - internal/sdk/models/operations/getsourceposthog.go - internal/sdk/models/operations/getsourcepostmarkapp.go - internal/sdk/models/operations/getsourceprestashop.go + - internal/sdk/models/operations/getsourcepunkapi.go - internal/sdk/models/operations/getsourcepypi.go - internal/sdk/models/operations/getsourcequalaroo.go - internal/sdk/models/operations/getsourcerailz.go @@ -836,7 +838,6 @@ generatedFiles: - internal/sdk/models/operations/putsourcecart.go - internal/sdk/models/operations/putsourcechargebee.go - internal/sdk/models/operations/putsourcechartmogul.go - - internal/sdk/models/operations/putsourceclazar.go - internal/sdk/models/operations/putsourceclickhouse.go - internal/sdk/models/operations/putsourceclickupapi.go - internal/sdk/models/operations/putsourceclockify.go @@ -848,7 +849,6 @@ generatedFiles: - internal/sdk/models/operations/putsourceconfluence.go - internal/sdk/models/operations/putsourceconvex.go - internal/sdk/models/operations/putsourcecustom.go - - internal/sdk/models/operations/putsourcedatadog.go - internal/sdk/models/operations/putsourcedatascope.go - internal/sdk/models/operations/putsourcedelighted.go - internal/sdk/models/operations/putsourcedixa.go @@ -873,9 +873,9 @@ generatedFiles: - internal/sdk/models/operations/putsourcegitlab.go - internal/sdk/models/operations/putsourceglassfrog.go - internal/sdk/models/operations/putsourcegnews.go - - internal/sdk/models/operations/putsourcegoldcast.go - internal/sdk/models/operations/putsourcegoogleads.go - internal/sdk/models/operations/putsourcegoogleanalyticsdataapi.go + - internal/sdk/models/operations/putsourcegoogleanalyticsv4serviceaccountonly.go - internal/sdk/models/operations/putsourcegoogledirectory.go - internal/sdk/models/operations/putsourcegoogledrive.go - internal/sdk/models/operations/putsourcegooglepagespeedinsights.go @@ -945,6 +945,7 @@ generatedFiles: - internal/sdk/models/operations/putsourceposthog.go - internal/sdk/models/operations/putsourcepostmarkapp.go - internal/sdk/models/operations/putsourceprestashop.go + - internal/sdk/models/operations/putsourcepunkapi.go - internal/sdk/models/operations/putsourcepypi.go - internal/sdk/models/operations/putsourcequalaroo.go - internal/sdk/models/operations/putsourcerailz.go @@ -1070,6 +1071,8 @@ generatedFiles: - internal/sdk/models/shared/destinationgcs.go - internal/sdk/models/shared/destinationgooglesheetscreaterequest.go - internal/sdk/models/shared/destinationgooglesheets.go + - internal/sdk/models/shared/destinationlangchaincreaterequest.go + - internal/sdk/models/shared/destinationlangchain.go - internal/sdk/models/shared/destinationmilvuscreaterequest.go - internal/sdk/models/shared/destinationmilvus.go - internal/sdk/models/shared/destinationmongodbcreaterequest.go @@ -1146,6 +1149,8 @@ generatedFiles: - internal/sdk/models/shared/destinationgcsupdate.go - internal/sdk/models/shared/destinationgooglesheetsputrequest.go - internal/sdk/models/shared/destinationgooglesheetsupdate.go + - internal/sdk/models/shared/destinationlangchainputrequest.go + - internal/sdk/models/shared/destinationlangchainupdate.go - internal/sdk/models/shared/destinationmilvusputrequest.go - internal/sdk/models/shared/destinationmilvusupdate.go - internal/sdk/models/shared/destinationmongodbputrequest.go @@ -1249,8 +1254,6 @@ generatedFiles: - internal/sdk/models/shared/sourcechargebee.go - internal/sdk/models/shared/sourcechartmogulcreaterequest.go - internal/sdk/models/shared/sourcechartmogul.go - - internal/sdk/models/shared/sourceclazarcreaterequest.go - - internal/sdk/models/shared/sourceclazar.go - internal/sdk/models/shared/sourceclickhousecreaterequest.go - internal/sdk/models/shared/sourceclickhouse.go - internal/sdk/models/shared/sourceclickupapicreaterequest.go @@ -1272,8 +1275,6 @@ generatedFiles: - internal/sdk/models/shared/sourceconvexcreaterequest.go - internal/sdk/models/shared/sourceconvex.go - internal/sdk/models/shared/sourcecustomcreaterequest.go - - internal/sdk/models/shared/sourcedatadogcreaterequest.go - - internal/sdk/models/shared/sourcedatadog.go - internal/sdk/models/shared/sourcedatascopecreaterequest.go - internal/sdk/models/shared/sourcedatascope.go - internal/sdk/models/shared/sourcedelightedcreaterequest.go @@ -1322,12 +1323,12 @@ generatedFiles: - internal/sdk/models/shared/sourceglassfrog.go - internal/sdk/models/shared/sourcegnewscreaterequest.go - internal/sdk/models/shared/sourcegnews.go - - internal/sdk/models/shared/sourcegoldcastcreaterequest.go - - internal/sdk/models/shared/sourcegoldcast.go - internal/sdk/models/shared/sourcegoogleadscreaterequest.go - internal/sdk/models/shared/sourcegoogleads.go - internal/sdk/models/shared/sourcegoogleanalyticsdataapicreaterequest.go - internal/sdk/models/shared/sourcegoogleanalyticsdataapi.go + - internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlycreaterequest.go + - internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonly.go - internal/sdk/models/shared/sourcegoogledirectorycreaterequest.go - internal/sdk/models/shared/sourcegoogledirectory.go - internal/sdk/models/shared/sourcegoogledrivecreaterequest.go @@ -1466,6 +1467,8 @@ generatedFiles: - internal/sdk/models/shared/sourcepostmarkapp.go - internal/sdk/models/shared/sourceprestashopcreaterequest.go - internal/sdk/models/shared/sourceprestashop.go + - internal/sdk/models/shared/sourcepunkapicreaterequest.go + - internal/sdk/models/shared/sourcepunkapi.go - internal/sdk/models/shared/sourcepypicreaterequest.go - internal/sdk/models/shared/sourcepypi.go - internal/sdk/models/shared/sourcequalaroocreaterequest.go @@ -1644,8 +1647,6 @@ generatedFiles: - internal/sdk/models/shared/sourcechargebeeupdate.go - internal/sdk/models/shared/sourcechartmogulputrequest.go - internal/sdk/models/shared/sourcechartmogulupdate.go - - internal/sdk/models/shared/sourceclazarputrequest.go - - internal/sdk/models/shared/sourceclazarupdate.go - internal/sdk/models/shared/sourceclickhouseputrequest.go - internal/sdk/models/shared/sourceclickhouseupdate.go - internal/sdk/models/shared/sourceclickupapiputrequest.go @@ -1667,8 +1668,6 @@ generatedFiles: - internal/sdk/models/shared/sourceconvexputrequest.go - internal/sdk/models/shared/sourceconvexupdate.go - internal/sdk/models/shared/sourcecustomputrequest.go - - internal/sdk/models/shared/sourcedatadogputrequest.go - - internal/sdk/models/shared/sourcedatadogupdate.go - internal/sdk/models/shared/sourcedatascopeputrequest.go - internal/sdk/models/shared/sourcedatascopeupdate.go - internal/sdk/models/shared/sourcedelightedputrequest.go @@ -1717,12 +1716,12 @@ generatedFiles: - internal/sdk/models/shared/sourceglassfrogupdate.go - internal/sdk/models/shared/sourcegnewsputrequest.go - internal/sdk/models/shared/sourcegnewsupdate.go - - internal/sdk/models/shared/sourcegoldcastputrequest.go - - internal/sdk/models/shared/sourcegoldcastupdate.go - internal/sdk/models/shared/sourcegoogleadsputrequest.go - internal/sdk/models/shared/sourcegoogleadsupdate.go - internal/sdk/models/shared/sourcegoogleanalyticsdataapiputrequest.go - internal/sdk/models/shared/sourcegoogleanalyticsdataapiupdate.go + - internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyputrequest.go + - internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyupdate.go - internal/sdk/models/shared/sourcegoogledirectoryputrequest.go - internal/sdk/models/shared/sourcegoogledirectoryupdate.go - internal/sdk/models/shared/sourcegoogledriveputrequest.go @@ -1861,6 +1860,8 @@ generatedFiles: - internal/sdk/models/shared/sourcepostmarkappupdate.go - internal/sdk/models/shared/sourceprestashopputrequest.go - internal/sdk/models/shared/sourceprestashopupdate.go + - internal/sdk/models/shared/sourcepunkapiputrequest.go + - internal/sdk/models/shared/sourcepunkapiupdate.go - internal/sdk/models/shared/sourcepypiputrequest.go - internal/sdk/models/shared/sourcepypiupdate.go - internal/sdk/models/shared/sourcequalarooputrequest.go @@ -2129,6 +2130,13 @@ generatedFiles: - internal/provider/types/destination_gcs.go - internal/provider/types/destination_google_sheets_authentication_via_google_o_auth.go - internal/provider/types/destination_google_sheets.go + - internal/provider/types/destination_langchain_embedding.go + - internal/provider/types/chroma_local_persistance.go + - internal/provider/types/doc_array_hnsw_search.go + - internal/provider/types/destination_langchain_pinecone.go + - internal/provider/types/destination_langchain_indexing.go + - internal/provider/types/destination_langchain_processing_config_model.go + - internal/provider/types/destination_langchain.go - internal/provider/types/destination_milvus_api_token.go - internal/provider/types/destination_milvus_authentication.go - internal/provider/types/destination_milvus_indexing.go @@ -2144,7 +2152,6 @@ generatedFiles: - internal/provider/types/destination_mssql.go - internal/provider/types/destination_mysql.go - internal/provider/types/destination_oracle.go - - internal/provider/types/destination_pinecone_indexing.go - internal/provider/types/destination_pinecone.go - internal/provider/types/verify_ca.go - internal/provider/types/verify_full.go @@ -2157,6 +2164,8 @@ generatedFiles: - internal/provider/types/destination_qdrant.go - internal/provider/types/destination_redis_ssl_modes.go - internal/provider/types/destination_redis.go + - internal/provider/types/aescbc_envelope_encryption.go + - internal/provider/types/destination_redshift_encryption.go - internal/provider/types/awss3_staging.go - internal/provider/types/destination_redshift_uploading_method.go - internal/provider/types/destination_redshift.go @@ -2206,7 +2215,6 @@ generatedFiles: - internal/provider/types/o_auth2_confidential_application.go - internal/provider/types/source_auth0_authentication_method.go - internal/provider/types/source_auth0.go - - internal/provider/types/source_aws_cloudtrail_filter_applied_while_fetching_records_based_on_attribute_key_and_attribute_value_which_will_be_appended_on_the_request_body.go - internal/provider/types/source_aws_cloudtrail.go - internal/provider/types/authenticate_via_oauth2.go - internal/provider/types/authenticate_via_storage_account_key.go @@ -2243,8 +2251,6 @@ generatedFiles: - internal/provider/types/source_coin_api.go - internal/provider/types/source_coinmarketcap.go - internal/provider/types/source_confluence.go - - internal/provider/types/queries.go - - internal/provider/types/source_datadog.go - internal/provider/types/source_datascope.go - internal/provider/types/source_delighted.go - internal/provider/types/source_dixa.go @@ -2255,8 +2261,6 @@ generatedFiles: - internal/provider/types/source_dynamodb_credentials.go - internal/provider/types/source_dynamodb.go - internal/provider/types/source_exchange_rates.go - - internal/provider/types/authenticate_via_facebook_marketing_oauth.go - - internal/provider/types/source_facebook_marketing_authentication.go - internal/provider/types/insight_config.go - internal/provider/types/source_facebook_marketing.go - internal/provider/types/source_faker.go @@ -2287,12 +2291,11 @@ generatedFiles: - internal/provider/types/source_gitlab_authorization_method.go - internal/provider/types/source_gitlab.go - internal/provider/types/source_gnews.go - - internal/provider/types/source_goldcast.go - internal/provider/types/source_google_ads_google_credentials.go - internal/provider/types/custom_queries_array.go - internal/provider/types/source_google_ads.go - internal/provider/types/authenticate_via_google_oauth.go - - internal/provider/types/source_google_analytics_data_api_service_account_key_authentication.go + - internal/provider/types/service_account_key_authentication.go - internal/provider/types/source_google_analytics_data_api_credentials.go - internal/provider/types/source_google_analytics_data_api_cohort_report_settings.go - internal/provider/types/source_google_analytics_data_api_date_range.go @@ -2314,6 +2317,8 @@ generatedFiles: - internal/provider/types/source_google_analytics_data_api_dimensions_filter.go - internal/provider/types/source_google_analytics_data_api_custom_report_config.go - internal/provider/types/source_google_analytics_data_api.go + - internal/provider/types/source_google_analytics_v4_service_account_only_credentials.go + - internal/provider/types/source_google_analytics_v4_service_account_only.go - internal/provider/types/service_account_key.go - internal/provider/types/source_google_directory_google_credentials.go - internal/provider/types/source_google_directory.go @@ -2364,8 +2369,6 @@ generatedFiles: - internal/provider/types/source_metabase.go - internal/provider/types/service_key_authentication.go - internal/provider/types/source_microsoft_onedrive_authentication.go - - internal/provider/types/source_microsoft_onedrive_format.go - - internal/provider/types/source_microsoft_onedrive_file_based_stream_config.go - internal/provider/types/source_microsoft_onedrive.go - internal/provider/types/source_microsoft_sharepoint_authenticate_via_microsoft_o_auth.go - internal/provider/types/source_microsoft_sharepoint_authentication.go @@ -2434,6 +2437,7 @@ generatedFiles: - internal/provider/types/source_posthog.go - internal/provider/types/source_postmarkapp.go - internal/provider/types/source_prestashop.go + - internal/provider/types/source_punk_api.go - internal/provider/types/source_pypi.go - internal/provider/types/source_qualaroo.go - internal/provider/types/source_railz.go @@ -2452,8 +2456,6 @@ generatedFiles: - internal/provider/types/parquet.go - internal/provider/types/source_s3_file_format.go - internal/provider/types/source_s3_s3_amazon_web_services.go - - internal/provider/types/source_s3_format.go - - internal/provider/types/source_s3_file_based_stream_config.go - internal/provider/types/source_s3.go - internal/provider/types/streams_criteria.go - internal/provider/types/source_salesforce.go @@ -2485,7 +2487,6 @@ generatedFiles: - internal/provider/types/source_smartsheets_authorization_method.go - internal/provider/types/source_smartsheets.go - internal/provider/types/source_snapchat_marketing.go - - internal/provider/types/source_snowflake_key_pair_authentication.go - internal/provider/types/source_snowflake_o_auth20.go - internal/provider/types/source_snowflake_authorization_method.go - internal/provider/types/source_snowflake.go @@ -2538,7 +2539,6 @@ generatedFiles: - internal/provider/provider.go - examples/provider/provider.tf - examples/resources/airbyte_connection/import.sh - - internal/provider/connection_resource.go - internal/provider/connection_resource_sdk.go - examples/resources/airbyte_connection/resource.tf - examples/resources/airbyte_destination_astra/import.sh @@ -2605,6 +2605,10 @@ generatedFiles: - internal/provider/destination_googlesheets_resource.go - internal/provider/destination_googlesheets_resource_sdk.go - examples/resources/airbyte_destination_google_sheets/resource.tf + - examples/resources/airbyte_destination_langchain/import.sh + - internal/provider/destination_langchain_resource.go + - internal/provider/destination_langchain_resource_sdk.go + - examples/resources/airbyte_destination_langchain/resource.tf - examples/resources/airbyte_destination_milvus/import.sh - internal/provider/destination_milvus_resource.go - internal/provider/destination_milvus_resource_sdk.go @@ -2781,10 +2785,6 @@ generatedFiles: - internal/provider/source_chartmogul_resource.go - internal/provider/source_chartmogul_resource_sdk.go - examples/resources/airbyte_source_chartmogul/resource.tf - - examples/resources/airbyte_source_clazar/import.sh - - internal/provider/source_clazar_resource.go - - internal/provider/source_clazar_resource_sdk.go - - examples/resources/airbyte_source_clazar/resource.tf - examples/resources/airbyte_source_clickhouse/import.sh - internal/provider/source_clickhouse_resource.go - internal/provider/source_clickhouse_resource_sdk.go @@ -2829,10 +2829,6 @@ generatedFiles: - internal/provider/source_custom_resource.go - internal/provider/source_custom_resource_sdk.go - examples/resources/airbyte_source_custom/resource.tf - - examples/resources/airbyte_source_datadog/import.sh - - internal/provider/source_datadog_resource.go - - internal/provider/source_datadog_resource_sdk.go - - examples/resources/airbyte_source_datadog/resource.tf - examples/resources/airbyte_source_datascope/import.sh - internal/provider/source_datascope_resource.go - internal/provider/source_datascope_resource_sdk.go @@ -2929,10 +2925,6 @@ generatedFiles: - internal/provider/source_gnews_resource.go - internal/provider/source_gnews_resource_sdk.go - examples/resources/airbyte_source_gnews/resource.tf - - examples/resources/airbyte_source_goldcast/import.sh - - internal/provider/source_goldcast_resource.go - - internal/provider/source_goldcast_resource_sdk.go - - examples/resources/airbyte_source_goldcast/resource.tf - examples/resources/airbyte_source_google_ads/import.sh - internal/provider/source_googleads_resource.go - internal/provider/source_googleads_resource_sdk.go @@ -2941,6 +2933,10 @@ generatedFiles: - internal/provider/source_googleanalyticsdataapi_resource.go - internal/provider/source_googleanalyticsdataapi_resource_sdk.go - examples/resources/airbyte_source_google_analytics_data_api/resource.tf + - examples/resources/airbyte_source_google_analytics_v4_service_account_only/import.sh + - internal/provider/source_googleanalyticsv4serviceaccountonly_resource.go + - internal/provider/source_googleanalyticsv4serviceaccountonly_resource_sdk.go + - examples/resources/airbyte_source_google_analytics_v4_service_account_only/resource.tf - examples/resources/airbyte_source_google_directory/import.sh - internal/provider/source_googledirectory_resource.go - internal/provider/source_googledirectory_resource_sdk.go @@ -3217,6 +3213,10 @@ generatedFiles: - internal/provider/source_prestashop_resource.go - internal/provider/source_prestashop_resource_sdk.go - examples/resources/airbyte_source_prestashop/resource.tf + - examples/resources/airbyte_source_punk_api/import.sh + - internal/provider/source_punkapi_resource.go + - internal/provider/source_punkapi_resource_sdk.go + - examples/resources/airbyte_source_punk_api/resource.tf - examples/resources/airbyte_source_pypi/import.sh - internal/provider/source_pypi_resource.go - internal/provider/source_pypi_resource_sdk.go @@ -3532,6 +3532,9 @@ generatedFiles: - internal/provider/destination_googlesheets_data_source.go - internal/provider/destination_googlesheets_data_source_sdk.go - examples/data-sources/airbyte_destination_google_sheets/data-source.tf + - internal/provider/destination_langchain_data_source.go + - internal/provider/destination_langchain_data_source_sdk.go + - examples/data-sources/airbyte_destination_langchain/data-source.tf - internal/provider/destination_milvus_data_source.go - internal/provider/destination_milvus_data_source_sdk.go - examples/data-sources/airbyte_destination_milvus/data-source.tf @@ -3664,9 +3667,6 @@ generatedFiles: - internal/provider/source_chartmogul_data_source.go - internal/provider/source_chartmogul_data_source_sdk.go - examples/data-sources/airbyte_source_chartmogul/data-source.tf - - internal/provider/source_clazar_data_source.go - - internal/provider/source_clazar_data_source_sdk.go - - examples/data-sources/airbyte_source_clazar/data-source.tf - internal/provider/source_clickhouse_data_source.go - internal/provider/source_clickhouse_data_source_sdk.go - examples/data-sources/airbyte_source_clickhouse/data-source.tf @@ -3700,9 +3700,6 @@ generatedFiles: - internal/provider/source_custom_data_source.go - internal/provider/source_custom_data_source_sdk.go - examples/data-sources/airbyte_source_custom/data-source.tf - - internal/provider/source_datadog_data_source.go - - internal/provider/source_datadog_data_source_sdk.go - - examples/data-sources/airbyte_source_datadog/data-source.tf - internal/provider/source_datascope_data_source.go - internal/provider/source_datascope_data_source_sdk.go - examples/data-sources/airbyte_source_datascope/data-source.tf @@ -3775,15 +3772,15 @@ generatedFiles: - internal/provider/source_gnews_data_source.go - internal/provider/source_gnews_data_source_sdk.go - examples/data-sources/airbyte_source_gnews/data-source.tf - - internal/provider/source_goldcast_data_source.go - - internal/provider/source_goldcast_data_source_sdk.go - - examples/data-sources/airbyte_source_goldcast/data-source.tf - internal/provider/source_googleads_data_source.go - internal/provider/source_googleads_data_source_sdk.go - examples/data-sources/airbyte_source_google_ads/data-source.tf - internal/provider/source_googleanalyticsdataapi_data_source.go - internal/provider/source_googleanalyticsdataapi_data_source_sdk.go - examples/data-sources/airbyte_source_google_analytics_data_api/data-source.tf + - internal/provider/source_googleanalyticsv4serviceaccountonly_data_source.go + - internal/provider/source_googleanalyticsv4serviceaccountonly_data_source_sdk.go + - examples/data-sources/airbyte_source_google_analytics_v4_service_account_only/data-source.tf - internal/provider/source_googledirectory_data_source.go - internal/provider/source_googledirectory_data_source_sdk.go - examples/data-sources/airbyte_source_google_directory/data-source.tf @@ -3991,6 +3988,9 @@ generatedFiles: - internal/provider/source_prestashop_data_source.go - internal/provider/source_prestashop_data_source_sdk.go - examples/data-sources/airbyte_source_prestashop/data-source.tf + - internal/provider/source_punkapi_data_source.go + - internal/provider/source_punkapi_data_source_sdk.go + - examples/data-sources/airbyte_source_punk_api/data-source.tf - internal/provider/source_pypi_data_source.go - internal/provider/source_pypi_data_source_sdk.go - examples/data-sources/airbyte_source_pypi/data-source.tf diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 7279f86d0..a603994f3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.335.2 +speakeasyVersion: 1.321.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:11bc6c5cce07b8124f88147cb7e73b56ed406eefd4374dce9f478c06a1fd3d7d - sourceBlobDigest: sha256:20143bd569af5fe53d9cc6d46c85db6b8bdfa07d2f1adfd286931ba24c8cb1a6 + sourceRevisionDigest: sha256:3033fa2ed31f47a1508ad2e10594f824a2c68caa25670224e7d576f93c63b269 + sourceBlobDigest: sha256:bb31cea6549192e0e90dda8d97fa05daa2cf2debac4223ee19e46b59b1c18ce3 tags: - latest - main @@ -11,8 +11,8 @@ targets: terraform-provider-airbyte: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:11bc6c5cce07b8124f88147cb7e73b56ed406eefd4374dce9f478c06a1fd3d7d - sourceBlobDigest: sha256:20143bd569af5fe53d9cc6d46c85db6b8bdfa07d2f1adfd286931ba24c8cb1a6 + sourceRevisionDigest: sha256:3033fa2ed31f47a1508ad2e10594f824a2c68caa25670224e7d576f93c63b269 + sourceBlobDigest: sha256:bb31cea6549192e0e90dda8d97fa05daa2cf2debac4223ee19e46b59b1c18ce3 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/README.md b/README.md index 7a203e0ac..3fb632d2a 100755 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ terraform { required_providers { airbyte = { source = "airbytehq/airbyte" - version = "0.7.1" + version = "0.7.0" } } } diff --git a/RELEASES.md b/RELEASES.md index 45b000102..23f82a865 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -28,24 +28,4 @@ Based on: ### Generated - [terraform v0.6.0] . ### Releases -- [Terraform v0.6.0] https://registry.terraform.io/providers/airbytehq/airbyte/0.6.0 - . - -## 2024-07-03 19:55:55 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.326.0 (2.359.0) https://github.com/speakeasy-api/speakeasy -### Generated -- [terraform v0.7.0] . -### Releases -- [Terraform v0.7.0] https://registry.terraform.io/providers/airbytehq/airbyte/0.7.0 - . - -## 2024-07-15 18:17:47 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.335.2 (2.372.3) https://github.com/speakeasy-api/speakeasy -### Generated -- [terraform v0.7.1] . -### Releases -- [Terraform v0.7.1] https://registry.terraform.io/providers/airbytehq/airbyte/0.7.1 - . \ No newline at end of file +- [Terraform v0.6.0] https://registry.terraform.io/providers/airbytehq/airbyte/0.6.0 - . \ No newline at end of file diff --git a/docs/data-sources/destination_langchain.md b/docs/data-sources/destination_langchain.md new file mode 100644 index 000000000..361be815d --- /dev/null +++ b/docs/data-sources/destination_langchain.md @@ -0,0 +1,35 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_destination_langchain Data Source - terraform-provider-airbyte" +subcategory: "" +description: |- + DestinationLangchain DataSource +--- + +# airbyte_destination_langchain (Data Source) + +DestinationLangchain DataSource + +## Example Usage + +```terraform +data "airbyte_destination_langchain" "my_destination_langchain" { + destination_id = "...my_destination_id..." +} +``` + + +## Schema + +### Required + +- `destination_id` (String) + +### Read-Only + +- `configuration` (String) The values required to configure the destination. Parsed as JSON. +- `destination_type` (String) +- `name` (String) +- `workspace_id` (String) + + diff --git a/docs/data-sources/source_datadog.md b/docs/data-sources/source_datadog.md deleted file mode 100644 index 021efa874..000000000 --- a/docs/data-sources/source_datadog.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_datadog Data Source - terraform-provider-airbyte" -subcategory: "" -description: |- - SourceDatadog DataSource ---- - -# airbyte_source_datadog (Data Source) - -SourceDatadog DataSource - -## Example Usage - -```terraform -data "airbyte_source_datadog" "my_source_datadog" { - source_id = "...my_source_id..." -} -``` - - -## Schema - -### Required - -- `source_id` (String) - -### Read-Only - -- `configuration` (String) The values required to configure the source. Parsed as JSON. -- `name` (String) -- `source_type` (String) -- `workspace_id` (String) - - diff --git a/docs/data-sources/source_clazar.md b/docs/data-sources/source_google_analytics_v4_service_account_only.md similarity index 52% rename from docs/data-sources/source_clazar.md rename to docs/data-sources/source_google_analytics_v4_service_account_only.md index e6a92cd5b..0f0cd2c76 100644 --- a/docs/data-sources/source_clazar.md +++ b/docs/data-sources/source_google_analytics_v4_service_account_only.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_clazar Data Source - terraform-provider-airbyte" +page_title: "airbyte_source_google_analytics_v4_service_account_only Data Source - terraform-provider-airbyte" subcategory: "" description: |- - SourceClazar DataSource + SourceGoogleAnalyticsV4ServiceAccountOnly DataSource --- -# airbyte_source_clazar (Data Source) +# airbyte_source_google_analytics_v4_service_account_only (Data Source) -SourceClazar DataSource +SourceGoogleAnalyticsV4ServiceAccountOnly DataSource ## Example Usage ```terraform -data "airbyte_source_clazar" "my_source_clazar" { +data "airbyte_source_google_analytics_v4_service_account_only" "my_source_googleanalyticsv4serviceaccountonly" { source_id = "...my_source_id..." } ``` diff --git a/docs/data-sources/source_goldcast.md b/docs/data-sources/source_punk_api.md similarity index 68% rename from docs/data-sources/source_goldcast.md rename to docs/data-sources/source_punk_api.md index 9b40d3abc..a7283778a 100644 --- a/docs/data-sources/source_goldcast.md +++ b/docs/data-sources/source_punk_api.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_goldcast Data Source - terraform-provider-airbyte" +page_title: "airbyte_source_punk_api Data Source - terraform-provider-airbyte" subcategory: "" description: |- - SourceGoldcast DataSource + SourcePunkAPI DataSource --- -# airbyte_source_goldcast (Data Source) +# airbyte_source_punk_api (Data Source) -SourceGoldcast DataSource +SourcePunkAPI DataSource ## Example Usage ```terraform -data "airbyte_source_goldcast" "my_source_goldcast" { +data "airbyte_source_punk_api" "my_source_punkapi" { source_id = "...my_source_id..." } ``` diff --git a/docs/index.md b/docs/index.md index 9d4a6f7fa..2c4fd95d9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,7 +17,7 @@ terraform { required_providers { airbyte = { source = "airbytehq/airbyte" - version = "0.7.1" + version = "0.6.0" } } } diff --git a/docs/resources/destination_langchain.md b/docs/resources/destination_langchain.md new file mode 100644 index 000000000..40a07acff --- /dev/null +++ b/docs/resources/destination_langchain.md @@ -0,0 +1,147 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_destination_langchain Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + DestinationLangchain Resource +--- + +# airbyte_destination_langchain (Resource) + +DestinationLangchain Resource + +## Example Usage + +```terraform +resource "airbyte_destination_langchain" "my_destination_langchain" { + configuration = { + embedding = { + fake = {} + } + indexing = { + chroma_local_persistance = { + collection_name = "...my_collection_name..." + destination_path = "/local/my_chroma_db" + } + } + processing = { + chunk_overlap = 7 + chunk_size = 3 + text_fields = [ + "...", + ] + } + } + definition_id = "a735a4e1-8012-43f0-976f-b78bf74fa22d" + name = "Jack Christiansen" + workspace_id = "1b5f134d-0007-4497-b4ae-87c30892ffb0" +} +``` + + +## Schema + +### Required + +- `configuration` (Attributes) (see [below for nested schema](#nestedatt--configuration)) +- `name` (String) Name of the destination e.g. dev-mysql-instance. +- `workspace_id` (String) + +### Optional + +- `definition_id` (String) The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. Requires replacement if changed. + +### Read-Only + +- `destination_id` (String) +- `destination_type` (String) + + +### Nested Schema for `configuration` + +Required: + +- `embedding` (Attributes) Embedding configuration (see [below for nested schema](#nestedatt--configuration--embedding)) +- `indexing` (Attributes) Indexing configuration (see [below for nested schema](#nestedatt--configuration--indexing)) +- `processing` (Attributes) (see [below for nested schema](#nestedatt--configuration--processing)) + + +### Nested Schema for `configuration.embedding` + +Optional: + +- `fake` (Attributes) Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. (see [below for nested schema](#nestedatt--configuration--embedding--fake)) +- `open_ai` (Attributes) Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. (see [below for nested schema](#nestedatt--configuration--embedding--open_ai)) + + +### Nested Schema for `configuration.embedding.fake` + + + +### Nested Schema for `configuration.embedding.open_ai` + +Required: + +- `openai_key` (String, Sensitive) + + + + +### Nested Schema for `configuration.indexing` + +Optional: + +- `chroma_local_persistance` (Attributes) Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync. (see [below for nested schema](#nestedatt--configuration--indexing--chroma_local_persistance)) +- `doc_array_hnsw_search` (Attributes) DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite. (see [below for nested schema](#nestedatt--configuration--indexing--doc_array_hnsw_search)) +- `pinecone` (Attributes) Pinecone is a popular vector store that can be used to store and retrieve embeddings. It is a managed service and can also be queried from outside of langchain. (see [below for nested schema](#nestedatt--configuration--indexing--pinecone)) + + +### Nested Schema for `configuration.indexing.chroma_local_persistance` + +Required: + +- `destination_path` (String) Path to the directory where chroma files will be written. The files will be placed inside that local mount. + +Optional: + +- `collection_name` (String) Name of the collection to use. Default: "langchain" + + + +### Nested Schema for `configuration.indexing.doc_array_hnsw_search` + +Required: + +- `destination_path` (String) Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run. + + + +### Nested Schema for `configuration.indexing.pinecone` + +Required: + +- `index` (String) Pinecone index to use +- `pinecone_environment` (String) Pinecone environment to use +- `pinecone_key` (String, Sensitive) + + + + +### Nested Schema for `configuration.processing` + +Required: + +- `chunk_size` (Number) Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) +- `text_fields` (List of String) List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + +Optional: + +- `chunk_overlap` (Number) Size of overlap between chunks in tokens to store in vector store to better capture relevant context. Default: 0 + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_destination_langchain.my_airbyte_destination_langchain "" +``` diff --git a/docs/resources/destination_milvus.md b/docs/resources/destination_milvus.md index 4370a1891..5f0a12b07 100644 --- a/docs/resources/destination_milvus.md +++ b/docs/resources/destination_milvus.md @@ -30,14 +30,14 @@ resource "airbyte_destination_milvus" "my_destination_milvus" { } collection = "...my_collection..." db = "...my_db..." - host = "tcp://host.docker.internal:19530" + host = "tcp://my-local-milvus:19530" text_field = "...my_text_field..." vector_field = "...my_vector_field..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 6 - chunk_size = 4 + chunk_overlap = 1 + chunk_size = 10 field_name_mappings = [ { from_field = "...my_from_field..." @@ -52,14 +52,14 @@ resource "airbyte_destination_milvus" "my_destination_milvus" { ] text_splitter = { by_markdown_header = { - split_level = 2 + split_level = 6 } } } } - definition_id = "5a4e1801-23f0-4d76-bb78-bf74fa22de12" - name = "Jenny Braun" - workspace_id = "f134d000-7497-474a-a87c-30892ffb0f41" + definition_id = "2248d601-2833-484b-987b-5cce36148543" + name = "Sylvia Smitham" + workspace_id = "3c5e509f-4525-421a-8478-78c254cd184f" } ``` diff --git a/docs/resources/destination_mongodb.md b/docs/resources/destination_mongodb.md index c0d7af7a3..6d2c8e49b 100644 --- a/docs/resources/destination_mongodb.md +++ b/docs/resources/destination_mongodb.md @@ -18,7 +18,7 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { auth_type = { login_password = { password = "...my_password..." - username = "Ubaldo12" + username = "Ryleigh43" } } database = "...my_database..." @@ -32,9 +32,9 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { no_tunnel = {} } } - definition_id = "48d60128-3384-4bd8-bb5c-ce3614854333" - name = "Courtney Considine" - workspace_id = "5e509f45-2521-4a04-b878-c254cd184fd1" + definition_id = "e75f1c50-c9ec-4767-87b0-6cf86fe4a6f8" + name = "Mr. Malcolm Lubowitz" + workspace_id = "d646f802-e7b2-4183-b2bc-4f6db7afdaca" } ``` diff --git a/docs/resources/destination_mssql.md b/docs/resources/destination_mssql.md index 8b688991e..7a8f0eff4 100644 --- a/docs/resources/destination_mssql.md +++ b/docs/resources/destination_mssql.md @@ -28,11 +28,11 @@ resource "airbyte_destination_mssql" "my_destination_mssql" { tunnel_method = { no_tunnel = {} } - username = "Hope.Toy" + username = "Brian25" } - definition_id = "f1c50c9e-c767-447b-86cf-86fe4a6f8bb8" - name = "Lisa Von" - workspace_id = "46f802e7-b218-43b2-bc4f-6db7afdacad2" + definition_id = "cf17a668-3bb7-46cb-9d42-c04b7b603cc8" + name = "Bryant Lynch" + workspace_id = "e7603813-ef7f-4c0d-976e-5f414549f124" } ``` diff --git a/docs/resources/destination_mysql.md b/docs/resources/destination_mysql.md index 29b96e841..7776b7745 100644 --- a/docs/resources/destination_mysql.md +++ b/docs/resources/destination_mysql.md @@ -16,7 +16,7 @@ DestinationMysql Resource resource "airbyte_destination_mysql" "my_destination_mysql" { configuration = { database = "...my_database..." - disable_type_dedupe = false + disable_type_dedupe = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." @@ -25,11 +25,11 @@ resource "airbyte_destination_mysql" "my_destination_mysql" { tunnel_method = { no_tunnel = {} } - username = "Deon.Russel49" + username = "Jimmy.Cummings31" } - definition_id = "a6683bb7-6cbd-4d42-804b-7b603cc8cd88" - name = "Tricia Klocko I" - workspace_id = "813ef7fc-0d17-46e5-b414-549f1242182d" + definition_id = "ef4e895c-9212-4618-852d-1432f33897fe" + name = "Francis Rutherford" + workspace_id = "c8c4bf88-2725-4c3c-abc3-9a6d3f396b39" } ``` diff --git a/docs/resources/destination_oracle.md b/docs/resources/destination_oracle.md index 017511bca..ae4dd5af1 100644 --- a/docs/resources/destination_oracle.md +++ b/docs/resources/destination_oracle.md @@ -25,11 +25,11 @@ resource "airbyte_destination_oracle" "my_destination_oracle" { tunnel_method = { no_tunnel = {} } - username = "Emmalee.Towne89" + username = "Louvenia.Bartell4" } - definition_id = "895c9212-6184-452d-9432-f33897fec4ca" - name = "Adrienne Lockman" - workspace_id = "bf882725-c3c6-4bc3-9a6d-3f396b39ea0e" + definition_id = "16590e1a-2bc7-4de0-bf63-7374915d3efc" + name = "Kara Stroman" + workspace_id = "0e36acc1-e6f1-4291-9604-b55b326e06d2" } ``` diff --git a/docs/resources/destination_pinecone.md b/docs/resources/destination_pinecone.md index dd6205e58..2ff4ef66b 100644 --- a/docs/resources/destination_pinecone.md +++ b/docs/resources/destination_pinecone.md @@ -27,10 +27,10 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { pinecone_environment = "us-west1-gcp" pinecone_key = "...my_pinecone_key..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 0 - chunk_size = 4 + chunk_overlap = 5 + chunk_size = 9 field_name_mappings = [ { from_field = "...my_from_field..." @@ -50,9 +50,9 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { } } } - definition_id = "90e1a2bc-7de0-4ff6-b737-4915d3efc2cd" - name = "Jorge Beahan" - workspace_id = "6acc1e6f-1291-4560-8b55-b326e06d2448" + definition_id = "e42a5305-0a9a-4fbc-a6c9-13a5b78062a6" + name = "Gregory Flatley" + workspace_id = "b7f63598-ffb0-4429-a4fa-eae5018c3193" } ``` diff --git a/docs/resources/destination_postgres.md b/docs/resources/destination_postgres.md index c114d668f..3b1f3a0a8 100644 --- a/docs/resources/destination_postgres.md +++ b/docs/resources/destination_postgres.md @@ -16,8 +16,8 @@ DestinationPostgres Resource resource "airbyte_destination_postgres" "my_destination_postgres" { configuration = { database = "...my_database..." - disable_type_dedupe = true - drop_cascade = false + disable_type_dedupe = false + drop_cascade = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." @@ -30,11 +30,11 @@ resource "airbyte_destination_postgres" "my_destination_postgres" { tunnel_method = { no_tunnel = {} } - username = "Ed.Crooks" + username = "Ladarius_Abernathy72" } - definition_id = "3050a9af-bc66-4c91-ba5b-78062a6a13d9" - name = "Cody Williamson" - workspace_id = "598ffb04-2924-4fae-ae50-18c319374090" + definition_id = "22db6fe0-864a-4856-a041-70ff8566dc32" + name = "Gladys Hintz" + workspace_id = "7b07bf07-28b7-4077-958c-67348eaa4356" } ``` diff --git a/docs/resources/destination_pubsub.md b/docs/resources/destination_pubsub.md index 01ac43b94..ecfd7d33d 100644 --- a/docs/resources/destination_pubsub.md +++ b/docs/resources/destination_pubsub.md @@ -16,17 +16,17 @@ DestinationPubsub Resource resource "airbyte_destination_pubsub" "my_destination_pubsub" { configuration = { batching_delay_threshold = 10 - batching_element_count_threshold = 10 - batching_enabled = false - batching_request_bytes_threshold = 1 + batching_element_count_threshold = 2 + batching_enabled = true + batching_request_bytes_threshold = 6 credentials_json = "...my_credentials_json..." - ordering_enabled = false + ordering_enabled = true project_id = "...my_project_id..." topic_id = "...my_topic_id..." } - definition_id = "db6fe086-4a85-46a0-8170-ff8566dc3233" - name = "Belinda Kuhn" - workspace_id = "07bf0728-b707-4755-8c67-348eaa4356f3" + definition_id = "d49dbc4f-abbf-4199-8382-023b4de2c1a7" + name = "Bobby Lemke" + workspace_id = "d3cde3c9-d6fa-494b-b4b9-38f85ce1dfc1" } ``` diff --git a/docs/resources/destination_qdrant.md b/docs/resources/destination_qdrant.md index 3c18557da..2a0a5b18a 100644 --- a/docs/resources/destination_qdrant.md +++ b/docs/resources/destination_qdrant.md @@ -29,15 +29,15 @@ resource "airbyte_destination_qdrant" "my_destination_qdrant" { } } collection = "...my_collection..." - distance_metric = "cos" + distance_metric = "euc" prefer_grpc = true text_field = "...my_text_field..." url = "...my_url..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 9 - chunk_size = 2 + chunk_overlap = 6 + chunk_size = 5 field_name_mappings = [ { from_field = "...my_from_field..." @@ -52,14 +52,14 @@ resource "airbyte_destination_qdrant" "my_destination_qdrant" { ] text_splitter = { by_markdown_header = { - split_level = 6 + split_level = 9 } } } } - definition_id = "dbc4fabb-f199-4438-a023-b4de2c1a7f28" - name = "Gerard Simonis" - workspace_id = "de3c9d6f-a94b-474b-938f-85ce1dfc1b27" + definition_id = "b19e64b8-3f63-4d34-8370-e173ec9d4f32" + name = "Ms. Antonio Thiel" + workspace_id = "a8a43c0f-29f7-4cbd-92b3-20943801c367" } ``` diff --git a/docs/resources/destination_redis.md b/docs/resources/destination_redis.md index 3f5b40cae..36c816fcc 100644 --- a/docs/resources/destination_redis.md +++ b/docs/resources/destination_redis.md @@ -18,7 +18,7 @@ resource "airbyte_destination_redis" "my_destination_redis" { cache_type = "hash" host = "localhost,127.0.0.1" password = "...my_password..." - port = 6 + port = 5 ssl = true ssl_mode = { disable = {} @@ -26,11 +26,11 @@ resource "airbyte_destination_redis" "my_destination_redis" { tunnel_method = { no_tunnel = {} } - username = "Salma59" + username = "Ellen.Champlin16" } - definition_id = "e64b83f6-3d34-4837-8e17-3ec9d4f32d3e" - name = "Shelly Connelly" - workspace_id = "a43c0f29-f7cb-4d12-b320-943801c3678d" + definition_id = "94a31a29-aaf3-4c68-870e-ca1537042295" + name = "Hector Turner" + workspace_id = "dc306165-86b7-4399-8fea-69beba7dc7cd" } ``` diff --git a/docs/resources/destination_redshift.md b/docs/resources/destination_redshift.md index b705416c4..4f57e9f15 100644 --- a/docs/resources/destination_redshift.md +++ b/docs/resources/destination_redshift.md @@ -16,7 +16,7 @@ DestinationRedshift Resource resource "airbyte_destination_redshift" "my_destination_redshift" { configuration = { database = "...my_database..." - disable_type_dedupe = true + disable_type_dedupe = false drop_cascade = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." @@ -29,20 +29,25 @@ resource "airbyte_destination_redshift" "my_destination_redshift" { } uploading_method = { awss3_staging = { - access_key_id = "...my_access_key_id..." + access_key_id = "...my_access_key_id..." + encryption = { + aescbc_envelope_encryption = { + key_encrypting_key = "...my_key_encrypting_key..." + } + } file_name_pattern = "{timestamp}" purge_staging_data = false s3_bucket_name = "airbyte.staging" s3_bucket_path = "data_sync/test" - s3_bucket_region = "eu-south-2" + s3_bucket_region = "eu-central-2" secret_access_key = "...my_secret_access_key..." } } - username = "Devante10" + username = "Clark65" } - definition_id = "a29aaf3c-6807-40ec-a153-7042295e6e54" - name = "Ms. Edmund Douglas III" - workspace_id = "586b7399-0fea-469b-aba7-dc7cde8f8d83" + definition_id = "ab15fb45-8bad-49ea-b671-d5852a459de5" + name = "Jessica Runolfsdottir" + workspace_id = "420a295e-5c09-4962-877b-187a09875344" } ``` @@ -145,11 +150,31 @@ Required: Optional: +- `encryption` (Attributes) How to encrypt the staging data (see [below for nested schema](#nestedatt--configuration--uploading_method--awss3_staging--encryption)) - `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s) - `purge_staging_data` (Boolean) Whether to delete the staging files from S3 after completing the sync. See docs for details. Default: true - `s3_bucket_path` (String) The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See path's name recommendations for more details. - `s3_bucket_region` (String) The region of the S3 staging bucket. must be one of ["", "af-south-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-south-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "ap-southeast-4", "ca-central-1", "ca-west-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-central-2", "eu-north-1", "eu-south-1", "eu-south-2", "eu-west-1", "eu-west-2", "eu-west-3", "il-central-1", "me-central-1", "me-south-1", "sa-east-1", "us-east-1", "us-east-2", "us-gov-east-1", "us-gov-west-1", "us-west-1", "us-west-2"]; Default: "" + +### Nested Schema for `configuration.uploading_method.awss3_staging.s3_bucket_region` + +Optional: + +- `aescbc_envelope_encryption` (Attributes) Staging data will be encrypted using AES-CBC envelope encryption. (see [below for nested schema](#nestedatt--configuration--uploading_method--awss3_staging--s3_bucket_region--aescbc_envelope_encryption)) +- `no_encryption` (Attributes) Staging data will be stored in plaintext. (see [below for nested schema](#nestedatt--configuration--uploading_method--awss3_staging--s3_bucket_region--no_encryption)) + + +### Nested Schema for `configuration.uploading_method.awss3_staging.s3_bucket_region.aescbc_envelope_encryption` + +Optional: + +- `key_encrypting_key` (String, Sensitive) The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. + + + +### Nested Schema for `configuration.uploading_method.awss3_staging.s3_bucket_region.no_encryption` + ## Import Import is supported using the following syntax: diff --git a/docs/resources/destination_s3.md b/docs/resources/destination_s3.md index c66b9a025..2c812ee70 100644 --- a/docs/resources/destination_s3.md +++ b/docs/resources/destination_s3.md @@ -16,7 +16,7 @@ DestinationS3 Resource resource "airbyte_destination_s3" "my_destination_s3" { configuration = { access_key_id = "A012345678910EXAMPLE" - file_name_pattern = "{timestamp}" + file_name_pattern = "{date}" format = { avro_apache_avro = { compression_codec = { @@ -35,9 +35,9 @@ resource "airbyte_destination_s3" "my_destination_s3" { s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "aab15fb4-58ba-4d9e-a767-1d5852a459de" - name = "Bonnie Beatty" - workspace_id = "3420a295-e5c0-4996-a877-b187a0987534" + definition_id = "bc3217ac-be2a-4d9f-b186-486fc7b23d6b" + name = "Kyle Luettgen" + workspace_id = "0346c04b-193f-4b28-918e-382726ed560c" } ``` diff --git a/docs/resources/destination_s3_glue.md b/docs/resources/destination_s3_glue.md index 274f9034e..cce33c626 100644 --- a/docs/resources/destination_s3_glue.md +++ b/docs/resources/destination_s3_glue.md @@ -16,7 +16,7 @@ DestinationS3Glue Resource resource "airbyte_destination_s3_glue" "my_destination_s3glue" { configuration = { access_key_id = "A012345678910EXAMPLE" - file_name_pattern = "{date:yyyy_MM}" + file_name_pattern = "{sync_id}" format = { json_lines_newline_delimited_json = { compression = { @@ -29,17 +29,17 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" { } } glue_database = "airbyte_database" - glue_serialization_library = "org.openx.data.jsonserde.JsonSerDe" + glue_serialization_library = "org.apache.hive.hcatalog.data.JsonSerDe" s3_bucket_name = "airbyte_sync" s3_bucket_path = "data_sync/test" - s3_bucket_region = "me-central-1" + s3_bucket_region = "eu-south-1" s3_endpoint = "http://localhost:9000" s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "c3217acb-e2ad-49f3-9864-86fc7b23d6b8" - name = "Billie Wisoky I" - workspace_id = "46c04b19-3fb2-4891-8e38-2726ed560cd3" + definition_id = "e1f9eaf9-a8e2-4157-a856-0c89e77fd0c2" + name = "Marilyn Abshire" + workspace_id = "d396de60-f942-4f93-ba3c-59508dd11c7e" } ``` diff --git a/docs/resources/destination_sftp_json.md b/docs/resources/destination_sftp_json.md index ecd35855b..b89b538fa 100644 --- a/docs/resources/destination_sftp_json.md +++ b/docs/resources/destination_sftp_json.md @@ -19,11 +19,11 @@ resource "airbyte_destination_sftp_json" "my_destination_sftpjson" { host = "...my_host..." password = "...my_password..." port = 22 - username = "Kristin95" + username = "Araceli.Kiehn85" } - definition_id = "9eaf9a8e-2157-4a85-a0c8-9e77fd0c2020" - name = "Rick Sporer" - workspace_id = "6de60f94-2f93-47a3-8595-08dd11c7ed17" + definition_id = "5b00289a-0dc0-4232-9a5c-ae9f3888495e" + name = "Dr. Bennie Cassin" + workspace_id = "b305f362-4c43-4900-b25f-a3e33722ced9" } ``` diff --git a/docs/resources/destination_snowflake.md b/docs/resources/destination_snowflake.md index 8ac826852..1ef7a5f61 100644 --- a/docs/resources/destination_snowflake.md +++ b/docs/resources/destination_snowflake.md @@ -23,18 +23,18 @@ resource "airbyte_destination_snowflake" "my_destination_snowflake" { } database = "AIRBYTE_DATABASE" disable_type_dedupe = false - host = "accountname.us-east-2.aws.snowflakecomputing.com" + host = "accountname.snowflakecomputing.com" jdbc_url_params = "...my_jdbc_url_params..." raw_data_schema = "...my_raw_data_schema..." - retention_period_days = 9 + retention_period_days = 5 role = "AIRBYTE_ROLE" schema = "AIRBYTE_SCHEMA" username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "289a0dc0-2329-4a5c-ae9f-3888495eab20" - name = "Ira Ratke II" - workspace_id = "f3624c43-9007-425f-a3e3-3722ced92f8e" + definition_id = "f6fed365-1e7d-4549-a735-da213c86a8b9" + name = "Santiago Will" + workspace_id = "53876e3d-e30a-486e-8df1-9faac84c3184" } ``` @@ -66,7 +66,7 @@ Required: - `role` (String) Enter the role that you want to use to access Snowflake - `schema` (String) Enter the name of the default schema - `username` (String) Enter the name of the user you want to use to access the database -- `warehouse` (String) Enter the name of the warehouse that you want to use as a compute cluster +- `warehouse` (String) Enter the name of the warehouse that you want to sync data into Optional: diff --git a/docs/resources/destination_snowflake_cortex.md b/docs/resources/destination_snowflake_cortex.md index 0174fe592..257e3aac3 100644 --- a/docs/resources/destination_snowflake_cortex.md +++ b/docs/resources/destination_snowflake_cortex.md @@ -33,10 +33,10 @@ resource "airbyte_destination_snowflake_cortex" "my_destination_snowflakecortex" username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 9 - chunk_size = 2 + chunk_overlap = 2 + chunk_size = 0 field_name_mappings = [ { from_field = "...my_from_field..." @@ -51,14 +51,14 @@ resource "airbyte_destination_snowflake_cortex" "my_destination_snowflakecortex" ] text_splitter = { by_markdown_header = { - split_level = 4 + split_level = 6 } } } } - definition_id = "51e7d549-6735-4da2-93c8-6a8b9fef8f53" - name = "Jessie Jones" - workspace_id = "de30a86e-4df1-49fa-ac84-c31846ef3644" + definition_id = "6a04bb96-66e7-4d15-a7ee-dd4643586b68" + name = "Tommie Sporer I" + workspace_id = "c292fcfa-b73b-49ba-9d30-45674ad28dce" } ``` @@ -169,7 +169,7 @@ Required: - `host` (String) Enter the account name you want to use to access the database. This is usually the identifier before .snowflakecomputing.com - `role` (String) Enter the role that you want to use to access Snowflake - `username` (String) Enter the name of the user you want to use to access the database -- `warehouse` (String) Enter the name of the warehouse that you want to use as a compute cluster +- `warehouse` (String) Enter the name of the warehouse that you want to sync data into ### Nested Schema for `configuration.indexing.credentials` diff --git a/docs/resources/destination_teradata.md b/docs/resources/destination_teradata.md index 7e0d6d2cf..695ebbf8a 100644 --- a/docs/resources/destination_teradata.md +++ b/docs/resources/destination_teradata.md @@ -23,11 +23,11 @@ resource "airbyte_destination_teradata" "my_destination_teradata" { ssl_mode = { allow = {} } - username = "Lillian.Keebler" + username = "Arch_Stehr" } - definition_id = "4bb9666e-7d15-4e7e-add4-643586b689fd" - name = "Eric Fadel" - workspace_id = "92fcfab7-3b9b-4a5d-b045-674ad28dce71" + definition_id = "d713664c-8ab0-488c-a48e-91396f340754" + name = "Mr. Eula Heidenreich" + workspace_id = "86d04e60-8039-4bc7-ab07-32a47524bb49" } ``` diff --git a/docs/resources/destination_typesense.md b/docs/resources/destination_typesense.md index 40b361f9b..7c1616323 100644 --- a/docs/resources/destination_typesense.md +++ b/docs/resources/destination_typesense.md @@ -16,15 +16,15 @@ DestinationTypesense Resource resource "airbyte_destination_typesense" "my_destination_typesense" { configuration = { api_key = "...my_api_key..." - batch_size = 9 + batch_size = 0 host = "...my_host..." path = "...my_path..." port = "...my_port..." protocol = "...my_protocol..." } - definition_id = "7fd71366-4c8a-4b08-8c24-8e91396f3407" - name = "Pauline Hayes" - workspace_id = "00686d04-e608-4039-bc7e-b0732a47524b" + definition_id = "aa753ad1-1902-4ba1-8886-0231ad193af4" + name = "Raymond McDermott" + workspace_id = "c92d33ca-e7ed-4b40-9c23-9e69c6f21d65" } ``` diff --git a/docs/resources/destination_vectara.md b/docs/resources/destination_vectara.md index 63a76bad5..1399e1504 100644 --- a/docs/resources/destination_vectara.md +++ b/docs/resources/destination_vectara.md @@ -30,9 +30,9 @@ resource "airbyte_destination_vectara" "my_destination_vectara" { ] title_field = "document_key" } - definition_id = "490aa753-ad11-4902-ba18-8860231ad193" - name = "Emilio Gerhold V" - workspace_id = "85c92d33-cae7-4edb-801c-239e69c6f21d" + definition_id = "173cccbb-c51a-43ca-a62e-557cba0d3380" + name = "Beverly Murray" + workspace_id = "67fcf379-fa40-411e-ae8d-b1144f7f4dcb" } ``` diff --git a/docs/resources/destination_weaviate.md b/docs/resources/destination_weaviate.md index 2c94bfcfc..6d5bcc7e2 100644 --- a/docs/resources/destination_weaviate.md +++ b/docs/resources/destination_weaviate.md @@ -34,16 +34,16 @@ resource "airbyte_destination_weaviate" "my_destination_weaviate" { token = "...my_token..." } } - batch_size = 4 - default_vectorizer = "text2vec-huggingface" + batch_size = 1 + default_vectorizer = "text2vec-palm" host = "https://my-cluster.weaviate.network" tenant_id = "...my_tenant_id..." text_field = "...my_text_field..." } omit_raw_text = false processing = { - chunk_overlap = 1 - chunk_size = 4 + chunk_overlap = 0 + chunk_size = 5 field_name_mappings = [ { from_field = "...my_from_field..." @@ -58,14 +58,14 @@ resource "airbyte_destination_weaviate" "my_destination_weaviate" { ] text_splitter = { by_markdown_header = { - split_level = 2 + split_level = 4 } } } } - definition_id = "cccbbc51-a3ca-4a62-a557-cba0d338002a" - name = "Delores Jakubowski" - workspace_id = "cf379fa4-011e-4ae8-9b11-44f7f4dcb281" + definition_id = "8467e5cd-3332-485c-bcc3-fde334f786aa" + name = "Dale Padberg" + workspace_id = "527fe19e-b1bf-48ee-a339-467597e801e6" } ``` diff --git a/docs/resources/destination_yellowbrick.md b/docs/resources/destination_yellowbrick.md index 145c7c1f1..665aa9f04 100644 --- a/docs/resources/destination_yellowbrick.md +++ b/docs/resources/destination_yellowbrick.md @@ -28,11 +28,11 @@ resource "airbyte_destination_yellowbrick" "my_destination_yellowbrick" { tunnel_method = { no_tunnel = {} } - username = "Freida38" + username = "Jonathan.Mante" } - definition_id = "7e5cd333-285c-47cc-bfde-334f786aae3a" - name = "Boyd Hamill" - workspace_id = "fe19eb1b-f8ee-4233-9467-597e801e6768" + definition_id = "6f396c7c-6bf7-4372-8213-ca1059f1e303" + name = "Nancy Weimann PhD" + workspace_id = "aa50681b-c3ad-4b09-8c01-3842c101e265" } ``` diff --git a/docs/resources/permission.md b/docs/resources/permission.md index 5fe071003..dd63c8a85 100644 --- a/docs/resources/permission.md +++ b/docs/resources/permission.md @@ -14,10 +14,10 @@ Permission Resource ```terraform resource "airbyte_permission" "my_permission" { - organization_id = "9a46f396-c7c6-4bf7-b724-213ca1059f1e" - permission_type = "organization_editor" - user_id = "0360fc0e-aa50-4681-bc3a-db090c013842" - workspace_id = "c101e265-eebc-4230-b150-94cc21854edb" + organization_id = "eebc230b-1509-44cc-a185-4edb75e7d1c9" + permission_type = "workspace_reader" + user_id = "dc2da362-faf1-4b28-be26-cb1bb0550b4e" + workspace_id = "344126e7-f293-436e-a378-18d15373da8d" } ``` diff --git a/docs/resources/source_aha.md b/docs/resources/source_aha.md index d7da17830..1e1a66d87 100644 --- a/docs/resources/source_aha.md +++ b/docs/resources/source_aha.md @@ -18,10 +18,10 @@ resource "airbyte_source_aha" "my_source_aha" { api_key = "...my_api_key..." url = "...my_url..." } - definition_id = "75e7d1c9-ddc2-4da3-a2fa-f1b28fe26cb1" - name = "Jonathon Bahringer" + definition_id = "6eef0475-7630-4ddb-82db-f188dfabd571" + name = "Joyce Pagac" secret_id = "...my_secret_id..." - workspace_id = "0b4e3441-26e7-4f29-b36e-237818d15373" + workspace_id = "1dffa69f-e714-43a3-a9a2-44d7bc1a5a6e" } ``` diff --git a/docs/resources/source_aircall.md b/docs/resources/source_aircall.md index 4202a34df..f0d77310a 100644 --- a/docs/resources/source_aircall.md +++ b/docs/resources/source_aircall.md @@ -19,10 +19,10 @@ resource "airbyte_source_aircall" "my_source_aircall" { api_token = "...my_api_token..." start_date = "2022-03-01T00:00:00.000Z" } - definition_id = "8d6eef04-7576-430d-9bc2-dbf188dfabd5" - name = "Miss Ann Bode" + definition_id = "c1931372-2140-427e-a71b-638bd648d548" + name = "Lucille O'Conner" secret_id = "...my_secret_id..." - workspace_id = "61dffa69-fe71-443a-be9a-244d7bc1a5a6" + workspace_id = "b93d4bbd-e9f2-4bb8-8cd3-fe4ad282938c" } ``` diff --git a/docs/resources/source_airtable.md b/docs/resources/source_airtable.md index 770feae00..9fa5a6208 100644 --- a/docs/resources/source_airtable.md +++ b/docs/resources/source_airtable.md @@ -21,14 +21,14 @@ resource "airbyte_source_airtable" "my_source_airtable" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." refresh_token = "...my_refresh_token..." - token_expiry_date = "2022-09-01T07:21:46.506Z" + token_expiry_date = "2022-08-20T20:34:02.471Z" } } } - definition_id = "cc193137-2214-4027-ae71-b638bd648d54" - name = "Ryan Green" + definition_id = "27564451-7930-4ed8-943c-0dabba6ef9fc" + name = "Krista Franecki" secret_id = "...my_secret_id..." - workspace_id = "eb93d4bb-de9f-42bb-80cd-3fe4ad282938" + workspace_id = "4fd252e5-7aa6-473d-a825-9f0c220e39e1" } ``` diff --git a/docs/resources/source_amazon_ads.md b/docs/resources/source_amazon_ads.md index fd3814b76..8f64a13f8 100644 --- a/docs/resources/source_amazon_ads.md +++ b/docs/resources/source_amazon_ads.md @@ -17,7 +17,7 @@ resource "airbyte_source_amazon_ads" "my_source_amazonads" { configuration = { client_id = "...my_client_id..." client_secret = "...my_client_secret..." - look_back_window = 10 + look_back_window = 3 marketplace_ids = [ "...", ] @@ -25,19 +25,19 @@ resource "airbyte_source_amazon_ads" "my_source_amazonads" { 4, ] refresh_token = "...my_refresh_token..." - region = "NA" + region = "FE" report_record_types = [ - "asins_targets", + "targets", ] start_date = "2022-10-10" state_filter = [ - "enabled", + "archived", ] } - definition_id = "517930ed-8d43-4c0d-abba-6ef9fc3c3744" - name = "Bryant Christiansen" + definition_id = "849b0bdf-3d5c-4a96-8633-54ae1d23c3d1" + name = "Jaime Weimann" secret_id = "...my_secret_id..." - workspace_id = "e57aa673-d282-459f-8c22-0e39e10d6ef0" + workspace_id = "4df0d756-d8b0-4d90-9af9-186ab63a7b2e" } ``` diff --git a/docs/resources/source_amazon_seller_partner.md b/docs/resources/source_amazon_seller_partner.md index c802c1182..7d6807646 100644 --- a/docs/resources/source_amazon_seller_partner.md +++ b/docs/resources/source_amazon_seller_partner.md @@ -15,13 +15,13 @@ SourceAmazonSellerPartner Resource ```terraform resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" { configuration = { - account_type = "Vendor" + account_type = "Seller" aws_environment = "SANDBOX" lwa_app_id = "...my_lwa_app_id..." lwa_client_secret = "...my_lwa_client_secret..." - period_in_days = 7 + period_in_days = 5 refresh_token = "...my_refresh_token..." - region = "IT" + region = "MX" replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" report_options_list = [ @@ -32,15 +32,15 @@ resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" option_value = "...my_option_value..." }, ] - report_name = "GET_MERCHANT_LISTINGS_DATA" + report_name = "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING" stream_name = "...my_stream_name..." }, ] } - definition_id = "df3d5ca9-6c63-4354-ae1d-23c3d11ff934" - name = "Irvin Berge" + definition_id = "b1d1d8bb-57bf-4001-9db3-cf074d627d20" + name = "Karla Adams III" secret_id = "...my_secret_id..." - workspace_id = "56d8b0d9-0daf-4918-aab6-3a7b2e3879ec" + workspace_id = "9bb26e6b-9f25-4aa9-b8c7-d4107048d9ff" } ``` @@ -79,7 +79,7 @@ Optional: - `period_in_days` (Number) For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. Default: 90 - `region` (String) Select the AWS Region. must be one of ["AE", "AU", "BE", "BR", "CA", "DE", "EG", "ES", "FR", "GB", "IN", "IT", "JP", "MX", "NL", "PL", "SA", "SE", "SG", "TR", "UK", "US"]; Default: "US" - `replication_end_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. -- `replication_start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. +- `replication_start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided, the date 2 years ago from today will be used. - `report_options_list` (Attributes List) Additional information passed to reports. This varies by report type. (see [below for nested schema](#nestedatt--configuration--report_options_list)) diff --git a/docs/resources/source_amazon_sqs.md b/docs/resources/source_amazon_sqs.md index 37cf8bb3c..30e133b0b 100644 --- a/docs/resources/source_amazon_sqs.md +++ b/docs/resources/source_amazon_sqs.md @@ -21,14 +21,14 @@ resource "airbyte_source_amazon_sqs" "my_source_amazonsqs" { max_batch_size = 5 max_wait_time = 5 queue_url = "https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue" - region = "eu-west-3" + region = "ap-southeast-4" secret_key = "hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz" visibility_timeout = 15 } - definition_id = "d1d8bb57-bf00-41dd-b3cf-074d627d201b" - name = "Betsy Baumbach" + definition_id = "afeef69e-ad1e-45d3-a90e-fc6e828b1d2d" + name = "Wm Herman" secret_id = "...my_secret_id..." - workspace_id = "bb26e6b9-f25a-4a9f-8c7d-4107048d9ffe" + workspace_id = "a9ea927c-ae7b-429c-85e6-b85628652e0f" } ``` diff --git a/docs/resources/source_amplitude.md b/docs/resources/source_amplitude.md index b8cee089d..7aa74977b 100644 --- a/docs/resources/source_amplitude.md +++ b/docs/resources/source_amplitude.md @@ -17,14 +17,14 @@ resource "airbyte_source_amplitude" "my_source_amplitude" { configuration = { api_key = "...my_api_key..." data_region = "EU Residency Server" - request_time_range = 6 + request_time_range = 5 secret_key = "...my_secret_key..." start_date = "2021-01-25T00:00:00Z" } - definition_id = "afeef69e-ad1e-45d3-a90e-fc6e828b1d2d" - name = "Wm Herman" + definition_id = "21b517b1-6f1f-4884-abcd-5137451945c4" + name = "Mrs. Sylvia Howe" secret_id = "...my_secret_id..." - workspace_id = "a9ea927c-ae7b-429c-85e6-b85628652e0f" + workspace_id = "6ae8aa3c-4f28-4791-bb86-68105e1180fb" } ``` diff --git a/docs/resources/source_apify_dataset.md b/docs/resources/source_apify_dataset.md index 8ea7e2357..1ff43cdfc 100644 --- a/docs/resources/source_apify_dataset.md +++ b/docs/resources/source_apify_dataset.md @@ -18,10 +18,10 @@ resource "airbyte_source_apify_dataset" "my_source_apifydataset" { dataset_id = "rHuMdwm6xCFt6WiGU" token = "apify_api_PbVwb1cBbuvbfg2jRmAIHZKgx3NQyfEMG7uk" } - definition_id = "f83c21b5-17b1-46f1-b884-6bcd51374519" - name = "Renee Schamberger" + definition_id = "2a875a1c-a190-4e95-bd11-82a17eb0af63" + name = "Darin Windler" secret_id = "...my_secret_id..." - workspace_id = "360526ae-8aa3-4c4f-a879-13b8668105e1" + workspace_id = "3356f39b-ea5e-4208-9f0e-8905c8543b91" } ``` diff --git a/docs/resources/source_appfollow.md b/docs/resources/source_appfollow.md index 996caad97..1f4f7283e 100644 --- a/docs/resources/source_appfollow.md +++ b/docs/resources/source_appfollow.md @@ -17,10 +17,10 @@ resource "airbyte_source_appfollow" "my_source_appfollow" { configuration = { api_secret = "...my_api_secret..." } - definition_id = "180fb2a8-75a1-4ca1-90e9-5bd1182a17eb" - name = "Kayla Weimann" + definition_id = "84cac7dc-adad-4293-8da5-765e7880f00a" + name = "Brenda Stanton" secret_id = "...my_secret_id..." - workspace_id = "defa7335-6f39-4bea-9e20-89f0e8905c85" + workspace_id = "f9a90fa7-f8f4-441b-98df-c559a0bee1c5" } ``` diff --git a/docs/resources/source_asana.md b/docs/resources/source_asana.md index 67d74514a..78adae440 100644 --- a/docs/resources/source_asana.md +++ b/docs/resources/source_asana.md @@ -25,12 +25,12 @@ resource "airbyte_source_asana" "my_source_asana" { organization_export_ids = [ "{ \"see\": \"documentation\" }", ] - test_mode = false + test_mode = true } - definition_id = "3b9184ca-c7dc-4ada-9293-8da5765e7880" - name = "Matthew Bednar" + definition_id = "f2233892-0422-4616-84e7-3ef602c915f5" + name = "Ron Schimmel" secret_id = "...my_secret_id..." - workspace_id = "0ddef9a9-0fa7-4f8f-841b-58dfc559a0be" + workspace_id = "896557ce-17cc-4d6b-90d6-388d4fdfb9af" } ``` diff --git a/docs/resources/source_auth0.md b/docs/resources/source_auth0.md index e0ac1a662..aa75e042e 100644 --- a/docs/resources/source_auth0.md +++ b/docs/resources/source_auth0.md @@ -23,10 +23,10 @@ resource "airbyte_source_auth0" "my_source_auth0" { } start_date = "2023-08-05T00:43:59.244Z" } - definition_id = "e1c5ff22-3389-4204-a261-684e73ef602c" - name = "Raymond Halvorson" + definition_id = "007bc041-91be-4b05-bf07-c546621bdba9" + name = "Victoria Haley" secret_id = "...my_secret_id..." - workspace_id = "97cf5896-557c-4e17-8cd6-b10d6388d4fd" + workspace_id = "51ed0a81-81e6-4e55-bd9e-be7b2f5ca6ec" } ``` diff --git a/docs/resources/source_aws_cloudtrail.md b/docs/resources/source_aws_cloudtrail.md index 48d446ba4..07b55c5aa 100644 --- a/docs/resources/source_aws_cloudtrail.md +++ b/docs/resources/source_aws_cloudtrail.md @@ -18,16 +18,12 @@ resource "airbyte_source_aws_cloudtrail" "my_source_awscloudtrail" { aws_key_id = "...my_aws_key_id..." aws_region_name = "...my_aws_region_name..." aws_secret_key = "...my_aws_secret_key..." - lookup_attributes_filter = { - attribute_key = "EventName" - attribute_value = "ConsoleLogin" - } - start_date = "2021-01-01" + start_date = "2021-01-01" } - definition_id = "af007bc0-4191-4beb-857f-07c546621bdb" - name = "Ross Abshire" + definition_id = "af2b0521-0208-4e03-ab26-8d758466c963" + name = "Justin Bauch MD" secret_id = "...my_secret_id..." - workspace_id = "4f51ed0a-8181-4e6e-95fd-9ebe7b2f5ca6" + workspace_id = "394b84ac-df8d-4b6a-8f7e-23711b260f5d" } ``` @@ -56,21 +52,12 @@ resource "airbyte_source_aws_cloudtrail" "my_source_awscloudtrail" { Required: - `aws_key_id` (String, Sensitive) AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. +- `aws_region_name` (String) The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. - `aws_secret_key` (String, Sensitive) AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. Optional: -- `aws_region_name` (String) The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. Default: "us-east-1" -- `lookup_attributes_filter` (Attributes) (see [below for nested schema](#nestedatt--configuration--lookup_attributes_filter)) -- `start_date` (String) The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. - - -### Nested Schema for `configuration.lookup_attributes_filter` - -Optional: - -- `attribute_key` (String, Sensitive) Default: "EventName" -- `attribute_value` (String) Default: "ListInstanceAssociations" +- `start_date` (String) The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. Default: "1970-01-01" ## Import diff --git a/docs/resources/source_azure_blob_storage.md b/docs/resources/source_azure_blob_storage.md index 5798c1d5b..aa70c82de 100644 --- a/docs/resources/source_azure_blob_storage.md +++ b/docs/resources/source_azure_blob_storage.md @@ -29,10 +29,10 @@ resource "airbyte_source_azure_blob_storage" "my_source_azureblobstorage" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 9 + days_to_sync_if_history_is_full = 7 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ @@ -40,17 +40,17 @@ resource "airbyte_source_azure_blob_storage" "my_source_azureblobstorage" { ] input_schema = "...my_input_schema..." legacy_prefix = "...my_legacy_prefix..." - name = "Brendan Crist II" + name = "Al Sanford" primary_key = "...my_primary_key..." schemaless = true - validation_policy = "Emit Record" + validation_policy = "Wait for Discover" }, ] } - definition_id = "0208e036-b268-4d75-8466-c963e10b1b39" - name = "Karla Luettgen" + definition_id = "da3d51cb-c156-423e-8645-3ce6c3cf0d0e" + name = "Sandra Stroman III" secret_id = "...my_secret_id..." - workspace_id = "cdf8db6a-4f7e-4237-91b2-60f5d38a1edc" + workspace_id = "b8da7b81-43f8-451c-b99c-7fd70e50457d" } ``` diff --git a/docs/resources/source_azure_table.md b/docs/resources/source_azure_table.md index afc7668c9..ac39484cc 100644 --- a/docs/resources/source_azure_table.md +++ b/docs/resources/source_azure_table.md @@ -19,10 +19,10 @@ resource "airbyte_source_azure_table" "my_source_azuretable" { storage_account_name = "...my_storage_account_name..." storage_endpoint_suffix = "core.chinacloudapi.cn" } - definition_id = "36cda3d5-1cbc-4156-a3ec-6453ce6c3cf0" - name = "Joseph VonRueden PhD" + definition_id = "f4f64874-e62c-458d-8792-fd48887cb19c" + name = "Vickie Ullrich" secret_id = "...my_secret_id..." - workspace_id = "e16b8da7-b814-43f8-91cf-99c7fd70e504" + workspace_id = "b4573d66-d007-4e52-a2e4-396e7403ea2d" } ``` diff --git a/docs/resources/source_bamboo_hr.md b/docs/resources/source_bamboo_hr.md index 214fd0154..07a33bdfa 100644 --- a/docs/resources/source_bamboo_hr.md +++ b/docs/resources/source_bamboo_hr.md @@ -17,13 +17,13 @@ resource "airbyte_source_bamboo_hr" "my_source_bamboohr" { configuration = { api_key = "...my_api_key..." custom_reports_fields = "...my_custom_reports_fields..." - custom_reports_include_default_fields = true + custom_reports_include_default_fields = false subdomain = "...my_subdomain..." } - definition_id = "7dcf4f64-874e-462c-98d8-792fd48887cb" - name = "Toni Schaefer" + definition_id = "0959a4fa-50e8-407c-86bd-0cbf5314eea0" + name = "Miss Oliver Crooks" secret_id = "...my_secret_id..." - workspace_id = "ec8b4573-d66d-4007-a52a-2e4396e7403e" + workspace_id = "37367271-c78a-49aa-9603-df323c7d7845" } ``` diff --git a/docs/resources/source_bigquery.md b/docs/resources/source_bigquery.md index dc0c4b9ec..30c1845dd 100644 --- a/docs/resources/source_bigquery.md +++ b/docs/resources/source_bigquery.md @@ -19,10 +19,10 @@ resource "airbyte_source_bigquery" "my_source_bigquery" { dataset_id = "...my_dataset_id..." project_id = "...my_project_id..." } - definition_id = "a2d50959-a4fa-450e-807c-86bd0cbf5314" - name = "Dr. Tomas Nolan" + definition_id = "b7f8882a-1973-48b2-98b7-0494da21b79c" + name = "Lionel McKenzie" secret_id = "...my_secret_id..." - workspace_id = "21aa3736-7271-4c78-a9aa-9603df323c7d" + workspace_id = "f3821deb-7264-4dad-9e5f-b53126691bfb" } ``` diff --git a/docs/resources/source_bing_ads.md b/docs/resources/source_bing_ads.md index 640c2d64f..3393ac576 100644 --- a/docs/resources/source_bing_ads.md +++ b/docs/resources/source_bing_ads.md @@ -17,32 +17,32 @@ resource "airbyte_source_bing_ads" "my_source_bingads" { configuration = { account_names = [ { - name = "Jennie Gleason" - operator = "Contains" + name = "Eula Ritchie" + operator = "Equals" }, ] client_id = "...my_client_id..." client_secret = "...my_client_secret..." custom_reports = [ { - name = "custom report" + name = "Account Performance" report_aggregation = "...my_report_aggregation..." report_columns = [ "...", ] - reporting_object = "AdExtensionByKeywordReportRequest" + reporting_object = "ProductNegativeKeywordConflictReportRequest" }, ] developer_token = "...my_developer_token..." - lookback_window = 6 + lookback_window = 5 refresh_token = "...my_refresh_token..." - reports_start_date = "2022-10-18" + reports_start_date = "2022-01-16" tenant_id = "...my_tenant_id..." } - definition_id = "8b218b70-494d-4a21-b79c-fd9baf3821de" - name = "Kurt D'Amore" + definition_id = "472f2e8b-bfe1-4822-ba33-308df445f49b" + name = "Chester Dach" secret_id = "...my_secret_id..." - workspace_id = "dad9e5fb-5312-4669-9bfb-5db9ea24da51" + workspace_id = "9f17b5c6-1c8d-42f7-9d6e-e9c7e7401902" } ``` diff --git a/docs/resources/source_braintree.md b/docs/resources/source_braintree.md index 22336461d..7da4cd46a 100644 --- a/docs/resources/source_braintree.md +++ b/docs/resources/source_braintree.md @@ -15,16 +15,16 @@ SourceBraintree Resource ```terraform resource "airbyte_source_braintree" "my_source_braintree" { configuration = { - environment = "Qa" + environment = "Development" merchant_id = "...my_merchant_id..." private_key = "...my_private_key..." public_key = "...my_public_key..." - start_date = "2020-12-30" + start_date = "2020" } - definition_id = "472f2e8b-bfe1-4822-ba33-308df445f49b" - name = "Chester Dach" + definition_id = "430f8964-a321-4f43-9fb3-aad078a3612f" + name = "Abraham Herzog" secret_id = "...my_secret_id..." - workspace_id = "9f17b5c6-1c8d-42f7-9d6e-e9c7e7401902" + workspace_id = "fdd854e0-c39c-422f-a17d-f57adf10725f" } ``` diff --git a/docs/resources/source_braze.md b/docs/resources/source_braze.md index 105ae5fd6..72fe46691 100644 --- a/docs/resources/source_braze.md +++ b/docs/resources/source_braze.md @@ -16,13 +16,13 @@ SourceBraze Resource resource "airbyte_source_braze" "my_source_braze" { configuration = { api_key = "...my_api_key..." - start_date = "2022-08-21" + start_date = "2021-08-21" url = "...my_url..." } - definition_id = "195430f8-964a-4321-b431-fb3aad078a36" - name = "Wanda Wisoky" + definition_id = "f1a27e8f-d2f1-493d-8f9a-b29a2f8317de" + name = "Herbert Torphy" secret_id = "...my_secret_id..." - workspace_id = "5a7fdd85-4e0c-439c-a2fe-17df57adf107" + workspace_id = "ab02ccb9-0852-43df-96a0-cc4991982a68" } ``` diff --git a/docs/resources/source_cart.md b/docs/resources/source_cart.md index 365f39dc4..f23dbb815 100644 --- a/docs/resources/source_cart.md +++ b/docs/resources/source_cart.md @@ -18,16 +18,16 @@ resource "airbyte_source_cart" "my_source_cart" { credentials = { central_api_router = { site_id = "...my_site_id..." - user_name = "Briana_Hettinger45" + user_name = "Ceasar63" user_secret = "...my_user_secret..." } } start_date = "2021-01-01T00:00:00Z" } - definition_id = "f1a27e8f-d2f1-493d-8f9a-b29a2f8317de" - name = "Herbert Torphy" + definition_id = "7074f016-f721-427f-b3f8-652b2551b023" + name = "Mr. Spencer Casper" secret_id = "...my_secret_id..." - workspace_id = "ab02ccb9-0852-43df-96a0-cc4991982a68" + workspace_id = "a7ffb268-dc18-4708-bd37-ac99fd785161" } ``` diff --git a/docs/resources/source_chargebee.md b/docs/resources/source_chargebee.md index 0728d7ad6..50e2d61f2 100644 --- a/docs/resources/source_chargebee.md +++ b/docs/resources/source_chargebee.md @@ -20,10 +20,10 @@ resource "airbyte_source_chargebee" "my_source_chargebee" { site_api_key = "...my_site_api_key..." start_date = "2021-01-25T00:00:00Z" } - definition_id = "a7074f01-6f72-4127-b33f-8652b2551b02" - name = "Mr. Jana Runolfsson" + definition_id = "5e0c1f4b-65d9-4ebd-b57e-5946981cb460" + name = "Ms. Franklin Mraz" secret_id = "...my_secret_id..." - workspace_id = "4a7ffb26-8dc1-4870-87d3-7ac99fd78516" + workspace_id = "6308eadb-73c3-469b-a0c1-2ece59b9fbae" } ``` diff --git a/docs/resources/source_chartmogul.md b/docs/resources/source_chartmogul.md index 48fca59fd..e018813cc 100644 --- a/docs/resources/source_chartmogul.md +++ b/docs/resources/source_chartmogul.md @@ -18,10 +18,10 @@ resource "airbyte_source_chartmogul" "my_source_chartmogul" { api_key = "...my_api_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "305e0c1f-4b65-4d9e-bd75-7e5946981cb4" - name = "Maria Lubowitz" + definition_id = "e4749058-8d0e-4293-9574-a681eea74b87" + name = "Harold Willms IV" secret_id = "...my_secret_id..." - workspace_id = "1686308e-adb7-43c3-a9be-0c12ece59b9f" + workspace_id = "7d33223d-80bb-4993-a2d2-f45974a2ebc3" } ``` diff --git a/docs/resources/source_clazar.md b/docs/resources/source_clazar.md deleted file mode 100644 index 5e06ac6be..000000000 --- a/docs/resources/source_clazar.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_clazar Resource - terraform-provider-airbyte" -subcategory: "" -description: |- - SourceClazar Resource ---- - -# airbyte_source_clazar (Resource) - -SourceClazar Resource - -## Example Usage - -```terraform -resource "airbyte_source_clazar" "my_source_clazar" { - configuration = { - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." - } - definition_id = "baef8e47-4905-488d-8e29-39574a681eea" - name = "Danielle Rice" - secret_id = "...my_secret_id..." - workspace_id = "a1fb187d-3322-43d8-8bb9-9362d2f45974" -} -``` - - -## Schema - -### Required - -- `configuration` (Attributes) (see [below for nested schema](#nestedatt--configuration)) -- `name` (String) Name of the source e.g. dev-mysql-instance. -- `workspace_id` (String) - -### Optional - -- `definition_id` (String) The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed. -- `secret_id` (String) Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed. - -### Read-Only - -- `source_id` (String) -- `source_type` (String) - - -### Nested Schema for `configuration` - -Required: - -- `client_id` (String) -- `client_secret` (String) - -## Import - -Import is supported using the following syntax: - -```shell -terraform import airbyte_source_clazar.my_airbyte_source_clazar "" -``` diff --git a/docs/resources/source_clickhouse.md b/docs/resources/source_clickhouse.md index 7f8b6c868..7b4bc15f8 100644 --- a/docs/resources/source_clickhouse.md +++ b/docs/resources/source_clickhouse.md @@ -23,12 +23,12 @@ resource "airbyte_source_clickhouse" "my_source_clickhouse" { tunnel_method = { no_tunnel = {} } - username = "Camille_Walsh19" + username = "Johnpaul_Barton69" } - definition_id = "680abb37-6bce-466a-bc0c-e20da3e9aab7" - name = "Debbie Haley" + definition_id = "376bce66-a7c0-4ce2-8da3-e9aab71454cb" + name = "Charlotte Blick" secret_id = "...my_secret_id..." - workspace_id = "b241893e-1da4-46c4-b685-d205011b8862" + workspace_id = "3e1da46c-4f68-45d2-8501-1b8862473b75" } ``` diff --git a/docs/resources/source_clickup_api.md b/docs/resources/source_clickup_api.md index e4793f906..5b3f23414 100644 --- a/docs/resources/source_clickup_api.md +++ b/docs/resources/source_clickup_api.md @@ -17,15 +17,15 @@ resource "airbyte_source_clickup_api" "my_source_clickupapi" { configuration = { api_token = "...my_api_token..." folder_id = "...my_folder_id..." - include_closed_tasks = true + include_closed_tasks = false list_id = "...my_list_id..." space_id = "...my_space_id..." team_id = "...my_team_id..." } - definition_id = "73b75739-1086-418e-9144-5d83c494a849" - name = "Ms. Kristopher Hammes" + definition_id = "39108618-e914-445d-83c4-94a849cd517f" + name = "Sonja Douglas" secret_id = "...my_secret_id..." - workspace_id = "0e32c2e3-02e6-4de9-ab3e-43098446f983" + workspace_id = "2e302e6d-e92b-43e4-b098-446f9835e642" } ``` diff --git a/docs/resources/source_clockify.md b/docs/resources/source_clockify.md index 018d89936..185d00749 100644 --- a/docs/resources/source_clockify.md +++ b/docs/resources/source_clockify.md @@ -19,10 +19,10 @@ resource "airbyte_source_clockify" "my_source_clockify" { api_url = "...my_api_url..." workspace_id = "...my_workspace_id..." } - definition_id = "5e6422d1-5b82-4862-9a87-7d2e625cdd80" - name = "Matt Hermiston" + definition_id = "2d15b828-621a-4877-92e6-25cdd80ba5ff" + name = "Tiffany Runolfsdottir" secret_id = "...my_secret_id..." - workspace_id = "53c6fc10-ca67-4a82-bc3d-349f444d8a85" + workspace_id = "c10ca67a-827c-43d3-89f4-44d8a8589d84" } ``` diff --git a/docs/resources/source_close_com.md b/docs/resources/source_close_com.md index c5bfaf8e7..855385084 100644 --- a/docs/resources/source_close_com.md +++ b/docs/resources/source_close_com.md @@ -18,10 +18,10 @@ resource "airbyte_source_close_com" "my_source_closecom" { api_key = "...my_api_key..." start_date = "2021-01-01" } - definition_id = "d8494dcf-aea5-4500-b801-e9f446900c8f" - name = "Geoffrey Pfeffer" + definition_id = "dcfaea55-0038-401e-9f44-6900c8feba7b" + name = "Annette Schiller" secret_id = "...my_secret_id..." - workspace_id = "45cfea08-abdd-4a32-8f6c-373e06663420" + workspace_id = "a08abdda-328f-46c3-b3e0-6663420a6a3a" } ``` diff --git a/docs/resources/source_coda.md b/docs/resources/source_coda.md index 09d4161f2..e86c64150 100644 --- a/docs/resources/source_coda.md +++ b/docs/resources/source_coda.md @@ -17,10 +17,10 @@ resource "airbyte_source_coda" "my_source_coda" { configuration = { auth_token = "...my_auth_token..." } - definition_id = "a6a3ab4d-4475-45b9-90e5-c999e89cbd0e" - name = "Emmett Christiansen" + definition_id = "b4d44755-b910-4e5c-999e-89cbd0e8f2a3" + name = "Dr. Alexandra Runolfsson" secret_id = "...my_secret_id..." - workspace_id = "7cc1fbec-883d-4a2f-acd2-cab29e0bc600" + workspace_id = "ec883da2-fecd-42ca-b29e-0bc6002c3cc1" } ``` diff --git a/docs/resources/source_coin_api.md b/docs/resources/source_coin_api.md index 02406986e..9a24d8193 100644 --- a/docs/resources/source_coin_api.md +++ b/docs/resources/source_coin_api.md @@ -18,15 +18,15 @@ resource "airbyte_source_coin_api" "my_source_coinapi" { api_key = "...my_api_key..." end_date = "2019-01-01T00:00:00" environment = "sandbox" - limit = 8 - period = "5SEC" + limit = 2 + period = "2MTH" start_date = "2019-01-01T00:00:00" symbol_id = "...my_symbol_id..." } - definition_id = "cc123e87-83d5-40d4-92b8-0c50dc344f66" - name = "Dr. Randolph Wilderman" + definition_id = "8783d50d-4d2b-480c-90dc-344f66cbf0e9" + name = "Larry Hayes" secret_id = "...my_secret_id..." - workspace_id = "a05e994a-ce41-4dc5-b42f-2a228e88647f" + workspace_id = "94ace41d-c5b4-42f2-a228-e88647f2d427" } ``` diff --git a/docs/resources/source_coinmarketcap.md b/docs/resources/source_coinmarketcap.md index 9ac9ded61..fb9ef6efc 100644 --- a/docs/resources/source_coinmarketcap.md +++ b/docs/resources/source_coinmarketcap.md @@ -21,10 +21,10 @@ resource "airbyte_source_coinmarketcap" "my_source_coinmarketcap" { "...", ] } - definition_id = "d4275060-42c1-4c65-a61b-2485a060238e" - name = "Shaun Brakus" + definition_id = "06042c1c-6566-41b2-885a-060238eba136" + name = "Angelina Feeney Jr." secret_id = "...my_secret_id..." - workspace_id = "1d3c00cf-e1ba-468d-b405-02b96029febd" + workspace_id = "cfe1ba68-d340-4502-b960-29febd39e6ab" } ``` diff --git a/docs/resources/source_configcat.md b/docs/resources/source_configcat.md index 5d81393b0..818d1f9cd 100644 --- a/docs/resources/source_configcat.md +++ b/docs/resources/source_configcat.md @@ -16,12 +16,12 @@ SourceConfigcat Resource resource "airbyte_source_configcat" "my_source_configcat" { configuration = { password = "...my_password..." - username = "Clara.McDermott63" + username = "Wilmer_Bernier" } - definition_id = "bf17c2d5-0cb6-4e6f-b332-bdf145775fcb" - name = "Casey Boyer" + definition_id = "2d50cb6e-6ff3-432b-9f14-5775fcbb81a7" + name = "Tonya Kautzer" secret_id = "...my_secret_id..." - workspace_id = "466bf78b-3b7d-4ede-947f-c7c1cb53c351" + workspace_id = "78b3b7de-de54-47fc-bc1c-b53c351689dd" } ``` diff --git a/docs/resources/source_confluence.md b/docs/resources/source_confluence.md index e59592eb1..eff83453a 100644 --- a/docs/resources/source_confluence.md +++ b/docs/resources/source_confluence.md @@ -19,10 +19,10 @@ resource "airbyte_source_confluence" "my_source_confluence" { domain_name = "...my_domain_name..." email = "abc@example.com" } - definition_id = "3b3d7401-39dc-42cf-acb4-16442d85f5b6" - name = "Olga Collins" + definition_id = "740139dc-2cf2-4cb4-9644-2d85f5b6382e" + name = "Ms. Laura Upton" secret_id = "...my_secret_id..." - workspace_id = "0e18a817-2f93-4227-9c9f-9cbaa542e6e0" + workspace_id = "8172f932-271c-49f9-8baa-542e6e080961" } ``` diff --git a/docs/resources/source_convex.md b/docs/resources/source_convex.md index d5fc28ce2..28c1f6113 100644 --- a/docs/resources/source_convex.md +++ b/docs/resources/source_convex.md @@ -18,10 +18,10 @@ resource "airbyte_source_convex" "my_source_convex" { access_key = "...my_access_key..." deployment_url = "https://cluttered-owl-337.convex.cloud" } - definition_id = "0961d84c-3fbc-424f-860f-ce85198c116e" - name = "Nicole Howe" + definition_id = "84c3fbc2-4f86-40fc-a851-98c116e72658" + name = "Kellie Torphy" secret_id = "...my_secret_id..." - workspace_id = "1ee6770f-a8ec-41ba-804b-d6457a40e885" + workspace_id = "70fa8ec1-ba80-44bd-a457-a40e8851a354" } ``` diff --git a/docs/resources/source_custom.md b/docs/resources/source_custom.md index a375ffd9d..43e897221 100644 --- a/docs/resources/source_custom.md +++ b/docs/resources/source_custom.md @@ -15,10 +15,10 @@ SourceCustom Resource ```terraform resource "airbyte_source_custom" "my_source_custom" { configuration = { "user" : "charles" } - definition_id = "1a3541ba-6f5d-490d-9a8a-349e2072bdff" - name = "Carole Buckridge" + definition_id = "1ba6f5d9-0d5a-48a3-89e2-072bdff3818d" + name = "Dr. Rogelio Harris" secret_id = "...my_secret_id..." - workspace_id = "be50fcb3-2a78-4173-abb8-2e6a7189e925" + workspace_id = "b32a7817-3abb-482e-aa71-89e9256d7463" } ``` diff --git a/docs/resources/source_datadog.md b/docs/resources/source_datadog.md deleted file mode 100644 index 3027fdaf1..000000000 --- a/docs/resources/source_datadog.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_datadog Resource - terraform-provider-airbyte" -subcategory: "" -description: |- - SourceDatadog Resource ---- - -# airbyte_source_datadog (Resource) - -SourceDatadog Resource - -## Example Usage - -```terraform -resource "airbyte_source_datadog" "my_source_datadog" { - configuration = { - api_key = "...my_api_key..." - application_key = "...my_application_key..." - end_date = "2022-10-01T00:00:00Z" - max_records_per_request = 4 - queries = [ - { - data_source = "rum" - name = "Alicia Jakubowski" - query = "...my_query..." - }, - ] - query = "...my_query..." - site = "ddog-gov.com" - start_date = "2022-10-01T00:00:00Z" - } - definition_id = "14094639-cf5d-4d4a-8c05-f536f6b9b8b8" - name = "Sidney Ziemann" - secret_id = "...my_secret_id..." - workspace_id = "fbf365d6-87e0-487e-b905-b6a417faeb4f" -} -``` - - -## Schema - -### Required - -- `configuration` (Attributes) (see [below for nested schema](#nestedatt--configuration)) -- `name` (String) Name of the source e.g. dev-mysql-instance. -- `workspace_id` (String) - -### Optional - -- `definition_id` (String) The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed. -- `secret_id` (String) Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed. - -### Read-Only - -- `source_id` (String) -- `source_type` (String) - - -### Nested Schema for `configuration` - -Required: - -- `api_key` (String, Sensitive) Datadog API key -- `application_key` (String, Sensitive) Datadog application key - -Optional: - -- `end_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. -- `max_records_per_request` (Number) Maximum number of records to collect per request. Default: 5000 -- `queries` (Attributes List) List of queries to be run and used as inputs. (see [below for nested schema](#nestedatt--configuration--queries)) -- `query` (String) The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. -- `site` (String) The site where Datadog data resides in. must be one of ["datadoghq.com", "us3.datadoghq.com", "us5.datadoghq.com", "datadoghq.eu", "ddog-gov.com"]; Default: "datadoghq.com" -- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. - - -### Nested Schema for `configuration.queries` - -Required: - -- `data_source` (String) A data source that is powered by the platform. must be one of ["metrics", "cloud_cost", "logs", "rum"] -- `name` (String) The variable name for use in queries. -- `query` (String) A classic query string. - -## Import - -Import is supported using the following syntax: - -```shell -terraform import airbyte_source_datadog.my_airbyte_source_datadog "" -``` diff --git a/docs/resources/source_datascope.md b/docs/resources/source_datascope.md index 0fa35bae3..d7d394024 100644 --- a/docs/resources/source_datascope.md +++ b/docs/resources/source_datascope.md @@ -18,10 +18,10 @@ resource "airbyte_source_datascope" "my_source_datascope" { api_key = "...my_api_key..." start_date = "dd/mm/YYYY HH:MM" } - definition_id = "73b7e8dc-371e-4cbe-a105-11b439ed171c" - name = "Carroll Mayer" + definition_id = "8d140946-39cf-45dd-8a0c-05f536f6b9b8" + name = "Dave Willms" secret_id = "...my_secret_id..." - workspace_id = "b4783ac2-32bf-4a41-880b-23345c949a95" + workspace_id = "6afbf365-d687-4e08-be39-05b6a417faeb" } ``` diff --git a/docs/resources/source_delighted.md b/docs/resources/source_delighted.md index fa88a856f..586d392fe 100644 --- a/docs/resources/source_delighted.md +++ b/docs/resources/source_delighted.md @@ -18,10 +18,10 @@ resource "airbyte_source_delighted" "my_source_delighted" { api_key = "...my_api_key..." since = "2022-05-30T04:50:23Z" } - definition_id = "f5a34ff6-80c8-48d8-a9f7-431721e4227f" - name = "Clyde Boehm" + definition_id = "3b7e8dc3-71ec-4bee-9051-1b439ed171c9" + name = "Kirk Windler" secret_id = "...my_secret_id..." - workspace_id = "6ec345b5-c1ba-4e74-b26a-8cd9c5aad47a" + workspace_id = "4783ac23-2bfa-441c-80b2-3345c949a955" } ``` diff --git a/docs/resources/source_dixa.md b/docs/resources/source_dixa.md index 29167da99..24f5fdc40 100644 --- a/docs/resources/source_dixa.md +++ b/docs/resources/source_dixa.md @@ -16,13 +16,13 @@ SourceDixa Resource resource "airbyte_source_dixa" "my_source_dixa" { configuration = { api_token = "...my_api_token..." - batch_size = 31 + batch_size = 1 start_date = "YYYY-MM-DD" } - definition_id = "1e10d002-e1c7-43f9-ba1e-39a63be209ca" - name = "Vernon Mosciski" + definition_id = "a34ff680-c88d-48e9-b743-1721e4227fd5" + name = "Patty Huel" secret_id = "...my_secret_id..." - workspace_id = "b808ec8c-0a1f-4116-b1a5-6d068f4b5e4c" + workspace_id = "c345b5c1-bae7-4472-aa8c-d9c5aad47afd" } ``` diff --git a/docs/resources/source_dockerhub.md b/docs/resources/source_dockerhub.md index 9dcb38032..246ed4a93 100644 --- a/docs/resources/source_dockerhub.md +++ b/docs/resources/source_dockerhub.md @@ -17,10 +17,10 @@ resource "airbyte_source_dockerhub" "my_source_dockerhub" { configuration = { docker_username = "airbyte" } - definition_id = "19596433-e1d5-4148-8aac-586d055244c5" - name = "Stacey Herzog" + definition_id = "a11e10d0-02e1-4c73-b9ba-1e39a63be209" + name = "Ernesto Murazik" secret_id = "...my_secret_id..." - workspace_id = "57a2c261-8fe1-4b91-9cce-8e649d7675fb" + workspace_id = "3eb808ec-8c0a-41f1-9671-a56d068f4b5e" } ``` diff --git a/docs/resources/source_dremio.md b/docs/resources/source_dremio.md index 52f074de9..df652cba1 100644 --- a/docs/resources/source_dremio.md +++ b/docs/resources/source_dremio.md @@ -18,10 +18,10 @@ resource "airbyte_source_dremio" "my_source_dremio" { api_key = "...my_api_key..." base_url = "...my_base_url..." } - definition_id = "58122af6-a8ac-4655-b6a2-05f1e4d309ea" - name = "Mrs. Carole Beer" + definition_id = "4c195964-33e1-4d51-884a-ac586d055244" + name = "Floyd Hackett" secret_id = "...my_secret_id..." - workspace_id = "4fbd8663-14ca-4ce0-af96-b833556f7e41" + workspace_id = "b457a2c2-618f-4e1b-91dc-ce8e649d7675" } ``` diff --git a/docs/resources/source_dynamodb.md b/docs/resources/source_dynamodb.md index e9760f04f..a2897ed97 100644 --- a/docs/resources/source_dynamodb.md +++ b/docs/resources/source_dynamodb.md @@ -24,13 +24,13 @@ resource "airbyte_source_dynamodb" "my_source_dynamodb" { } endpoint = "https://{aws_dynamo_db_url}.com" ignore_missing_read_permissions_tables = false - region = "ap-northeast-1" + region = "me-central-1" reserved_attribute_names = "name, field_name, field-name" } - definition_id = "b36cf1af-cf94-4e3c-b9cb-eca1c7573a5b" - name = "Randolph Olson" + definition_id = "58122af6-a8ac-4655-b6a2-05f1e4d309ea" + name = "Mrs. Carole Beer" secret_id = "...my_secret_id..." - workspace_id = "d4c0a2ce-f781-4247-9bca-9a4804a9e0dd" + workspace_id = "4fbd8663-14ca-4ce0-af96-b833556f7e41" } ``` diff --git a/docs/resources/source_emailoctopus.md b/docs/resources/source_emailoctopus.md index c498d762f..3ac65c60e 100644 --- a/docs/resources/source_emailoctopus.md +++ b/docs/resources/source_emailoctopus.md @@ -17,10 +17,10 @@ resource "airbyte_source_emailoctopus" "my_source_emailoctopus" { configuration = { api_key = "...my_api_key..." } - definition_id = "c3156b2f-fd5d-46c6-9da5-497add71ffde" - name = "Herman Lesch" + definition_id = "81b36cf1-afcf-494e-bc79-cbeca1c7573a" + name = "Candice Rath" secret_id = "...my_secret_id..." - workspace_id = "09709edc-ef2c-4435-be7e-b149e6fe9a76" + workspace_id = "82d4c0a2-cef7-4812-875b-ca9a4804a9e0" } ``` diff --git a/docs/resources/source_exchange_rates.md b/docs/resources/source_exchange_rates.md index f62b5d9fd..0d44abbf5 100644 --- a/docs/resources/source_exchange_rates.md +++ b/docs/resources/source_exchange_rates.md @@ -20,10 +20,10 @@ resource "airbyte_source_exchange_rates" "my_source_exchangerates" { ignore_weekends = false start_date = "YYYY-MM-DD" } - definition_id = "1d6f7a77-e51b-404b-8d52-e6bc1e22381c" - name = "Salvatore Conroy" + definition_id = "156b2ffd-5d6c-469d-a549-7add71ffdea5" + name = "Ms. Reginald Nienow" secret_id = "...my_secret_id..." - workspace_id = "642f3c2f-e19c-432e-9fee-92bc3373ad2c" + workspace_id = "09edcef2-c435-47e7-ab14-9e6fe9a76bd2" } ``` diff --git a/docs/resources/source_facebook_marketing.md b/docs/resources/source_facebook_marketing.md index 9a1d901fe..e9440f184 100644 --- a/docs/resources/source_facebook_marketing.md +++ b/docs/resources/source_facebook_marketing.md @@ -19,57 +19,50 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { account_ids = [ "...", ] - action_breakdowns_allow_empty = false + action_breakdowns_allow_empty = true ad_statuses = [ - "IN_PROCESS", + "ADSET_PAUSED", ] adset_statuses = [ - "DELETED", + "PAUSED", ] campaign_statuses = [ - "WITH_ISSUES", + "DELETED", ] client_id = "...my_client_id..." client_secret = "...my_client_secret..." - credentials = { - authenticate_via_facebook_marketing_oauth = { - access_token = "...my_access_token..." - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." - } - } custom_insights = [ { action_breakdowns = [ - "action_carousel_card_id", + "standard_event_content_type", ] action_report_time = "impression" breakdowns = [ - "skan_conversion_id", + "media_text_content", ] end_date = "2017-01-26T00:00:00Z" fields = [ - "dda_results", + "video_play_curve_actions", ] - insights_job_timeout = 4 - insights_lookback_window = 7 - level = "adset" - name = "Scott Baumbach" + insights_job_timeout = 3 + insights_lookback_window = 1 + level = "campaign" + name = "Eleanor Prosacco" start_date = "2017-01-25T00:00:00Z" - time_increment = 5 + time_increment = 10 }, ] end_date = "2017-01-26T00:00:00Z" - fetch_thumbnail_images = true - insights_job_timeout = 3 - insights_lookback_window = 7 - page_size = 1 + fetch_thumbnail_images = false + insights_job_timeout = 1 + insights_lookback_window = 9 + page_size = 2 start_date = "2017-01-25T00:00:00Z" } - definition_id = "49e5b0b6-8d5f-4b4b-99e2-f7dc2833c76b" - name = "Sammy Hauck" + definition_id = "81cdc2e9-642f-43c2-be19-c32edfee92bc" + name = "Wendy Kunze" secret_id = "...my_secret_id..." - workspace_id = "566b4ade-0498-4ec4-8fd8-ad9161a05c5e" + workspace_id = "d2c887f2-8ef9-475a-bb10-2e5487915a2f" } ``` @@ -108,7 +101,6 @@ Optional: - `campaign_statuses` (List of String) Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. - `client_id` (String) The Client Id for your OAuth app - `client_secret` (String) The Client Secret for your OAuth app -- `credentials` (Attributes) Credentials for connecting to the Facebook Marketing API (see [below for nested schema](#nestedatt--configuration--credentials)) - `custom_insights` (Attributes List) A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. (see [below for nested schema](#nestedatt--configuration--custom_insights)) - `end_date` (String) The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. - `fetch_thumbnail_images` (Boolean) Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative. Default: false @@ -117,36 +109,6 @@ Optional: - `page_size` (Number) Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases. Default: 100 - `start_date` (String) The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 years for insight streams. - -### Nested Schema for `configuration.credentials` - -Optional: - -- `authenticate_via_facebook_marketing_oauth` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials--authenticate_via_facebook_marketing_oauth)) -- `service_account_key_authentication` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials--service_account_key_authentication)) - - -### Nested Schema for `configuration.credentials.authenticate_via_facebook_marketing_oauth` - -Required: - -- `client_id` (String) Client ID for the Facebook Marketing API -- `client_secret` (String) Client Secret for the Facebook Marketing API - -Optional: - -- `access_token` (String, Sensitive) The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. - - - -### Nested Schema for `configuration.credentials.service_account_key_authentication` - -Required: - -- `access_token` (String, Sensitive) The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. - - - ### Nested Schema for `configuration.custom_insights` diff --git a/docs/resources/source_faker.md b/docs/resources/source_faker.md index c18f9edbc..8884fdb4e 100644 --- a/docs/resources/source_faker.md +++ b/docs/resources/source_faker.md @@ -15,16 +15,16 @@ SourceFaker Resource ```terraform resource "airbyte_source_faker" "my_source_faker" { configuration = { - always_updated = true - count = 5 + always_updated = false + count = 2 parallelism = 6 - records_per_slice = 6 - seed = 5 + records_per_slice = 9 + seed = 3 } - definition_id = "7eae086e-3c2d-4330-82ab-840e56112c1f" - name = "Homer Bartoletti Jr." + definition_id = "b0b68d5f-b4b9-49e2-b7dc-2833c76bbd55" + name = "Jon Howell" secret_id = "...my_secret_id..." - workspace_id = "a5cfbec2-8765-44f1-abc8-4028fbb0cddc" + workspace_id = "4ade0498-ec40-4fd8-ad91-61a05c5e8899" } ``` diff --git a/docs/resources/source_fauna.md b/docs/resources/source_fauna.md index c670e0512..660ecb8fe 100644 --- a/docs/resources/source_fauna.md +++ b/docs/resources/source_fauna.md @@ -19,17 +19,17 @@ resource "airbyte_source_fauna" "my_source_fauna" { deletions = { disabled = {} } - page_size = 10 + page_size = 5 } domain = "...my_domain..." port = 5 scheme = "...my_scheme..." secret = "...my_secret..." } - definition_id = "02e3e601-6546-4635-ada9-b04e26c5d5cf" - name = "Elizabeth Ziemann" + definition_id = "eae086e3-c2d3-4308-aab8-40e56112c1fd" + name = "Mr. Kenneth Corkery" secret_id = "...my_secret_id..." - workspace_id = "713464ed-5bf6-4d67-b06c-c548e68cfaef" + workspace_id = "5cfbec28-7654-4f12-bc84-028fbb0cddcf" } ``` diff --git a/docs/resources/source_file.md b/docs/resources/source_file.md index 1492cb3bc..3e7b8bda0 100644 --- a/docs/resources/source_file.md +++ b/docs/resources/source_file.md @@ -16,7 +16,7 @@ SourceFile Resource resource "airbyte_source_file" "my_source_file" { configuration = { dataset_name = "...my_dataset_name..." - format = "yaml" + format = "excel_binary" provider = { az_blob_azure_blob_storage = { sas_token = "...my_sas_token..." @@ -25,12 +25,12 @@ resource "airbyte_source_file" "my_source_file" { } } reader_options = "{}" - url = "gs://my-google-bucket/data.csv" + url = "https://storage.googleapis.com/covid19-open-data/v2/latest/epidemiology.csv" } - definition_id = "0df143ee-10f8-4279-a427-b2c340e1d4b4" - name = "Mr. Carole Predovic" + definition_id = "e3e60165-4663-452d-a9b0-4e26c5d5cf50" + name = "Robin Wolf I" secret_id = "...my_secret_id..." - workspace_id = "62aeeab6-a16b-4c0f-9be5-567777324c6c" + workspace_id = "464ed5bf-6d67-4306-8c54-8e68cfaeff48" } ``` diff --git a/docs/resources/source_firebolt.md b/docs/resources/source_firebolt.md index 64033ab08..83a36a051 100644 --- a/docs/resources/source_firebolt.md +++ b/docs/resources/source_firebolt.md @@ -22,10 +22,10 @@ resource "airbyte_source_firebolt" "my_source_firebolt" { engine = "...my_engine..." host = "api.app.firebolt.io" } - definition_id = "a7fcdac6-3878-454b-a9c4-2e8b9a534c06" - name = "Merle Hills" + definition_id = "0df143ee-10f8-4279-a427-b2c340e1d4b4" + name = "Mr. Carole Predovic" secret_id = "...my_secret_id..." - workspace_id = "e94eff21-1adf-4c72-9dd1-f80239a92966" + workspace_id = "62aeeab6-a16b-4c0f-9be5-567777324c6c" } ``` diff --git a/docs/resources/source_fleetio.md b/docs/resources/source_fleetio.md index 32738f253..4ce17d0b8 100644 --- a/docs/resources/source_fleetio.md +++ b/docs/resources/source_fleetio.md @@ -18,10 +18,10 @@ resource "airbyte_source_fleetio" "my_source_fleetio" { account_token = "...my_account_token..." api_key = "...my_api_key..." } - definition_id = "0c93eb11-448c-41cd-bafe-5ef85381e22d" - name = "Miss Emilio Watsica" + definition_id = "a7fcdac6-3878-454b-a9c4-2e8b9a534c06" + name = "Merle Hills" secret_id = "...my_secret_id..." - workspace_id = "2224121e-6315-4be3-86a4-e83994413a7c" + workspace_id = "e94eff21-1adf-4c72-9dd1-f80239a92966" } ``` diff --git a/docs/resources/source_freshcaller.md b/docs/resources/source_freshcaller.md index d6421e677..1047eae86 100644 --- a/docs/resources/source_freshcaller.md +++ b/docs/resources/source_freshcaller.md @@ -17,14 +17,14 @@ resource "airbyte_source_freshcaller" "my_source_freshcaller" { configuration = { api_key = "...my_api_key..." domain = "snaptravel" - requests_per_minute = 5 + requests_per_minute = 0 start_date = "2022-01-01T12:00:00Z" - sync_lag_minutes = 3 + sync_lag_minutes = 2 } - definition_id = "c70b5882-c881-4a08-b8bf-df7e2fa4a636" - name = "Kim Tremblay" + definition_id = "eb11448c-1cd3-4afe-9ef8-5381e22d9fe1" + name = "Kristopher Champlin" secret_id = "...my_secret_id..." - workspace_id = "bba48ed6-d0ea-4f7f-94c7-c369f9cb0a3d" + workspace_id = "4121e631-5be3-406a-8e83-994413a7c75d" } ``` diff --git a/docs/resources/source_freshdesk.md b/docs/resources/source_freshdesk.md index 34f03e5cc..b3b5b9456 100644 --- a/docs/resources/source_freshdesk.md +++ b/docs/resources/source_freshdesk.md @@ -17,14 +17,14 @@ resource "airbyte_source_freshdesk" "my_source_freshdesk" { configuration = { api_key = "...my_api_key..." domain = "myaccount.freshdesk.com" - lookback_window_in_days = 9 - requests_per_minute = 0 + lookback_window_in_days = 3 + requests_per_minute = 8 start_date = "2020-12-01T00:00:00Z" } - definition_id = "7daef770-c81f-495c-9b8d-d2d32b37f6fe" - name = "Corey Schmitt MD" + definition_id = "b5882c88-1a08-478b-bdf7-e2fa4a63623e" + name = "Lucille Purdy" secret_id = "...my_secret_id..." - workspace_id = "4fda52f6-9543-4b86-a0d9-bb50480aaaf7" + workspace_id = "48ed6d0e-af7f-454c-bc36-9f9cb0a3dd00" } ``` diff --git a/docs/resources/source_freshsales.md b/docs/resources/source_freshsales.md index 39d2572db..7c7b99a1d 100644 --- a/docs/resources/source_freshsales.md +++ b/docs/resources/source_freshsales.md @@ -18,10 +18,10 @@ resource "airbyte_source_freshsales" "my_source_freshsales" { api_key = "...my_api_key..." domain_name = "mydomain.myfreshworks.com" } - definition_id = "7ae08fd2-caf8-43f0-8591-0a7c570570b8" - name = "Wendell Cartwright" + definition_id = "07daef77-0c81-4f95-85b8-dd2d32b37f6f" + name = "Wilbert Hettinger" secret_id = "...my_secret_id..." - workspace_id = "da4e6d7c-2fca-4a38-ada1-d2ddf0351c49" + workspace_id = "0a4fda52-f695-443b-8620-d9bb50480aaa" } ``` diff --git a/docs/resources/source_gainsight_px.md b/docs/resources/source_gainsight_px.md index 67941e5bb..24a5ad044 100644 --- a/docs/resources/source_gainsight_px.md +++ b/docs/resources/source_gainsight_px.md @@ -17,10 +17,10 @@ resource "airbyte_source_gainsight_px" "my_source_gainsightpx" { configuration = { api_key = "...my_api_key..." } - definition_id = "c6869005-1741-4425-a4d3-8a30ea56cdfa" - name = "Courtney Witting" + definition_id = "f77ae08f-d2ca-4f83-b045-910a7c570570" + name = "Guy Langosh III" secret_id = "...my_secret_id..." - workspace_id = "6225b4ba-e611-4122-913e-87b490ecc6bf" + workspace_id = "9da4e6d7-c2fc-4aa3-86da-1d2ddf0351c4" } ``` diff --git a/docs/resources/source_gcs.md b/docs/resources/source_gcs.md index 426084f22..8911f06e0 100644 --- a/docs/resources/source_gcs.md +++ b/docs/resources/source_gcs.md @@ -20,7 +20,7 @@ resource "airbyte_source_gcs" "my_source_gcs" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 1 + days_to_sync_if_history_is_full = 4 format = { csv_format = { delimiter = "...my_delimiter..." @@ -34,13 +34,13 @@ resource "airbyte_source_gcs" "my_source_gcs" { autogenerated = {} } ignore_errors_on_fields_mismatch = true - inference_type = "None" + inference_type = "Primitive Types Only" null_values = [ "...", ] quote_char = "...my_quote_char..." - skip_rows_after_header = 4 - skip_rows_before_header = 10 + skip_rows_after_header = 0 + skip_rows_before_header = 0 strings_can_be_null = true true_values = [ "...", @@ -52,17 +52,17 @@ resource "airbyte_source_gcs" "my_source_gcs" { ] input_schema = "...my_input_schema..." legacy_prefix = "...my_legacy_prefix..." - name = "Robert Franey" + name = "Mrs. Colleen Gusikowski" primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Emit Record" + schemaless = false + validation_policy = "Wait for Discover" }, ] } - definition_id = "1a97a1ae-8949-4629-832a-02ceacfe7e01" - name = "Mrs. Tabitha Moen" + definition_id = "4d38a30e-a56c-4dfa-a7fb-f6225b4bae61" + name = "Anna Collier Sr." secret_id = "...my_secret_id..." - workspace_id = "f2040e06-9282-4dd6-a12c-b01cbd9faeed" + workspace_id = "3e87b490-ecc6-4bf7-9161-16fc803c8311" } ``` diff --git a/docs/resources/source_getlago.md b/docs/resources/source_getlago.md index 9bd685e71..01507a091 100644 --- a/docs/resources/source_getlago.md +++ b/docs/resources/source_getlago.md @@ -18,10 +18,10 @@ resource "airbyte_source_getlago" "my_source_getlago" { api_key = "...my_api_key..." api_url = "...my_api_url..." } - definition_id = "a0582852-7913-4edf-8f9c-9058e69d20ee" - name = "Raquel Gutkowski" + definition_id = "a97a1ae8-9496-4294-b2a0-2ceacfe7e017" + name = "Fredrick Ankunding" secret_id = "...my_secret_id..." - workspace_id = "55c695e2-f08e-4b76-a351-cef20de4cfc3" + workspace_id = "f2040e06-9282-4dd6-a12c-b01cbd9faeed" } ``` diff --git a/docs/resources/source_github.md b/docs/resources/source_github.md index e9ffb94b7..b93aefd9a 100644 --- a/docs/resources/source_github.md +++ b/docs/resources/source_github.md @@ -15,7 +15,7 @@ SourceGithub Resource ```terraform resource "airbyte_source_github" "my_source_github" { configuration = { - api_url = "https://github.com" + api_url = "https://github.company.org" branch = "airbytehq/airbyte/master airbytehq/airbyte/my-branch" branches = [ "...", @@ -31,13 +31,13 @@ resource "airbyte_source_github" "my_source_github" { repositories = [ "...", ] - repository = "airbytehq/airbyte airbytehq/another-repo" + repository = "airbytehq/*" start_date = "2021-03-01T00:00:00Z" } - definition_id = "84cd8bc6-076e-4714-bbf0-cfd3aed54ef2" - name = "Lynette Bartoletti" + definition_id = "527913ed-fcf9-4c90-98e6-9d20ee3e4cb5" + name = "Rosalie Hoppe" secret_id = "...my_secret_id..." - workspace_id = "80e3db90-5020-415d-ade4-b8db33d2b3a2" + workspace_id = "e2f08eb7-6e35-41ce-b20d-e4cfc332b42c" } ``` diff --git a/docs/resources/source_gitlab.md b/docs/resources/source_gitlab.md index 5006fd0b5..2cd5b8925 100644 --- a/docs/resources/source_gitlab.md +++ b/docs/resources/source_gitlab.md @@ -22,7 +22,7 @@ resource "airbyte_source_gitlab" "my_source_gitlab" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." refresh_token = "...my_refresh_token..." - token_expiry_date = "2022-12-09T20:11:03.938Z" + token_expiry_date = "2022-03-12T08:01:10.085Z" } } groups = "airbyte.io" @@ -35,10 +35,10 @@ resource "airbyte_source_gitlab" "my_source_gitlab" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "42a10fbc-47ca-4706-9390-37c7eef972df" - name = "Rachael Boyer" + definition_id = "bc6076e7-14fb-4f0c-bd3a-ed54ef24d0de" + name = "Jeffrey Terry" secret_id = "...my_secret_id..." - workspace_id = "349fde89-ab27-46cb-ad00-caee12c4e65b" + workspace_id = "b9050201-5d2d-4e4b-8db3-3d2b3a27b0b3" } ``` diff --git a/docs/resources/source_glassfrog.md b/docs/resources/source_glassfrog.md index 56f30e595..683fd3b93 100644 --- a/docs/resources/source_glassfrog.md +++ b/docs/resources/source_glassfrog.md @@ -17,10 +17,10 @@ resource "airbyte_source_glassfrog" "my_source_glassfrog" { configuration = { api_key = "...my_api_key..." } - definition_id = "57e54a27-b617-4a01-ae6b-f68e1922df28" - name = "Mrs. Iris Jast" + definition_id = "42a10fbc-47ca-4706-9390-37c7eef972df" + name = "Rachael Boyer" secret_id = "...my_secret_id..." - workspace_id = "13a52314-031f-4d7b-82b3-c164c1950da3" + workspace_id = "349fde89-ab27-46cb-ad00-caee12c4e65b" } ``` diff --git a/docs/resources/source_gnews.md b/docs/resources/source_gnews.md index 0b3973c79..b2d005be4 100644 --- a/docs/resources/source_gnews.md +++ b/docs/resources/source_gnews.md @@ -16,25 +16,25 @@ SourceGnews Resource resource "airbyte_source_gnews" "my_source_gnews" { configuration = { api_key = "...my_api_key..." - country = "cn" + country = "in" end_date = "2022-08-21 16:27:09" in = [ - "content", + "description", ] - language = "ru" + language = "te" nullable = [ - "content", + "description", ] - query = "(Windows 7) AND (Windows 10)" + query = "Apple OR Microsoft" sortby = "relevance" start_date = "2022-08-21 16:27:09" - top_headlines_query = "Apple AND NOT iPhone" - top_headlines_topic = "sports" + top_headlines_query = "Microsoft Windows 10" + top_headlines_topic = "technology" } - definition_id = "5a75a7c5-fc21-4d72-ab31-0b676fb731c6" - name = "Pedro Champlin PhD" + definition_id = "b617a012-e6bf-468e-9922-df283a614313" + name = "Darrell Cummerata II" secret_id = "...my_secret_id..." - workspace_id = "9821d4fc-0324-42cc-9276-3a0d30eb91c3" + workspace_id = "031fd7b8-2b3c-4164-8195-0da31ebecd9b" } ``` diff --git a/docs/resources/source_google_ads.md b/docs/resources/source_google_ads.md index a7cf0f052..3b9b7c944 100644 --- a/docs/resources/source_google_ads.md +++ b/docs/resources/source_google_ads.md @@ -31,15 +31,15 @@ resource "airbyte_source_google_ads" "my_source_googleads" { ] customer_id = "6783948572,5839201945" customer_status_filter = [ - "CANCELED", + "SUSPENDED", ] end_date = "2017-01-30" start_date = "2017-01-25" } - definition_id = "c9948b00-6105-49fa-81d6-c9b0f0f35d94" - name = "Pearl Batz" + definition_id = "c5fc21d7-22b3-410b-a76f-b731c6d5241e" + name = "Dr. Armando Dibbert" secret_id = "...my_secret_id..." - workspace_id = "93ebb36d-8aae-4a00-b0c4-c84b89e625ba" + workspace_id = "fc03242c-cd27-463a-8d30-eb91c3df2593" } ``` diff --git a/docs/resources/source_google_analytics_data_api.md b/docs/resources/source_google_analytics_data_api.md index 4f7b77ae6..c4a98e125 100644 --- a/docs/resources/source_google_analytics_data_api.md +++ b/docs/resources/source_google_analytics_data_api.md @@ -38,12 +38,12 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda between_filter = { from_value = { double_value = { - value = 54.51 + value = 57.56 } } to_value = { double_value = { - value = 44.08 + value = 31.93 } } } @@ -64,12 +64,12 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda between_filter = { from_value = { double_value = { - value = 41.77 + value = 35.8 } } to_value = { double_value = { - value = 64.64 + value = 18.49 } } } @@ -81,21 +81,21 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda metrics = [ "...", ] - name = "Julia Stracke" + name = "Edmund Legros" }, ] date_ranges_start_date = "2021-01-01" - keep_empty_rows = true - lookback_window = 14 + keep_empty_rows = false + lookback_window = 2 property_ids = [ "...", ] - window_in_days = 200 + window_in_days = 30 } - definition_id = "7e953bf2-defe-4a2f-9145-f48d36313985" - name = "Kim Marvin" + definition_id = "183b00ec-7045-4956-803e-c7b8b68fdfc0" + name = "Miriam Deckow" secret_id = "...my_secret_id..." - workspace_id = "52d3206a-fb3a-4724-a60d-40134e58876c" + workspace_id = "fd673f59-a8d0-4acc-9948-b0061059fac1" } ``` diff --git a/docs/resources/source_google_analytics_v4_service_account_only.md b/docs/resources/source_google_analytics_v4_service_account_only.md new file mode 100644 index 000000000..012e02c44 --- /dev/null +++ b/docs/resources/source_google_analytics_v4_service_account_only.md @@ -0,0 +1,90 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "airbyte_source_google_analytics_v4_service_account_only Resource - terraform-provider-airbyte" +subcategory: "" +description: |- + SourceGoogleAnalyticsV4ServiceAccountOnly Resource +--- + +# airbyte_source_google_analytics_v4_service_account_only (Resource) + +SourceGoogleAnalyticsV4ServiceAccountOnly Resource + +## Example Usage + +```terraform +resource "airbyte_source_google_analytics_v4_service_account_only" "my_source_googleanalyticsv4serviceaccountonly" { + configuration = { + credentials = { + service_account_key_authentication = { + credentials_json = "{ \"type\": \"service_account\", \"project_id\": YOUR_PROJECT_ID, \"private_key_id\": YOUR_PRIVATE_KEY, ... }" + } + } + custom_reports = "...my_custom_reports..." + end_date = "2020-06-01" + start_date = "2020-06-01" + view_id = "...my_view_id..." + window_in_days = 200 + } + definition_id = "f0f35d94-2704-4e93-abb3-6d8aaea00f0c" + name = "Kara Macejkovic" + secret_id = "...my_secret_id..." + workspace_id = "89e625ba-e876-4a32-9c31-e1b4b67e953b" +} +``` + + +## Schema + +### Required + +- `configuration` (Attributes) (see [below for nested schema](#nestedatt--configuration)) +- `name` (String) Name of the source e.g. dev-mysql-instance. +- `workspace_id` (String) + +### Optional + +- `definition_id` (String) The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed. +- `secret_id` (String) Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed. + +### Read-Only + +- `source_id` (String) +- `source_type` (String) + + +### Nested Schema for `configuration` + +Required: + +- `start_date` (String) The date in the format YYYY-MM-DD. Any data before this date will not be replicated. +- `view_id` (String) The ID for the Google Analytics View you want to fetch data from. This can be found from the Google Analytics Account Explorer. + +Optional: + +- `credentials` (Attributes) Credentials for the service (see [below for nested schema](#nestedatt--configuration--credentials)) +- `custom_reports` (String) A JSON array describing the custom reports you want to sync from Google Analytics. See the docs for more information about the exact format you can use to fill out this field. +- `end_date` (String) The date in the format YYYY-MM-DD. Any data after this date will not be replicated. +- `window_in_days` (Number) The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the the docs. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. . Default: 1 + + +### Nested Schema for `configuration.credentials` + +Optional: + +- `service_account_key_authentication` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials--service_account_key_authentication)) + + +### Nested Schema for `configuration.credentials.service_account_key_authentication` + +Required: + +- `credentials_json` (String) The JSON key of the service account to use for authorization + +## Import + +Import is supported using the following syntax: + +```shell +terraform import airbyte_source_google_analytics_v4_service_account_only.my_airbyte_source_google_analytics_v4_service_account_only "" +``` diff --git a/docs/resources/source_google_directory.md b/docs/resources/source_google_directory.md index 90196a286..ea82164cd 100644 --- a/docs/resources/source_google_directory.md +++ b/docs/resources/source_google_directory.md @@ -18,14 +18,14 @@ resource "airbyte_source_google_directory" "my_source_googledirectory" { credentials = { service_account_key = { credentials_json = "...my_credentials_json..." - email = "Allan67@hotmail.com" + email = "Brittany_Steuber89@hotmail.com" } } } - definition_id = "128ae06a-57c7-4c57-baf1-e5baddd2747b" - name = "Sylvester Konopelski" + definition_id = "a2fd145f-48d3-4631-b985-539f352d3206" + name = "Amos Rath" secret_id = "...my_secret_id..." - workspace_id = "41709ce4-fe16-45bc-8840-e7fb5df25477" + workspace_id = "724a60d4-0134-4e58-876c-b030a128ae06" } ``` diff --git a/docs/resources/source_google_drive.md b/docs/resources/source_google_drive.md index 41d297ff9..d5974fb01 100644 --- a/docs/resources/source_google_drive.md +++ b/docs/resources/source_google_drive.md @@ -36,17 +36,17 @@ resource "airbyte_source_google_drive" "my_source_googledrive" { "...", ] input_schema = "...my_input_schema..." - name = "Jose Walter" + name = "Marianne Hartmann" primary_key = "...my_primary_key..." schemaless = true - validation_policy = "Skip Record" + validation_policy = "Wait for Discover" }, ] } - definition_id = "9bfb0cb9-d8df-4c27-a8c7-2c3eb5dc5571" - name = "Ms. Angelina Reilly" + definition_id = "1e5baddd-2747-4bbc-bf24-1709ce4fe165" + name = "Edmund Gleichner" secret_id = "...my_secret_id..." - workspace_id = "76987333-86b5-43a4-b9a0-805ff1793bf9" + workspace_id = "0e7fb5df-2547-47f3-b0b0-ec7c89bfb0cb" } ``` diff --git a/docs/resources/source_google_pagespeed_insights.md b/docs/resources/source_google_pagespeed_insights.md index 82db0c038..6d9a59b84 100644 --- a/docs/resources/source_google_pagespeed_insights.md +++ b/docs/resources/source_google_pagespeed_insights.md @@ -17,19 +17,19 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin configuration = { api_key = "...my_api_key..." categories = [ - "pwa", + "performance", ] strategies = [ - "desktop", + "mobile", ] urls = [ "...", ] } - definition_id = "99d63199-bd6b-4468-885e-c21a9ab567f1" - name = "Leticia Kling" + definition_id = "8dfc27a8-c72c-43eb-9dc5-5714db07d769" + name = "Lance Dicki" secret_id = "...my_secret_id..." - workspace_id = "51fa773f-cf1a-4430-ae08-2909d97bfabb" + workspace_id = "86b53a47-9a08-405f-b179-3bf9b799d631" } ``` diff --git a/docs/resources/source_google_search_console.md b/docs/resources/source_google_search_console.md index 80e4961f4..f1d5e6e4b 100644 --- a/docs/resources/source_google_search_console.md +++ b/docs/resources/source_google_search_console.md @@ -29,20 +29,20 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" dimensions = [ "page", ] - name = "Allen Jenkins MD" + name = "Randolph Stanton" }, ] - data_state = "all" + data_state = "final" end_date = "2021-12-12" site_urls = [ "...", ] - start_date = "2022-03-09" + start_date = "2021-06-12" } - definition_id = "9c174fee-4145-4562-9275-76235e52bb8a" - name = "Roosevelt Lebsack" + definition_id = "5ec21a9a-b567-4f13-877e-51fa773fcf1a" + name = "Connie Baumbach" secret_id = "...my_secret_id..." - workspace_id = "2a7f940d-ec44-4e21-adff-8929e4d23a00" + workspace_id = "082909d9-7bfa-4bba-9367-1a9ca1d9c174" } ``` diff --git a/docs/resources/source_google_sheets.md b/docs/resources/source_google_sheets.md index b79546671..51521d6b0 100644 --- a/docs/resources/source_google_sheets.md +++ b/docs/resources/source_google_sheets.md @@ -15,7 +15,7 @@ SourceGoogleSheets Resource ```terraform resource "airbyte_source_google_sheets" "my_source_googlesheets" { configuration = { - batch_size = 7 + batch_size = 10 credentials = { authenticate_via_google_o_auth = { client_id = "...my_client_id..." @@ -26,10 +26,10 @@ resource "airbyte_source_google_sheets" "my_source_googlesheets" { names_conversion = false spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit" } - definition_id = "94f7d68d-64a8-410b-a959-587ed0c47c0f" - name = "Roosevelt Waters" + definition_id = "e4145562-d275-4762-b5e5-2bb8adc8fd2a" + name = "Ebony McDermott PhD" secret_id = "...my_secret_id..." - workspace_id = "c0f294c1-1e4e-4993-9294-74281bb54dff" + workspace_id = "ec44e216-dff8-4929-a4d2-3a00b494f7d6" } ``` diff --git a/docs/resources/source_google_webfonts.md b/docs/resources/source_google_webfonts.md index a3741bc9c..3506ffbd5 100644 --- a/docs/resources/source_google_webfonts.md +++ b/docs/resources/source_google_webfonts.md @@ -20,10 +20,10 @@ resource "airbyte_source_google_webfonts" "my_source_googlewebfonts" { pretty_print = "...my_pretty_print..." sort = "...my_sort..." } - definition_id = "6cf9b79e-2328-488b-abde-25154a52da80" - name = "Todd Rodriguez" + definition_id = "8d64a810-b295-4958-bed0-c47c0f9ce33c" + name = "Kristie Davis" secret_id = "...my_secret_id..." - workspace_id = "49853a69-5093-45ad-936c-5004734e30b4" + workspace_id = "c11e4e99-3d29-4474-a81b-b54dff6cf9b7" } ``` diff --git a/docs/resources/source_greenhouse.md b/docs/resources/source_greenhouse.md index 184186891..25a001cb3 100644 --- a/docs/resources/source_greenhouse.md +++ b/docs/resources/source_greenhouse.md @@ -17,10 +17,10 @@ resource "airbyte_source_greenhouse" "my_source_greenhouse" { configuration = { api_key = "...my_api_key..." } - definition_id = "6b959e4e-758a-4c09-a271-19b95b60c98b" - name = "Mitchell Altenwerth" + definition_id = "9e232888-b6bd-4e25-954a-52da80f2bfa4" + name = "Isaac Hessel" secret_id = "...my_secret_id..." - workspace_id = "ab5561ce-1bb1-4cad-aa0e-328a3bd5563e" + workspace_id = "6950935a-d536-4c50-8473-4e30b46b959e" } ``` diff --git a/docs/resources/source_gridly.md b/docs/resources/source_gridly.md index e1c0e9974..c5875987f 100644 --- a/docs/resources/source_gridly.md +++ b/docs/resources/source_gridly.md @@ -18,10 +18,10 @@ resource "airbyte_source_gridly" "my_source_gridly" { api_key = "...my_api_key..." grid_id = "...my_grid_id..." } - definition_id = "04de287b-7526-45fd-bf2d-eb8cbf2674a9" - name = "Mary Fay" + definition_id = "4e758ac0-9227-4119-b95b-60c98bb7037a" + name = "Floyd Hermann DDS" secret_id = "...my_secret_id..." - workspace_id = "17bfcc52-6af1-40da-801f-b0fc52730b39" + workspace_id = "e1bb1cad-aa0e-4328-a3bd-5563e04de287" } ``` diff --git a/docs/resources/source_harvest.md b/docs/resources/source_harvest.md index a8bff4219..1ac4d435b 100644 --- a/docs/resources/source_harvest.md +++ b/docs/resources/source_harvest.md @@ -27,10 +27,10 @@ resource "airbyte_source_harvest" "my_source_harvest" { replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" } - definition_id = "41e4a898-5c78-4fa7-986b-df5bf91acb12" - name = "Helen Legros" + definition_id = "65fdff2d-eb8c-4bf2-a74a-92033b17bfcc" + name = "Theresa Kertzmann" secret_id = "...my_secret_id..." - workspace_id = "28d89e35-1e86-48df-9f2c-5ad84a46153e" + workspace_id = "10da401f-b0fc-4527-b0b3-9994a41e4a89" } ``` diff --git a/docs/resources/source_hubplanner.md b/docs/resources/source_hubplanner.md index 6b5157051..f9e515fa6 100644 --- a/docs/resources/source_hubplanner.md +++ b/docs/resources/source_hubplanner.md @@ -17,10 +17,10 @@ resource "airbyte_source_hubplanner" "my_source_hubplanner" { configuration = { api_key = "...my_api_key..." } - definition_id = "b240d626-d488-47cc-aaf5-8e0f5c1159d6" - name = "Frances Gutmann" + definition_id = "85c78fa7-d86b-4df5-bf91-acb121083728" + name = "Johnnie Maggio" secret_id = "...my_secret_id..." - workspace_id = "10eecfc7-f384-4ec6-8405-7d0451918db5" + workspace_id = "51e868df-1f2c-45ad-84a4-6153eb240d62" } ``` diff --git a/docs/resources/source_hubspot.md b/docs/resources/source_hubspot.md index 45d92d55c..f30cd255f 100644 --- a/docs/resources/source_hubspot.md +++ b/docs/resources/source_hubspot.md @@ -25,10 +25,10 @@ resource "airbyte_source_hubspot" "my_source_hubspot" { enable_experimental_streams = false start_date = "2017-01-25T00:00:00Z" } - definition_id = "bbbdb311-964f-499d-a774-5afb65f1720b" - name = "Javier Murray" + definition_id = "887ccaaf-58e0-4f5c-9159-d60149910eec" + name = "Leland Kshlerin" secret_id = "...my_secret_id..." - workspace_id = "c1916264-7e68-40e4-817c-6f4b509c8206" + workspace_id = "84ec6040-57d0-4451-918d-b5cccbbbdb31" } ``` diff --git a/docs/resources/source_insightly.md b/docs/resources/source_insightly.md index 7bb005013..b33833f3a 100644 --- a/docs/resources/source_insightly.md +++ b/docs/resources/source_insightly.md @@ -18,10 +18,10 @@ resource "airbyte_source_insightly" "my_source_insightly" { start_date = "2021-03-01T00:00:00Z" token = "...my_token..." } - definition_id = "b043ef09-e61b-475b-b267-65eab1ad8429" - name = "Eva Reinger" + definition_id = "64f99d67-745a-4fb6-9f17-20bd7a7ec191" + name = "Irene Huels" secret_id = "...my_secret_id..." - workspace_id = "59bdc8b9-3f80-4b7f-9570-94a97b6356d5" + workspace_id = "e680e441-7c6f-44b5-89c8-206a4b043ef0" } ``` diff --git a/docs/resources/source_instagram.md b/docs/resources/source_instagram.md index ceca59a26..a9edd7696 100644 --- a/docs/resources/source_instagram.md +++ b/docs/resources/source_instagram.md @@ -20,10 +20,10 @@ resource "airbyte_source_instagram" "my_source_instagram" { client_secret = "...my_client_secret..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "91630fd2-f131-4d4f-bef2-53f33ac135dc" - name = "Kevin Weissnat" + definition_id = "61b75b72-6765-4eab-9ad8-42954bd759bd" + name = "Clayton Prosacco" secret_id = "...my_secret_id..." - workspace_id = "794a97d5-acf5-4625-ba66-e5ad39192931" + workspace_id = "f80b7f55-7094-4a97-b635-6d53391630fd" } ``` diff --git a/docs/resources/source_instatus.md b/docs/resources/source_instatus.md index 882d28376..4554553fc 100644 --- a/docs/resources/source_instatus.md +++ b/docs/resources/source_instatus.md @@ -17,10 +17,10 @@ resource "airbyte_source_instatus" "my_source_instatus" { configuration = { api_key = "...my_api_key..." } - definition_id = "4c65ed70-eb17-4cb4-bc24-002ca0d01711" - name = "Bobby Heidenreich" + definition_id = "2f131d4f-bef2-453f-b3ac-135dc90f6379" + name = "Eunice Mayert" secret_id = "...my_secret_id..." - workspace_id = "8dde04a9-ce3b-4e57-bfa4-6127442775ed" + workspace_id = "5acf5625-3a66-4e5a-9391-929314c65ed7" } ``` diff --git a/docs/resources/source_intercom.md b/docs/resources/source_intercom.md index 9005cd51c..abeb68054 100644 --- a/docs/resources/source_intercom.md +++ b/docs/resources/source_intercom.md @@ -21,10 +21,10 @@ resource "airbyte_source_intercom" "my_source_intercom" { client_secret = "...my_client_secret..." start_date = "2020-11-16T00:00:00Z" } - definition_id = "4e17a648-8571-41ab-94fe-75a513e00977" - name = "Geneva Fisher" + definition_id = "7cb4fc24-002c-4a0d-8171-1f25a28dde04" + name = "Marshall Schinner" secret_id = "...my_secret_id..." - workspace_id = "7c06dd86-b4fb-4de6-ae53-955108cd8df8" + workspace_id = "be57bfa4-6127-4442-b75e-d08074e17a64" } ``` diff --git a/docs/resources/source_ip2whois.md b/docs/resources/source_ip2whois.md index 46a40dec8..032bd1800 100644 --- a/docs/resources/source_ip2whois.md +++ b/docs/resources/source_ip2whois.md @@ -18,10 +18,10 @@ resource "airbyte_source_ip2whois" "my_source_ip2whois" { api_key = "...my_api_key..." domain = "www.facebook.com" } - definition_id = "ddacae82-61af-48b9-bb48-50d654be1e78" - name = "Mercedes Turcotte" + definition_id = "85711ab9-4fe7-45a5-93e0-0977793827c0" + name = "Mable Stroman" secret_id = "...my_secret_id..." - workspace_id = "327e7787-5126-4eb5-a944-312d5d5e6a2d" + workspace_id = "b4fbde6a-e539-4551-88cd-8df8fddacae8" } ``` diff --git a/docs/resources/source_iterable.md b/docs/resources/source_iterable.md index 2ce80de15..9a69f37d0 100644 --- a/docs/resources/source_iterable.md +++ b/docs/resources/source_iterable.md @@ -18,10 +18,10 @@ resource "airbyte_source_iterable" "my_source_iterable" { api_key = "...my_api_key..." start_date = "2021-04-01T00:00:00Z" } - definition_id = "c0cc98dd-5412-4256-9139-361b0488926a" - name = "Marion Schimmel" + definition_id = "1af8b9bb-4850-4d65-8be1-e785de7e327e" + name = "Georgia Ledner" secret_id = "...my_secret_id..." - workspace_id = "2e85afcc-9acc-46e7-a95c-9a7c9f197511" + workspace_id = "126eb569-4431-42d5-95e6-a2d83c0cc98d" } ``` diff --git a/docs/resources/source_jira.md b/docs/resources/source_jira.md index bd09acac3..89f22ec08 100644 --- a/docs/resources/source_jira.md +++ b/docs/resources/source_jira.md @@ -17,9 +17,9 @@ resource "airbyte_source_jira" "my_source_jira" { configuration = { api_token = "...my_api_token..." domain = "jira..com" - email = "Celestino_Grimes@yahoo.com" + email = "Efren18@yahoo.com" enable_experimental_streams = false - expand_issue_changelog = true + expand_issue_changelog = false expand_issue_transition = false issues_stream_expand_with = [ "renderedFields", @@ -28,13 +28,13 @@ resource "airbyte_source_jira" "my_source_jira" { projects = [ "...", ] - render_fields = true + render_fields = false start_date = "2021-03-01T00:00:00Z" } - definition_id = "01aad5e5-f9cf-4b0d-9e8d-3acce90aeed1" - name = "Penny Koepp" + definition_id = "1b048892-6ab9-4cfe-ae85-afcc9acc6e7e" + name = "Herman Schowalter" secret_id = "...my_secret_id..." - workspace_id = "882d54ce-598c-4c59-ab95-2f06231c57fd" + workspace_id = "7c9f1975-11d6-4247-9658-5095001aad5e" } ``` diff --git a/docs/resources/source_k6_cloud.md b/docs/resources/source_k6_cloud.md index 8b60baa79..87eea07ed 100644 --- a/docs/resources/source_k6_cloud.md +++ b/docs/resources/source_k6_cloud.md @@ -17,10 +17,10 @@ resource "airbyte_source_k6_cloud" "my_source_k6cloud" { configuration = { api_token = "...my_api_token..." } - definition_id = "8f9d1baa-c6e0-45b1-a50c-14468d231cdd" - name = "Jordan Wunsch PhD" + definition_id = "5f9cfb0d-1e8d-43ac-8e90-aeed1087b988" + name = "Eula Hane" secret_id = "...my_secret_id..." - workspace_id = "deee1be4-e723-4eea-b419-bc59e04a869e" + workspace_id = "e598cc59-eb95-42f0-a231-c57fd8f9d1ba" } ``` diff --git a/docs/resources/source_klarna.md b/docs/resources/source_klarna.md index 20e728b06..0f120dc11 100644 --- a/docs/resources/source_klarna.md +++ b/docs/resources/source_klarna.md @@ -18,12 +18,12 @@ resource "airbyte_source_klarna" "my_source_klarna" { password = "...my_password..." playground = true region = "oc" - username = "Ben_Greenholt" + username = "Gretchen35" } - definition_id = "3b04e32d-c649-4b6b-88e2-c7d0de0f8a2b" - name = "Tanya Padberg" + definition_id = "b1e50c14-468d-4231-8dd9-8f81edeee1be" + name = "Sophia Kunze" secret_id = "...my_secret_id..." - workspace_id = "e20e7511-1fd0-4612-bfd3-df11978b3859" + workspace_id = "eeaf419b-c59e-404a-869e-9d149f3b04e3" } ``` diff --git a/docs/resources/source_klaviyo.md b/docs/resources/source_klaviyo.md index bb62d4a73..7b917ffb9 100644 --- a/docs/resources/source_klaviyo.md +++ b/docs/resources/source_klaviyo.md @@ -18,10 +18,10 @@ resource "airbyte_source_klaviyo" "my_source_klaviyo" { api_key = "...my_api_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "e3c921cc-9284-4a21-955c-54910609be9a" - name = "Ivan Grimes" + definition_id = "c649b6bc-8e2c-47d0-9e0f-8a2b57adde20" + name = "Mr. Erik Heathcote DVM" secret_id = "...my_secret_id..." - workspace_id = "b07bcaf1-3ed5-4606-ac59-e7c8aeeeb09f" + workspace_id = "d0612ffd-3df1-4197-8b38-5957e3c921cc" } ``` diff --git a/docs/resources/source_kyve.md b/docs/resources/source_kyve.md index 48b1a30f7..1b56eec27 100644 --- a/docs/resources/source_kyve.md +++ b/docs/resources/source_kyve.md @@ -15,16 +15,16 @@ SourceKyve Resource ```terraform resource "airbyte_source_kyve" "my_source_kyve" { configuration = { - max_pages = 10 - page_size = 9 - pool_ids = "0" + max_pages = 6 + page_size = 1 + pool_ids = "0,1" start_ids = "0" - url_base = "https://api.kaon.kyve.network/" + url_base = "https://api.korellia.kyve.network/" } - definition_id = "3fe46a14-03ba-41bd-8103-cfb422849b58" - name = "Constance Harris" + definition_id = "21155c54-9106-409b-a9a9-84e4b07bcaf1" + name = "Gwen Stark" secret_id = "...my_secret_id..." - workspace_id = "d79d74aa-20ea-469f-9b1a-975dd1b5a029" + workspace_id = "06ac59e7-c8ae-4eeb-89ff-d3753fe46a14" } ``` diff --git a/docs/resources/source_launchdarkly.md b/docs/resources/source_launchdarkly.md index 2b431e4d7..dcb4ef606 100644 --- a/docs/resources/source_launchdarkly.md +++ b/docs/resources/source_launchdarkly.md @@ -17,10 +17,10 @@ resource "airbyte_source_launchdarkly" "my_source_launchdarkly" { configuration = { access_token = "...my_access_token..." } - definition_id = "5b197bbb-0227-4d62-9c31-55f731c6e6bc" - name = "Kara O'Keefe III" + definition_id = "03ba1bd8-103c-4fb4-a284-9b585759fd79" + name = "Neil Gleichner" secret_id = "...my_secret_id..." - workspace_id = "6aee7892-5477-4f38-bc53-022ba4aed299" + workspace_id = "20ea69f1-b1a9-475d-91b5-a0295b197bbb" } ``` diff --git a/docs/resources/source_lemlist.md b/docs/resources/source_lemlist.md index 99f4ee488..67149f168 100644 --- a/docs/resources/source_lemlist.md +++ b/docs/resources/source_lemlist.md @@ -17,10 +17,10 @@ resource "airbyte_source_lemlist" "my_source_lemlist" { configuration = { api_key = "...my_api_key..." } - definition_id = "5c663b6d-13c6-4e3b-bb93-bd413d75c669" - name = "Molly Huels" + definition_id = "0227d625-c315-45f7-b1c6-e6bc1caf166a" + name = "Bert Kohler" secret_id = "...my_secret_id..." - workspace_id = "2ef16650-e4c3-4120-977a-566ac796fdac" + workspace_id = "25477f38-7c53-4022-ba4a-ed2995c663b6" } ``` diff --git a/docs/resources/source_lever_hiring.md b/docs/resources/source_lever_hiring.md index bc931f744..86959abb3 100644 --- a/docs/resources/source_lever_hiring.md +++ b/docs/resources/source_lever_hiring.md @@ -20,13 +20,13 @@ resource "airbyte_source_lever_hiring" "my_source_leverhiring" { api_key = "...my_api_key..." } } - environment = "Production" + environment = "Sandbox" start_date = "2021-03-01T00:00:00Z" } - definition_id = "f48b8f86-7010-454c-9db1-ce49a8fc7f8e" - name = "Anita Jacobson" + definition_id = "13c6e3bb-b93b-4d41-bd75-c6693a6b92ef" + name = "Rosemary Hyatt PhD" secret_id = "...my_secret_id..." - workspace_id = "645cfb24-49ee-4f87-a4eb-4b875ea1fa63" + workspace_id = "4c3120d7-7a56-46ac-b96f-dac1f48b8f86" } ``` diff --git a/docs/resources/source_linkedin_ads.md b/docs/resources/source_linkedin_ads.md index 9707f47c6..bfe294e6f 100644 --- a/docs/resources/source_linkedin_ads.md +++ b/docs/resources/source_linkedin_ads.md @@ -16,11 +16,11 @@ SourceLinkedinAds Resource resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { configuration = { account_ids = [ - 10, + 4, ] ad_analytics_reports = [ { - name = "Lynne Baumbach" + name = "Carolyn Bednar" pivot_by = "MEMBER_COUNTRY_V2" time_granularity = "ALL" }, @@ -32,10 +32,10 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { } start_date = "2021-05-17" } - definition_id = "3cfd915c-c53a-4e1f-9c37-b350ebb3981c" - name = "Marshall Yundt" + definition_id = "1ce49a8f-c7f8-4e24-a726-45cfb2449eef" + name = "Cory Johnson" secret_id = "...my_secret_id..." - workspace_id = "3f1e6164-cc87-488f-b77a-58933f7738d6" + workspace_id = "b4b875ea-1fa6-43f6-80fa-c1403cfd915c" } ``` diff --git a/docs/resources/source_linkedin_pages.md b/docs/resources/source_linkedin_pages.md index c11d1e7d9..acf346859 100644 --- a/docs/resources/source_linkedin_pages.md +++ b/docs/resources/source_linkedin_pages.md @@ -21,13 +21,13 @@ resource "airbyte_source_linkedin_pages" "my_source_linkedinpages" { } } org_id = "123456789" - start_date = "2022-02-20T02:33:55.102Z" - time_granularity_type = "MONTH" + start_date = "2022-01-06T04:41:29.233Z" + time_granularity_type = "DAY" } - definition_id = "7b7f8b16-c616-47f1-a8f0-042f92210b5c" - name = "Mrs. Edmond Cronin" + definition_id = "ae1f1c37-b350-4ebb-b981-c89f963f1e61" + name = "Anita Ryan" secret_id = "...my_secret_id..." - workspace_id = "6a775647-eb6b-4abc-8f9b-18b2eafdc453" + workspace_id = "788ff77a-5893-43f7-b38d-63dc7b7f8b16" } ``` diff --git a/docs/resources/source_linnworks.md b/docs/resources/source_linnworks.md index 3f847a769..4155ce4e5 100644 --- a/docs/resources/source_linnworks.md +++ b/docs/resources/source_linnworks.md @@ -17,13 +17,13 @@ resource "airbyte_source_linnworks" "my_source_linnworks" { configuration = { application_id = "...my_application_id..." application_secret = "...my_application_secret..." - start_date = "2020-11-23T19:16:47.007Z" + start_date = "2021-09-13T06:35:49.884Z" token = "...my_token..." } - definition_id = "6a0192c4-4771-42b4-a020-8830aabeffb8" - name = "Luther Kunde" + definition_id = "167f1e8f-0042-4f92-a10b-5c8f204e6a77" + name = "Gertrude Gutkowski" secret_id = "...my_secret_id..." - workspace_id = "1059b440-a5f2-4f61-a4e4-66849f7bbeaa" + workspace_id = "b6babc0f-9b18-4b2e-afdc-453fb6a0192c" } ``` diff --git a/docs/resources/source_lokalise.md b/docs/resources/source_lokalise.md index e7bef34bc..229f795b3 100644 --- a/docs/resources/source_lokalise.md +++ b/docs/resources/source_lokalise.md @@ -18,10 +18,10 @@ resource "airbyte_source_lokalise" "my_source_lokalise" { api_key = "...my_api_key..." project_id = "...my_project_id..." } - definition_id = "ef524043-cb4c-4473-a8c7-bd5915174a55" - name = "Melba Shields" + definition_id = "447712b4-a020-4883-8aab-effb8d976510" + name = "Lindsey Pouros" secret_id = "...my_secret_id..." - workspace_id = "1daf7626-ef51-4c5f-a52e-0c6c0cc93e76" + workspace_id = "0a5f2f61-a4e4-4668-89f7-bbeaaef52404" } ``` diff --git a/docs/resources/source_mailchimp.md b/docs/resources/source_mailchimp.md index e8150146a..5f21c3b99 100644 --- a/docs/resources/source_mailchimp.md +++ b/docs/resources/source_mailchimp.md @@ -23,10 +23,10 @@ resource "airbyte_source_mailchimp" "my_source_mailchimp" { data_center = "...my_data_center..." start_date = "2020-01-01T00:00:00.000Z" } - definition_id = "fdef541f-06ca-413b-9e89-c1488faa411d" - name = "Mack Maggio" + definition_id = "b4c473e8-c7bd-4591-9174-a553fda41daf" + name = "Agnes Cronin" secret_id = "...my_secret_id..." - workspace_id = "269c9d64-8f0b-4ccd-92e9-5af6ed3c47c1" + workspace_id = "f51c5fa5-2e0c-46c0-8c93-e76e9fdef541" } ``` diff --git a/docs/resources/source_mailgun.md b/docs/resources/source_mailgun.md index 12d2faded..6d629023b 100644 --- a/docs/resources/source_mailgun.md +++ b/docs/resources/source_mailgun.md @@ -15,14 +15,14 @@ SourceMailgun Resource ```terraform resource "airbyte_source_mailgun" "my_source_mailgun" { configuration = { - domain_region = "US" + domain_region = "EU" private_key = "...my_private_key..." start_date = "2023-08-01T00:00:00Z" } - definition_id = "0113c2d3-cb5e-4aa6-8b86-a42dbbb853ec" - name = "Jeannette Hayes" + definition_id = "ca13b1e8-9c14-488f-aa41-1d9d922269c9" + name = "Ricardo Gutmann" secret_id = "...my_secret_id..." - workspace_id = "a18b0d79-003d-4e8d-a443-bfaadd29a6df" + workspace_id = "0bccdd2e-95af-46ed-bc47-c14160113c2d" } ``` diff --git a/docs/resources/source_mailjet_sms.md b/docs/resources/source_mailjet_sms.md index 4a73cf3a5..5f5092f85 100644 --- a/docs/resources/source_mailjet_sms.md +++ b/docs/resources/source_mailjet_sms.md @@ -19,10 +19,10 @@ resource "airbyte_source_mailjet_sms" "my_source_mailjetsms" { start_date = 1666261656 token = "...my_token..." } - definition_id = "cb6bf32f-af82-45be-a4ec-87aaffeb9ea2" - name = "Robert Windler" + definition_id = "b5eaa64b-86a4-42db-bb85-3ec4b5e6a18b" + name = "Christie Kshlerin Jr." secret_id = "...my_secret_id..." - workspace_id = "9f4166b4-2b69-4c61-927b-bad3f0bf8ca7" + workspace_id = "3de8da44-3bfa-4add-a9a6-dff6cb6bf32f" } ``` diff --git a/docs/resources/source_marketo.md b/docs/resources/source_marketo.md index 74dfa5cfc..6200a7841 100644 --- a/docs/resources/source_marketo.md +++ b/docs/resources/source_marketo.md @@ -20,10 +20,10 @@ resource "airbyte_source_marketo" "my_source_marketo" { domain_url = "https://000-AAA-000.mktorest.com" start_date = "2020-09-25T00:00:00Z" } - definition_id = "bfb1506e-5d6d-4eb8-b49c-82f283fdf1b3" - name = "Judith Pfannerstill" + definition_id = "825bea4e-c87a-4aff-ab9e-a290f7e9f416" + name = "Bridget Gutmann" secret_id = "...my_secret_id..." - workspace_id = "f9cacc87-9ba7-4ac0-9647-dc7c271c5044" + workspace_id = "69c61d27-bbad-43f0-bf8c-a743bfb1506e" } ``` diff --git a/docs/resources/source_metabase.md b/docs/resources/source_metabase.md index 44abc65d0..a8960ea12 100644 --- a/docs/resources/source_metabase.md +++ b/docs/resources/source_metabase.md @@ -18,12 +18,12 @@ resource "airbyte_source_metabase" "my_source_metabase" { instance_api_url = "https://localhost:3000/api/" password = "...my_password..." session_token = "...my_session_token..." - username = "Lisandro_Champlin" + username = "Fatima_Simonis" } - definition_id = "4f7e4eab-e3a9-4776-8e79-345d14463033" - name = "Priscilla Zulauf" + definition_id = "eb8b49c8-2f28-43fd-b1b3-62a3ef9cacc8" + name = "Misty Price" secret_id = "...my_secret_id..." - workspace_id = "cf10b074-2b93-4b49-9111-a320ccad5adc" + workspace_id = "ac01647d-c7c2-471c-9044-a25a4f7e4eab" } ``` diff --git a/docs/resources/source_microsoft_onedrive.md b/docs/resources/source_microsoft_onedrive.md index 0b3bdd4c0..bcbfb6739 100644 --- a/docs/resources/source_microsoft_onedrive.md +++ b/docs/resources/source_microsoft_onedrive.md @@ -25,11 +25,11 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { } drive_name = "...my_drive_name..." folder_path = "...my_folder_path..." - search_scope = "ACCESSIBLE_DRIVES" + search_scope = "ALL" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 0 + days_to_sync_if_history_is_full = 6 format = { avro_format = { double_as_string = true @@ -39,17 +39,17 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { "...", ] input_schema = "...my_input_schema..." - name = "Derek Kuhlman" + name = "Jeanette Larson" primary_key = "...my_primary_key..." schemaless = true validation_policy = "Emit Record" }, ] } - definition_id = "95b5ae04-23a6-4249-a514-955fa2ea25a5" - name = "Rosemarie Kulas Sr." + definition_id = "45d14463-0331-48f2-9cf1-0b0742b93b49" + name = "Miss Joshua Brekke" secret_id = "...my_secret_id..." - workspace_id = "e389cc42-00a4-4abb-b299-a611cc7be3e8" + workspace_id = "20ccad5a-dc13-430e-b574-88395b5ae042" } ``` @@ -145,12 +145,12 @@ Optional: - `avro_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--avro_format)) - `csv_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--csv_format)) +- `document_file_type_format_experimental` (Attributes) Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. (see [below for nested schema](#nestedatt--configuration--streams--format--document_file_type_format_experimental)) - `jsonl_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--jsonl_format)) - `parquet_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format)) -- `unstructured_document_format` (Attributes) Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format)) -### Nested Schema for `configuration.streams.format.unstructured_document_format` +### Nested Schema for `configuration.streams.format.parquet_format` Optional: @@ -158,7 +158,7 @@ Optional: -### Nested Schema for `configuration.streams.format.unstructured_document_format` +### Nested Schema for `configuration.streams.format.parquet_format` Optional: @@ -167,7 +167,7 @@ Optional: - `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options. Default: "utf8" - `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank. - `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values. -- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition)) +- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition)) - `ignore_errors_on_fields_mismatch` (Boolean) Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. Default: false - `null_values` (List of String) A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. - `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank. Default: "\"" @@ -176,25 +176,25 @@ Optional: - `strings_can_be_null` (Boolean) Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. Default: true - `true_values` (List of String) A set of case-sensitive strings that should be interpreted as true values. - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition` Optional: -- `autogenerated` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition--autogenerated)) -- `from_csv` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition--from_csv)) -- `user_provided` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition--user_provided)) +- `autogenerated` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition--autogenerated)) +- `from_csv` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition--from_csv)) +- `user_provided` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition--user_provided)) - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition.user_provided` - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition.user_provided` - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition.user_provided` Required: @@ -203,36 +203,38 @@ Required: - -### Nested Schema for `configuration.streams.format.unstructured_document_format` + +### Nested Schema for `configuration.streams.format.parquet_format` +Optional: - -### Nested Schema for `configuration.streams.format.unstructured_document_format` +- `processing` (Attributes) Processing configuration (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--processing)) +- `skip_unprocessable_files` (Boolean) If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. Default: true +- `strategy` (String) 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. must be one of ["auto", "fast", "ocr_only", "hi_res"]; Default: "auto" + + +### Nested Schema for `configuration.streams.format.parquet_format.processing` Optional: -- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false +- `local` (Attributes) Process files locally, supporting `fast` and `ocr` modes. This is the default option. (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--processing--local)) + +### Nested Schema for `configuration.streams.format.parquet_format.processing.local` - -### Nested Schema for `configuration.streams.format.unstructured_document_format` -Optional: -- `processing` (Attributes) Processing configuration (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing)) -- `skip_unprocessable_files` (Boolean) If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. Default: true -- `strategy` (String) 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. must be one of ["auto", "fast", "ocr_only", "hi_res"]; Default: "auto" - -### Nested Schema for `configuration.streams.format.unstructured_document_format.processing` + +### Nested Schema for `configuration.streams.format.parquet_format` -Optional: -- `local` (Attributes) Process files locally, supporting `fast` and `ocr` modes. This is the default option. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing--local)) + +### Nested Schema for `configuration.streams.format.parquet_format` + +Optional: - -### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.local` +- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false ## Import diff --git a/docs/resources/source_microsoft_sharepoint.md b/docs/resources/source_microsoft_sharepoint.md index cffdaf77c..70a409e23 100644 --- a/docs/resources/source_microsoft_sharepoint.md +++ b/docs/resources/source_microsoft_sharepoint.md @@ -24,31 +24,31 @@ resource "airbyte_source_microsoft_sharepoint" "my_source_microsoftsharepoint" { } } folder_path = "...my_folder_path..." - search_scope = "ALL" + search_scope = "ACCESSIBLE_DRIVES" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 0 + days_to_sync_if_history_is_full = 1 format = { avro_format = { - double_as_string = true + double_as_string = false } } globs = [ "...", ] input_schema = "...my_input_schema..." - name = "Mrs. Al Schamberger" + name = "Mrs. Alfonso Hayes" primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Emit Record" + schemaless = false + validation_policy = "Skip Record" }, ] } - definition_id = "c2050fdf-2ba7-4d43-920d-3384e15ed535" - name = "Marilyn Kunde" + definition_id = "fa2ea25a-51d7-4622-a389-cc4200a4abb3" + name = "Bobbie McCullough" secret_id = "...my_secret_id..." - workspace_id = "faeabade-b93c-4772-879b-6069b6a28df3" + workspace_id = "11cc7be3-e8ba-4718-8dc0-5c92c2050fdf" } ``` @@ -146,12 +146,12 @@ Optional: - `avro_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--avro_format)) - `csv_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--csv_format)) +- `document_file_type_format_experimental` (Attributes) Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. (see [below for nested schema](#nestedatt--configuration--streams--format--document_file_type_format_experimental)) - `jsonl_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--jsonl_format)) - `parquet_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format)) -- `unstructured_document_format` (Attributes) Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format)) -### Nested Schema for `configuration.streams.format.unstructured_document_format` +### Nested Schema for `configuration.streams.format.parquet_format` Optional: @@ -159,7 +159,7 @@ Optional: -### Nested Schema for `configuration.streams.format.unstructured_document_format` +### Nested Schema for `configuration.streams.format.parquet_format` Optional: @@ -168,7 +168,7 @@ Optional: - `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options. Default: "utf8" - `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank. - `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values. -- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition)) +- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition)) - `ignore_errors_on_fields_mismatch` (Boolean) Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. Default: false - `null_values` (List of String) A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. - `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank. Default: "\"" @@ -177,25 +177,25 @@ Optional: - `strings_can_be_null` (Boolean) Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. Default: true - `true_values` (List of String) A set of case-sensitive strings that should be interpreted as true values. - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition` Optional: -- `autogenerated` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition--autogenerated)) -- `from_csv` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition--from_csv)) -- `user_provided` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition--user_provided)) +- `autogenerated` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition--autogenerated)) +- `from_csv` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition--from_csv)) +- `user_provided` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition--user_provided)) - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition.user_provided` - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition.user_provided` - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition.user_provided` Required: @@ -204,36 +204,38 @@ Required: - -### Nested Schema for `configuration.streams.format.unstructured_document_format` + +### Nested Schema for `configuration.streams.format.parquet_format` +Optional: - -### Nested Schema for `configuration.streams.format.unstructured_document_format` +- `processing` (Attributes) Processing configuration (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--processing)) +- `skip_unprocessable_files` (Boolean) If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. Default: true +- `strategy` (String) 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. must be one of ["auto", "fast", "ocr_only", "hi_res"]; Default: "auto" + + +### Nested Schema for `configuration.streams.format.parquet_format.processing` Optional: -- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false +- `local` (Attributes) Process files locally, supporting `fast` and `ocr` modes. This is the default option. (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--processing--local)) + +### Nested Schema for `configuration.streams.format.parquet_format.processing.local` - -### Nested Schema for `configuration.streams.format.unstructured_document_format` -Optional: -- `processing` (Attributes) Processing configuration (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing)) -- `skip_unprocessable_files` (Boolean) If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. Default: true -- `strategy` (String) 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. must be one of ["auto", "fast", "ocr_only", "hi_res"]; Default: "auto" - -### Nested Schema for `configuration.streams.format.unstructured_document_format.processing` + +### Nested Schema for `configuration.streams.format.parquet_format` -Optional: -- `local` (Attributes) Process files locally, supporting `fast` and `ocr` modes. This is the default option. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing--local)) + +### Nested Schema for `configuration.streams.format.parquet_format` + +Optional: - -### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.local` +- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false ## Import diff --git a/docs/resources/source_microsoft_teams.md b/docs/resources/source_microsoft_teams.md index 9ee5a9087..60cba0d5c 100644 --- a/docs/resources/source_microsoft_teams.md +++ b/docs/resources/source_microsoft_teams.md @@ -24,10 +24,10 @@ resource "airbyte_source_microsoft_teams" "my_source_microsoftteams" { } period = "D7" } - definition_id = "196ea920-3cb7-4876-a75a-531f3b4802a3" - name = "Terrence Smith" + definition_id = "2ba7d43d-20d3-4384-a15e-d53522788fae" + name = "Ed Ondricka" secret_id = "...my_secret_id..." - workspace_id = "4976dbe1-16c7-4811-ac70-bfb32667c47d" + workspace_id = "b93c7728-79b6-4069-b6a2-8df3196ea920" } ``` diff --git a/docs/resources/source_mixpanel.md b/docs/resources/source_mixpanel.md index c65c54a72..7332c74ea 100644 --- a/docs/resources/source_mixpanel.md +++ b/docs/resources/source_mixpanel.md @@ -15,23 +15,23 @@ SourceMixpanel Resource ```terraform resource "airbyte_source_mixpanel" "my_source_mixpanel" { configuration = { - attribution_window = 3 + attribution_window = 2 credentials = { project_secret = { api_secret = "...my_api_secret..." } } - date_window_size = 0 + date_window_size = 8 end_date = "2021-11-16" - project_timezone = "US/Pacific" + project_timezone = "UTC" region = "US" select_properties_by_default = false start_date = "2021-11-16" } - definition_id = "c03f8392-0634-4c9d-b1c4-26709282f0b3" - name = "Nora Waelchi" + definition_id = "5a531f3b-4802-4a3b-9d67-4976dbe116c7" + name = "Raymond Boyer" secret_id = "...my_secret_id..." - workspace_id = "729ff502-4b69-40b2-b36f-2f7a3b95d4ab" + workspace_id = "70bfb326-67c4-47d5-8361-6107c03f8392" } ``` diff --git a/docs/resources/source_monday.md b/docs/resources/source_monday.md index 3df7140b6..ed3aefe60 100644 --- a/docs/resources/source_monday.md +++ b/docs/resources/source_monday.md @@ -21,10 +21,10 @@ resource "airbyte_source_monday" "my_source_monday" { } } } - definition_id = "cb3edfbb-ab6a-4d0e-84a4-dc970c078573" - name = "Benjamin Bartell" + definition_id = "0634c9db-1c42-4670-9282-f0b308e78729" + name = "Mr. Emmett Hermiston" secret_id = "...my_secret_id..." - workspace_id = "990f9b2c-e7a6-47a8-9150-ea86120cd618" + workspace_id = "b690b273-6f2f-47a3-b95d-4abcb3edfbba" } ``` diff --git a/docs/resources/source_mongodb_internal_poc.md b/docs/resources/source_mongodb_internal_poc.md index eee24e385..777692bba 100644 --- a/docs/resources/source_mongodb_internal_poc.md +++ b/docs/resources/source_mongodb_internal_poc.md @@ -21,10 +21,10 @@ resource "airbyte_source_mongodb_internal_poc" "my_source_mongodbinternalpoc" { replica_set = "...my_replica_set..." user = "...my_user..." } - definition_id = "74280681-2ca7-4b26-9526-15553a713498" - name = "Luis Wilderman" + definition_id = "6ad0e44a-4dc9-470c-8785-73a20ac990f9" + name = "Steve Sauer" secret_id = "...my_secret_id..." - workspace_id = "99a12d6e-33e6-46d7-80d4-772456d0d26d" + workspace_id = "a67a8515-0ea8-4612-8cd6-18d742806812" } ``` diff --git a/docs/resources/source_mongodb_v2.md b/docs/resources/source_mongodb_v2.md index b01a1b6d1..a98679326 100644 --- a/docs/resources/source_mongodb_v2.md +++ b/docs/resources/source_mongodb_v2.md @@ -22,20 +22,20 @@ resource "airbyte_source_mongodb_v2" "my_source_mongodbv2" { connection_string = "mongodb+srv://cluster0.abcd1.mongodb.net/" database = "...my_database..." password = "...my_password..." - schema_enforced = true - username = "Ashley_Gerhold" + schema_enforced = false + username = "Luciano.King42" } } - discover_sample_size = 8 - initial_waiting_seconds = 2 + discover_sample_size = 6 + initial_waiting_seconds = 4 invalid_cdc_cursor_position_behavior = "Fail sync" queue_size = 4 update_capture_mode = "Lookup" } - definition_id = "ca647ba4-f7aa-4ba2-9784-141a21c8938a" - name = "Marc Willms" + definition_id = "5553a713-498a-43f9-b99a-12d6e33e66d7" + name = "Melissa Stoltenberg" secret_id = "...my_secret_id..." - workspace_id = "b78bed98-212c-4704-ae19-387527d5e3ef" + workspace_id = "72456d0d-26d9-4147-bb35-66ca647ba4f7" } ``` diff --git a/docs/resources/source_mssql.md b/docs/resources/source_mssql.md index a53fb420f..d16c9fd0d 100644 --- a/docs/resources/source_mssql.md +++ b/docs/resources/source_mssql.md @@ -22,9 +22,9 @@ resource "airbyte_source_mssql" "my_source_mssql" { port = 1433 replication_method = { read_changes_using_change_data_capture_cdc = { - initial_waiting_seconds = 1 - invalid_cdc_cursor_position_behavior = "Fail sync" - queue_size = 4 + initial_waiting_seconds = 7 + invalid_cdc_cursor_position_behavior = "Re-sync data" + queue_size = 7 } } schemas = [ @@ -36,12 +36,12 @@ resource "airbyte_source_mssql" "my_source_mssql" { tunnel_method = { no_tunnel = {} } - username = "Raymond.Armstrong73" + username = "Caroline_Harvey" } - definition_id = "7968b724-2137-4fe2-a9e2-6c4c104f1dbe" - name = "Luz Brown" + definition_id = "4141a21c-8938-4ad6-bcbb-78bed98212c7" + name = "Eleanor O'Hara V" secret_id = "...my_secret_id..." - workspace_id = "90447757-3847-465c-b741-8014d1f26365" + workspace_id = "387527d5-e3ef-4724-ad0c-0b7968b72421" } ``` diff --git a/docs/resources/source_my_hours.md b/docs/resources/source_my_hours.md index f431f065a..a5fb315df 100644 --- a/docs/resources/source_my_hours.md +++ b/docs/resources/source_my_hours.md @@ -20,10 +20,10 @@ resource "airbyte_source_my_hours" "my_source_myhours" { password = "...my_password..." start_date = "2016-01-01" } - definition_id = "e0e5e5f3-86d0-4ac5-af3c-6558d9b03d25" - name = "Percy Walker" + definition_id = "26c4c104-f1db-4e3b-9f29-044775738476" + name = "Brooke Kihn" secret_id = "...my_secret_id..." - workspace_id = "badc477c-b62b-459b-9f1e-e4249578a5bc" + workspace_id = "18014d1f-2636-451b-b7f9-fe0e5e5f386d" } ``` diff --git a/docs/resources/source_mysql.md b/docs/resources/source_mysql.md index 115f47146..160183145 100644 --- a/docs/resources/source_mysql.md +++ b/docs/resources/source_mysql.md @@ -22,9 +22,8 @@ resource "airbyte_source_mysql" "my_source_mysql" { port = 3306 replication_method = { read_changes_using_binary_log_cdc = { - initial_load_timeout_hours = 7 - initial_waiting_seconds = 8 - invalid_cdc_cursor_position_behavior = "Fail sync" + initial_waiting_seconds = 7 + invalid_cdc_cursor_position_behavior = "Re-sync data" server_time_zone = "...my_server_time_zone..." } } @@ -34,12 +33,12 @@ resource "airbyte_source_mysql" "my_source_mysql" { tunnel_method = { no_tunnel = {} } - username = "Rachelle.Rippin" + username = "Flossie.Padberg78" } - definition_id = "b2c4dd4d-4290-4774-9ee0-bbab0457d926" - name = "Miriam Lynch" + definition_id = "6558d9b0-3d25-4bee-bdba-dc477cb62b59" + name = "Dr. Kirk Welch" secret_id = "...my_secret_id..." - workspace_id = "ecd841e7-2a76-46a6-86fa-a512d8044b05" + workspace_id = "4249578a-5bcb-4bc2-8b83-b2c4dd4d4290" } ``` @@ -93,7 +92,6 @@ Optional: Optional: -- `initial_load_timeout_hours` (Number) The amount of time an initial load is allowed to continue for before catching up on CDC logs. Default: 8 - `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time. Default: 300 - `invalid_cdc_cursor_position_behavior` (String) 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. must be one of ["Fail sync", "Re-sync data"]; Default: "Fail sync" - `server_time_zone` (String) Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. diff --git a/docs/resources/source_netsuite.md b/docs/resources/source_netsuite.md index 02b84e357..11d25465b 100644 --- a/docs/resources/source_netsuite.md +++ b/docs/resources/source_netsuite.md @@ -24,12 +24,12 @@ resource "airbyte_source_netsuite" "my_source_netsuite" { start_datetime = "2017-01-25T00:00:00Z" token_key = "...my_token_key..." token_secret = "...my_token_secret..." - window_in_days = 8 + window_in_days = 5 } - definition_id = "5b711236-1f26-4d47-b86c-dec1a2bc2b81" - name = "Francisco Hegmann" + definition_id = "741ee0bb-ab04-457d-9263-98e6ecd841e7" + name = "Jan Kub" secret_id = "...my_secret_id..." - workspace_id = "ceb6c910-dc95-4a96-8b5f-3bc4b3253e6b" + workspace_id = "a686faa5-12d8-4044-b05c-5b7112361f26" } ``` diff --git a/docs/resources/source_notion.md b/docs/resources/source_notion.md index 573378737..47f227ed2 100644 --- a/docs/resources/source_notion.md +++ b/docs/resources/source_notion.md @@ -22,10 +22,10 @@ resource "airbyte_source_notion" "my_source_notion" { } start_date = "2020-11-16T00:00:00.000Z" } - definition_id = "91e25444-d223-44fd-9d8e-a1c7d43320fa" - name = "Miss Marshall Sauer" + definition_id = "7b86cdec-1a2b-4c2b-81e4-5e3ceb6c910d" + name = "Terrence Haley" secret_id = "...my_secret_id..." - workspace_id = "dab7e73a-5971-4814-a4dc-1f633abc58a5" + workspace_id = "6cb5f3bc-4b32-453e-abd5-91e25444d223" } ``` diff --git a/docs/resources/source_nytimes.md b/docs/resources/source_nytimes.md index 6a1c53034..1171a532d 100644 --- a/docs/resources/source_nytimes.md +++ b/docs/resources/source_nytimes.md @@ -21,10 +21,10 @@ resource "airbyte_source_nytimes" "my_source_nytimes" { share_type = "facebook" start_date = "1851-01" } - definition_id = "517fc88b-c499-48d7-9efe-dea337d55b15" - name = "Sabrina Kuvalis" + definition_id = "a1c7d433-20fa-4c9c-9a8d-ab7e73a59718" + name = "Suzanne Terry" secret_id = "...my_secret_id..." - workspace_id = "92c72d54-1f53-4892-8a50-561c1cc6291a" + workspace_id = "c1f633ab-c58a-4542-9517-fc88bc4998d7" } ``` diff --git a/docs/resources/source_okta.md b/docs/resources/source_okta.md index c65e52644..b9de7b8c1 100644 --- a/docs/resources/source_okta.md +++ b/docs/resources/source_okta.md @@ -23,10 +23,10 @@ resource "airbyte_source_okta" "my_source_okta" { domain = "...my_domain..." start_date = "2022-07-22T00:00:00Z" } - definition_id = "d7b3d761-e29e-4f26-ae07-d2b59ab56edb" - name = "Mr. Pearl Ruecker DDS" + definition_id = "fedea337-d55b-4155-98db-92c72d541f53" + name = "Marion Champlin" secret_id = "...my_secret_id..." - workspace_id = "cdeed12b-d5eb-473d-822a-608737f9f9cf" + workspace_id = "50561c1c-c629-41a1-ad7b-3d761e29ef26" } ``` diff --git a/docs/resources/source_omnisend.md b/docs/resources/source_omnisend.md index 758071b7b..831c6c09b 100644 --- a/docs/resources/source_omnisend.md +++ b/docs/resources/source_omnisend.md @@ -17,10 +17,10 @@ resource "airbyte_source_omnisend" "my_source_omnisend" { configuration = { api_key = "...my_api_key..." } - definition_id = "17c9c1c9-1886-4190-8dfc-35041fcdcac2" - name = "Andrea Howe" + definition_id = "ae07d2b5-9ab5-46ed-b57c-000ccdeed12b" + name = "Corey Walker" secret_id = "...my_secret_id..." - workspace_id = "f24d9236-9b1f-4f5a-bba2-88f10a0635ff" + workspace_id = "3d022a60-8737-4f9f-9cf1-7c9c1c918861" } ``` diff --git a/docs/resources/source_onesignal.md b/docs/resources/source_onesignal.md index f0848f913..d7afd99f1 100644 --- a/docs/resources/source_onesignal.md +++ b/docs/resources/source_onesignal.md @@ -26,10 +26,10 @@ resource "airbyte_source_onesignal" "my_source_onesignal" { start_date = "2020-11-16T00:00:00Z" user_auth_key = "...my_user_auth_key..." } - definition_id = "f388685d-8941-4e7d-b072-3f94739cc80e" - name = "Pedro Prohaska Sr." + definition_id = "0dfc3504-1fcd-4cac-a226-2ef24d92369b" + name = "Shawna Wilkinson" secret_id = "...my_secret_id..." - workspace_id = "25778f7a-023c-41e0-8d80-f694c48e9d0f" + workspace_id = "7ba288f1-0a06-435f-b19f-388685d8941e" } ``` diff --git a/docs/resources/source_oracle.md b/docs/resources/source_oracle.md index 0dbb05dfc..3cbd5cd17 100644 --- a/docs/resources/source_oracle.md +++ b/docs/resources/source_oracle.md @@ -28,19 +28,19 @@ resource "airbyte_source_oracle" "my_source_oracle" { host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." - port = 2 + port = 9 schemas = [ "...", ] tunnel_method = { no_tunnel = {} } - username = "Orin_Romaguera85" + username = "Neha.Abbott" } - definition_id = "71dab038-014a-4124-b6e7-b2083a37b0c9" - name = "Harry Kuhic" + definition_id = "3f94739c-c80e-4e5b-b122-5778f7a023c1" + name = "Charles Littel" secret_id = "...my_secret_id..." - workspace_id = "a38aa73d-79a8-45cb-b246-518021619872" + workspace_id = "0f694c48-e9d0-4f84-8cba-d71dab038014" } ``` diff --git a/docs/resources/source_orb.md b/docs/resources/source_orb.md index 4765f9855..49f3470a6 100644 --- a/docs/resources/source_orb.md +++ b/docs/resources/source_orb.md @@ -17,7 +17,7 @@ resource "airbyte_source_orb" "my_source_orb" { configuration = { api_key = "...my_api_key..." end_date = "2024-03-01T00:00:00Z" - lookback_window_days = 2 + lookback_window_days = 7 numeric_event_properties_keys = [ "...", ] @@ -28,10 +28,10 @@ resource "airbyte_source_orb" "my_source_orb" { ] subscription_usage_grouping_key = "...my_subscription_usage_grouping_key..." } - definition_id = "e09a2aae-62d9-4d77-8257-55e6995c5765" - name = "Miss Nadine Wunsch" + definition_id = "124b6e7b-2083-4a37-b0c9-92762a38aa73" + name = "Julio Mayer" secret_id = "...my_secret_id..." - workspace_id = "422b3629-976b-4741-9bfa-fbdd349afd0c" + workspace_id = "5cb72465-1802-4161-9872-363e09a2aae6" } ``` diff --git a/docs/resources/source_orbit.md b/docs/resources/source_orbit.md index dc60eb3df..12e5a1efc 100644 --- a/docs/resources/source_orbit.md +++ b/docs/resources/source_orbit.md @@ -19,10 +19,10 @@ resource "airbyte_source_orbit" "my_source_orbit" { start_date = "...my_start_date..." workspace = "...my_workspace..." } - definition_id = "d95bcfe3-342d-4c40-aaef-61635af9f94f" - name = "Ivan Hansen" + definition_id = "2d9d7702-5755-4e69-95c5-7652df199422" + name = "Danny Jakubowski" secret_id = "...my_secret_id..." - workspace_id = "22e677c7-7be4-4e42-84a4-1ce525b48930" + workspace_id = "976b741d-bfaf-4bdd-b49a-fd0cd95bcfe3" } ``` diff --git a/docs/resources/source_outbrain_amplify.md b/docs/resources/source_outbrain_amplify.md index 621da4a91..5bfdb6f70 100644 --- a/docs/resources/source_outbrain_amplify.md +++ b/docs/resources/source_outbrain_amplify.md @@ -22,13 +22,13 @@ resource "airbyte_source_outbrain_amplify" "my_source_outbrainamplify" { } end_date = "...my_end_date..." geo_location_breakdown = "country" - report_granularity = "weekly" + report_granularity = "daily" start_date = "...my_start_date..." } - definition_id = "e9c1af99-61b1-4c88-ba57-2712d8f3b643" - name = "Marianne Reilly" + definition_id = "2dc402ae-f616-435a-b9f9-4f985aa22e67" + name = "Della Koepp" secret_id = "...my_secret_id..." - workspace_id = "b32ad03f-d9a9-4d8b-a9b0-df86503c4743" + workspace_id = "e4e4244a-41ce-4525-b489-3048e9c1af99" } ``` diff --git a/docs/resources/source_outreach.md b/docs/resources/source_outreach.md index 260821659..2d5d692d6 100644 --- a/docs/resources/source_outreach.md +++ b/docs/resources/source_outreach.md @@ -21,10 +21,10 @@ resource "airbyte_source_outreach" "my_source_outreach" { refresh_token = "...my_refresh_token..." start_date = "2020-11-16T00:00:00Z" } - definition_id = "ee79bd13-e204-4659-bbdc-56c2f2e20259" - name = "Mrs. Ramon Quitzon" + definition_id = "61b1c883-a572-4712-98f3-b6433cb82b32" + name = "Sammy Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "98d3fc54-30ae-4066-94a9-1bbbc35ba892" + workspace_id = "d9a9d8ba-9b0d-4f86-903c-4743ee79bd13" } ``` diff --git a/docs/resources/source_paypal_transaction.md b/docs/resources/source_paypal_transaction.md index b5de8316a..720501d17 100644 --- a/docs/resources/source_paypal_transaction.md +++ b/docs/resources/source_paypal_transaction.md @@ -18,16 +18,16 @@ resource "airbyte_source_paypal_transaction" "my_source_paypaltransaction" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." dispute_start_date = "2021-06-11T23:59:59.000Z" - end_date = "2021-06-11T23:59:59+00:00" - is_sandbox = true + end_date = "2021-06-11T23:59:59Z" + is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-06-11T23:59:59Z" - time_window = 5 + start_date = "2021-06-11T23:59:59+00:00" + time_window = 9 } - definition_id = "b9331a5d-dafa-4d6a-b5ec-8caacd8d2abf" - name = "Leland Altenwerth" + definition_id = "c56c2f2e-2025-49c6-b139-98d3fc5430ae" + name = "Jeanette Howe" secret_id = "...my_secret_id..." - workspace_id = "3811ddad-7d79-4aa2-af68-e00dcdadd479" + workspace_id = "a91bbbc3-5ba8-492b-ad58-05ab7b9331a5" } ``` diff --git a/docs/resources/source_paystack.md b/docs/resources/source_paystack.md index 05e0054a8..00939b963 100644 --- a/docs/resources/source_paystack.md +++ b/docs/resources/source_paystack.md @@ -15,14 +15,14 @@ SourcePaystack Resource ```terraform resource "airbyte_source_paystack" "my_source_paystack" { configuration = { - lookback_window_days = 4 + lookback_window_days = 9 secret_key = "...my_secret_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "68b4fa72-62d2-4a48-b976-dd11df098493" - name = "Sally West" + definition_id = "fad6ab5e-c8ca-4acd-8d2a-bfdc0f33811d" + name = "Omar Sporer" secret_id = "...my_secret_id..." - workspace_id = "27890d41-f139-419c-925e-386517a80112" + workspace_id = "79aa2af6-8e00-4dcd-add4-7961168b4fa7" } ``` diff --git a/docs/resources/source_pendo.md b/docs/resources/source_pendo.md index dd8b0e3eb..e74c10b40 100644 --- a/docs/resources/source_pendo.md +++ b/docs/resources/source_pendo.md @@ -17,10 +17,10 @@ resource "airbyte_source_pendo" "my_source_pendo" { configuration = { api_key = "...my_api_key..." } - definition_id = "166a5ec4-6f2b-4ce2-a77b-bccef588ac54" - name = "Randolph Walker" + definition_id = "262d2a48-f976-4dd1-9df0-9849375f6227" + name = "Terrence Anderson" secret_id = "...my_secret_id..." - workspace_id = "7a9dbf52-c792-493e-a8aa-81903348b38f" + workspace_id = "1f13919c-925e-4386-917a-80112166a5ec" } ``` diff --git a/docs/resources/source_persistiq.md b/docs/resources/source_persistiq.md index 45f8aa6ef..433795e63 100644 --- a/docs/resources/source_persistiq.md +++ b/docs/resources/source_persistiq.md @@ -17,10 +17,10 @@ resource "airbyte_source_persistiq" "my_source_persistiq" { configuration = { api_key = "...my_api_key..." } - definition_id = "e3b52011-25b2-4925-aa78-4d2d0f170747" - name = "Sonja Dibbert" + definition_id = "46f2bce2-e77b-4bcc-af58-8ac548be8a7a" + name = "Wilfred Quitzon" secret_id = "...my_secret_id..." - workspace_id = "a49780ba-1d6a-428c-aeef-e59b72db2240" + workspace_id = "2c79293e-28aa-4819-8334-8b38fe3b5201" } ``` diff --git a/docs/resources/source_pexels_api.md b/docs/resources/source_pexels_api.md index ab865bbd7..01bf169cf 100644 --- a/docs/resources/source_pexels_api.md +++ b/docs/resources/source_pexels_api.md @@ -17,15 +17,15 @@ resource "airbyte_source_pexels_api" "my_source_pexelsapi" { configuration = { api_key = "...my_api_key..." color = "red" - locale = "pt-BR" - orientation = "landscape" - query = "people" + locale = "en-US" + orientation = "square" + query = "oceans" size = "large" } - definition_id = "0da76331-50ac-4fec-a41f-73646e1c8795" - name = "Lee Nikolaus" + definition_id = "9252a784-d2d0-4f17-8747-5e2d6a49780b" + name = "Jack Swaniawski" secret_id = "...my_secret_id..." - workspace_id = "a8255310-1401-4784-96a4-c1173de2c277" + workspace_id = "28c6eefe-59b7-42db-a240-7ce310da7633" } ``` diff --git a/docs/resources/source_pinterest.md b/docs/resources/source_pinterest.md index 13e708f1c..87ebd2d05 100644 --- a/docs/resources/source_pinterest.md +++ b/docs/resources/source_pinterest.md @@ -23,30 +23,30 @@ resource "airbyte_source_pinterest" "my_source_pinterest" { custom_reports = [ { attribution_types = [ - "HOUSEHOLD", + "INDIVIDUAL", ] - click_window_days = "14" + click_window_days = "7" columns = [ - "VIDEO_LENGTH", + "CAMPAIGN_DAILY_SPEND_CAP", ] - conversion_report_time = "TIME_OF_AD_ACTION" - engagement_window_days = "1" - granularity = "HOUR" - level = "PIN_PROMOTION" - name = "Mr. Marcos Baumbach DVM" + conversion_report_time = "TIME_OF_CONVERSION" + engagement_window_days = "30" + granularity = "MONTH" + level = "PRODUCT_GROUP_TARGETING" + name = "Dr. Fred Grady" start_date = "2022-07-28" - view_window_days = "30" + view_window_days = "1" }, ] start_date = "2022-07-28" status = [ - "ARCHIVED", + "ACTIVE", ] } - definition_id = "2676b4d9-282a-4d19-925d-5253fa02ef00" - name = "Ms. Moses Boehm" + definition_id = "c879583a-59a8-4255-b101-40178456a4c1" + name = "Bessie Emard" secret_id = "...my_secret_id..." - workspace_id = "81572f72-4d1e-40e7-a708-b9f815bf9f13" + workspace_id = "2c277a8e-2388-4fd0-920f-62c51a2676b4" } ``` diff --git a/docs/resources/source_pipedrive.md b/docs/resources/source_pipedrive.md index 314f76201..e9dbfd070 100644 --- a/docs/resources/source_pipedrive.md +++ b/docs/resources/source_pipedrive.md @@ -18,10 +18,10 @@ resource "airbyte_source_pipedrive" "my_source_pipedrive" { api_token = "...my_api_token..." replication_start_date = "2017-01-25 00:00:00Z" } - definition_id = "70c28b27-8d25-4e4e-a4a5-1abe7bbe4e8d" - name = "Derrick Wehner" + definition_id = "d9282ad1-9d25-4d52-93fa-02ef008f118d" + name = "Peter Hilll" secret_id = "...my_secret_id..." - workspace_id = "7ba5cf8d-b48a-42cc-8047-b120c3ecc155" + workspace_id = "f724d1e0-e7e7-408b-9f81-5bf9f1370c28" } ``` diff --git a/docs/resources/source_pocket.md b/docs/resources/source_pocket.md index bce161b5f..fa9aeaf10 100644 --- a/docs/resources/source_pocket.md +++ b/docs/resources/source_pocket.md @@ -17,20 +17,20 @@ resource "airbyte_source_pocket" "my_source_pocket" { configuration = { access_token = "...my_access_token..." consumer_key = "...my_consumer_key..." - content_type = "video" - detail_type = "complete" + content_type = "image" + detail_type = "simple" domain = "...my_domain..." - favorite = true + favorite = false search = "...my_search..." since = "2022-10-20 14:14:14" sort = "title" - state = "unread" + state = "all" tag = "...my_tag..." } - definition_id = "f33bbc2f-8e75-4b95-ae5d-d11c77a4e3aa" - name = "Nadine Breitenberg" + definition_id = "25e4ee4a-51ab-4e7b-be4e-8da5f867ba5c" + name = "Felix Swaniawski" secret_id = "...my_secret_id..." - workspace_id = "4fcd7d93-9b8b-46b2-8092-0aa8be086075" + workspace_id = "8a2cc404-7b12-40c3-acc1-558e983f33bb" } ``` diff --git a/docs/resources/source_pokeapi.md b/docs/resources/source_pokeapi.md index e0aa70e76..b34580a3f 100644 --- a/docs/resources/source_pokeapi.md +++ b/docs/resources/source_pokeapi.md @@ -15,12 +15,12 @@ SourcePokeapi Resource ```terraform resource "airbyte_source_pokeapi" "my_source_pokeapi" { configuration = { - pokemon_name = "ditto" + pokemon_name = "snorlax" } - definition_id = "1b21ea9b-c9d1-4c88-b1ee-12f8a7db098a" - name = "Lucille Blanda" + definition_id = "2f8e75b9-5ee5-4dd1-9c77-a4e3aa4d1c74" + name = "Gregg Smitham" secret_id = "...my_secret_id..." - workspace_id = "6a87d389-094e-4fa6-bbbe-a9f5a35d1bd0" + workspace_id = "939b8b6b-2c09-420a-a8be-08607521b21e" } ``` diff --git a/docs/resources/source_polygon_stock_api.md b/docs/resources/source_polygon_stock_api.md index 33a89c037..15ceacc6d 100644 --- a/docs/resources/source_polygon_stock_api.md +++ b/docs/resources/source_polygon_stock_api.md @@ -18,17 +18,17 @@ resource "airbyte_source_polygon_stock_api" "my_source_polygonstockapi" { adjusted = "false" api_key = "...my_api_key..." end_date = "2020-10-14" - limit = 100 - multiplier = 1 - sort = "asc" + limit = 120 + multiplier = 2 + sort = "desc" start_date = "2020-10-14" stocks_ticker = "MSFT" timespan = "day" } - definition_id = "a6472a5f-8aec-48fe-9b8f-c35367bfee52" - name = "Olive Durgan" + definition_id = "1ee12f8a-7db0-498a-b412-66a87d389094" + name = "Emanuel Paucek" secret_id = "...my_secret_id..." - workspace_id = "74e8f7b8-37d7-46b0-aa3d-797c2fd02395" + workspace_id = "bbea9f5a-35d1-4bd0-bb63-21f6b4ca6472" } ``` diff --git a/docs/resources/source_postgres.md b/docs/resources/source_postgres.md index 3c4056446..9b3fd1158 100644 --- a/docs/resources/source_postgres.md +++ b/docs/resources/source_postgres.md @@ -34,12 +34,12 @@ resource "airbyte_source_postgres" "my_source_postgres" { tunnel_method = { no_tunnel = {} } - username = "Jayme_Boyer" + username = "Era_Wisoky" } - definition_id = "206b8fda-8b48-4bf3-b0e9-631ebcafaa2e" - name = "Dr. Clinton Osinski DDS" + definition_id = "ec8fedb8-fc35-4367-bfee-523e36b74e8f" + name = "Lula Lemke" secret_id = "...my_secret_id..." - workspace_id = "b6197095-b91e-4126-900f-09eb706bb016" + workspace_id = "d76b02a3-d797-4c2f-9023-950717b206b8" } ``` diff --git a/docs/resources/source_posthog.md b/docs/resources/source_posthog.md index 764dce386..291fc3eed 100644 --- a/docs/resources/source_posthog.md +++ b/docs/resources/source_posthog.md @@ -20,10 +20,10 @@ resource "airbyte_source_posthog" "my_source_posthog" { events_time_step = 5 start_date = "2021-01-01T00:00:00Z" } - definition_id = "c6bfae2b-40c1-473d-8d61-133ddb2a9593" - name = "Rosalie Walter Jr." + definition_id = "b48bf3f0-e963-41eb-8afa-a2ee7a1e0cb6" + name = "Ms. Jenny Konopelski" secret_id = "...my_secret_id..." - workspace_id = "62e7b59a-4e78-4152-8bd2-66e4c12d05e7" + workspace_id = "b91e1261-00f0-49eb-b06b-b016ea0ac6bf" } ``` diff --git a/docs/resources/source_postmarkapp.md b/docs/resources/source_postmarkapp.md index fa85f49c3..9a9806930 100644 --- a/docs/resources/source_postmarkapp.md +++ b/docs/resources/source_postmarkapp.md @@ -18,10 +18,10 @@ resource "airbyte_source_postmarkapp" "my_source_postmarkapp" { x_postmark_account_token = "...my_x_postmark_account_token..." x_postmark_server_token = "...my_x_postmark_server_token..." } - definition_id = "f58d4a06-25cb-4ff5-b31f-2b9304d3ebf3" - name = "Cora Barton" + definition_id = "ae2b40c1-73d4-4d61-933d-db2a95937ced" + name = "Sandra Hodkiewicz" secret_id = "...my_secret_id..." - workspace_id = "e61711be-8829-424e-a80a-a2980d84713e" + workspace_id = "7b59a4e7-8152-4cbd-a66e-4c12d05e7f58" } ``` diff --git a/docs/resources/source_prestashop.md b/docs/resources/source_prestashop.md index 5fc053b06..31ce18a6b 100644 --- a/docs/resources/source_prestashop.md +++ b/docs/resources/source_prestashop.md @@ -19,10 +19,10 @@ resource "airbyte_source_prestashop" "my_source_prestashop" { start_date = "2022-01-01" url = "...my_url..." } - definition_id = "f014dd9a-f7c7-4e9c-8620-9ea52c707cb0" - name = "Rosalie Hagenes" + definition_id = "a0625cbf-f5b3-41f2-b930-4d3ebf32902d" + name = "Hector Breitenberg Jr." secret_id = "...my_secret_id..." - workspace_id = "d21cf346-58e5-420f-854a-567309cc0ee4" + workspace_id = "be882924-ee80-4aa2-980d-84713ebef014" } ``` diff --git a/docs/resources/source_goldcast.md b/docs/resources/source_punk_api.md similarity index 58% rename from docs/resources/source_goldcast.md rename to docs/resources/source_punk_api.md index d56187cd4..b4a90184a 100644 --- a/docs/resources/source_goldcast.md +++ b/docs/resources/source_punk_api.md @@ -1,26 +1,28 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "airbyte_source_goldcast Resource - terraform-provider-airbyte" +page_title: "airbyte_source_punk_api Resource - terraform-provider-airbyte" subcategory: "" description: |- - SourceGoldcast Resource + SourcePunkAPI Resource --- -# airbyte_source_goldcast (Resource) +# airbyte_source_punk_api (Resource) -SourceGoldcast Resource +SourcePunkAPI Resource ## Example Usage ```terraform -resource "airbyte_source_goldcast" "my_source_goldcast" { +resource "airbyte_source_punk_api" "my_source_punkapi" { configuration = { - access_key = "...my_access_key..." + brewed_after = "MM-YYYY" + brewed_before = "MM-YYYY" + id = 22 } - definition_id = "df259349-552d-4c82-98f3-0a27183b00ec" - name = "Melissa Gutmann" + definition_id = "d21cf346-58e5-420f-854a-567309cc0ee4" + name = "Randolph Murphy" secret_id = "...my_secret_id..." - workspace_id = "56c03ec7-b8b6-48fd-bc06-92b4fd673f59" + workspace_id = "aed57205-4daa-484a-8e28-fea10a8a64b7" } ``` @@ -48,12 +50,17 @@ resource "airbyte_source_goldcast" "my_source_goldcast" { Required: -- `access_key` (String, Sensitive) Your API Access Key. See here. The key is case sensitive. +- `brewed_after` (String) To extract specific data with Unique ID +- `brewed_before` (String) To extract specific data with Unique ID + +Optional: + +- `id` (String) To extract specific data with Unique ID ## Import Import is supported using the following syntax: ```shell -terraform import airbyte_source_goldcast.my_airbyte_source_goldcast "" +terraform import airbyte_source_punk_api.my_airbyte_source_punk_api "" ``` diff --git a/docs/resources/source_pypi.md b/docs/resources/source_pypi.md index 92ee28d68..2dfd1cb3a 100644 --- a/docs/resources/source_pypi.md +++ b/docs/resources/source_pypi.md @@ -18,10 +18,10 @@ resource "airbyte_source_pypi" "my_source_pypi" { project_name = "sampleproject" version = "1.2.0" } - definition_id = "bba7faed-5720-454d-aa84-a4e28fea10a8" - name = "Elmer Grady" + definition_id = "7a4fe630-3928-48c9-9001-e515b2e74052" + name = "Sandy Homenick" secret_id = "...my_secret_id..." - workspace_id = "7a4fe630-3928-48c9-9001-e515b2e74052" + workspace_id = "ad65e8ae-1d21-47c0-bcbe-7d2d3433ea86" } ``` diff --git a/docs/resources/source_qualaroo.md b/docs/resources/source_qualaroo.md index 749a0bc6f..62ba6050c 100644 --- a/docs/resources/source_qualaroo.md +++ b/docs/resources/source_qualaroo.md @@ -22,10 +22,10 @@ resource "airbyte_source_qualaroo" "my_source_qualaroo" { ] token = "...my_token..." } - definition_id = "2a67dad6-5e8a-4e1d-a17c-0fcbe7d2d343" - name = "Jana O'Hara" + definition_id = "2799cad5-c4b8-4334-a9d3-410e395a0aac" + name = "Beatrice Stamm" secret_id = "...my_secret_id..." - workspace_id = "2799cad5-c4b8-4334-a9d3-410e395a0aac" + workspace_id = "d0978821-4279-492f-a5a7-105f2e570ad3" } ``` diff --git a/docs/resources/source_railz.md b/docs/resources/source_railz.md index 01bb7ff85..e668b4286 100644 --- a/docs/resources/source_railz.md +++ b/docs/resources/source_railz.md @@ -19,10 +19,10 @@ resource "airbyte_source_railz" "my_source_railz" { secret_key = "...my_secret_key..." start_date = "...my_start_date..." } - definition_id = "55dc9d09-7882-4142-b992-f65a7105f2e5" - name = "Deborah Nader" + definition_id = "72ede129-9d48-4414-90fd-6e7ec48816b0" + name = "Reginald Dibbert" secret_id = "...my_secret_id..." - workspace_id = "72ede129-9d48-4414-90fd-6e7ec48816b0" + workspace_id = "975147c3-e6c8-4bd1-8cca-d3b1c4065293" } ``` diff --git a/docs/resources/source_recharge.md b/docs/resources/source_recharge.md index 5fac8b7ae..26e4d4eb1 100644 --- a/docs/resources/source_recharge.md +++ b/docs/resources/source_recharge.md @@ -19,10 +19,10 @@ resource "airbyte_source_recharge" "my_source_recharge" { start_date = "2021-05-14T00:00:00Z" use_orders_deprecated_api = false } - definition_id = "b8975147-c3e6-4c8b-91cc-cad3b1c40652" - name = "Earl Bins" + definition_id = "648ca783-b586-4523-84bd-b821f9c8efa4" + name = "Christie Schiller IV" secret_id = "...my_secret_id..." - workspace_id = "648ca783-b586-4523-84bd-b821f9c8efa4" + workspace_id = "c50e6f12-11e1-4fcb-a6b9-0cc0df941919" } ``` diff --git a/docs/resources/source_recreation.md b/docs/resources/source_recreation.md index 635f93991..0f57ba990 100644 --- a/docs/resources/source_recreation.md +++ b/docs/resources/source_recreation.md @@ -18,10 +18,10 @@ resource "airbyte_source_recreation" "my_source_recreation" { apikey = "...my_apikey..." query_campsites = "...my_query_campsites..." } - definition_id = "0dc207c5-0e6f-4121-9e1f-cb26b90cc0df" - name = "Randall Carroll V" + definition_id = "892a209c-167a-4f7b-834c-463b838dc5f9" + name = "Vanessa Hammes" secret_id = "...my_secret_id..." - workspace_id = "892a209c-167a-4f7b-834c-463b838dc5f9" + workspace_id = "f73a4553-5fff-45d1-934f-0cce5486a3a1" } ``` diff --git a/docs/resources/source_recruitee.md b/docs/resources/source_recruitee.md index f08839650..730e7992a 100644 --- a/docs/resources/source_recruitee.md +++ b/docs/resources/source_recruitee.md @@ -16,12 +16,12 @@ SourceRecruitee Resource resource "airbyte_source_recruitee" "my_source_recruitee" { configuration = { api_key = "...my_api_key..." - company_id = 5 + company_id = 4 } - definition_id = "6535f73a-4553-45ff-b5d1-d34f0cce5486" - name = "Ms. Nathan O'Reilly PhD" + definition_id = "1dc53f64-148a-4cb8-b41d-5bf94a01397d" + name = "Muriel Wunsch" secret_id = "...my_secret_id..." - workspace_id = "c53f6414-8acb-48b4-9d5b-f94a01397d3d" + workspace_id = "0aff6604-97cb-4974-a7d8-001cbe4b7daa" } ``` diff --git a/docs/resources/source_recurly.md b/docs/resources/source_recurly.md index 470105cc0..cfa95a851 100644 --- a/docs/resources/source_recurly.md +++ b/docs/resources/source_recurly.md @@ -19,10 +19,10 @@ resource "airbyte_source_recurly" "my_source_recurly" { begin_time = "2021-12-01T00:00:00" end_time = "2021-12-01T00:00:00" } - definition_id = "fd90aff6-6049-47cb-974a-7d8001cbe4b7" - name = "Carlton Pfeffer" + definition_id = "2d7b0215-50aa-4da4-9f01-cf56ee294adb" + name = "Pedro Rodriguez" secret_id = "...my_secret_id..." - workspace_id = "7b021550-aada-44df-81cf-56ee294adbc5" + workspace_id = "40789cf0-b8d2-4c04-9244-36569fd64cd2" } ``` diff --git a/docs/resources/source_redshift.md b/docs/resources/source_redshift.md index 036c355e9..b07263e80 100644 --- a/docs/resources/source_redshift.md +++ b/docs/resources/source_redshift.md @@ -23,12 +23,12 @@ resource "airbyte_source_redshift" "my_source_redshift" { schemas = [ "...", ] - username = "Riley3" + username = "Ralph52" } - definition_id = "789cf0b8-d2c0-4412-8436-569fd64cd2bc" - name = "Jeffrey Lebsack" + definition_id = "a635d7a8-c386-4cec-8fae-93f7f0f8c4b4" + name = "Ivan Stanton" secret_id = "...my_secret_id..." - workspace_id = "35d7a8c3-86ce-4ccf-ae93-f7f0f8c4b4f8" + workspace_id = "6833e1f3-303a-4b04-9c89-1fe9c8dcb6cc" } ``` diff --git a/docs/resources/source_retently.md b/docs/resources/source_retently.md index f17365d99..7c799d94a 100644 --- a/docs/resources/source_retently.md +++ b/docs/resources/source_retently.md @@ -24,10 +24,10 @@ resource "airbyte_source_retently" "my_source_retently" { } } } - definition_id = "d4f6833e-1f33-403a-b045-c891fe9c8dcb" - name = "Miss Kendra Sauer" + definition_id = "1cd73d2c-f401-436d-9989-e7dbace4005a" + name = "Sheila Bahringer" secret_id = "...my_secret_id..." - workspace_id = "73d2cf40-136d-4598-9e7d-bace4005a630" + workspace_id = "76c58b5d-a21f-4739-86a7-1e992c2b8105" } ``` diff --git a/docs/resources/source_rki_covid.md b/docs/resources/source_rki_covid.md index 020be7e59..30a1d56de 100644 --- a/docs/resources/source_rki_covid.md +++ b/docs/resources/source_rki_covid.md @@ -17,10 +17,10 @@ resource "airbyte_source_rki_covid" "my_source_rkicovid" { configuration = { start_date = "...my_start_date..." } - definition_id = "7276c58b-5da2-41f7-b986-a71e992c2b81" - name = "Erin Hyatt" + definition_id = "6bc977a3-bf4d-4ff8-9d83-5d80427d23a4" + name = "Gerald Stoltenberg" secret_id = "...my_secret_id..." - workspace_id = "977a3bf4-dff8-4dd8-b5d8-0427d23a4e1d" + workspace_id = "723c8e5e-259f-4e4e-b649-3875b5a324c6" } ``` diff --git a/docs/resources/source_rss.md b/docs/resources/source_rss.md index 4e437a197..ec179c4f0 100644 --- a/docs/resources/source_rss.md +++ b/docs/resources/source_rss.md @@ -17,10 +17,10 @@ resource "airbyte_source_rss" "my_source_rss" { configuration = { url = "...my_url..." } - definition_id = "8c723c8e-5e25-49fe-8ef6-493875b5a324" - name = "Raul Blick" + definition_id = "128aabba-d073-4078-ac3e-822825101e3e" + name = "Joann Runolfsson" secret_id = "...my_secret_id..." - workspace_id = "aabbad07-3078-42c3-a822-825101e3e25c" + workspace_id = "948d0388-851e-4c06-bd3b-8cc64e95a7a3" } ``` diff --git a/docs/resources/source_s3.md b/docs/resources/source_s3.md index 9a87e916a..d063526e6 100644 --- a/docs/resources/source_s3.md +++ b/docs/resources/source_s3.md @@ -40,10 +40,10 @@ resource "airbyte_source_s3" "my_source_s3" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 0 + days_to_sync_if_history_is_full = 4 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ @@ -51,17 +51,17 @@ resource "airbyte_source_s3" "my_source_s3" { ] input_schema = "...my_input_schema..." legacy_prefix = "...my_legacy_prefix..." - name = "Alfredo Lowe DVM" + name = "Pam Goldner" primary_key = "...my_primary_key..." schemaless = false - validation_policy = "Emit Record" + validation_policy = "Wait for Discover" }, ] } - definition_id = "6fd3b8cc-64e9-45a7-a369-2db06d3b499d" - name = "Gerardo Stroman" + definition_id = "bdae34af-cb06-4318-8072-9444d2b8965c" + name = "Julius Rau" secret_id = "...my_secret_id..." - workspace_id = "34afcb06-3184-4072-9444-d2b8965caaba" + workspace_id = "ee9d6378-e724-43c0-a1bc-073abf4dfebd" } ``` @@ -132,12 +132,12 @@ Optional: - `avro_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--avro_format)) - `csv_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--csv_format)) +- `document_file_type_format_experimental` (Attributes) Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. (see [below for nested schema](#nestedatt--configuration--streams--format--document_file_type_format_experimental)) - `jsonl_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--jsonl_format)) - `parquet_format` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format)) -- `unstructured_document_format` (Attributes) Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format)) -### Nested Schema for `configuration.streams.format.unstructured_document_format` +### Nested Schema for `configuration.streams.format.parquet_format` Optional: @@ -145,7 +145,7 @@ Optional: -### Nested Schema for `configuration.streams.format.unstructured_document_format` +### Nested Schema for `configuration.streams.format.parquet_format` Optional: @@ -154,7 +154,7 @@ Optional: - `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options. Default: "utf8" - `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank. - `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values. -- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition)) +- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition)) - `ignore_errors_on_fields_mismatch` (Boolean) Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. Default: false - `inference_type` (String) How to infer the types of the columns. If none, inference default to strings. must be one of ["None", "Primitive Types Only"]; Default: "None" - `null_values` (List of String) A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. @@ -164,25 +164,25 @@ Optional: - `strings_can_be_null` (Boolean) Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. Default: true - `true_values` (List of String) A set of case-sensitive strings that should be interpreted as true values. - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition` Optional: -- `autogenerated` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition--autogenerated)) -- `from_csv` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition--from_csv)) -- `user_provided` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--header_definition--user_provided)) +- `autogenerated` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition--autogenerated)) +- `from_csv` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition--from_csv)) +- `user_provided` (Attributes) (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--header_definition--user_provided)) - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition.user_provided` - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition.user_provided` - -### Nested Schema for `configuration.streams.format.unstructured_document_format.header_definition.user_provided` + +### Nested Schema for `configuration.streams.format.parquet_format.header_definition.user_provided` Required: @@ -191,38 +191,38 @@ Required: - -### Nested Schema for `configuration.streams.format.unstructured_document_format` + +### Nested Schema for `configuration.streams.format.parquet_format` +Optional: - -### Nested Schema for `configuration.streams.format.unstructured_document_format` +- `processing` (Attributes) Processing configuration (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--processing)) +- `skip_unprocessable_files` (Boolean) If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. Default: true +- `strategy` (String) 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. must be one of ["auto", "fast", "ocr_only", "hi_res"]; Default: "auto" -Optional: + +### Nested Schema for `configuration.streams.format.parquet_format.processing` -- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false +Optional: +- `local` (Attributes) Process files locally, supporting `fast` and `ocr` modes. This is the default option. (see [below for nested schema](#nestedatt--configuration--streams--format--parquet_format--processing--local)) - -### Nested Schema for `configuration.streams.format.unstructured_document_format` + +### Nested Schema for `configuration.streams.format.parquet_format.processing.local` -Optional: -- `processing` (Attributes) Processing configuration (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing)) -- `skip_unprocessable_files` (Boolean) If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. Default: true -- `strategy` (String) 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. must be one of ["auto", "fast", "ocr_only", "hi_res"]; Default: "auto" - -### Nested Schema for `configuration.streams.format.unstructured_document_format.processing` -Optional: + +### Nested Schema for `configuration.streams.format.parquet_format` -- `local` (Attributes) Process files locally, supporting `fast` and `ocr` modes. This is the default option. (see [below for nested schema](#nestedatt--configuration--streams--format--unstructured_document_format--processing--local)) - -### Nested Schema for `configuration.streams.format.unstructured_document_format.processing.local` + +### Nested Schema for `configuration.streams.format.parquet_format` +Optional: +- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false diff --git a/docs/resources/source_salesforce.md b/docs/resources/source_salesforce.md index a995334f4..e3e391fb6 100644 --- a/docs/resources/source_salesforce.md +++ b/docs/resources/source_salesforce.md @@ -20,19 +20,19 @@ resource "airbyte_source_salesforce" "my_source_salesforce" { force_use_bulk_api = true is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-07-25T00:00:00Z" - stream_slice_step = "P30D" + start_date = "2021-07-25" + stream_slice_step = "P1M" streams_criteria = [ { - criteria = "ends with" + criteria = "exacts" value = "...my_value..." }, ] } - definition_id = "78e7243c-021b-4c07-babf-4dfebd414e5a" - name = "Barbara Franecki" + definition_id = "03e6b3fc-a03d-492c-b145-10264179a403" + name = "Jean Prosacco" secret_id = "...my_secret_id..." - workspace_id = "b3fca03d-92cb-4145-9026-4179a40301bb" + workspace_id = "7b13a43b-1ead-4703-a4ee-b23fe553942b" } ``` diff --git a/docs/resources/source_salesloft.md b/docs/resources/source_salesloft.md index 0a555b0ba..4719fc26f 100644 --- a/docs/resources/source_salesloft.md +++ b/docs/resources/source_salesloft.md @@ -22,10 +22,10 @@ resource "airbyte_source_salesloft" "my_source_salesloft" { } start_date = "2020-11-16T00:00:00Z" } - definition_id = "b13a43b1-ead7-403a-8eeb-23fe553942b5" - name = "Jonathon Jerde PhD" + definition_id = "b6d0d209-32d7-4e88-9861-9ec39811786e" + name = "Darlene Vandervort" secret_id = "...my_secret_id..." - workspace_id = "20932d7e-88d8-4619-ac39-811786e44e52" + workspace_id = "72c20971-d544-4a65-a7d2-b4609d4ec646" } ``` diff --git a/docs/resources/source_sap_fieldglass.md b/docs/resources/source_sap_fieldglass.md index 93237c852..6a2ef1e56 100644 --- a/docs/resources/source_sap_fieldglass.md +++ b/docs/resources/source_sap_fieldglass.md @@ -17,10 +17,10 @@ resource "airbyte_source_sap_fieldglass" "my_source_sapfieldglass" { configuration = { api_key = "...my_api_key..." } - definition_id = "72c20971-d544-4a65-a7d2-b4609d4ec646" - name = "Vicky Maggio" + definition_id = "7c968cce-9339-44d8-a35d-b32f900f8cfe" + name = "Ethel Kulas" secret_id = "...my_secret_id..." - workspace_id = "cce93394-d8a3-45db-b2f9-00f8cfe7378a" + workspace_id = "58770229-72e2-437e-83d2-ab4198d2efe5" } ``` diff --git a/docs/resources/source_secoda.md b/docs/resources/source_secoda.md index e74c575d3..32f2066c5 100644 --- a/docs/resources/source_secoda.md +++ b/docs/resources/source_secoda.md @@ -17,10 +17,10 @@ resource "airbyte_source_secoda" "my_source_secoda" { configuration = { api_key = "...my_api_key..." } - definition_id = "58770229-72e2-437e-83d2-ab4198d2efe5" - name = "Allen Gutkowski" + definition_id = "e34c931e-7a72-4ef9-ae22-c4d080cde039" + name = "Marcos Hilll" secret_id = "...my_secret_id..." - workspace_id = "31e7a72e-f9ee-422c-8d08-0cde039dd5e8" + workspace_id = "c5778ddd-1091-40de-87df-e701edbd0d10" } ``` diff --git a/docs/resources/source_sendgrid.md b/docs/resources/source_sendgrid.md index 29367e21b..90710cffc 100644 --- a/docs/resources/source_sendgrid.md +++ b/docs/resources/source_sendgrid.md @@ -16,12 +16,12 @@ SourceSendgrid Resource resource "airbyte_source_sendgrid" "my_source_sendgrid" { configuration = { api_key = "...my_api_key..." - start_date = "2021-12-06T09:47:32.658Z" + start_date = "2020-02-29T00:35:24.807Z" } - definition_id = "778ddd10-910d-4e87-9fe7-01edbd0d10cf" - name = "Stella Torphy" + definition_id = "57eb672b-8aa5-45d6-bfb2-a63da0917a61" + name = "Christine Weimann" secret_id = "...my_secret_id..." - workspace_id = "72b8aa55-d63f-4b2a-a3da-0917a6151fac" + workspace_id = "3e8ec69b-abb3-4389-b4cd-0d539af2319a" } ``` diff --git a/docs/resources/source_sendinblue.md b/docs/resources/source_sendinblue.md index 3ef64e1ee..6d3729a1e 100644 --- a/docs/resources/source_sendinblue.md +++ b/docs/resources/source_sendinblue.md @@ -17,10 +17,10 @@ resource "airbyte_source_sendinblue" "my_source_sendinblue" { configuration = { api_key = "...my_api_key..." } - definition_id = "3e8ec69b-abb3-4389-b4cd-0d539af2319a" - name = "Darla Lockman" + definition_id = "6f8898d7-4d7c-4d06-b0b6-3c633751f6c5" + name = "Debbie Sanford PhD" secret_id = "...my_secret_id..." - workspace_id = "8d74d7cd-0670-4b63-8633-751f6c544c20" + workspace_id = "73f23dc4-6e62-4d66-a727-78d5db92d16e" } ``` diff --git a/docs/resources/source_senseforce.md b/docs/resources/source_senseforce.md index 967e8d10b..068354cb3 100644 --- a/docs/resources/source_senseforce.md +++ b/docs/resources/source_senseforce.md @@ -18,13 +18,13 @@ resource "airbyte_source_senseforce" "my_source_senseforce" { access_token = "...my_access_token..." backend_url = "https://galaxyapi.senseforce.io" dataset_id = "8f418098-ca28-4df5-9498-0df9fe78eda7" - slice_range = 360 + slice_range = 1 start_date = "2017-01-25" } - definition_id = "23dc46e6-2d66-4e72-b78d-5db92d16e1dc" - name = "Paul Hyatt" + definition_id = "06fc1f7a-171f-47c1-98bf-ddb09b9a903f" + name = "Brenda Toy" secret_id = "...my_secret_id..." - workspace_id = "1f7a171f-7c1d-48bf-9db0-9b9a903f60eb" + workspace_id = "a54b7cf5-33c5-45d6-8a56-e1f7b10c6dd1" } ``` diff --git a/docs/resources/source_sentry.md b/docs/resources/source_sentry.md index 0e7cdd95d..04b3186de 100644 --- a/docs/resources/source_sentry.md +++ b/docs/resources/source_sentry.md @@ -19,14 +19,14 @@ resource "airbyte_source_sentry" "my_source_sentry" { discover_fields = [ "{ \"see\": \"documentation\" }", ] - hostname = "expert-potato.info" + hostname = "unimportant-glacier.biz" organization = "...my_organization..." project = "...my_project..." } - definition_id = "4b7cf533-c55d-468a-96e1-f7b10c6dd1e6" - name = "Eloise Robel" + definition_id = "eb5fcf36-5dcc-4aec-ace4-1cbe1d2ecd01" + name = "Angela Boehm" secret_id = "...my_secret_id..." - workspace_id = "cf365dcc-aec2-4ce4-9cbe-1d2ecd01501d" + workspace_id = "2f6c56d3-cf89-4e69-a1ce-0c7a6ecf0509" } ``` diff --git a/docs/resources/source_sftp.md b/docs/resources/source_sftp.md index d19593b1a..def71e9dd 100644 --- a/docs/resources/source_sftp.md +++ b/docs/resources/source_sftp.md @@ -23,14 +23,14 @@ resource "airbyte_source_sftp" "my_source_sftp" { file_pattern = "log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd`" file_types = "csv,json" folder_path = "/logs/2022" - host = "www.host.com" + host = "192.0.2.1" port = 22 user = "...my_user..." } - definition_id = "6c56d3cf-89e6-4921-8e0c-7a6ecf05091d" - name = "Jason Lebsack" + definition_id = "08d9d001-7533-4842-9733-72c40ec92913" + name = "Gladys Zemlak" secret_id = "...my_secret_id..." - workspace_id = "d0017533-8429-4733-b2c4-0ec9291353f9" + workspace_id = "49bcc34d-389b-4bf5-924f-5b1164e1dc4a" } ``` diff --git a/docs/resources/source_sftp_bulk.md b/docs/resources/source_sftp_bulk.md index 622a754b0..8546456c0 100644 --- a/docs/resources/source_sftp_bulk.md +++ b/docs/resources/source_sftp_bulk.md @@ -26,10 +26,10 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 8 + days_to_sync_if_history_is_full = 2 format = { avro_format = { - double_as_string = true + double_as_string = false } } globs = [ @@ -37,18 +37,18 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { ] input_schema = "...my_input_schema..." legacy_prefix = "...my_legacy_prefix..." - name = "Jamie Swaniawski" + name = "Rene Kunze Jr." primary_key = "...my_primary_key..." schemaless = false - validation_policy = "Wait for Discover" + validation_policy = "Emit Record" }, ] - username = "Milford_Weissnat" + username = "Rose_Abshire56" } - definition_id = "24f5b116-4e1d-4c4a-81d4-4fb97610a4d0" - name = "Dr. Caleb Mann" + definition_id = "1eaa4a70-c9cb-4870-ab98-050c39e74506" + name = "Marlene Reichel" secret_id = "...my_secret_id..." - workspace_id = "a4a70c9c-b870-4eb9-8050-c39e7450657b" + workspace_id = "1cb4db2a-ae6c-420a-89c1-9db3e1c883c5" } ``` diff --git a/docs/resources/source_shopify.md b/docs/resources/source_shopify.md index 774c11523..98ab2be11 100644 --- a/docs/resources/source_shopify.md +++ b/docs/resources/source_shopify.md @@ -15,21 +15,20 @@ SourceShopify Resource ```terraform resource "airbyte_source_shopify" "my_source_shopify" { configuration = { - bulk_window_in_days = 10 + bulk_window_in_days = 3 credentials = { api_password = { api_password = "...my_api_password..." } } fetch_transactions_user_id = false - job_termination_threshold = 0 shop = "my-store.myshopify.com" - start_date = "2022-06-27" + start_date = "2020-04-28" } - definition_id = "db2aae6c-20ac-49c1-9db3-e1c883c55acc" - name = "Glen Schinner" + definition_id = "5c37529a-15c3-4606-aa63-f5716d2b265f" + name = "Marguerite Will" secret_id = "...my_secret_id..." - workspace_id = "529a15c3-6062-4a63-b571-6d2b265f2af5" + workspace_id = "fce7bdd5-81ac-4648-b876-fcad615bcace" } ``` @@ -64,7 +63,6 @@ Optional: - `bulk_window_in_days` (Number) Defines what would be a date range per single BULK Job. Default: 30 - `credentials` (Attributes) The authorization method to use to retrieve data from Shopify (see [below for nested schema](#nestedatt--configuration--credentials)) - `fetch_transactions_user_id` (Boolean) Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` user, leave the default value to speed up the fetch. Default: false -- `job_termination_threshold` (Number) The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. Default: 3600 - `start_date` (String) The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated. Default: "2020-01-01" diff --git a/docs/resources/source_shortio.md b/docs/resources/source_shortio.md index 617da3ead..6ba05a12e 100644 --- a/docs/resources/source_shortio.md +++ b/docs/resources/source_shortio.md @@ -19,10 +19,10 @@ resource "airbyte_source_shortio" "my_source_shortio" { secret_key = "...my_secret_key..." start_date = "2023-07-30T03:43:59.244Z" } - definition_id = "6fce7bdd-581a-4c64-8787-6fcad615bcac" - name = "Shane Lebsack" + definition_id = "687b3371-0669-486a-bb02-fd25c7727b36" + name = "Yvonne Glover" secret_id = "...my_secret_id..." - workspace_id = "33710669-86a7-4b02-bd25-c7727b363542" + workspace_id = "1d3e7f0b-c649-4fe5-b08c-82dc40ca1ab7" } ``` diff --git a/docs/resources/source_slack.md b/docs/resources/source_slack.md index d0a1c9598..2900aac6d 100644 --- a/docs/resources/source_slack.md +++ b/docs/resources/source_slack.md @@ -23,15 +23,15 @@ resource "airbyte_source_slack" "my_source_slack" { api_token = "...my_api_token..." } } - include_private_channels = true + include_private_channels = false join_channels = true - lookback_window = 14 + lookback_window = 7 start_date = "2017-01-25T00:00:00Z" } - definition_id = "f0bc649f-e5b0-48c8-adc4-0ca1ab766397" - name = "Miss Beth Wunsch" + definition_id = "6f1b8331-df02-45a1-9458-6c7cdfb558f8" + name = "Kay Bauch" secret_id = "...my_secret_id..." - workspace_id = "331df025-a154-4586-87cd-fb558f87809d" + workspace_id = "3d1fcf2b-6755-4110-90ec-6c18f2017e88" } ``` diff --git a/docs/resources/source_smaily.md b/docs/resources/source_smaily.md index bf4b7afe6..fabe12957 100644 --- a/docs/resources/source_smaily.md +++ b/docs/resources/source_smaily.md @@ -19,10 +19,10 @@ resource "airbyte_source_smaily" "my_source_smaily" { api_subdomain = "...my_api_subdomain..." api_username = "...my_api_username..." } - definition_id = "3d1fcf2b-6755-4110-90ec-6c18f2017e88" - name = "Neil Pagac" + definition_id = "b7a8364f-95e8-44ef-b6a9-353261882dc6" + name = "Hubert Dickens" secret_id = "...my_secret_id..." - workspace_id = "64f95e84-efb6-4a93-9326-1882dc6ea377" + workspace_id = "e2f3a674-4848-4ac2-b04b-eae9e1753040" } ``` diff --git a/docs/resources/source_smartengage.md b/docs/resources/source_smartengage.md index c776dd868..481b64b8b 100644 --- a/docs/resources/source_smartengage.md +++ b/docs/resources/source_smartengage.md @@ -17,10 +17,10 @@ resource "airbyte_source_smartengage" "my_source_smartengage" { configuration = { api_key = "...my_api_key..." } - definition_id = "e2f3a674-4848-4ac2-b04b-eae9e1753040" - name = "Lorraine Zieme" + definition_id = "65f64672-3901-4f87-89df-1af8f5013d5d" + name = "Robyn Weimann I" secret_id = "...my_secret_id..." - workspace_id = "6723901f-87c9-4df1-af8f-5013d5d0cf40" + workspace_id = "b2856e98-a695-40f0-807e-33047d95358a" } ``` diff --git a/docs/resources/source_smartsheets.md b/docs/resources/source_smartsheets.md index 8fbe7db0f..b95161931 100644 --- a/docs/resources/source_smartsheets.md +++ b/docs/resources/source_smartsheets.md @@ -21,15 +21,15 @@ resource "airbyte_source_smartsheets" "my_source_smartsheets" { } } metadata_fields = [ - "sheetname", + "sheetversion", ] spreadsheet_id = "...my_spreadsheet_id..." - start_datetime = "2000-01-01T13:00:00-07:00" + start_datetime = "2000-01-01T13:00:00" } - definition_id = "56e98a69-50f0-4007-a330-47d95358a568" - name = "Margarita Sipes" + definition_id = "9d2abec2-1d7e-43d2-8dfd-3d512342f997" + name = "Jose Hilpert" secret_id = "...my_secret_id..." - workspace_id = "bec21d7e-3d24-4dfd-bd51-2342f997d059" + workspace_id = "38a2e5fc-f99c-4418-b6fa-0cbc1b99ee1e" } ``` diff --git a/docs/resources/source_snapchat_marketing.md b/docs/resources/source_snapchat_marketing.md index 52f9c8810..b4718f3bb 100644 --- a/docs/resources/source_snapchat_marketing.md +++ b/docs/resources/source_snapchat_marketing.md @@ -21,13 +21,13 @@ resource "airbyte_source_snapchat_marketing" "my_source_snapchatmarketing" { end_date = "2022-01-30" refresh_token = "...my_refresh_token..." start_date = "2022-01-01" - swipe_up_attribution_window = "28_DAY" - view_attribution_window = "3_HOUR" + swipe_up_attribution_window = "7_DAY" + view_attribution_window = "1_HOUR" } - definition_id = "fcf99c41-876f-4a0c-bc1b-99ee1e960566" - name = "Dr. Beatrice Reilly" + definition_id = "5b0d51b3-114e-49ed-9754-1c3612b0e8c8" + name = "Miss Emilio Botsford PhD" secret_id = "...my_secret_id..." - workspace_id = "1b3114e9-ed57-4541-8361-2b0e8c8cf11a" + workspace_id = "259943df-a52a-49e4-b5ab-ffba2c1e7b69" } ``` diff --git a/docs/resources/source_snowflake.md b/docs/resources/source_snowflake.md index 2113262ed..b130b2a19 100644 --- a/docs/resources/source_snowflake.md +++ b/docs/resources/source_snowflake.md @@ -16,10 +16,11 @@ SourceSnowflake Resource resource "airbyte_source_snowflake" "my_source_snowflake" { configuration = { credentials = { - key_pair_authentication = { - private_key = "...my_private_key..." - private_key_password = "...my_private_key_password..." - username = "AIRBYTE_USER" + o_auth20 = { + access_token = "...my_access_token..." + client_id = "...my_client_id..." + client_secret = "...my_client_secret..." + refresh_token = "...my_refresh_token..." } } database = "AIRBYTE_DATABASE" @@ -29,10 +30,10 @@ resource "airbyte_source_snowflake" "my_source_snowflake" { schema = "AIRBYTE_SCHEMA" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "9943dfa5-2a9e-4475-abff-ba2c1e7b6908" - name = "Sherman Stokes" + definition_id = "08ecd761-f19b-460a-a080-4c971e60235d" + name = "Frank Marquardt" secret_id = "...my_secret_id..." - workspace_id = "1f19b60a-a080-44c9-b1e6-0235dc09fada" + workspace_id = "dad73b79-d20b-448a-8fdc-6fb504a12b77" } ``` @@ -76,23 +77,9 @@ Optional: Optional: -- `key_pair_authentication` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials--key_pair_authentication)) - `o_auth20` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials--o_auth20)) - `username_and_password` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials--username_and_password)) - -### Nested Schema for `configuration.credentials.key_pair_authentication` - -Required: - -- `private_key` (String, Sensitive) RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key. -- `username` (String) The username you created to allow Airbyte to access the database. - -Optional: - -- `private_key_password` (String, Sensitive) Passphrase for private key - - ### Nested Schema for `configuration.credentials.o_auth20` diff --git a/docs/resources/source_sonar_cloud.md b/docs/resources/source_sonar_cloud.md index 84c83235a..b1c55e1af 100644 --- a/docs/resources/source_sonar_cloud.md +++ b/docs/resources/source_sonar_cloud.md @@ -23,10 +23,10 @@ resource "airbyte_source_sonar_cloud" "my_source_sonarcloud" { start_date = "YYYY-MM-DD" user_token = "...my_user_token..." } - definition_id = "79d20b48-acfd-4c6f-b504-a12b7723cbf0" - name = "Andrea Friesen" + definition_id = "f0223ae8-22e5-4327-98cb-c0547dc93d7d" + name = "Katie Deckow" secret_id = "...my_secret_id..." - workspace_id = "822e5327-d8cb-4c05-87dc-93d7d7628c47" + workspace_id = "47813582-a6f5-437d-9dfc-7f458565e715" } ``` diff --git a/docs/resources/source_spacex_api.md b/docs/resources/source_spacex_api.md index 601ea9496..ca1a105d4 100644 --- a/docs/resources/source_spacex_api.md +++ b/docs/resources/source_spacex_api.md @@ -15,13 +15,13 @@ SourceSpacexAPI Resource ```terraform resource "airbyte_source_spacex_api" "my_source_spacexapi" { configuration = { - id = "813582a6-f537-4d9d-bc7f-458565e7155c" + id = "5c9f06b5-482c-49eb-b700-3d0337f10a64" options = "...my_options..." } - definition_id = "9f06b548-2c9e-4b77-803d-0337f10a6436" - name = "Conrad Glover" + definition_id = "369e4ee3-2ccb-44d5-ada6-128f2436a122" + name = "Travis McCullough" secret_id = "...my_secret_id..." - workspace_id = "32ccb4d5-2da6-4128-b243-6a122e3949c8" + workspace_id = "c8198a6b-f6f1-4cbd-b35a-96cd0e48f1e4" } ``` diff --git a/docs/resources/source_square.md b/docs/resources/source_square.md index 35d887075..63cb9c95f 100644 --- a/docs/resources/source_square.md +++ b/docs/resources/source_square.md @@ -20,14 +20,14 @@ resource "airbyte_source_square" "my_source_square" { api_key = "...my_api_key..." } } - include_deleted_objects = false - is_sandbox = false - start_date = "2021-09-28" + include_deleted_objects = true + is_sandbox = true + start_date = "2022-09-30" } - definition_id = "6bf6f1cb-db35-4a96-8d0e-48f1e4b30469" - name = "Angel Sawayn DDS" + definition_id = "69b6ca0b-303c-4f01-bcd9-78363f1be7e9" + name = "Tom O'Keefe" secret_id = "...my_secret_id..." - workspace_id = "303cf017-cd97-4836-bf1b-e7e9b4aabfc5" + workspace_id = "fc5ff714-6c36-4bb7-b37b-f0beca93a8ae" } ``` diff --git a/docs/resources/source_strava.md b/docs/resources/source_strava.md index 0271d7039..cd5a15d22 100644 --- a/docs/resources/source_strava.md +++ b/docs/resources/source_strava.md @@ -21,10 +21,10 @@ resource "airbyte_source_strava" "my_source_strava" { refresh_token = "fc6243f283e51f6ca989aab298b17da125496f50" start_date = "2021-03-01T00:00:00Z" } - definition_id = "146c36bb-7337-4bf0-beca-93a8ae78e1e5" - name = "Jackie Schuster" + definition_id = "1e537d96-eb6d-45dc-9e25-0f80fbc595c3" + name = "Jackie Krajcik" secret_id = "...my_secret_id..." - workspace_id = "eb6d5dc1-e250-4f80-bbc5-95c3777bccfe" + workspace_id = "cfe70cf1-47e2-493c-ba4b-2d7bbc290ef0" } ``` diff --git a/docs/resources/source_stripe.md b/docs/resources/source_stripe.md index 2e0de39dc..356c802a4 100644 --- a/docs/resources/source_stripe.md +++ b/docs/resources/source_stripe.md @@ -18,15 +18,15 @@ resource "airbyte_source_stripe" "my_source_stripe" { account_id = "...my_account_id..." call_rate_limit = 25 client_secret = "...my_client_secret..." - lookback_window_days = 8 - num_workers = 3 - slice_range = 3 + lookback_window_days = 9 + num_workers = 1 + slice_range = 10 start_date = "2017-01-25T00:00:00Z" } - definition_id = "93c7a4b2-d7bb-4c29-8ef0-0ad5372256fe" - name = "Cynthia O'Reilly" + definition_id = "6fe50a2e-7cfe-46f3-8acc-65c56f5fa677" + name = "Sheldon Gerlach" secret_id = "...my_secret_id..." - workspace_id = "7cfe6f34-acc6-45c5-af5f-a6778e44b91c" + workspace_id = "91c615d1-2804-40ba-83eb-3c0afcc3c8fa" } ``` diff --git a/docs/resources/source_survey_sparrow.md b/docs/resources/source_survey_sparrow.md index fd6a31f79..3c1157985 100644 --- a/docs/resources/source_survey_sparrow.md +++ b/docs/resources/source_survey_sparrow.md @@ -23,10 +23,10 @@ resource "airbyte_source_survey_sparrow" "my_source_surveysparrow" { "{ \"see\": \"documentation\" }", ] } - definition_id = "84461977-a1b2-471a-9b00-9f29606a36da" - name = "Alejandro Muller" + definition_id = "6dac9959-2aae-4b21-989b-3db558d4aa17" + name = "Margaret Wiza" secret_id = "...my_secret_id..." - workspace_id = "2aaeb21d-89b3-4db5-98d4-aa1770fe21a7" + workspace_id = "1a7b03b3-15af-419b-84a1-418c27e2e49f" } ``` diff --git a/docs/resources/source_surveymonkey.md b/docs/resources/source_surveymonkey.md index 72abec8a4..cba85f0ca 100644 --- a/docs/resources/source_surveymonkey.md +++ b/docs/resources/source_surveymonkey.md @@ -26,10 +26,10 @@ resource "airbyte_source_surveymonkey" "my_source_surveymonkey" { "...", ] } - definition_id = "d128040b-a03e-4b3c-8afc-c3c8fa6eafbb" - name = "Alberto Tillman" + definition_id = "fbbc8e3e-7db5-4a3e-846f-c1e0fa91f7ef" + name = "Winifred Graham" secret_id = "...my_secret_id..." - workspace_id = "7db5a3e4-46fc-41e0-ba91-f7ef5f462d7c" + workspace_id = "d7c84461-977a-41b2-b1a5-b009f29606a3" } ``` diff --git a/docs/resources/source_tempo.md b/docs/resources/source_tempo.md index a916c8a5a..63c0e8f1a 100644 --- a/docs/resources/source_tempo.md +++ b/docs/resources/source_tempo.md @@ -17,10 +17,10 @@ resource "airbyte_source_tempo" "my_source_tempo" { configuration = { api_token = "...my_api_token..." } - definition_id = "b03b315a-f19b-4c4a-9418-c27e2e49fbe8" - name = "Stella Hammes" + definition_id = "be84753d-48e3-40cc-8b1d-39ddfc649b7a" + name = "Cassandra O'Reilly" secret_id = "...my_secret_id..." - workspace_id = "48e30ccc-b1d3-49dd-bc64-9b7a58a56364" + workspace_id = "3641fd33-8f32-4285-acd8-8e7e494b9e58" } ``` diff --git a/docs/resources/source_the_guardian_api.md b/docs/resources/source_the_guardian_api.md index daba182eb..42b0b82d1 100644 --- a/docs/resources/source_the_guardian_api.md +++ b/docs/resources/source_the_guardian_api.md @@ -18,14 +18,14 @@ resource "airbyte_source_the_guardian_api" "my_source_theguardianapi" { api_key = "...my_api_key..." end_date = "YYYY-MM-DD" query = "environment AND NOT water" - section = "housing-network" + section = "media" start_date = "YYYY-MM-DD" tag = "environment/energyefficiency" } - definition_id = "338f3228-56cd-488e-be49-4b9e5830e9ef" - name = "Mr. Timmy Gutkowski" + definition_id = "9efbf412-cdca-4e9f-85c7-017380526f88" + name = "Laurie Schiller" secret_id = "...my_secret_id..." - workspace_id = "dcae9f85-c701-4738-8526-f8856cdf3fde" + workspace_id = "3fdefbe1-9992-414f-bffa-48acadc06400" } ``` diff --git a/docs/resources/source_tiktok_marketing.md b/docs/resources/source_tiktok_marketing.md index 3519b98bf..7edeb21e5 100644 --- a/docs/resources/source_tiktok_marketing.md +++ b/docs/resources/source_tiktok_marketing.md @@ -15,7 +15,7 @@ SourceTiktokMarketing Resource ```terraform resource "airbyte_source_tiktok_marketing" "my_source_tiktokmarketing" { configuration = { - attribution_window = 10 + attribution_window = 8 credentials = { o_auth20 = { access_token = "...my_access_token..." @@ -24,14 +24,14 @@ resource "airbyte_source_tiktok_marketing" "my_source_tiktokmarketing" { secret = "...my_secret..." } } - end_date = "2021-02-26" + end_date = "2022-04-17" include_deleted = true - start_date = "2021-10-12" + start_date = "2021-05-10" } - definition_id = "9214f3ff-a48a-4cad-8064-00b7b58d13a2" - name = "Spencer Witting" + definition_id = "13a2ccf2-b1ad-4e2f-8984-bfb0e1b3d2b8" + name = "Jean Dare" secret_id = "...my_secret_id..." - workspace_id = "1ade2f49-84bf-4b0e-9b3d-2b89b26a8838" + workspace_id = "8838cf8d-227f-4318-9424-0654f4782740" } ``` @@ -62,7 +62,7 @@ Optional: - `attribution_window` (Number) The attribution window in days. Default: 3 - `credentials` (Attributes) Authentication method (see [below for nested schema](#nestedatt--configuration--credentials)) - `end_date` (String) The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date. -- `include_deleted` (Boolean) Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. Default: false +- `include_deleted` (Boolean) Set to active if you want to include deleted data in reports. Default: false - `start_date` (String) The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. Default: "2016-09-01" diff --git a/docs/resources/source_trello.md b/docs/resources/source_trello.md index 7e5349e17..6f22684a8 100644 --- a/docs/resources/source_trello.md +++ b/docs/resources/source_trello.md @@ -22,10 +22,10 @@ resource "airbyte_source_trello" "my_source_trello" { start_date = "2021-03-01T00:00:00Z" token = "...my_token..." } - definition_id = "8d227f31-8d42-4406-94f4-782740a2b5a4" - name = "Beverly Grimes" + definition_id = "b5a46242-8ebc-45c7-bead-f0c9ce16ebe8" + name = "Josefina Pacocha" secret_id = "...my_secret_id..." - workspace_id = "ebc5c77e-adf0-4c9c-a16e-be85fa64aee8" + workspace_id = "aee8d2bd-e48e-4efc-ab9e-0d54b0894bdd" } ``` diff --git a/docs/resources/source_trustpilot.md b/docs/resources/source_trustpilot.md index f2f4ce284..ae7b20643 100644 --- a/docs/resources/source_trustpilot.md +++ b/docs/resources/source_trustpilot.md @@ -25,10 +25,10 @@ resource "airbyte_source_trustpilot" "my_source_trustpilot" { } start_date = "%Y-%m-%dT%H:%M:%S" } - definition_id = "d2bde48e-efce-4b9e-8d54-b0894bdd98fe" - name = "Lucia McClure" + definition_id = "98fe3f92-c06a-49aa-b270-2875abb88c39" + name = "Marcos Kuhic" secret_id = "...my_secret_id..." - workspace_id = "06a9aa72-7028-475a-bb88-c398d7966608" + workspace_id = "66080f3e-cae3-4cb4-91ea-7992cd63d338" } ``` diff --git a/docs/resources/source_tvmaze_schedule.md b/docs/resources/source_tvmaze_schedule.md index cec7d1c74..26171b170 100644 --- a/docs/resources/source_tvmaze_schedule.md +++ b/docs/resources/source_tvmaze_schedule.md @@ -20,10 +20,10 @@ resource "airbyte_source_tvmaze_schedule" "my_source_tvmazeschedule" { start_date = "...my_start_date..." web_schedule_country_code = "global" } - definition_id = "3ecae3cb-491e-4a79-92cd-63d3381efe3f" - name = "Mercedes Heathcote" + definition_id = "fe3f7d5a-433d-430c-a4aa-9f684d9ab345" + name = "Ms. Moses Dibbert" secret_id = "...my_secret_id..." - workspace_id = "33d30ca4-aa9f-4684-99ab-345ef3183cb2" + workspace_id = "cb2e52a8-6adb-4b57-85cb-e7ccff9d0724" } ``` diff --git a/docs/resources/source_twilio.md b/docs/resources/source_twilio.md index cc09c8f63..1417f5b59 100644 --- a/docs/resources/source_twilio.md +++ b/docs/resources/source_twilio.md @@ -20,10 +20,10 @@ resource "airbyte_source_twilio" "my_source_twilio" { lookback_window = 60 start_date = "2020-10-01T00:00:00Z" } - definition_id = "a86adbb5-7c5c-4be7-8cff-9d0724747a4b" - name = "Marian Torphy" + definition_id = "a4b37eb2-05dd-4b7f-9b71-195e07e10364" + name = "Angie Jenkins" secret_id = "...my_secret_id..." - workspace_id = "05ddb7f1-b711-495e-87e1-03643a6dfd2a" + workspace_id = "d2a60225-b2ac-462e-b10f-1a0d51fb8be0" } ``` diff --git a/docs/resources/source_twilio_taskrouter.md b/docs/resources/source_twilio_taskrouter.md index 75593c1ce..2c4d9d0d0 100644 --- a/docs/resources/source_twilio_taskrouter.md +++ b/docs/resources/source_twilio_taskrouter.md @@ -18,10 +18,10 @@ resource "airbyte_source_twilio_taskrouter" "my_source_twiliotaskrouter" { account_sid = "...my_account_sid..." auth_token = "...my_auth_token..." } - definition_id = "60225b2a-c62e-4b10-b1a0-d51fb8be0416" - name = "Rudolph Gerhold" + definition_id = "416cb49d-a06c-4239-a7af-3ca2cc2a5392" + name = "Julio Gutmann" secret_id = "...my_secret_id..." - workspace_id = "a06c239e-7af3-4ca2-8c2a-5392d7458890" + workspace_id = "89040904-7267-4ce8-aa32-2e02b7e6dd49" } ``` diff --git a/docs/resources/source_twitter.md b/docs/resources/source_twitter.md index b55edca27..dce357f67 100644 --- a/docs/resources/source_twitter.md +++ b/docs/resources/source_twitter.md @@ -16,14 +16,14 @@ SourceTwitter Resource resource "airbyte_source_twitter" "my_source_twitter" { configuration = { api_key = "...my_api_key..." - end_date = "2022-12-29T05:52:40.964Z" + end_date = "2020-01-18T12:46:16.717Z" query = "...my_query..." - start_date = "2022-12-24T13:40:20.697Z" + start_date = "2022-03-25T00:43:50.915Z" } - definition_id = "47267ce8-6a32-42e0-ab7e-6dd49df5c359" - name = "Blanche Hartmann" + definition_id = "3592a5dd-7ddb-4d79-bd2e-b894fd682a67" + name = "Whitney Casper" secret_id = "...my_secret_id..." - workspace_id = "7ddbd797-d2eb-4894-bd68-2a677b1b8dbb" + workspace_id = "dbbaeb9b-5c2e-42ee-8b85-f41cf2efd5ed" } ``` diff --git a/docs/resources/source_typeform.md b/docs/resources/source_typeform.md index 228fa4861..15972f520 100644 --- a/docs/resources/source_typeform.md +++ b/docs/resources/source_typeform.md @@ -21,7 +21,7 @@ resource "airbyte_source_typeform" "my_source_typeform" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." refresh_token = "...my_refresh_token..." - token_expiry_date = "2021-02-27T17:24:02.669Z" + token_expiry_date = "2022-12-23T20:48:01.588Z" } } form_ids = [ @@ -29,10 +29,10 @@ resource "airbyte_source_typeform" "my_source_typeform" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "b5c2e2ee-8b85-4f41-8f2e-fd5ed605e9e4" - name = "Darin Spinka" + definition_id = "9e4deda3-0dd3-4cfb-8aa2-fad058413083" + name = "Krystal Dietrich" secret_id = "...my_secret_id..." - workspace_id = "0dd3cfb0-aa2f-4ad0-9841-30837d3e5de4" + workspace_id = "de43c907-f63c-4c02-bc2f-7f5dfb2c26b4" } ``` diff --git a/docs/resources/source_us_census.md b/docs/resources/source_us_census.md index d62659dac..2aba28b88 100644 --- a/docs/resources/source_us_census.md +++ b/docs/resources/source_us_census.md @@ -16,13 +16,13 @@ SourceUsCensus Resource resource "airbyte_source_us_census" "my_source_uscensus" { configuration = { api_key = "...my_api_key..." - query_params = "get=NAME,NAICS2017_LABEL,LFO_LABEL,EMPSZES_LABEL,ESTAB,PAYANN,PAYQTR1,EMP&for=us:*&NAICS2017=72&LFO=001&EMPSZES=001" - query_path = "data/timeseries/healthins/sahie" + query_params = "get=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:*" + query_path = "data/2018/acs" } - definition_id = "907f63cc-02bc-42f7-b5df-b2c26b498691" - name = "Christie Emard" + definition_id = "6915d332-4b48-419f-b393-429d3165dd85" + name = "Vernon Tillman" secret_id = "...my_secret_id..." - workspace_id = "4b4819ff-3934-429d-b165-dd8595e9c61e" + workspace_id = "61e20db5-f4bb-411c-a0c3-a7ba336248be" } ``` diff --git a/docs/resources/source_vantage.md b/docs/resources/source_vantage.md index 3e8c288f6..9332dd07b 100644 --- a/docs/resources/source_vantage.md +++ b/docs/resources/source_vantage.md @@ -17,10 +17,10 @@ resource "airbyte_source_vantage" "my_source_vantage" { configuration = { access_token = "...my_access_token..." } - definition_id = "20db5f4b-b11c-460c-ba7b-a336248be45d" - name = "Shaun Schultz" + definition_id = "45dfad93-24f6-4ab9-b833-4526eae71eb7" + name = "Sheryl Stroman" secret_id = "...my_secret_id..." - workspace_id = "24f6ab9f-8334-4526-aae7-1eb759d7dd0b" + workspace_id = "d0bf2f57-2195-478f-bbe9-226a954fff93" } ``` diff --git a/docs/resources/source_webflow.md b/docs/resources/source_webflow.md index 16876edd6..fbfc8e1c6 100644 --- a/docs/resources/source_webflow.md +++ b/docs/resources/source_webflow.md @@ -19,10 +19,10 @@ resource "airbyte_source_webflow" "my_source_webflow" { api_key = "a very long hex sequence" site_id = "a relatively long hex sequence" } - definition_id = "f2f57219-578f-4bbe-9226-a954fff93d12" - name = "Bryan McKenzie" + definition_id = "d12e392c-e90b-4916-9fb3-0db2efb21ef2" + name = "Israel Gleason" secret_id = "...my_secret_id..." - workspace_id = "e90b9169-fb30-4db2-afb2-1ef2bc48bf07" + workspace_id = "f07f2e77-2136-4664-afa9-b2db7532b28c" } ``` diff --git a/docs/resources/source_whisky_hunter.md b/docs/resources/source_whisky_hunter.md index 3207632f7..7453bcf13 100644 --- a/docs/resources/source_whisky_hunter.md +++ b/docs/resources/source_whisky_hunter.md @@ -15,10 +15,10 @@ SourceWhiskyHunter Resource ```terraform resource "airbyte_source_whisky_hunter" "my_source_whiskyhunter" { configuration = {} - definition_id = "f2e77213-6664-46fa-9b2d-b7532b28cb78" - name = "Olivia Lesch" + definition_id = "b785b8d4-ad9b-4b4c-ad04-c6ceb0e44096" + name = "Jenny Strosin" secret_id = "...my_secret_id..." - workspace_id = "ad9bb4c2-d04c-46ce-b0e4-409659dbf6ec" + workspace_id = "6ecaf35c-15b3-4779-97e3-dccb9fd6e1ad" } ``` diff --git a/docs/resources/source_wikipedia_pageviews.md b/docs/resources/source_wikipedia_pageviews.md index 0b9895b60..9429e5ac2 100644 --- a/docs/resources/source_wikipedia_pageviews.md +++ b/docs/resources/source_wikipedia_pageviews.md @@ -15,18 +15,18 @@ SourceWikipediaPageviews Resource ```terraform resource "airbyte_source_wikipedia_pageviews" "my_source_wikipediapageviews" { configuration = { - access = "mobile-app" - agent = "automated" + access = "desktop" + agent = "user" article = "Are_You_the_One%3F" country = "FR" end = "...my_end..." project = "commons.wikimedia.org" start = "...my_start..." } - definition_id = "15b3779d-7e3d-4ccb-9fd6-e1ad7470b832" - name = "Delia Zulauf MD" + definition_id = "8320ef50-a8ca-476b-883e-a280df1804a6" + name = "Hannah Moore" secret_id = "...my_secret_id..." - workspace_id = "8ca76b08-3ea2-480d-b180-4a67b9f3e581" + workspace_id = "e5814951-2957-4c29-8696-756fe0588102" } ``` @@ -60,7 +60,7 @@ Required: - `country` (String) The ISO 3166-1 alpha-2 code of a country for which to retrieve top articles. - `end` (String) The date of the last day to include, in YYYYMMDD or YYYYMMDDHH format. - `project` (String) If you want to filter by project, use the domain of any Wikimedia project. -- `start` (String) The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. +- `start` (String) The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. ## Import diff --git a/docs/resources/source_woocommerce.md b/docs/resources/source_woocommerce.md index 49b3f6cf1..7995105de 100644 --- a/docs/resources/source_woocommerce.md +++ b/docs/resources/source_woocommerce.md @@ -20,10 +20,10 @@ resource "airbyte_source_woocommerce" "my_source_woocommerce" { shop = "...my_shop..." start_date = "2021-01-01" } - definition_id = "512957c2-9869-4675-afe0-5881022b8ad4" - name = "Ms. Marcella Schiller" + definition_id = "8ad45dc0-7887-4545-a3f3-6dab5122890f" + name = "Cecelia McClure" secret_id = "...my_secret_id..." - workspace_id = "8754523f-36da-4b51-a289-0f3e992c2a3f" + workspace_id = "c2a3f4c8-fc02-46c7-8c4e-afdab4c1bcaf" } ``` diff --git a/docs/resources/source_xkcd.md b/docs/resources/source_xkcd.md index be34bb357..c236d6642 100644 --- a/docs/resources/source_xkcd.md +++ b/docs/resources/source_xkcd.md @@ -15,10 +15,10 @@ SourceXkcd Resource ```terraform resource "airbyte_source_xkcd" "my_source_xkcd" { configuration = {} - definition_id = "4c8fc026-c7cc-44ea-bdab-4c1bcaf66c12" - name = "Rafael Mante" + definition_id = "66c12869-f984-4d61-b828-542bb37a458f" + name = "Ms. Lowell Stiedemann" secret_id = "...my_secret_id..." - workspace_id = "84d61382-8542-4bb3-ba45-8facd1771a16" + workspace_id = "1a16fff1-f04a-4eeb-8306-c4f3397c2047" } ``` diff --git a/docs/resources/source_yandex_metrica.md b/docs/resources/source_yandex_metrica.md index ba8cb5444..023db3140 100644 --- a/docs/resources/source_yandex_metrica.md +++ b/docs/resources/source_yandex_metrica.md @@ -20,10 +20,10 @@ resource "airbyte_source_yandex_metrica" "my_source_yandexmetrica" { end_date = "2022-01-01" start_date = "2022-01-01" } - definition_id = "f04aeebc-306c-44f3-b97c-20475faadeba" - name = "Terry Bergnaum" + definition_id = "deba481e-413d-4d76-8cc3-ae1d775ee978" + name = "Dr. Lawrence Howe" secret_id = "...my_secret_id..." - workspace_id = "13dd760c-c3ae-41d7-b5ee-978f160f4574" + workspace_id = "5746ac11-eb02-4437-a4c2-fa90b3fc58ae" } ``` diff --git a/docs/resources/source_yotpo.md b/docs/resources/source_yotpo.md index 2725b9d0d..1ddf653c9 100644 --- a/docs/resources/source_yotpo.md +++ b/docs/resources/source_yotpo.md @@ -17,13 +17,13 @@ resource "airbyte_source_yotpo" "my_source_yotpo" { configuration = { access_token = "...my_access_token..." app_key = "...my_app_key..." - email = "Louvenia9@yahoo.com" + email = "Leta.Jakubowski@hotmail.com" start_date = "2022-03-01T00:00:00.000Z" } - definition_id = "0243724c-2fa9-40b3-bc58-aed9663e07de" - name = "Chester Armstrong" + definition_id = "7de96097-25c6-4d5a-9da3-5039f4e4098b" + name = "Morris Schimmel" secret_id = "...my_secret_id..." - workspace_id = "25c6d5a5-da35-4039-b4e4-098bb8c2a23b" + workspace_id = "23b3c013-4621-4866-8f51-8dbd5ebee014" } ``` diff --git a/docs/resources/source_youtube_analytics.md b/docs/resources/source_youtube_analytics.md index fefea0286..02643defd 100644 --- a/docs/resources/source_youtube_analytics.md +++ b/docs/resources/source_youtube_analytics.md @@ -22,10 +22,10 @@ resource "airbyte_source_youtube_analytics" "my_source_youtubeanalytics" { refresh_token = "...my_refresh_token..." } } - definition_id = "3c013462-1866-4cf5-98db-d5ebee014e07" - name = "Oliver Smith" + definition_id = "e07eadc6-f53d-4253-9b8b-1e39d437be8f" + name = "Vicky Welch" secret_id = "...my_secret_id..." - workspace_id = "f53d253d-b8b1-4e39-9437-be8f4cf797fa" + workspace_id = "7fa8ae01-2beb-4a22-8996-41ef630f5d87" } ``` diff --git a/docs/resources/source_zendesk_chat.md b/docs/resources/source_zendesk_chat.md index 014f7ac49..782decb5a 100644 --- a/docs/resources/source_zendesk_chat.md +++ b/docs/resources/source_zendesk_chat.md @@ -23,10 +23,10 @@ resource "airbyte_source_zendesk_chat" "my_source_zendeskchat" { start_date = "2021-02-01T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "e012beba-22c9-4964-9ef6-30f5d8739c0e" - name = "Hazel Pfeffer" + definition_id = "c0e34b35-2ddb-404c-9bce-387d66444a18" + name = "Claudia Mills" secret_id = "...my_secret_id..." - workspace_id = "2ddb04c9-bce3-487d-a644-4a186797a763" + workspace_id = "763e10f9-9e00-4879-a494-84a748552064" } ``` diff --git a/docs/resources/source_zendesk_sell.md b/docs/resources/source_zendesk_sell.md index 20c67d9b5..7f9357310 100644 --- a/docs/resources/source_zendesk_sell.md +++ b/docs/resources/source_zendesk_sell.md @@ -17,10 +17,10 @@ resource "airbyte_source_zendesk_sell" "my_source_zendesksell" { configuration = { api_token = "f23yhd630otl94y85a8bf384958473pto95847fd006da49382716or937ruw059" } - definition_id = "e10f99e0-0879-4e49-884a-7485520644ae" - name = "Francis Daniel" + definition_id = "4aee427f-93df-49bf-84b7-84edaaf2f424" + name = "Ms. Marcos Ebert" secret_id = "...my_secret_id..." - workspace_id = "93df9bf8-4b78-44ed-aaf2-f424ed308606" + workspace_id = "06f09926-22de-47b1-a93e-5915fe5844c8" } ``` diff --git a/docs/resources/source_zendesk_sunshine.md b/docs/resources/source_zendesk_sunshine.md index c5d81b817..62df51e38 100644 --- a/docs/resources/source_zendesk_sunshine.md +++ b/docs/resources/source_zendesk_sunshine.md @@ -18,16 +18,16 @@ resource "airbyte_source_zendesk_sunshine" "my_source_zendesksunshine" { credentials = { api_token = { api_token = "...my_api_token..." - email = "Amos.McKenzie@hotmail.com" + email = "Jannie_Zulauf@hotmail.com" } } start_date = "2021-01-01T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "2de7b1a9-3e59-415f-a584-4c8d7f9e67ba" - name = "Randal Kuphal" + definition_id = "badf74d2-3a87-4a42-abf6-ae57802daa82" + name = "Ramona Marvin" secret_id = "...my_secret_id..." - workspace_id = "23a87a42-abf6-4ae5-b802-daa821998eac" + workspace_id = "ac7526c0-e68d-441f-a947-8bd831a4caf6" } ``` diff --git a/docs/resources/source_zendesk_support.md b/docs/resources/source_zendesk_support.md index 07631c8b7..153a94efa 100644 --- a/docs/resources/source_zendesk_support.md +++ b/docs/resources/source_zendesk_support.md @@ -19,17 +19,17 @@ resource "airbyte_source_zendesk_support" "my_source_zendesksupport" { api_token = { additional_properties = "{ \"see\": \"documentation\" }" api_token = "...my_api_token..." - email = "Ericka_Dach@yahoo.com" + email = "Anastacio94@yahoo.com" } } - ignore_pagination = false + ignore_pagination = true start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "8d41f294-78bd-4831-a4ca-f6a030f2320a" - name = "Tom Schamberger" + definition_id = "0a84c82f-eed3-45fd-8712-605259781224" + name = "Kathleen Greenfelder" secret_id = "...my_secret_id..." - workspace_id = "feed35fd-4712-4605-a597-81224214e979" + workspace_id = "79a97873-ec6e-4c23-b893-6834bb7f256a" } ``` diff --git a/docs/resources/source_zendesk_talk.md b/docs/resources/source_zendesk_talk.md index 558db613f..ade9cfe54 100644 --- a/docs/resources/source_zendesk_talk.md +++ b/docs/resources/source_zendesk_talk.md @@ -19,16 +19,16 @@ resource "airbyte_source_zendesk_talk" "my_source_zendesktalk" { api_token = { additional_properties = "{ \"see\": \"documentation\" }" api_token = "...my_api_token..." - email = "Lavada.Kshlerin@yahoo.com" + email = "Carolyne_Turcotte57@hotmail.com" } } start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "c6ec23f8-9368-434b-b7f2-56aa2eed97a7" - name = "Jermaine Miller" + definition_id = "7ac93ce2-101f-4692-aff8-de5650472830" + name = "Grant Schmitt V" secret_id = "...my_secret_id..." - workspace_id = "e2101f69-2eff-48de-9650-472830aace29" + workspace_id = "0d7b3b35-8aff-4520-ae7c-66512764ede9" } ``` diff --git a/docs/resources/source_zenloop.md b/docs/resources/source_zenloop.md index 15af31bf1..ac337992f 100644 --- a/docs/resources/source_zenloop.md +++ b/docs/resources/source_zenloop.md @@ -20,10 +20,10 @@ resource "airbyte_source_zenloop" "my_source_zenloop" { survey_group_id = "...my_survey_group_id..." survey_id = "...my_survey_id..." } - definition_id = "0d7b3b35-8aff-4520-ae7c-66512764ede9" - name = "Miss Jake Lueilwitz" + definition_id = "cd819ecc-37ba-4170-8ba6-4daf2cd7c8fe" + name = "Delores Hamill" secret_id = "...my_secret_id..." - workspace_id = "cc37ba17-00ba-464d-af2c-d7c8fe5757a3" + workspace_id = "306443a7-5bcf-44e2-a137-8db01d76f7dd" } ``` diff --git a/docs/resources/source_zoho_crm.md b/docs/resources/source_zoho_crm.md index cf59deb1b..bd5aad920 100644 --- a/docs/resources/source_zoho_crm.md +++ b/docs/resources/source_zoho_crm.md @@ -19,14 +19,14 @@ resource "airbyte_source_zoho_crm" "my_source_zohocrm" { client_secret = "...my_client_secret..." dc_region = "US" edition = "Professional" - environment = "Production" + environment = "Developer" refresh_token = "...my_refresh_token..." - start_datetime = "2000-01-01 13:00" + start_datetime = "2000-01-01T13:00+00:00" } - definition_id = "75bcf4e2-e137-48db-81d7-6f7dd27aa6e5" - name = "Melba Beer" + definition_id = "51f0c20e-4312-4d0c-bfe3-9df03e297d6f" + name = "Roxanne Yundt" secret_id = "...my_secret_id..." - workspace_id = "0e4312d0-cbfe-439d-b03e-297d6f5cf39b" + workspace_id = "b34f9589-f421-498f-b282-2b82a159ebc2" } ``` diff --git a/docs/resources/source_zoom.md b/docs/resources/source_zoom.md index aaa52ac69..c6a9fd3d2 100644 --- a/docs/resources/source_zoom.md +++ b/docs/resources/source_zoom.md @@ -20,10 +20,10 @@ resource "airbyte_source_zoom" "my_source_zoom" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." } - definition_id = "34f9589f-4219-48f3-a822-b82a159ebc2b" - name = "Della Brekke" + definition_id = "b7c1d354-0fbb-4e2d-8a9d-0010028d11c1" + name = "Leona Bechtelar" secret_id = "...my_secret_id..." - workspace_id = "540fbbe2-d8a9-4d00-9002-8d11c1280d80" + workspace_id = "07cdd8eb-8c75-4c46-9093-8eb2433624d8" } ``` diff --git a/docs/resources/workspace.md b/docs/resources/workspace.md index 068a6771e..cd47df314 100644 --- a/docs/resources/workspace.md +++ b/docs/resources/workspace.md @@ -14,8 +14,8 @@ Workspace Resource ```terraform resource "airbyte_workspace" "my_workspace" { - name = "Johnnie Skiles" - organization_id = "eb8c75c4-6109-438e-b243-3624d8c5c5aa" + name = "Floyd Schinner" + organization_id = "a0b5368b-26a5-468a-a6dc-340bb1546957" } ``` diff --git a/examples/data-sources/airbyte_destination_langchain/data-source.tf b/examples/data-sources/airbyte_destination_langchain/data-source.tf new file mode 100644 index 000000000..25f13b411 --- /dev/null +++ b/examples/data-sources/airbyte_destination_langchain/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_destination_langchain" "my_destination_langchain" { + destination_id = "...my_destination_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_clazar/data-source.tf b/examples/data-sources/airbyte_source_clazar/data-source.tf deleted file mode 100644 index 34e3942ea..000000000 --- a/examples/data-sources/airbyte_source_clazar/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -data "airbyte_source_clazar" "my_source_clazar" { - source_id = "...my_source_id..." -} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_datadog/data-source.tf b/examples/data-sources/airbyte_source_datadog/data-source.tf deleted file mode 100644 index 4fb25014d..000000000 --- a/examples/data-sources/airbyte_source_datadog/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -data "airbyte_source_datadog" "my_source_datadog" { - source_id = "...my_source_id..." -} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_goldcast/data-source.tf b/examples/data-sources/airbyte_source_goldcast/data-source.tf deleted file mode 100644 index eb645166a..000000000 --- a/examples/data-sources/airbyte_source_goldcast/data-source.tf +++ /dev/null @@ -1,3 +0,0 @@ -data "airbyte_source_goldcast" "my_source_goldcast" { - source_id = "...my_source_id..." -} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_google_analytics_v4_service_account_only/data-source.tf b/examples/data-sources/airbyte_source_google_analytics_v4_service_account_only/data-source.tf new file mode 100644 index 000000000..0daf09530 --- /dev/null +++ b/examples/data-sources/airbyte_source_google_analytics_v4_service_account_only/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_google_analytics_v4_service_account_only" "my_source_googleanalyticsv4serviceaccountonly" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/data-sources/airbyte_source_punk_api/data-source.tf b/examples/data-sources/airbyte_source_punk_api/data-source.tf new file mode 100644 index 000000000..098a08a1a --- /dev/null +++ b/examples/data-sources/airbyte_source_punk_api/data-source.tf @@ -0,0 +1,3 @@ +data "airbyte_source_punk_api" "my_source_punkapi" { + source_id = "...my_source_id..." +} \ No newline at end of file diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 68c575cef..a470f8c0b 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { airbyte = { source = "airbytehq/airbyte" - version = "0.7.1" + version = "0.7.0" } } } diff --git a/examples/resources/airbyte_destination_langchain/import.sh b/examples/resources/airbyte_destination_langchain/import.sh new file mode 100644 index 000000000..1d914714b --- /dev/null +++ b/examples/resources/airbyte_destination_langchain/import.sh @@ -0,0 +1 @@ +terraform import airbyte_destination_langchain.my_airbyte_destination_langchain "" diff --git a/examples/resources/airbyte_destination_langchain/resource.tf b/examples/resources/airbyte_destination_langchain/resource.tf new file mode 100644 index 000000000..0b29648b2 --- /dev/null +++ b/examples/resources/airbyte_destination_langchain/resource.tf @@ -0,0 +1,23 @@ +resource "airbyte_destination_langchain" "my_destination_langchain" { + configuration = { + embedding = { + fake = {} + } + indexing = { + chroma_local_persistance = { + collection_name = "...my_collection_name..." + destination_path = "/local/my_chroma_db" + } + } + processing = { + chunk_overlap = 7 + chunk_size = 3 + text_fields = [ + "...", + ] + } + } + definition_id = "a735a4e1-8012-43f0-976f-b78bf74fa22d" + name = "Jack Christiansen" + workspace_id = "1b5f134d-0007-4497-b4ae-87c30892ffb0" +} \ No newline at end of file diff --git a/examples/resources/airbyte_destination_milvus/resource.tf b/examples/resources/airbyte_destination_milvus/resource.tf index d0f21b896..057bfc4e3 100644 --- a/examples/resources/airbyte_destination_milvus/resource.tf +++ b/examples/resources/airbyte_destination_milvus/resource.tf @@ -15,14 +15,14 @@ resource "airbyte_destination_milvus" "my_destination_milvus" { } collection = "...my_collection..." db = "...my_db..." - host = "tcp://host.docker.internal:19530" + host = "tcp://my-local-milvus:19530" text_field = "...my_text_field..." vector_field = "...my_vector_field..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 6 - chunk_size = 4 + chunk_overlap = 1 + chunk_size = 10 field_name_mappings = [ { from_field = "...my_from_field..." @@ -37,12 +37,12 @@ resource "airbyte_destination_milvus" "my_destination_milvus" { ] text_splitter = { by_markdown_header = { - split_level = 2 + split_level = 6 } } } } - definition_id = "5a4e1801-23f0-4d76-bb78-bf74fa22de12" - name = "Jenny Braun" - workspace_id = "f134d000-7497-474a-a87c-30892ffb0f41" + definition_id = "2248d601-2833-484b-987b-5cce36148543" + name = "Sylvia Smitham" + workspace_id = "3c5e509f-4525-421a-8478-78c254cd184f" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_mongodb/resource.tf b/examples/resources/airbyte_destination_mongodb/resource.tf index 0e99749fb..964c8daf6 100644 --- a/examples/resources/airbyte_destination_mongodb/resource.tf +++ b/examples/resources/airbyte_destination_mongodb/resource.tf @@ -3,7 +3,7 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { auth_type = { login_password = { password = "...my_password..." - username = "Ubaldo12" + username = "Ryleigh43" } } database = "...my_database..." @@ -17,7 +17,7 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" { no_tunnel = {} } } - definition_id = "48d60128-3384-4bd8-bb5c-ce3614854333" - name = "Courtney Considine" - workspace_id = "5e509f45-2521-4a04-b878-c254cd184fd1" + definition_id = "e75f1c50-c9ec-4767-87b0-6cf86fe4a6f8" + name = "Mr. Malcolm Lubowitz" + workspace_id = "d646f802-e7b2-4183-b2bc-4f6db7afdaca" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_mssql/resource.tf b/examples/resources/airbyte_destination_mssql/resource.tf index a8d18de0f..216cd4f71 100644 --- a/examples/resources/airbyte_destination_mssql/resource.tf +++ b/examples/resources/airbyte_destination_mssql/resource.tf @@ -13,9 +13,9 @@ resource "airbyte_destination_mssql" "my_destination_mssql" { tunnel_method = { no_tunnel = {} } - username = "Hope.Toy" + username = "Brian25" } - definition_id = "f1c50c9e-c767-447b-86cf-86fe4a6f8bb8" - name = "Lisa Von" - workspace_id = "46f802e7-b218-43b2-bc4f-6db7afdacad2" + definition_id = "cf17a668-3bb7-46cb-9d42-c04b7b603cc8" + name = "Bryant Lynch" + workspace_id = "e7603813-ef7f-4c0d-976e-5f414549f124" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_mysql/resource.tf b/examples/resources/airbyte_destination_mysql/resource.tf index ac85f61c3..6d25fea96 100644 --- a/examples/resources/airbyte_destination_mysql/resource.tf +++ b/examples/resources/airbyte_destination_mysql/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_destination_mysql" "my_destination_mysql" { configuration = { database = "...my_database..." - disable_type_dedupe = false + disable_type_dedupe = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." @@ -10,9 +10,9 @@ resource "airbyte_destination_mysql" "my_destination_mysql" { tunnel_method = { no_tunnel = {} } - username = "Deon.Russel49" + username = "Jimmy.Cummings31" } - definition_id = "a6683bb7-6cbd-4d42-804b-7b603cc8cd88" - name = "Tricia Klocko I" - workspace_id = "813ef7fc-0d17-46e5-b414-549f1242182d" + definition_id = "ef4e895c-9212-4618-852d-1432f33897fe" + name = "Francis Rutherford" + workspace_id = "c8c4bf88-2725-4c3c-abc3-9a6d3f396b39" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_oracle/resource.tf b/examples/resources/airbyte_destination_oracle/resource.tf index 1ab3c8868..3e5c9201e 100644 --- a/examples/resources/airbyte_destination_oracle/resource.tf +++ b/examples/resources/airbyte_destination_oracle/resource.tf @@ -10,9 +10,9 @@ resource "airbyte_destination_oracle" "my_destination_oracle" { tunnel_method = { no_tunnel = {} } - username = "Emmalee.Towne89" + username = "Louvenia.Bartell4" } - definition_id = "895c9212-6184-452d-9432-f33897fec4ca" - name = "Adrienne Lockman" - workspace_id = "bf882725-c3c6-4bc3-9a6d-3f396b39ea0e" + definition_id = "16590e1a-2bc7-4de0-bf63-7374915d3efc" + name = "Kara Stroman" + workspace_id = "0e36acc1-e6f1-4291-9604-b55b326e06d2" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_pinecone/resource.tf b/examples/resources/airbyte_destination_pinecone/resource.tf index 4d03ebcc1..3e1e672b8 100644 --- a/examples/resources/airbyte_destination_pinecone/resource.tf +++ b/examples/resources/airbyte_destination_pinecone/resource.tf @@ -12,10 +12,10 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { pinecone_environment = "us-west1-gcp" pinecone_key = "...my_pinecone_key..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 0 - chunk_size = 4 + chunk_overlap = 5 + chunk_size = 9 field_name_mappings = [ { from_field = "...my_from_field..." @@ -35,7 +35,7 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" { } } } - definition_id = "90e1a2bc-7de0-4ff6-b737-4915d3efc2cd" - name = "Jorge Beahan" - workspace_id = "6acc1e6f-1291-4560-8b55-b326e06d2448" + definition_id = "e42a5305-0a9a-4fbc-a6c9-13a5b78062a6" + name = "Gregory Flatley" + workspace_id = "b7f63598-ffb0-4429-a4fa-eae5018c3193" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_postgres/resource.tf b/examples/resources/airbyte_destination_postgres/resource.tf index 46d2472ef..811419d1f 100644 --- a/examples/resources/airbyte_destination_postgres/resource.tf +++ b/examples/resources/airbyte_destination_postgres/resource.tf @@ -1,8 +1,8 @@ resource "airbyte_destination_postgres" "my_destination_postgres" { configuration = { database = "...my_database..." - disable_type_dedupe = true - drop_cascade = false + disable_type_dedupe = false + drop_cascade = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." @@ -15,9 +15,9 @@ resource "airbyte_destination_postgres" "my_destination_postgres" { tunnel_method = { no_tunnel = {} } - username = "Ed.Crooks" + username = "Ladarius_Abernathy72" } - definition_id = "3050a9af-bc66-4c91-ba5b-78062a6a13d9" - name = "Cody Williamson" - workspace_id = "598ffb04-2924-4fae-ae50-18c319374090" + definition_id = "22db6fe0-864a-4856-a041-70ff8566dc32" + name = "Gladys Hintz" + workspace_id = "7b07bf07-28b7-4077-958c-67348eaa4356" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_pubsub/resource.tf b/examples/resources/airbyte_destination_pubsub/resource.tf index b8419cad9..60eba7882 100644 --- a/examples/resources/airbyte_destination_pubsub/resource.tf +++ b/examples/resources/airbyte_destination_pubsub/resource.tf @@ -1,15 +1,15 @@ resource "airbyte_destination_pubsub" "my_destination_pubsub" { configuration = { batching_delay_threshold = 10 - batching_element_count_threshold = 10 - batching_enabled = false - batching_request_bytes_threshold = 1 + batching_element_count_threshold = 2 + batching_enabled = true + batching_request_bytes_threshold = 6 credentials_json = "...my_credentials_json..." - ordering_enabled = false + ordering_enabled = true project_id = "...my_project_id..." topic_id = "...my_topic_id..." } - definition_id = "db6fe086-4a85-46a0-8170-ff8566dc3233" - name = "Belinda Kuhn" - workspace_id = "07bf0728-b707-4755-8c67-348eaa4356f3" + definition_id = "d49dbc4f-abbf-4199-8382-023b4de2c1a7" + name = "Bobby Lemke" + workspace_id = "d3cde3c9-d6fa-494b-b4b9-38f85ce1dfc1" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_qdrant/resource.tf b/examples/resources/airbyte_destination_qdrant/resource.tf index ffb43bb7d..754c13a5f 100644 --- a/examples/resources/airbyte_destination_qdrant/resource.tf +++ b/examples/resources/airbyte_destination_qdrant/resource.tf @@ -14,15 +14,15 @@ resource "airbyte_destination_qdrant" "my_destination_qdrant" { } } collection = "...my_collection..." - distance_metric = "cos" + distance_metric = "euc" prefer_grpc = true text_field = "...my_text_field..." url = "...my_url..." } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 9 - chunk_size = 2 + chunk_overlap = 6 + chunk_size = 5 field_name_mappings = [ { from_field = "...my_from_field..." @@ -37,12 +37,12 @@ resource "airbyte_destination_qdrant" "my_destination_qdrant" { ] text_splitter = { by_markdown_header = { - split_level = 6 + split_level = 9 } } } } - definition_id = "dbc4fabb-f199-4438-a023-b4de2c1a7f28" - name = "Gerard Simonis" - workspace_id = "de3c9d6f-a94b-474b-938f-85ce1dfc1b27" + definition_id = "b19e64b8-3f63-4d34-8370-e173ec9d4f32" + name = "Ms. Antonio Thiel" + workspace_id = "a8a43c0f-29f7-4cbd-92b3-20943801c367" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_redis/resource.tf b/examples/resources/airbyte_destination_redis/resource.tf index 1ca624220..98db444d4 100644 --- a/examples/resources/airbyte_destination_redis/resource.tf +++ b/examples/resources/airbyte_destination_redis/resource.tf @@ -3,7 +3,7 @@ resource "airbyte_destination_redis" "my_destination_redis" { cache_type = "hash" host = "localhost,127.0.0.1" password = "...my_password..." - port = 6 + port = 5 ssl = true ssl_mode = { disable = {} @@ -11,9 +11,9 @@ resource "airbyte_destination_redis" "my_destination_redis" { tunnel_method = { no_tunnel = {} } - username = "Salma59" + username = "Ellen.Champlin16" } - definition_id = "e64b83f6-3d34-4837-8e17-3ec9d4f32d3e" - name = "Shelly Connelly" - workspace_id = "a43c0f29-f7cb-4d12-b320-943801c3678d" + definition_id = "94a31a29-aaf3-4c68-870e-ca1537042295" + name = "Hector Turner" + workspace_id = "dc306165-86b7-4399-8fea-69beba7dc7cd" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_redshift/resource.tf b/examples/resources/airbyte_destination_redshift/resource.tf index 0b8a2eb01..323fc1012 100644 --- a/examples/resources/airbyte_destination_redshift/resource.tf +++ b/examples/resources/airbyte_destination_redshift/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_destination_redshift" "my_destination_redshift" { configuration = { database = "...my_database..." - disable_type_dedupe = true + disable_type_dedupe = false drop_cascade = true host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." @@ -14,18 +14,23 @@ resource "airbyte_destination_redshift" "my_destination_redshift" { } uploading_method = { awss3_staging = { - access_key_id = "...my_access_key_id..." + access_key_id = "...my_access_key_id..." + encryption = { + aescbc_envelope_encryption = { + key_encrypting_key = "...my_key_encrypting_key..." + } + } file_name_pattern = "{timestamp}" purge_staging_data = false s3_bucket_name = "airbyte.staging" s3_bucket_path = "data_sync/test" - s3_bucket_region = "eu-south-2" + s3_bucket_region = "eu-central-2" secret_access_key = "...my_secret_access_key..." } } - username = "Devante10" + username = "Clark65" } - definition_id = "a29aaf3c-6807-40ec-a153-7042295e6e54" - name = "Ms. Edmund Douglas III" - workspace_id = "586b7399-0fea-469b-aba7-dc7cde8f8d83" + definition_id = "ab15fb45-8bad-49ea-b671-d5852a459de5" + name = "Jessica Runolfsdottir" + workspace_id = "420a295e-5c09-4962-877b-187a09875344" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_s3/resource.tf b/examples/resources/airbyte_destination_s3/resource.tf index e0b503a64..127aeb8d5 100644 --- a/examples/resources/airbyte_destination_s3/resource.tf +++ b/examples/resources/airbyte_destination_s3/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_destination_s3" "my_destination_s3" { configuration = { access_key_id = "A012345678910EXAMPLE" - file_name_pattern = "{timestamp}" + file_name_pattern = "{date}" format = { avro_apache_avro = { compression_codec = { @@ -20,7 +20,7 @@ resource "airbyte_destination_s3" "my_destination_s3" { s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "aab15fb4-58ba-4d9e-a767-1d5852a459de" - name = "Bonnie Beatty" - workspace_id = "3420a295-e5c0-4996-a877-b187a0987534" + definition_id = "bc3217ac-be2a-4d9f-b186-486fc7b23d6b" + name = "Kyle Luettgen" + workspace_id = "0346c04b-193f-4b28-918e-382726ed560c" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_s3_glue/resource.tf b/examples/resources/airbyte_destination_s3_glue/resource.tf index 0ce1e1c17..1d43fe22f 100644 --- a/examples/resources/airbyte_destination_s3_glue/resource.tf +++ b/examples/resources/airbyte_destination_s3_glue/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" { configuration = { access_key_id = "A012345678910EXAMPLE" - file_name_pattern = "{date:yyyy_MM}" + file_name_pattern = "{sync_id}" format = { json_lines_newline_delimited_json = { compression = { @@ -14,15 +14,15 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" { } } glue_database = "airbyte_database" - glue_serialization_library = "org.openx.data.jsonserde.JsonSerDe" + glue_serialization_library = "org.apache.hive.hcatalog.data.JsonSerDe" s3_bucket_name = "airbyte_sync" s3_bucket_path = "data_sync/test" - s3_bucket_region = "me-central-1" + s3_bucket_region = "eu-south-1" s3_endpoint = "http://localhost:9000" s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_" secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY" } - definition_id = "c3217acb-e2ad-49f3-9864-86fc7b23d6b8" - name = "Billie Wisoky I" - workspace_id = "46c04b19-3fb2-4891-8e38-2726ed560cd3" + definition_id = "e1f9eaf9-a8e2-4157-a856-0c89e77fd0c2" + name = "Marilyn Abshire" + workspace_id = "d396de60-f942-4f93-ba3c-59508dd11c7e" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_sftp_json/resource.tf b/examples/resources/airbyte_destination_sftp_json/resource.tf index c2068361b..a17b282b3 100644 --- a/examples/resources/airbyte_destination_sftp_json/resource.tf +++ b/examples/resources/airbyte_destination_sftp_json/resource.tf @@ -4,9 +4,9 @@ resource "airbyte_destination_sftp_json" "my_destination_sftpjson" { host = "...my_host..." password = "...my_password..." port = 22 - username = "Kristin95" + username = "Araceli.Kiehn85" } - definition_id = "9eaf9a8e-2157-4a85-a0c8-9e77fd0c2020" - name = "Rick Sporer" - workspace_id = "6de60f94-2f93-47a3-8595-08dd11c7ed17" + definition_id = "5b00289a-0dc0-4232-9a5c-ae9f3888495e" + name = "Dr. Bennie Cassin" + workspace_id = "b305f362-4c43-4900-b25f-a3e33722ced9" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_snowflake/resource.tf b/examples/resources/airbyte_destination_snowflake/resource.tf index 38d973048..0cd1e5a59 100644 --- a/examples/resources/airbyte_destination_snowflake/resource.tf +++ b/examples/resources/airbyte_destination_snowflake/resource.tf @@ -8,16 +8,16 @@ resource "airbyte_destination_snowflake" "my_destination_snowflake" { } database = "AIRBYTE_DATABASE" disable_type_dedupe = false - host = "accountname.us-east-2.aws.snowflakecomputing.com" + host = "accountname.snowflakecomputing.com" jdbc_url_params = "...my_jdbc_url_params..." raw_data_schema = "...my_raw_data_schema..." - retention_period_days = 9 + retention_period_days = 5 role = "AIRBYTE_ROLE" schema = "AIRBYTE_SCHEMA" username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "289a0dc0-2329-4a5c-ae9f-3888495eab20" - name = "Ira Ratke II" - workspace_id = "f3624c43-9007-425f-a3e3-3722ced92f8e" + definition_id = "f6fed365-1e7d-4549-a735-da213c86a8b9" + name = "Santiago Will" + workspace_id = "53876e3d-e30a-486e-8df1-9faac84c3184" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_snowflake_cortex/resource.tf b/examples/resources/airbyte_destination_snowflake_cortex/resource.tf index 501c72446..0de2a8986 100644 --- a/examples/resources/airbyte_destination_snowflake_cortex/resource.tf +++ b/examples/resources/airbyte_destination_snowflake_cortex/resource.tf @@ -18,10 +18,10 @@ resource "airbyte_destination_snowflake_cortex" "my_destination_snowflakecortex" username = "AIRBYTE_USER" warehouse = "AIRBYTE_WAREHOUSE" } - omit_raw_text = true + omit_raw_text = false processing = { - chunk_overlap = 9 - chunk_size = 2 + chunk_overlap = 2 + chunk_size = 0 field_name_mappings = [ { from_field = "...my_from_field..." @@ -36,12 +36,12 @@ resource "airbyte_destination_snowflake_cortex" "my_destination_snowflakecortex" ] text_splitter = { by_markdown_header = { - split_level = 4 + split_level = 6 } } } } - definition_id = "51e7d549-6735-4da2-93c8-6a8b9fef8f53" - name = "Jessie Jones" - workspace_id = "de30a86e-4df1-49fa-ac84-c31846ef3644" + definition_id = "6a04bb96-66e7-4d15-a7ee-dd4643586b68" + name = "Tommie Sporer I" + workspace_id = "c292fcfa-b73b-49ba-9d30-45674ad28dce" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_teradata/resource.tf b/examples/resources/airbyte_destination_teradata/resource.tf index e17fb737d..6462e02c6 100644 --- a/examples/resources/airbyte_destination_teradata/resource.tf +++ b/examples/resources/airbyte_destination_teradata/resource.tf @@ -8,9 +8,9 @@ resource "airbyte_destination_teradata" "my_destination_teradata" { ssl_mode = { allow = {} } - username = "Lillian.Keebler" + username = "Arch_Stehr" } - definition_id = "4bb9666e-7d15-4e7e-add4-643586b689fd" - name = "Eric Fadel" - workspace_id = "92fcfab7-3b9b-4a5d-b045-674ad28dce71" + definition_id = "d713664c-8ab0-488c-a48e-91396f340754" + name = "Mr. Eula Heidenreich" + workspace_id = "86d04e60-8039-4bc7-ab07-32a47524bb49" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_typesense/resource.tf b/examples/resources/airbyte_destination_typesense/resource.tf index d8bb55378..6151c2792 100644 --- a/examples/resources/airbyte_destination_typesense/resource.tf +++ b/examples/resources/airbyte_destination_typesense/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_destination_typesense" "my_destination_typesense" { configuration = { api_key = "...my_api_key..." - batch_size = 9 + batch_size = 0 host = "...my_host..." path = "...my_path..." port = "...my_port..." protocol = "...my_protocol..." } - definition_id = "7fd71366-4c8a-4b08-8c24-8e91396f3407" - name = "Pauline Hayes" - workspace_id = "00686d04-e608-4039-bc7e-b0732a47524b" + definition_id = "aa753ad1-1902-4ba1-8886-0231ad193af4" + name = "Raymond McDermott" + workspace_id = "c92d33ca-e7ed-4b40-9c23-9e69c6f21d65" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_vectara/resource.tf b/examples/resources/airbyte_destination_vectara/resource.tf index 1e276207e..4bc1f2c19 100644 --- a/examples/resources/airbyte_destination_vectara/resource.tf +++ b/examples/resources/airbyte_destination_vectara/resource.tf @@ -15,7 +15,7 @@ resource "airbyte_destination_vectara" "my_destination_vectara" { ] title_field = "document_key" } - definition_id = "490aa753-ad11-4902-ba18-8860231ad193" - name = "Emilio Gerhold V" - workspace_id = "85c92d33-cae7-4edb-801c-239e69c6f21d" + definition_id = "173cccbb-c51a-43ca-a62e-557cba0d3380" + name = "Beverly Murray" + workspace_id = "67fcf379-fa40-411e-ae8d-b1144f7f4dcb" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_weaviate/resource.tf b/examples/resources/airbyte_destination_weaviate/resource.tf index 207e99799..2514d9359 100644 --- a/examples/resources/airbyte_destination_weaviate/resource.tf +++ b/examples/resources/airbyte_destination_weaviate/resource.tf @@ -19,16 +19,16 @@ resource "airbyte_destination_weaviate" "my_destination_weaviate" { token = "...my_token..." } } - batch_size = 4 - default_vectorizer = "text2vec-huggingface" + batch_size = 1 + default_vectorizer = "text2vec-palm" host = "https://my-cluster.weaviate.network" tenant_id = "...my_tenant_id..." text_field = "...my_text_field..." } omit_raw_text = false processing = { - chunk_overlap = 1 - chunk_size = 4 + chunk_overlap = 0 + chunk_size = 5 field_name_mappings = [ { from_field = "...my_from_field..." @@ -43,12 +43,12 @@ resource "airbyte_destination_weaviate" "my_destination_weaviate" { ] text_splitter = { by_markdown_header = { - split_level = 2 + split_level = 4 } } } } - definition_id = "cccbbc51-a3ca-4a62-a557-cba0d338002a" - name = "Delores Jakubowski" - workspace_id = "cf379fa4-011e-4ae8-9b11-44f7f4dcb281" + definition_id = "8467e5cd-3332-485c-bcc3-fde334f786aa" + name = "Dale Padberg" + workspace_id = "527fe19e-b1bf-48ee-a339-467597e801e6" } \ No newline at end of file diff --git a/examples/resources/airbyte_destination_yellowbrick/resource.tf b/examples/resources/airbyte_destination_yellowbrick/resource.tf index 45165b29f..59806f513 100644 --- a/examples/resources/airbyte_destination_yellowbrick/resource.tf +++ b/examples/resources/airbyte_destination_yellowbrick/resource.tf @@ -13,9 +13,9 @@ resource "airbyte_destination_yellowbrick" "my_destination_yellowbrick" { tunnel_method = { no_tunnel = {} } - username = "Freida38" + username = "Jonathan.Mante" } - definition_id = "7e5cd333-285c-47cc-bfde-334f786aae3a" - name = "Boyd Hamill" - workspace_id = "fe19eb1b-f8ee-4233-9467-597e801e6768" + definition_id = "6f396c7c-6bf7-4372-8213-ca1059f1e303" + name = "Nancy Weimann PhD" + workspace_id = "aa50681b-c3ad-4b09-8c01-3842c101e265" } \ No newline at end of file diff --git a/examples/resources/airbyte_permission/resource.tf b/examples/resources/airbyte_permission/resource.tf index 13e2c78f5..c074b4b46 100644 --- a/examples/resources/airbyte_permission/resource.tf +++ b/examples/resources/airbyte_permission/resource.tf @@ -1,6 +1,6 @@ resource "airbyte_permission" "my_permission" { - organization_id = "9a46f396-c7c6-4bf7-b724-213ca1059f1e" - permission_type = "organization_editor" - user_id = "0360fc0e-aa50-4681-bc3a-db090c013842" - workspace_id = "c101e265-eebc-4230-b150-94cc21854edb" + organization_id = "eebc230b-1509-44cc-a185-4edb75e7d1c9" + permission_type = "workspace_reader" + user_id = "dc2da362-faf1-4b28-be26-cb1bb0550b4e" + workspace_id = "344126e7-f293-436e-a378-18d15373da8d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_aha/resource.tf b/examples/resources/airbyte_source_aha/resource.tf index ed3385dd3..b89daf43f 100644 --- a/examples/resources/airbyte_source_aha/resource.tf +++ b/examples/resources/airbyte_source_aha/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_aha" "my_source_aha" { api_key = "...my_api_key..." url = "...my_url..." } - definition_id = "75e7d1c9-ddc2-4da3-a2fa-f1b28fe26cb1" - name = "Jonathon Bahringer" + definition_id = "6eef0475-7630-4ddb-82db-f188dfabd571" + name = "Joyce Pagac" secret_id = "...my_secret_id..." - workspace_id = "0b4e3441-26e7-4f29-b36e-237818d15373" + workspace_id = "1dffa69f-e714-43a3-a9a2-44d7bc1a5a6e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_aircall/resource.tf b/examples/resources/airbyte_source_aircall/resource.tf index d61ef8f76..f38abf691 100644 --- a/examples/resources/airbyte_source_aircall/resource.tf +++ b/examples/resources/airbyte_source_aircall/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_aircall" "my_source_aircall" { api_token = "...my_api_token..." start_date = "2022-03-01T00:00:00.000Z" } - definition_id = "8d6eef04-7576-430d-9bc2-dbf188dfabd5" - name = "Miss Ann Bode" + definition_id = "c1931372-2140-427e-a71b-638bd648d548" + name = "Lucille O'Conner" secret_id = "...my_secret_id..." - workspace_id = "61dffa69-fe71-443a-be9a-244d7bc1a5a6" + workspace_id = "b93d4bbd-e9f2-4bb8-8cd3-fe4ad282938c" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_airtable/resource.tf b/examples/resources/airbyte_source_airtable/resource.tf index 98106ece3..2b722b7bf 100644 --- a/examples/resources/airbyte_source_airtable/resource.tf +++ b/examples/resources/airbyte_source_airtable/resource.tf @@ -6,12 +6,12 @@ resource "airbyte_source_airtable" "my_source_airtable" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." refresh_token = "...my_refresh_token..." - token_expiry_date = "2022-09-01T07:21:46.506Z" + token_expiry_date = "2022-08-20T20:34:02.471Z" } } } - definition_id = "cc193137-2214-4027-ae71-b638bd648d54" - name = "Ryan Green" + definition_id = "27564451-7930-4ed8-943c-0dabba6ef9fc" + name = "Krista Franecki" secret_id = "...my_secret_id..." - workspace_id = "eb93d4bb-de9f-42bb-80cd-3fe4ad282938" + workspace_id = "4fd252e5-7aa6-473d-a825-9f0c220e39e1" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_amazon_ads/resource.tf b/examples/resources/airbyte_source_amazon_ads/resource.tf index 068fef7d5..b6a19e264 100644 --- a/examples/resources/airbyte_source_amazon_ads/resource.tf +++ b/examples/resources/airbyte_source_amazon_ads/resource.tf @@ -2,7 +2,7 @@ resource "airbyte_source_amazon_ads" "my_source_amazonads" { configuration = { client_id = "...my_client_id..." client_secret = "...my_client_secret..." - look_back_window = 10 + look_back_window = 3 marketplace_ids = [ "...", ] @@ -10,17 +10,17 @@ resource "airbyte_source_amazon_ads" "my_source_amazonads" { 4, ] refresh_token = "...my_refresh_token..." - region = "NA" + region = "FE" report_record_types = [ - "asins_targets", + "targets", ] start_date = "2022-10-10" state_filter = [ - "enabled", + "archived", ] } - definition_id = "517930ed-8d43-4c0d-abba-6ef9fc3c3744" - name = "Bryant Christiansen" + definition_id = "849b0bdf-3d5c-4a96-8633-54ae1d23c3d1" + name = "Jaime Weimann" secret_id = "...my_secret_id..." - workspace_id = "e57aa673-d282-459f-8c22-0e39e10d6ef0" + workspace_id = "4df0d756-d8b0-4d90-9af9-186ab63a7b2e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_amazon_seller_partner/resource.tf b/examples/resources/airbyte_source_amazon_seller_partner/resource.tf index c6fa09a1c..37d870f68 100644 --- a/examples/resources/airbyte_source_amazon_seller_partner/resource.tf +++ b/examples/resources/airbyte_source_amazon_seller_partner/resource.tf @@ -1,12 +1,12 @@ resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" { configuration = { - account_type = "Vendor" + account_type = "Seller" aws_environment = "SANDBOX" lwa_app_id = "...my_lwa_app_id..." lwa_client_secret = "...my_lwa_client_secret..." - period_in_days = 7 + period_in_days = 5 refresh_token = "...my_refresh_token..." - region = "IT" + region = "MX" replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" report_options_list = [ @@ -17,13 +17,13 @@ resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" option_value = "...my_option_value..." }, ] - report_name = "GET_MERCHANT_LISTINGS_DATA" + report_name = "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING" stream_name = "...my_stream_name..." }, ] } - definition_id = "df3d5ca9-6c63-4354-ae1d-23c3d11ff934" - name = "Irvin Berge" + definition_id = "b1d1d8bb-57bf-4001-9db3-cf074d627d20" + name = "Karla Adams III" secret_id = "...my_secret_id..." - workspace_id = "56d8b0d9-0daf-4918-aab6-3a7b2e3879ec" + workspace_id = "9bb26e6b-9f25-4aa9-b8c7-d4107048d9ff" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_amazon_sqs/resource.tf b/examples/resources/airbyte_source_amazon_sqs/resource.tf index 37a6096c2..5dbac793c 100644 --- a/examples/resources/airbyte_source_amazon_sqs/resource.tf +++ b/examples/resources/airbyte_source_amazon_sqs/resource.tf @@ -6,12 +6,12 @@ resource "airbyte_source_amazon_sqs" "my_source_amazonsqs" { max_batch_size = 5 max_wait_time = 5 queue_url = "https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue" - region = "eu-west-3" + region = "ap-southeast-4" secret_key = "hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz" visibility_timeout = 15 } - definition_id = "d1d8bb57-bf00-41dd-b3cf-074d627d201b" - name = "Betsy Baumbach" + definition_id = "afeef69e-ad1e-45d3-a90e-fc6e828b1d2d" + name = "Wm Herman" secret_id = "...my_secret_id..." - workspace_id = "bb26e6b9-f25a-4a9f-8c7d-4107048d9ffe" + workspace_id = "a9ea927c-ae7b-429c-85e6-b85628652e0f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_amplitude/resource.tf b/examples/resources/airbyte_source_amplitude/resource.tf index 098192f66..258606a20 100644 --- a/examples/resources/airbyte_source_amplitude/resource.tf +++ b/examples/resources/airbyte_source_amplitude/resource.tf @@ -2,12 +2,12 @@ resource "airbyte_source_amplitude" "my_source_amplitude" { configuration = { api_key = "...my_api_key..." data_region = "EU Residency Server" - request_time_range = 6 + request_time_range = 5 secret_key = "...my_secret_key..." start_date = "2021-01-25T00:00:00Z" } - definition_id = "afeef69e-ad1e-45d3-a90e-fc6e828b1d2d" - name = "Wm Herman" + definition_id = "21b517b1-6f1f-4884-abcd-5137451945c4" + name = "Mrs. Sylvia Howe" secret_id = "...my_secret_id..." - workspace_id = "a9ea927c-ae7b-429c-85e6-b85628652e0f" + workspace_id = "6ae8aa3c-4f28-4791-bb86-68105e1180fb" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_apify_dataset/resource.tf b/examples/resources/airbyte_source_apify_dataset/resource.tf index 6a6eac218..836f3c03a 100644 --- a/examples/resources/airbyte_source_apify_dataset/resource.tf +++ b/examples/resources/airbyte_source_apify_dataset/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_apify_dataset" "my_source_apifydataset" { dataset_id = "rHuMdwm6xCFt6WiGU" token = "apify_api_PbVwb1cBbuvbfg2jRmAIHZKgx3NQyfEMG7uk" } - definition_id = "f83c21b5-17b1-46f1-b884-6bcd51374519" - name = "Renee Schamberger" + definition_id = "2a875a1c-a190-4e95-bd11-82a17eb0af63" + name = "Darin Windler" secret_id = "...my_secret_id..." - workspace_id = "360526ae-8aa3-4c4f-a879-13b8668105e1" + workspace_id = "3356f39b-ea5e-4208-9f0e-8905c8543b91" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_appfollow/resource.tf b/examples/resources/airbyte_source_appfollow/resource.tf index c3774fd8d..875c99c4b 100644 --- a/examples/resources/airbyte_source_appfollow/resource.tf +++ b/examples/resources/airbyte_source_appfollow/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_appfollow" "my_source_appfollow" { configuration = { api_secret = "...my_api_secret..." } - definition_id = "180fb2a8-75a1-4ca1-90e9-5bd1182a17eb" - name = "Kayla Weimann" + definition_id = "84cac7dc-adad-4293-8da5-765e7880f00a" + name = "Brenda Stanton" secret_id = "...my_secret_id..." - workspace_id = "defa7335-6f39-4bea-9e20-89f0e8905c85" + workspace_id = "f9a90fa7-f8f4-441b-98df-c559a0bee1c5" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_asana/resource.tf b/examples/resources/airbyte_source_asana/resource.tf index cae88bbc9..08b38dd65 100644 --- a/examples/resources/airbyte_source_asana/resource.tf +++ b/examples/resources/airbyte_source_asana/resource.tf @@ -10,10 +10,10 @@ resource "airbyte_source_asana" "my_source_asana" { organization_export_ids = [ "{ \"see\": \"documentation\" }", ] - test_mode = false + test_mode = true } - definition_id = "3b9184ca-c7dc-4ada-9293-8da5765e7880" - name = "Matthew Bednar" + definition_id = "f2233892-0422-4616-84e7-3ef602c915f5" + name = "Ron Schimmel" secret_id = "...my_secret_id..." - workspace_id = "0ddef9a9-0fa7-4f8f-841b-58dfc559a0be" + workspace_id = "896557ce-17cc-4d6b-90d6-388d4fdfb9af" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_auth0/resource.tf b/examples/resources/airbyte_source_auth0/resource.tf index c816ba995..e1f308e30 100644 --- a/examples/resources/airbyte_source_auth0/resource.tf +++ b/examples/resources/airbyte_source_auth0/resource.tf @@ -8,8 +8,8 @@ resource "airbyte_source_auth0" "my_source_auth0" { } start_date = "2023-08-05T00:43:59.244Z" } - definition_id = "e1c5ff22-3389-4204-a261-684e73ef602c" - name = "Raymond Halvorson" + definition_id = "007bc041-91be-4b05-bf07-c546621bdba9" + name = "Victoria Haley" secret_id = "...my_secret_id..." - workspace_id = "97cf5896-557c-4e17-8cd6-b10d6388d4fd" + workspace_id = "51ed0a81-81e6-4e55-bd9e-be7b2f5ca6ec" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_aws_cloudtrail/resource.tf b/examples/resources/airbyte_source_aws_cloudtrail/resource.tf index 1b13af999..bc82603df 100644 --- a/examples/resources/airbyte_source_aws_cloudtrail/resource.tf +++ b/examples/resources/airbyte_source_aws_cloudtrail/resource.tf @@ -3,14 +3,10 @@ resource "airbyte_source_aws_cloudtrail" "my_source_awscloudtrail" { aws_key_id = "...my_aws_key_id..." aws_region_name = "...my_aws_region_name..." aws_secret_key = "...my_aws_secret_key..." - lookup_attributes_filter = { - attribute_key = "EventName" - attribute_value = "ConsoleLogin" - } - start_date = "2021-01-01" + start_date = "2021-01-01" } - definition_id = "af007bc0-4191-4beb-857f-07c546621bdb" - name = "Ross Abshire" + definition_id = "af2b0521-0208-4e03-ab26-8d758466c963" + name = "Justin Bauch MD" secret_id = "...my_secret_id..." - workspace_id = "4f51ed0a-8181-4e6e-95fd-9ebe7b2f5ca6" + workspace_id = "394b84ac-df8d-4b6a-8f7e-23711b260f5d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_azure_blob_storage/resource.tf b/examples/resources/airbyte_source_azure_blob_storage/resource.tf index a9b5b6d42..aa465b413 100644 --- a/examples/resources/airbyte_source_azure_blob_storage/resource.tf +++ b/examples/resources/airbyte_source_azure_blob_storage/resource.tf @@ -14,10 +14,10 @@ resource "airbyte_source_azure_blob_storage" "my_source_azureblobstorage" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 9 + days_to_sync_if_history_is_full = 7 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ @@ -25,15 +25,15 @@ resource "airbyte_source_azure_blob_storage" "my_source_azureblobstorage" { ] input_schema = "...my_input_schema..." legacy_prefix = "...my_legacy_prefix..." - name = "Brendan Crist II" + name = "Al Sanford" primary_key = "...my_primary_key..." schemaless = true - validation_policy = "Emit Record" + validation_policy = "Wait for Discover" }, ] } - definition_id = "0208e036-b268-4d75-8466-c963e10b1b39" - name = "Karla Luettgen" + definition_id = "da3d51cb-c156-423e-8645-3ce6c3cf0d0e" + name = "Sandra Stroman III" secret_id = "...my_secret_id..." - workspace_id = "cdf8db6a-4f7e-4237-91b2-60f5d38a1edc" + workspace_id = "b8da7b81-43f8-451c-b99c-7fd70e50457d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_azure_table/resource.tf b/examples/resources/airbyte_source_azure_table/resource.tf index e6c335141..a83515de6 100644 --- a/examples/resources/airbyte_source_azure_table/resource.tf +++ b/examples/resources/airbyte_source_azure_table/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_azure_table" "my_source_azuretable" { storage_account_name = "...my_storage_account_name..." storage_endpoint_suffix = "core.chinacloudapi.cn" } - definition_id = "36cda3d5-1cbc-4156-a3ec-6453ce6c3cf0" - name = "Joseph VonRueden PhD" + definition_id = "f4f64874-e62c-458d-8792-fd48887cb19c" + name = "Vickie Ullrich" secret_id = "...my_secret_id..." - workspace_id = "e16b8da7-b814-43f8-91cf-99c7fd70e504" + workspace_id = "b4573d66-d007-4e52-a2e4-396e7403ea2d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_bamboo_hr/resource.tf b/examples/resources/airbyte_source_bamboo_hr/resource.tf index 72e41d0a8..61bd773c6 100644 --- a/examples/resources/airbyte_source_bamboo_hr/resource.tf +++ b/examples/resources/airbyte_source_bamboo_hr/resource.tf @@ -2,11 +2,11 @@ resource "airbyte_source_bamboo_hr" "my_source_bamboohr" { configuration = { api_key = "...my_api_key..." custom_reports_fields = "...my_custom_reports_fields..." - custom_reports_include_default_fields = true + custom_reports_include_default_fields = false subdomain = "...my_subdomain..." } - definition_id = "7dcf4f64-874e-462c-98d8-792fd48887cb" - name = "Toni Schaefer" + definition_id = "0959a4fa-50e8-407c-86bd-0cbf5314eea0" + name = "Miss Oliver Crooks" secret_id = "...my_secret_id..." - workspace_id = "ec8b4573-d66d-4007-a52a-2e4396e7403e" + workspace_id = "37367271-c78a-49aa-9603-df323c7d7845" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_bigquery/resource.tf b/examples/resources/airbyte_source_bigquery/resource.tf index 98504f93e..36bb2e4db 100644 --- a/examples/resources/airbyte_source_bigquery/resource.tf +++ b/examples/resources/airbyte_source_bigquery/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_bigquery" "my_source_bigquery" { dataset_id = "...my_dataset_id..." project_id = "...my_project_id..." } - definition_id = "a2d50959-a4fa-450e-807c-86bd0cbf5314" - name = "Dr. Tomas Nolan" + definition_id = "b7f8882a-1973-48b2-98b7-0494da21b79c" + name = "Lionel McKenzie" secret_id = "...my_secret_id..." - workspace_id = "21aa3736-7271-4c78-a9aa-9603df323c7d" + workspace_id = "f3821deb-7264-4dad-9e5f-b53126691bfb" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_bing_ads/resource.tf b/examples/resources/airbyte_source_bing_ads/resource.tf index b1e14adb6..6e96a442d 100644 --- a/examples/resources/airbyte_source_bing_ads/resource.tf +++ b/examples/resources/airbyte_source_bing_ads/resource.tf @@ -2,30 +2,30 @@ resource "airbyte_source_bing_ads" "my_source_bingads" { configuration = { account_names = [ { - name = "Jennie Gleason" - operator = "Contains" + name = "Eula Ritchie" + operator = "Equals" }, ] client_id = "...my_client_id..." client_secret = "...my_client_secret..." custom_reports = [ { - name = "custom report" + name = "Account Performance" report_aggregation = "...my_report_aggregation..." report_columns = [ "...", ] - reporting_object = "AdExtensionByKeywordReportRequest" + reporting_object = "ProductNegativeKeywordConflictReportRequest" }, ] developer_token = "...my_developer_token..." - lookback_window = 6 + lookback_window = 5 refresh_token = "...my_refresh_token..." - reports_start_date = "2022-10-18" + reports_start_date = "2022-01-16" tenant_id = "...my_tenant_id..." } - definition_id = "8b218b70-494d-4a21-b79c-fd9baf3821de" - name = "Kurt D'Amore" + definition_id = "472f2e8b-bfe1-4822-ba33-308df445f49b" + name = "Chester Dach" secret_id = "...my_secret_id..." - workspace_id = "dad9e5fb-5312-4669-9bfb-5db9ea24da51" + workspace_id = "9f17b5c6-1c8d-42f7-9d6e-e9c7e7401902" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_braintree/resource.tf b/examples/resources/airbyte_source_braintree/resource.tf index 6ef576e67..4323292f8 100644 --- a/examples/resources/airbyte_source_braintree/resource.tf +++ b/examples/resources/airbyte_source_braintree/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_braintree" "my_source_braintree" { configuration = { - environment = "Qa" + environment = "Development" merchant_id = "...my_merchant_id..." private_key = "...my_private_key..." public_key = "...my_public_key..." - start_date = "2020-12-30" + start_date = "2020" } - definition_id = "472f2e8b-bfe1-4822-ba33-308df445f49b" - name = "Chester Dach" + definition_id = "430f8964-a321-4f43-9fb3-aad078a3612f" + name = "Abraham Herzog" secret_id = "...my_secret_id..." - workspace_id = "9f17b5c6-1c8d-42f7-9d6e-e9c7e7401902" + workspace_id = "fdd854e0-c39c-422f-a17d-f57adf10725f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_braze/resource.tf b/examples/resources/airbyte_source_braze/resource.tf index 331c7b845..71884f9ab 100644 --- a/examples/resources/airbyte_source_braze/resource.tf +++ b/examples/resources/airbyte_source_braze/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_braze" "my_source_braze" { configuration = { api_key = "...my_api_key..." - start_date = "2022-08-21" + start_date = "2021-08-21" url = "...my_url..." } - definition_id = "195430f8-964a-4321-b431-fb3aad078a36" - name = "Wanda Wisoky" + definition_id = "f1a27e8f-d2f1-493d-8f9a-b29a2f8317de" + name = "Herbert Torphy" secret_id = "...my_secret_id..." - workspace_id = "5a7fdd85-4e0c-439c-a2fe-17df57adf107" + workspace_id = "ab02ccb9-0852-43df-96a0-cc4991982a68" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_cart/resource.tf b/examples/resources/airbyte_source_cart/resource.tf index 7c78b15b1..b25f6ddc4 100644 --- a/examples/resources/airbyte_source_cart/resource.tf +++ b/examples/resources/airbyte_source_cart/resource.tf @@ -3,14 +3,14 @@ resource "airbyte_source_cart" "my_source_cart" { credentials = { central_api_router = { site_id = "...my_site_id..." - user_name = "Briana_Hettinger45" + user_name = "Ceasar63" user_secret = "...my_user_secret..." } } start_date = "2021-01-01T00:00:00Z" } - definition_id = "f1a27e8f-d2f1-493d-8f9a-b29a2f8317de" - name = "Herbert Torphy" + definition_id = "7074f016-f721-427f-b3f8-652b2551b023" + name = "Mr. Spencer Casper" secret_id = "...my_secret_id..." - workspace_id = "ab02ccb9-0852-43df-96a0-cc4991982a68" + workspace_id = "a7ffb268-dc18-4708-bd37-ac99fd785161" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_chargebee/resource.tf b/examples/resources/airbyte_source_chargebee/resource.tf index 7598ce67d..909547d23 100644 --- a/examples/resources/airbyte_source_chargebee/resource.tf +++ b/examples/resources/airbyte_source_chargebee/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_chargebee" "my_source_chargebee" { site_api_key = "...my_site_api_key..." start_date = "2021-01-25T00:00:00Z" } - definition_id = "a7074f01-6f72-4127-b33f-8652b2551b02" - name = "Mr. Jana Runolfsson" + definition_id = "5e0c1f4b-65d9-4ebd-b57e-5946981cb460" + name = "Ms. Franklin Mraz" secret_id = "...my_secret_id..." - workspace_id = "4a7ffb26-8dc1-4870-87d3-7ac99fd78516" + workspace_id = "6308eadb-73c3-469b-a0c1-2ece59b9fbae" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_chartmogul/resource.tf b/examples/resources/airbyte_source_chartmogul/resource.tf index 2bf221e88..b9eb66f19 100644 --- a/examples/resources/airbyte_source_chartmogul/resource.tf +++ b/examples/resources/airbyte_source_chartmogul/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_chartmogul" "my_source_chartmogul" { api_key = "...my_api_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "305e0c1f-4b65-4d9e-bd75-7e5946981cb4" - name = "Maria Lubowitz" + definition_id = "e4749058-8d0e-4293-9574-a681eea74b87" + name = "Harold Willms IV" secret_id = "...my_secret_id..." - workspace_id = "1686308e-adb7-43c3-a9be-0c12ece59b9f" + workspace_id = "7d33223d-80bb-4993-a2d2-f45974a2ebc3" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_clazar/import.sh b/examples/resources/airbyte_source_clazar/import.sh deleted file mode 100644 index 3f6d9cf82..000000000 --- a/examples/resources/airbyte_source_clazar/import.sh +++ /dev/null @@ -1 +0,0 @@ -terraform import airbyte_source_clazar.my_airbyte_source_clazar "" diff --git a/examples/resources/airbyte_source_clazar/resource.tf b/examples/resources/airbyte_source_clazar/resource.tf deleted file mode 100644 index f2a3ab5da..000000000 --- a/examples/resources/airbyte_source_clazar/resource.tf +++ /dev/null @@ -1,10 +0,0 @@ -resource "airbyte_source_clazar" "my_source_clazar" { - configuration = { - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." - } - definition_id = "baef8e47-4905-488d-8e29-39574a681eea" - name = "Danielle Rice" - secret_id = "...my_secret_id..." - workspace_id = "a1fb187d-3322-43d8-8bb9-9362d2f45974" -} \ No newline at end of file diff --git a/examples/resources/airbyte_source_clickhouse/resource.tf b/examples/resources/airbyte_source_clickhouse/resource.tf index ec0013203..873b8e3a0 100644 --- a/examples/resources/airbyte_source_clickhouse/resource.tf +++ b/examples/resources/airbyte_source_clickhouse/resource.tf @@ -8,10 +8,10 @@ resource "airbyte_source_clickhouse" "my_source_clickhouse" { tunnel_method = { no_tunnel = {} } - username = "Camille_Walsh19" + username = "Johnpaul_Barton69" } - definition_id = "680abb37-6bce-466a-bc0c-e20da3e9aab7" - name = "Debbie Haley" + definition_id = "376bce66-a7c0-4ce2-8da3-e9aab71454cb" + name = "Charlotte Blick" secret_id = "...my_secret_id..." - workspace_id = "b241893e-1da4-46c4-b685-d205011b8862" + workspace_id = "3e1da46c-4f68-45d2-8501-1b8862473b75" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_clickup_api/resource.tf b/examples/resources/airbyte_source_clickup_api/resource.tf index a1dbf8fea..5a2927679 100644 --- a/examples/resources/airbyte_source_clickup_api/resource.tf +++ b/examples/resources/airbyte_source_clickup_api/resource.tf @@ -2,13 +2,13 @@ resource "airbyte_source_clickup_api" "my_source_clickupapi" { configuration = { api_token = "...my_api_token..." folder_id = "...my_folder_id..." - include_closed_tasks = true + include_closed_tasks = false list_id = "...my_list_id..." space_id = "...my_space_id..." team_id = "...my_team_id..." } - definition_id = "73b75739-1086-418e-9144-5d83c494a849" - name = "Ms. Kristopher Hammes" + definition_id = "39108618-e914-445d-83c4-94a849cd517f" + name = "Sonja Douglas" secret_id = "...my_secret_id..." - workspace_id = "0e32c2e3-02e6-4de9-ab3e-43098446f983" + workspace_id = "2e302e6d-e92b-43e4-b098-446f9835e642" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_clockify/resource.tf b/examples/resources/airbyte_source_clockify/resource.tf index f43f3aa0b..a0df7f62b 100644 --- a/examples/resources/airbyte_source_clockify/resource.tf +++ b/examples/resources/airbyte_source_clockify/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_clockify" "my_source_clockify" { api_url = "...my_api_url..." workspace_id = "...my_workspace_id..." } - definition_id = "5e6422d1-5b82-4862-9a87-7d2e625cdd80" - name = "Matt Hermiston" + definition_id = "2d15b828-621a-4877-92e6-25cdd80ba5ff" + name = "Tiffany Runolfsdottir" secret_id = "...my_secret_id..." - workspace_id = "53c6fc10-ca67-4a82-bc3d-349f444d8a85" + workspace_id = "c10ca67a-827c-43d3-89f4-44d8a8589d84" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_close_com/resource.tf b/examples/resources/airbyte_source_close_com/resource.tf index ddc513a2c..a2fa1e600 100644 --- a/examples/resources/airbyte_source_close_com/resource.tf +++ b/examples/resources/airbyte_source_close_com/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_close_com" "my_source_closecom" { api_key = "...my_api_key..." start_date = "2021-01-01" } - definition_id = "d8494dcf-aea5-4500-b801-e9f446900c8f" - name = "Geoffrey Pfeffer" + definition_id = "dcfaea55-0038-401e-9f44-6900c8feba7b" + name = "Annette Schiller" secret_id = "...my_secret_id..." - workspace_id = "45cfea08-abdd-4a32-8f6c-373e06663420" + workspace_id = "a08abdda-328f-46c3-b3e0-6663420a6a3a" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_coda/resource.tf b/examples/resources/airbyte_source_coda/resource.tf index 15a14fe59..2fff02eac 100644 --- a/examples/resources/airbyte_source_coda/resource.tf +++ b/examples/resources/airbyte_source_coda/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_coda" "my_source_coda" { configuration = { auth_token = "...my_auth_token..." } - definition_id = "a6a3ab4d-4475-45b9-90e5-c999e89cbd0e" - name = "Emmett Christiansen" + definition_id = "b4d44755-b910-4e5c-999e-89cbd0e8f2a3" + name = "Dr. Alexandra Runolfsson" secret_id = "...my_secret_id..." - workspace_id = "7cc1fbec-883d-4a2f-acd2-cab29e0bc600" + workspace_id = "ec883da2-fecd-42ca-b29e-0bc6002c3cc1" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_coin_api/resource.tf b/examples/resources/airbyte_source_coin_api/resource.tf index df8f43530..22059af01 100644 --- a/examples/resources/airbyte_source_coin_api/resource.tf +++ b/examples/resources/airbyte_source_coin_api/resource.tf @@ -3,13 +3,13 @@ resource "airbyte_source_coin_api" "my_source_coinapi" { api_key = "...my_api_key..." end_date = "2019-01-01T00:00:00" environment = "sandbox" - limit = 8 - period = "5SEC" + limit = 2 + period = "2MTH" start_date = "2019-01-01T00:00:00" symbol_id = "...my_symbol_id..." } - definition_id = "cc123e87-83d5-40d4-92b8-0c50dc344f66" - name = "Dr. Randolph Wilderman" + definition_id = "8783d50d-4d2b-480c-90dc-344f66cbf0e9" + name = "Larry Hayes" secret_id = "...my_secret_id..." - workspace_id = "a05e994a-ce41-4dc5-b42f-2a228e88647f" + workspace_id = "94ace41d-c5b4-42f2-a228-e88647f2d427" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_coinmarketcap/resource.tf b/examples/resources/airbyte_source_coinmarketcap/resource.tf index 822d2fdd7..8dc0d30dd 100644 --- a/examples/resources/airbyte_source_coinmarketcap/resource.tf +++ b/examples/resources/airbyte_source_coinmarketcap/resource.tf @@ -6,8 +6,8 @@ resource "airbyte_source_coinmarketcap" "my_source_coinmarketcap" { "...", ] } - definition_id = "d4275060-42c1-4c65-a61b-2485a060238e" - name = "Shaun Brakus" + definition_id = "06042c1c-6566-41b2-885a-060238eba136" + name = "Angelina Feeney Jr." secret_id = "...my_secret_id..." - workspace_id = "1d3c00cf-e1ba-468d-b405-02b96029febd" + workspace_id = "cfe1ba68-d340-4502-b960-29febd39e6ab" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_configcat/resource.tf b/examples/resources/airbyte_source_configcat/resource.tf index 361e7df12..e879e0864 100644 --- a/examples/resources/airbyte_source_configcat/resource.tf +++ b/examples/resources/airbyte_source_configcat/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_configcat" "my_source_configcat" { configuration = { password = "...my_password..." - username = "Clara.McDermott63" + username = "Wilmer_Bernier" } - definition_id = "bf17c2d5-0cb6-4e6f-b332-bdf145775fcb" - name = "Casey Boyer" + definition_id = "2d50cb6e-6ff3-432b-9f14-5775fcbb81a7" + name = "Tonya Kautzer" secret_id = "...my_secret_id..." - workspace_id = "466bf78b-3b7d-4ede-947f-c7c1cb53c351" + workspace_id = "78b3b7de-de54-47fc-bc1c-b53c351689dd" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_confluence/resource.tf b/examples/resources/airbyte_source_confluence/resource.tf index 2eeac3195..3287549fd 100644 --- a/examples/resources/airbyte_source_confluence/resource.tf +++ b/examples/resources/airbyte_source_confluence/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_confluence" "my_source_confluence" { domain_name = "...my_domain_name..." email = "abc@example.com" } - definition_id = "3b3d7401-39dc-42cf-acb4-16442d85f5b6" - name = "Olga Collins" + definition_id = "740139dc-2cf2-4cb4-9644-2d85f5b6382e" + name = "Ms. Laura Upton" secret_id = "...my_secret_id..." - workspace_id = "0e18a817-2f93-4227-9c9f-9cbaa542e6e0" + workspace_id = "8172f932-271c-49f9-8baa-542e6e080961" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_convex/resource.tf b/examples/resources/airbyte_source_convex/resource.tf index bf8ea09ec..c33357395 100644 --- a/examples/resources/airbyte_source_convex/resource.tf +++ b/examples/resources/airbyte_source_convex/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_convex" "my_source_convex" { access_key = "...my_access_key..." deployment_url = "https://cluttered-owl-337.convex.cloud" } - definition_id = "0961d84c-3fbc-424f-860f-ce85198c116e" - name = "Nicole Howe" + definition_id = "84c3fbc2-4f86-40fc-a851-98c116e72658" + name = "Kellie Torphy" secret_id = "...my_secret_id..." - workspace_id = "1ee6770f-a8ec-41ba-804b-d6457a40e885" + workspace_id = "70fa8ec1-ba80-44bd-a457-a40e8851a354" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_custom/resource.tf b/examples/resources/airbyte_source_custom/resource.tf index 7dc1a955c..1b393e5df 100644 --- a/examples/resources/airbyte_source_custom/resource.tf +++ b/examples/resources/airbyte_source_custom/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_source_custom" "my_source_custom" { configuration = { "user" : "charles" } - definition_id = "1a3541ba-6f5d-490d-9a8a-349e2072bdff" - name = "Carole Buckridge" + definition_id = "1ba6f5d9-0d5a-48a3-89e2-072bdff3818d" + name = "Dr. Rogelio Harris" secret_id = "...my_secret_id..." - workspace_id = "be50fcb3-2a78-4173-abb8-2e6a7189e925" + workspace_id = "b32a7817-3abb-482e-aa71-89e9256d7463" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_datadog/import.sh b/examples/resources/airbyte_source_datadog/import.sh deleted file mode 100644 index b7fba3c46..000000000 --- a/examples/resources/airbyte_source_datadog/import.sh +++ /dev/null @@ -1 +0,0 @@ -terraform import airbyte_source_datadog.my_airbyte_source_datadog "" diff --git a/examples/resources/airbyte_source_datadog/resource.tf b/examples/resources/airbyte_source_datadog/resource.tf deleted file mode 100644 index 052f39e2f..000000000 --- a/examples/resources/airbyte_source_datadog/resource.tf +++ /dev/null @@ -1,22 +0,0 @@ -resource "airbyte_source_datadog" "my_source_datadog" { - configuration = { - api_key = "...my_api_key..." - application_key = "...my_application_key..." - end_date = "2022-10-01T00:00:00Z" - max_records_per_request = 4 - queries = [ - { - data_source = "rum" - name = "Alicia Jakubowski" - query = "...my_query..." - }, - ] - query = "...my_query..." - site = "ddog-gov.com" - start_date = "2022-10-01T00:00:00Z" - } - definition_id = "14094639-cf5d-4d4a-8c05-f536f6b9b8b8" - name = "Sidney Ziemann" - secret_id = "...my_secret_id..." - workspace_id = "fbf365d6-87e0-487e-b905-b6a417faeb4f" -} \ No newline at end of file diff --git a/examples/resources/airbyte_source_datascope/resource.tf b/examples/resources/airbyte_source_datascope/resource.tf index 80cacf60e..a657b7296 100644 --- a/examples/resources/airbyte_source_datascope/resource.tf +++ b/examples/resources/airbyte_source_datascope/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_datascope" "my_source_datascope" { api_key = "...my_api_key..." start_date = "dd/mm/YYYY HH:MM" } - definition_id = "73b7e8dc-371e-4cbe-a105-11b439ed171c" - name = "Carroll Mayer" + definition_id = "8d140946-39cf-45dd-8a0c-05f536f6b9b8" + name = "Dave Willms" secret_id = "...my_secret_id..." - workspace_id = "b4783ac2-32bf-4a41-880b-23345c949a95" + workspace_id = "6afbf365-d687-4e08-be39-05b6a417faeb" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_delighted/resource.tf b/examples/resources/airbyte_source_delighted/resource.tf index bafcd0663..79cc1f88f 100644 --- a/examples/resources/airbyte_source_delighted/resource.tf +++ b/examples/resources/airbyte_source_delighted/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_delighted" "my_source_delighted" { api_key = "...my_api_key..." since = "2022-05-30T04:50:23Z" } - definition_id = "f5a34ff6-80c8-48d8-a9f7-431721e4227f" - name = "Clyde Boehm" + definition_id = "3b7e8dc3-71ec-4bee-9051-1b439ed171c9" + name = "Kirk Windler" secret_id = "...my_secret_id..." - workspace_id = "6ec345b5-c1ba-4e74-b26a-8cd9c5aad47a" + workspace_id = "4783ac23-2bfa-441c-80b2-3345c949a955" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_dixa/resource.tf b/examples/resources/airbyte_source_dixa/resource.tf index 420c89e79..c5d90898e 100644 --- a/examples/resources/airbyte_source_dixa/resource.tf +++ b/examples/resources/airbyte_source_dixa/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_dixa" "my_source_dixa" { configuration = { api_token = "...my_api_token..." - batch_size = 31 + batch_size = 1 start_date = "YYYY-MM-DD" } - definition_id = "1e10d002-e1c7-43f9-ba1e-39a63be209ca" - name = "Vernon Mosciski" + definition_id = "a34ff680-c88d-48e9-b743-1721e4227fd5" + name = "Patty Huel" secret_id = "...my_secret_id..." - workspace_id = "b808ec8c-0a1f-4116-b1a5-6d068f4b5e4c" + workspace_id = "c345b5c1-bae7-4472-aa8c-d9c5aad47afd" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_dockerhub/resource.tf b/examples/resources/airbyte_source_dockerhub/resource.tf index 645a8b680..2c0c889df 100644 --- a/examples/resources/airbyte_source_dockerhub/resource.tf +++ b/examples/resources/airbyte_source_dockerhub/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_dockerhub" "my_source_dockerhub" { configuration = { docker_username = "airbyte" } - definition_id = "19596433-e1d5-4148-8aac-586d055244c5" - name = "Stacey Herzog" + definition_id = "a11e10d0-02e1-4c73-b9ba-1e39a63be209" + name = "Ernesto Murazik" secret_id = "...my_secret_id..." - workspace_id = "57a2c261-8fe1-4b91-9cce-8e649d7675fb" + workspace_id = "3eb808ec-8c0a-41f1-9671-a56d068f4b5e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_dremio/resource.tf b/examples/resources/airbyte_source_dremio/resource.tf index ea328d07b..97063d51b 100644 --- a/examples/resources/airbyte_source_dremio/resource.tf +++ b/examples/resources/airbyte_source_dremio/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_dremio" "my_source_dremio" { api_key = "...my_api_key..." base_url = "...my_base_url..." } - definition_id = "58122af6-a8ac-4655-b6a2-05f1e4d309ea" - name = "Mrs. Carole Beer" + definition_id = "4c195964-33e1-4d51-884a-ac586d055244" + name = "Floyd Hackett" secret_id = "...my_secret_id..." - workspace_id = "4fbd8663-14ca-4ce0-af96-b833556f7e41" + workspace_id = "b457a2c2-618f-4e1b-91dc-ce8e649d7675" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_dynamodb/resource.tf b/examples/resources/airbyte_source_dynamodb/resource.tf index 379030d84..937bba1d8 100644 --- a/examples/resources/airbyte_source_dynamodb/resource.tf +++ b/examples/resources/airbyte_source_dynamodb/resource.tf @@ -9,11 +9,11 @@ resource "airbyte_source_dynamodb" "my_source_dynamodb" { } endpoint = "https://{aws_dynamo_db_url}.com" ignore_missing_read_permissions_tables = false - region = "ap-northeast-1" + region = "me-central-1" reserved_attribute_names = "name, field_name, field-name" } - definition_id = "b36cf1af-cf94-4e3c-b9cb-eca1c7573a5b" - name = "Randolph Olson" + definition_id = "58122af6-a8ac-4655-b6a2-05f1e4d309ea" + name = "Mrs. Carole Beer" secret_id = "...my_secret_id..." - workspace_id = "d4c0a2ce-f781-4247-9bca-9a4804a9e0dd" + workspace_id = "4fbd8663-14ca-4ce0-af96-b833556f7e41" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_emailoctopus/resource.tf b/examples/resources/airbyte_source_emailoctopus/resource.tf index d15405840..b66e49596 100644 --- a/examples/resources/airbyte_source_emailoctopus/resource.tf +++ b/examples/resources/airbyte_source_emailoctopus/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_emailoctopus" "my_source_emailoctopus" { configuration = { api_key = "...my_api_key..." } - definition_id = "c3156b2f-fd5d-46c6-9da5-497add71ffde" - name = "Herman Lesch" + definition_id = "81b36cf1-afcf-494e-bc79-cbeca1c7573a" + name = "Candice Rath" secret_id = "...my_secret_id..." - workspace_id = "09709edc-ef2c-4435-be7e-b149e6fe9a76" + workspace_id = "82d4c0a2-cef7-4812-875b-ca9a4804a9e0" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_exchange_rates/resource.tf b/examples/resources/airbyte_source_exchange_rates/resource.tf index 63651d4c1..e7f64e5d0 100644 --- a/examples/resources/airbyte_source_exchange_rates/resource.tf +++ b/examples/resources/airbyte_source_exchange_rates/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_exchange_rates" "my_source_exchangerates" { ignore_weekends = false start_date = "YYYY-MM-DD" } - definition_id = "1d6f7a77-e51b-404b-8d52-e6bc1e22381c" - name = "Salvatore Conroy" + definition_id = "156b2ffd-5d6c-469d-a549-7add71ffdea5" + name = "Ms. Reginald Nienow" secret_id = "...my_secret_id..." - workspace_id = "642f3c2f-e19c-432e-9fee-92bc3373ad2c" + workspace_id = "09edcef2-c435-47e7-ab14-9e6fe9a76bd2" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_facebook_marketing/resource.tf b/examples/resources/airbyte_source_facebook_marketing/resource.tf index 025b37725..e6b2a8605 100644 --- a/examples/resources/airbyte_source_facebook_marketing/resource.tf +++ b/examples/resources/airbyte_source_facebook_marketing/resource.tf @@ -4,55 +4,48 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" { account_ids = [ "...", ] - action_breakdowns_allow_empty = false + action_breakdowns_allow_empty = true ad_statuses = [ - "IN_PROCESS", + "ADSET_PAUSED", ] adset_statuses = [ - "DELETED", + "PAUSED", ] campaign_statuses = [ - "WITH_ISSUES", + "DELETED", ] client_id = "...my_client_id..." client_secret = "...my_client_secret..." - credentials = { - authenticate_via_facebook_marketing_oauth = { - access_token = "...my_access_token..." - client_id = "...my_client_id..." - client_secret = "...my_client_secret..." - } - } custom_insights = [ { action_breakdowns = [ - "action_carousel_card_id", + "standard_event_content_type", ] action_report_time = "impression" breakdowns = [ - "skan_conversion_id", + "media_text_content", ] end_date = "2017-01-26T00:00:00Z" fields = [ - "dda_results", + "video_play_curve_actions", ] - insights_job_timeout = 4 - insights_lookback_window = 7 - level = "adset" - name = "Scott Baumbach" + insights_job_timeout = 3 + insights_lookback_window = 1 + level = "campaign" + name = "Eleanor Prosacco" start_date = "2017-01-25T00:00:00Z" - time_increment = 5 + time_increment = 10 }, ] end_date = "2017-01-26T00:00:00Z" - fetch_thumbnail_images = true - insights_job_timeout = 3 - insights_lookback_window = 7 - page_size = 1 + fetch_thumbnail_images = false + insights_job_timeout = 1 + insights_lookback_window = 9 + page_size = 2 start_date = "2017-01-25T00:00:00Z" } - definition_id = "49e5b0b6-8d5f-4b4b-99e2-f7dc2833c76b" - name = "Sammy Hauck" + definition_id = "81cdc2e9-642f-43c2-be19-c32edfee92bc" + name = "Wendy Kunze" secret_id = "...my_secret_id..." - workspace_id = "566b4ade-0498-4ec4-8fd8-ad9161a05c5e" + workspace_id = "d2c887f2-8ef9-475a-bb10-2e5487915a2f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_faker/resource.tf b/examples/resources/airbyte_source_faker/resource.tf index 0db6005f5..cc98bc688 100644 --- a/examples/resources/airbyte_source_faker/resource.tf +++ b/examples/resources/airbyte_source_faker/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_faker" "my_source_faker" { configuration = { - always_updated = true - count = 5 + always_updated = false + count = 2 parallelism = 6 - records_per_slice = 6 - seed = 5 + records_per_slice = 9 + seed = 3 } - definition_id = "7eae086e-3c2d-4330-82ab-840e56112c1f" - name = "Homer Bartoletti Jr." + definition_id = "b0b68d5f-b4b9-49e2-b7dc-2833c76bbd55" + name = "Jon Howell" secret_id = "...my_secret_id..." - workspace_id = "a5cfbec2-8765-44f1-abc8-4028fbb0cddc" + workspace_id = "4ade0498-ec40-4fd8-ad91-61a05c5e8899" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_fauna/resource.tf b/examples/resources/airbyte_source_fauna/resource.tf index dcef20b88..f500a88db 100644 --- a/examples/resources/airbyte_source_fauna/resource.tf +++ b/examples/resources/airbyte_source_fauna/resource.tf @@ -4,15 +4,15 @@ resource "airbyte_source_fauna" "my_source_fauna" { deletions = { disabled = {} } - page_size = 10 + page_size = 5 } domain = "...my_domain..." port = 5 scheme = "...my_scheme..." secret = "...my_secret..." } - definition_id = "02e3e601-6546-4635-ada9-b04e26c5d5cf" - name = "Elizabeth Ziemann" + definition_id = "eae086e3-c2d3-4308-aab8-40e56112c1fd" + name = "Mr. Kenneth Corkery" secret_id = "...my_secret_id..." - workspace_id = "713464ed-5bf6-4d67-b06c-c548e68cfaef" + workspace_id = "5cfbec28-7654-4f12-bc84-028fbb0cddcf" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_file/resource.tf b/examples/resources/airbyte_source_file/resource.tf index 195d959dc..1f8fbde28 100644 --- a/examples/resources/airbyte_source_file/resource.tf +++ b/examples/resources/airbyte_source_file/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_source_file" "my_source_file" { configuration = { dataset_name = "...my_dataset_name..." - format = "yaml" + format = "excel_binary" provider = { az_blob_azure_blob_storage = { sas_token = "...my_sas_token..." @@ -10,10 +10,10 @@ resource "airbyte_source_file" "my_source_file" { } } reader_options = "{}" - url = "gs://my-google-bucket/data.csv" + url = "https://storage.googleapis.com/covid19-open-data/v2/latest/epidemiology.csv" } - definition_id = "0df143ee-10f8-4279-a427-b2c340e1d4b4" - name = "Mr. Carole Predovic" + definition_id = "e3e60165-4663-452d-a9b0-4e26c5d5cf50" + name = "Robin Wolf I" secret_id = "...my_secret_id..." - workspace_id = "62aeeab6-a16b-4c0f-9be5-567777324c6c" + workspace_id = "464ed5bf-6d67-4306-8c54-8e68cfaeff48" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_firebolt/resource.tf b/examples/resources/airbyte_source_firebolt/resource.tf index e51647a85..c704130e3 100644 --- a/examples/resources/airbyte_source_firebolt/resource.tf +++ b/examples/resources/airbyte_source_firebolt/resource.tf @@ -7,8 +7,8 @@ resource "airbyte_source_firebolt" "my_source_firebolt" { engine = "...my_engine..." host = "api.app.firebolt.io" } - definition_id = "a7fcdac6-3878-454b-a9c4-2e8b9a534c06" - name = "Merle Hills" + definition_id = "0df143ee-10f8-4279-a427-b2c340e1d4b4" + name = "Mr. Carole Predovic" secret_id = "...my_secret_id..." - workspace_id = "e94eff21-1adf-4c72-9dd1-f80239a92966" + workspace_id = "62aeeab6-a16b-4c0f-9be5-567777324c6c" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_fleetio/resource.tf b/examples/resources/airbyte_source_fleetio/resource.tf index 9c30a0f94..2c7ace2e7 100644 --- a/examples/resources/airbyte_source_fleetio/resource.tf +++ b/examples/resources/airbyte_source_fleetio/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_fleetio" "my_source_fleetio" { account_token = "...my_account_token..." api_key = "...my_api_key..." } - definition_id = "0c93eb11-448c-41cd-bafe-5ef85381e22d" - name = "Miss Emilio Watsica" + definition_id = "a7fcdac6-3878-454b-a9c4-2e8b9a534c06" + name = "Merle Hills" secret_id = "...my_secret_id..." - workspace_id = "2224121e-6315-4be3-86a4-e83994413a7c" + workspace_id = "e94eff21-1adf-4c72-9dd1-f80239a92966" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_freshcaller/resource.tf b/examples/resources/airbyte_source_freshcaller/resource.tf index 1b51c5d34..d157af961 100644 --- a/examples/resources/airbyte_source_freshcaller/resource.tf +++ b/examples/resources/airbyte_source_freshcaller/resource.tf @@ -2,12 +2,12 @@ resource "airbyte_source_freshcaller" "my_source_freshcaller" { configuration = { api_key = "...my_api_key..." domain = "snaptravel" - requests_per_minute = 5 + requests_per_minute = 0 start_date = "2022-01-01T12:00:00Z" - sync_lag_minutes = 3 + sync_lag_minutes = 2 } - definition_id = "c70b5882-c881-4a08-b8bf-df7e2fa4a636" - name = "Kim Tremblay" + definition_id = "eb11448c-1cd3-4afe-9ef8-5381e22d9fe1" + name = "Kristopher Champlin" secret_id = "...my_secret_id..." - workspace_id = "bba48ed6-d0ea-4f7f-94c7-c369f9cb0a3d" + workspace_id = "4121e631-5be3-406a-8e83-994413a7c75d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_freshdesk/resource.tf b/examples/resources/airbyte_source_freshdesk/resource.tf index 0bc1edf7d..b3f09db5f 100644 --- a/examples/resources/airbyte_source_freshdesk/resource.tf +++ b/examples/resources/airbyte_source_freshdesk/resource.tf @@ -2,12 +2,12 @@ resource "airbyte_source_freshdesk" "my_source_freshdesk" { configuration = { api_key = "...my_api_key..." domain = "myaccount.freshdesk.com" - lookback_window_in_days = 9 - requests_per_minute = 0 + lookback_window_in_days = 3 + requests_per_minute = 8 start_date = "2020-12-01T00:00:00Z" } - definition_id = "7daef770-c81f-495c-9b8d-d2d32b37f6fe" - name = "Corey Schmitt MD" + definition_id = "b5882c88-1a08-478b-bdf7-e2fa4a63623e" + name = "Lucille Purdy" secret_id = "...my_secret_id..." - workspace_id = "4fda52f6-9543-4b86-a0d9-bb50480aaaf7" + workspace_id = "48ed6d0e-af7f-454c-bc36-9f9cb0a3dd00" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_freshsales/resource.tf b/examples/resources/airbyte_source_freshsales/resource.tf index 76bfcf673..9eb1c346b 100644 --- a/examples/resources/airbyte_source_freshsales/resource.tf +++ b/examples/resources/airbyte_source_freshsales/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_freshsales" "my_source_freshsales" { api_key = "...my_api_key..." domain_name = "mydomain.myfreshworks.com" } - definition_id = "7ae08fd2-caf8-43f0-8591-0a7c570570b8" - name = "Wendell Cartwright" + definition_id = "07daef77-0c81-4f95-85b8-dd2d32b37f6f" + name = "Wilbert Hettinger" secret_id = "...my_secret_id..." - workspace_id = "da4e6d7c-2fca-4a38-ada1-d2ddf0351c49" + workspace_id = "0a4fda52-f695-443b-8620-d9bb50480aaa" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_gainsight_px/resource.tf b/examples/resources/airbyte_source_gainsight_px/resource.tf index 949b1044c..074816e53 100644 --- a/examples/resources/airbyte_source_gainsight_px/resource.tf +++ b/examples/resources/airbyte_source_gainsight_px/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_gainsight_px" "my_source_gainsightpx" { configuration = { api_key = "...my_api_key..." } - definition_id = "c6869005-1741-4425-a4d3-8a30ea56cdfa" - name = "Courtney Witting" + definition_id = "f77ae08f-d2ca-4f83-b045-910a7c570570" + name = "Guy Langosh III" secret_id = "...my_secret_id..." - workspace_id = "6225b4ba-e611-4122-913e-87b490ecc6bf" + workspace_id = "9da4e6d7-c2fc-4aa3-86da-1d2ddf0351c4" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_gcs/resource.tf b/examples/resources/airbyte_source_gcs/resource.tf index f2f5f3715..4b001a5d9 100644 --- a/examples/resources/airbyte_source_gcs/resource.tf +++ b/examples/resources/airbyte_source_gcs/resource.tf @@ -5,7 +5,7 @@ resource "airbyte_source_gcs" "my_source_gcs" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 1 + days_to_sync_if_history_is_full = 4 format = { csv_format = { delimiter = "...my_delimiter..." @@ -19,13 +19,13 @@ resource "airbyte_source_gcs" "my_source_gcs" { autogenerated = {} } ignore_errors_on_fields_mismatch = true - inference_type = "None" + inference_type = "Primitive Types Only" null_values = [ "...", ] quote_char = "...my_quote_char..." - skip_rows_after_header = 4 - skip_rows_before_header = 10 + skip_rows_after_header = 0 + skip_rows_before_header = 0 strings_can_be_null = true true_values = [ "...", @@ -37,15 +37,15 @@ resource "airbyte_source_gcs" "my_source_gcs" { ] input_schema = "...my_input_schema..." legacy_prefix = "...my_legacy_prefix..." - name = "Robert Franey" + name = "Mrs. Colleen Gusikowski" primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Emit Record" + schemaless = false + validation_policy = "Wait for Discover" }, ] } - definition_id = "1a97a1ae-8949-4629-832a-02ceacfe7e01" - name = "Mrs. Tabitha Moen" + definition_id = "4d38a30e-a56c-4dfa-a7fb-f6225b4bae61" + name = "Anna Collier Sr." secret_id = "...my_secret_id..." - workspace_id = "f2040e06-9282-4dd6-a12c-b01cbd9faeed" + workspace_id = "3e87b490-ecc6-4bf7-9161-16fc803c8311" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_getlago/resource.tf b/examples/resources/airbyte_source_getlago/resource.tf index 54adfc200..6b96fad26 100644 --- a/examples/resources/airbyte_source_getlago/resource.tf +++ b/examples/resources/airbyte_source_getlago/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_getlago" "my_source_getlago" { api_key = "...my_api_key..." api_url = "...my_api_url..." } - definition_id = "a0582852-7913-4edf-8f9c-9058e69d20ee" - name = "Raquel Gutkowski" + definition_id = "a97a1ae8-9496-4294-b2a0-2ceacfe7e017" + name = "Fredrick Ankunding" secret_id = "...my_secret_id..." - workspace_id = "55c695e2-f08e-4b76-a351-cef20de4cfc3" + workspace_id = "f2040e06-9282-4dd6-a12c-b01cbd9faeed" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_github/resource.tf b/examples/resources/airbyte_source_github/resource.tf index 793e1e05f..dc23c8c6c 100644 --- a/examples/resources/airbyte_source_github/resource.tf +++ b/examples/resources/airbyte_source_github/resource.tf @@ -1,6 +1,6 @@ resource "airbyte_source_github" "my_source_github" { configuration = { - api_url = "https://github.com" + api_url = "https://github.company.org" branch = "airbytehq/airbyte/master airbytehq/airbyte/my-branch" branches = [ "...", @@ -16,11 +16,11 @@ resource "airbyte_source_github" "my_source_github" { repositories = [ "...", ] - repository = "airbytehq/airbyte airbytehq/another-repo" + repository = "airbytehq/*" start_date = "2021-03-01T00:00:00Z" } - definition_id = "84cd8bc6-076e-4714-bbf0-cfd3aed54ef2" - name = "Lynette Bartoletti" + definition_id = "527913ed-fcf9-4c90-98e6-9d20ee3e4cb5" + name = "Rosalie Hoppe" secret_id = "...my_secret_id..." - workspace_id = "80e3db90-5020-415d-ade4-b8db33d2b3a2" + workspace_id = "e2f08eb7-6e35-41ce-b20d-e4cfc332b42c" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_gitlab/resource.tf b/examples/resources/airbyte_source_gitlab/resource.tf index eb2121451..ec3f7bd0e 100644 --- a/examples/resources/airbyte_source_gitlab/resource.tf +++ b/examples/resources/airbyte_source_gitlab/resource.tf @@ -7,7 +7,7 @@ resource "airbyte_source_gitlab" "my_source_gitlab" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." refresh_token = "...my_refresh_token..." - token_expiry_date = "2022-12-09T20:11:03.938Z" + token_expiry_date = "2022-03-12T08:01:10.085Z" } } groups = "airbyte.io" @@ -20,8 +20,8 @@ resource "airbyte_source_gitlab" "my_source_gitlab" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "42a10fbc-47ca-4706-9390-37c7eef972df" - name = "Rachael Boyer" + definition_id = "bc6076e7-14fb-4f0c-bd3a-ed54ef24d0de" + name = "Jeffrey Terry" secret_id = "...my_secret_id..." - workspace_id = "349fde89-ab27-46cb-ad00-caee12c4e65b" + workspace_id = "b9050201-5d2d-4e4b-8db3-3d2b3a27b0b3" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_glassfrog/resource.tf b/examples/resources/airbyte_source_glassfrog/resource.tf index 1b263e855..b3d9d1596 100644 --- a/examples/resources/airbyte_source_glassfrog/resource.tf +++ b/examples/resources/airbyte_source_glassfrog/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_glassfrog" "my_source_glassfrog" { configuration = { api_key = "...my_api_key..." } - definition_id = "57e54a27-b617-4a01-ae6b-f68e1922df28" - name = "Mrs. Iris Jast" + definition_id = "42a10fbc-47ca-4706-9390-37c7eef972df" + name = "Rachael Boyer" secret_id = "...my_secret_id..." - workspace_id = "13a52314-031f-4d7b-82b3-c164c1950da3" + workspace_id = "349fde89-ab27-46cb-ad00-caee12c4e65b" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_gnews/resource.tf b/examples/resources/airbyte_source_gnews/resource.tf index 849b073c4..ee1296930 100644 --- a/examples/resources/airbyte_source_gnews/resource.tf +++ b/examples/resources/airbyte_source_gnews/resource.tf @@ -1,23 +1,23 @@ resource "airbyte_source_gnews" "my_source_gnews" { configuration = { api_key = "...my_api_key..." - country = "cn" + country = "in" end_date = "2022-08-21 16:27:09" in = [ - "content", + "description", ] - language = "ru" + language = "te" nullable = [ - "content", + "description", ] - query = "(Windows 7) AND (Windows 10)" + query = "Apple OR Microsoft" sortby = "relevance" start_date = "2022-08-21 16:27:09" - top_headlines_query = "Apple AND NOT iPhone" - top_headlines_topic = "sports" + top_headlines_query = "Microsoft Windows 10" + top_headlines_topic = "technology" } - definition_id = "5a75a7c5-fc21-4d72-ab31-0b676fb731c6" - name = "Pedro Champlin PhD" + definition_id = "b617a012-e6bf-468e-9922-df283a614313" + name = "Darrell Cummerata II" secret_id = "...my_secret_id..." - workspace_id = "9821d4fc-0324-42cc-9276-3a0d30eb91c3" + workspace_id = "031fd7b8-2b3c-4164-8195-0da31ebecd9b" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_goldcast/import.sh b/examples/resources/airbyte_source_goldcast/import.sh deleted file mode 100644 index cc9ca168b..000000000 --- a/examples/resources/airbyte_source_goldcast/import.sh +++ /dev/null @@ -1 +0,0 @@ -terraform import airbyte_source_goldcast.my_airbyte_source_goldcast "" diff --git a/examples/resources/airbyte_source_goldcast/resource.tf b/examples/resources/airbyte_source_goldcast/resource.tf deleted file mode 100644 index 8a68bfa67..000000000 --- a/examples/resources/airbyte_source_goldcast/resource.tf +++ /dev/null @@ -1,9 +0,0 @@ -resource "airbyte_source_goldcast" "my_source_goldcast" { - configuration = { - access_key = "...my_access_key..." - } - definition_id = "df259349-552d-4c82-98f3-0a27183b00ec" - name = "Melissa Gutmann" - secret_id = "...my_secret_id..." - workspace_id = "56c03ec7-b8b6-48fd-bc06-92b4fd673f59" -} \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_ads/resource.tf b/examples/resources/airbyte_source_google_ads/resource.tf index c11f47a06..0bbaafbbb 100644 --- a/examples/resources/airbyte_source_google_ads/resource.tf +++ b/examples/resources/airbyte_source_google_ads/resource.tf @@ -16,13 +16,13 @@ resource "airbyte_source_google_ads" "my_source_googleads" { ] customer_id = "6783948572,5839201945" customer_status_filter = [ - "CANCELED", + "SUSPENDED", ] end_date = "2017-01-30" start_date = "2017-01-25" } - definition_id = "c9948b00-6105-49fa-81d6-c9b0f0f35d94" - name = "Pearl Batz" + definition_id = "c5fc21d7-22b3-410b-a76f-b731c6d5241e" + name = "Dr. Armando Dibbert" secret_id = "...my_secret_id..." - workspace_id = "93ebb36d-8aae-4a00-b0c4-c84b89e625ba" + workspace_id = "fc03242c-cd27-463a-8d30-eb91c3df2593" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_analytics_data_api/resource.tf b/examples/resources/airbyte_source_google_analytics_data_api/resource.tf index 0e6971f26..0bfdc6e86 100644 --- a/examples/resources/airbyte_source_google_analytics_data_api/resource.tf +++ b/examples/resources/airbyte_source_google_analytics_data_api/resource.tf @@ -23,12 +23,12 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda between_filter = { from_value = { double_value = { - value = 54.51 + value = 57.56 } } to_value = { double_value = { - value = 44.08 + value = 31.93 } } } @@ -49,12 +49,12 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda between_filter = { from_value = { double_value = { - value = 41.77 + value = 35.8 } } to_value = { double_value = { - value = 64.64 + value = 18.49 } } } @@ -66,19 +66,19 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda metrics = [ "...", ] - name = "Julia Stracke" + name = "Edmund Legros" }, ] date_ranges_start_date = "2021-01-01" - keep_empty_rows = true - lookback_window = 14 + keep_empty_rows = false + lookback_window = 2 property_ids = [ "...", ] - window_in_days = 200 + window_in_days = 30 } - definition_id = "7e953bf2-defe-4a2f-9145-f48d36313985" - name = "Kim Marvin" + definition_id = "183b00ec-7045-4956-803e-c7b8b68fdfc0" + name = "Miriam Deckow" secret_id = "...my_secret_id..." - workspace_id = "52d3206a-fb3a-4724-a60d-40134e58876c" + workspace_id = "fd673f59-a8d0-4acc-9948-b0061059fac1" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_analytics_v4_service_account_only/import.sh b/examples/resources/airbyte_source_google_analytics_v4_service_account_only/import.sh new file mode 100644 index 000000000..514230082 --- /dev/null +++ b/examples/resources/airbyte_source_google_analytics_v4_service_account_only/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_google_analytics_v4_service_account_only.my_airbyte_source_google_analytics_v4_service_account_only "" diff --git a/examples/resources/airbyte_source_google_analytics_v4_service_account_only/resource.tf b/examples/resources/airbyte_source_google_analytics_v4_service_account_only/resource.tf new file mode 100644 index 000000000..46e409df2 --- /dev/null +++ b/examples/resources/airbyte_source_google_analytics_v4_service_account_only/resource.tf @@ -0,0 +1,18 @@ +resource "airbyte_source_google_analytics_v4_service_account_only" "my_source_googleanalyticsv4serviceaccountonly" { + configuration = { + credentials = { + service_account_key_authentication = { + credentials_json = "{ \"type\": \"service_account\", \"project_id\": YOUR_PROJECT_ID, \"private_key_id\": YOUR_PRIVATE_KEY, ... }" + } + } + custom_reports = "...my_custom_reports..." + end_date = "2020-06-01" + start_date = "2020-06-01" + view_id = "...my_view_id..." + window_in_days = 200 + } + definition_id = "f0f35d94-2704-4e93-abb3-6d8aaea00f0c" + name = "Kara Macejkovic" + secret_id = "...my_secret_id..." + workspace_id = "89e625ba-e876-4a32-9c31-e1b4b67e953b" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_directory/resource.tf b/examples/resources/airbyte_source_google_directory/resource.tf index 7cf889f65..79c9de0dc 100644 --- a/examples/resources/airbyte_source_google_directory/resource.tf +++ b/examples/resources/airbyte_source_google_directory/resource.tf @@ -3,12 +3,12 @@ resource "airbyte_source_google_directory" "my_source_googledirectory" { credentials = { service_account_key = { credentials_json = "...my_credentials_json..." - email = "Allan67@hotmail.com" + email = "Brittany_Steuber89@hotmail.com" } } } - definition_id = "128ae06a-57c7-4c57-baf1-e5baddd2747b" - name = "Sylvester Konopelski" + definition_id = "a2fd145f-48d3-4631-b985-539f352d3206" + name = "Amos Rath" secret_id = "...my_secret_id..." - workspace_id = "41709ce4-fe16-45bc-8840-e7fb5df25477" + workspace_id = "724a60d4-0134-4e58-876c-b030a128ae06" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_drive/resource.tf b/examples/resources/airbyte_source_google_drive/resource.tf index a65fbadb7..51f326604 100644 --- a/examples/resources/airbyte_source_google_drive/resource.tf +++ b/examples/resources/airbyte_source_google_drive/resource.tf @@ -21,15 +21,15 @@ resource "airbyte_source_google_drive" "my_source_googledrive" { "...", ] input_schema = "...my_input_schema..." - name = "Jose Walter" + name = "Marianne Hartmann" primary_key = "...my_primary_key..." schemaless = true - validation_policy = "Skip Record" + validation_policy = "Wait for Discover" }, ] } - definition_id = "9bfb0cb9-d8df-4c27-a8c7-2c3eb5dc5571" - name = "Ms. Angelina Reilly" + definition_id = "1e5baddd-2747-4bbc-bf24-1709ce4fe165" + name = "Edmund Gleichner" secret_id = "...my_secret_id..." - workspace_id = "76987333-86b5-43a4-b9a0-805ff1793bf9" + workspace_id = "0e7fb5df-2547-47f3-b0b0-ec7c89bfb0cb" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf b/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf index 9b033a187..1f425534b 100644 --- a/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf +++ b/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf @@ -2,17 +2,17 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin configuration = { api_key = "...my_api_key..." categories = [ - "pwa", + "performance", ] strategies = [ - "desktop", + "mobile", ] urls = [ "...", ] } - definition_id = "99d63199-bd6b-4468-885e-c21a9ab567f1" - name = "Leticia Kling" + definition_id = "8dfc27a8-c72c-43eb-9dc5-5714db07d769" + name = "Lance Dicki" secret_id = "...my_secret_id..." - workspace_id = "51fa773f-cf1a-4430-ae08-2909d97bfabb" + workspace_id = "86b53a47-9a08-405f-b179-3bf9b799d631" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_search_console/resource.tf b/examples/resources/airbyte_source_google_search_console/resource.tf index 247b1f33f..b845071de 100644 --- a/examples/resources/airbyte_source_google_search_console/resource.tf +++ b/examples/resources/airbyte_source_google_search_console/resource.tf @@ -14,18 +14,18 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole" dimensions = [ "page", ] - name = "Allen Jenkins MD" + name = "Randolph Stanton" }, ] - data_state = "all" + data_state = "final" end_date = "2021-12-12" site_urls = [ "...", ] - start_date = "2022-03-09" + start_date = "2021-06-12" } - definition_id = "9c174fee-4145-4562-9275-76235e52bb8a" - name = "Roosevelt Lebsack" + definition_id = "5ec21a9a-b567-4f13-877e-51fa773fcf1a" + name = "Connie Baumbach" secret_id = "...my_secret_id..." - workspace_id = "2a7f940d-ec44-4e21-adff-8929e4d23a00" + workspace_id = "082909d9-7bfa-4bba-9367-1a9ca1d9c174" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_sheets/resource.tf b/examples/resources/airbyte_source_google_sheets/resource.tf index 2f90cb36e..3cbb37713 100644 --- a/examples/resources/airbyte_source_google_sheets/resource.tf +++ b/examples/resources/airbyte_source_google_sheets/resource.tf @@ -1,6 +1,6 @@ resource "airbyte_source_google_sheets" "my_source_googlesheets" { configuration = { - batch_size = 7 + batch_size = 10 credentials = { authenticate_via_google_o_auth = { client_id = "...my_client_id..." @@ -11,8 +11,8 @@ resource "airbyte_source_google_sheets" "my_source_googlesheets" { names_conversion = false spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit" } - definition_id = "94f7d68d-64a8-410b-a959-587ed0c47c0f" - name = "Roosevelt Waters" + definition_id = "e4145562-d275-4762-b5e5-2bb8adc8fd2a" + name = "Ebony McDermott PhD" secret_id = "...my_secret_id..." - workspace_id = "c0f294c1-1e4e-4993-9294-74281bb54dff" + workspace_id = "ec44e216-dff8-4929-a4d2-3a00b494f7d6" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_google_webfonts/resource.tf b/examples/resources/airbyte_source_google_webfonts/resource.tf index edb72d054..1527c34af 100644 --- a/examples/resources/airbyte_source_google_webfonts/resource.tf +++ b/examples/resources/airbyte_source_google_webfonts/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_google_webfonts" "my_source_googlewebfonts" { pretty_print = "...my_pretty_print..." sort = "...my_sort..." } - definition_id = "6cf9b79e-2328-488b-abde-25154a52da80" - name = "Todd Rodriguez" + definition_id = "8d64a810-b295-4958-bed0-c47c0f9ce33c" + name = "Kristie Davis" secret_id = "...my_secret_id..." - workspace_id = "49853a69-5093-45ad-936c-5004734e30b4" + workspace_id = "c11e4e99-3d29-4474-a81b-b54dff6cf9b7" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_greenhouse/resource.tf b/examples/resources/airbyte_source_greenhouse/resource.tf index be5652305..bde76d285 100644 --- a/examples/resources/airbyte_source_greenhouse/resource.tf +++ b/examples/resources/airbyte_source_greenhouse/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_greenhouse" "my_source_greenhouse" { configuration = { api_key = "...my_api_key..." } - definition_id = "6b959e4e-758a-4c09-a271-19b95b60c98b" - name = "Mitchell Altenwerth" + definition_id = "9e232888-b6bd-4e25-954a-52da80f2bfa4" + name = "Isaac Hessel" secret_id = "...my_secret_id..." - workspace_id = "ab5561ce-1bb1-4cad-aa0e-328a3bd5563e" + workspace_id = "6950935a-d536-4c50-8473-4e30b46b959e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_gridly/resource.tf b/examples/resources/airbyte_source_gridly/resource.tf index 2ebef6341..15535fb1d 100644 --- a/examples/resources/airbyte_source_gridly/resource.tf +++ b/examples/resources/airbyte_source_gridly/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_gridly" "my_source_gridly" { api_key = "...my_api_key..." grid_id = "...my_grid_id..." } - definition_id = "04de287b-7526-45fd-bf2d-eb8cbf2674a9" - name = "Mary Fay" + definition_id = "4e758ac0-9227-4119-b95b-60c98bb7037a" + name = "Floyd Hermann DDS" secret_id = "...my_secret_id..." - workspace_id = "17bfcc52-6af1-40da-801f-b0fc52730b39" + workspace_id = "e1bb1cad-aa0e-4328-a3bd-5563e04de287" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_harvest/resource.tf b/examples/resources/airbyte_source_harvest/resource.tf index 32d72dfed..ffe8c27e6 100644 --- a/examples/resources/airbyte_source_harvest/resource.tf +++ b/examples/resources/airbyte_source_harvest/resource.tf @@ -12,8 +12,8 @@ resource "airbyte_source_harvest" "my_source_harvest" { replication_end_date = "2017-01-25T00:00:00Z" replication_start_date = "2017-01-25T00:00:00Z" } - definition_id = "41e4a898-5c78-4fa7-986b-df5bf91acb12" - name = "Helen Legros" + definition_id = "65fdff2d-eb8c-4bf2-a74a-92033b17bfcc" + name = "Theresa Kertzmann" secret_id = "...my_secret_id..." - workspace_id = "28d89e35-1e86-48df-9f2c-5ad84a46153e" + workspace_id = "10da401f-b0fc-4527-b0b3-9994a41e4a89" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_hubplanner/resource.tf b/examples/resources/airbyte_source_hubplanner/resource.tf index 8f4777a23..581810858 100644 --- a/examples/resources/airbyte_source_hubplanner/resource.tf +++ b/examples/resources/airbyte_source_hubplanner/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_hubplanner" "my_source_hubplanner" { configuration = { api_key = "...my_api_key..." } - definition_id = "b240d626-d488-47cc-aaf5-8e0f5c1159d6" - name = "Frances Gutmann" + definition_id = "85c78fa7-d86b-4df5-bf91-acb121083728" + name = "Johnnie Maggio" secret_id = "...my_secret_id..." - workspace_id = "10eecfc7-f384-4ec6-8405-7d0451918db5" + workspace_id = "51e868df-1f2c-45ad-84a4-6153eb240d62" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_hubspot/resource.tf b/examples/resources/airbyte_source_hubspot/resource.tf index 9a484c003..81a2a1e28 100644 --- a/examples/resources/airbyte_source_hubspot/resource.tf +++ b/examples/resources/airbyte_source_hubspot/resource.tf @@ -10,8 +10,8 @@ resource "airbyte_source_hubspot" "my_source_hubspot" { enable_experimental_streams = false start_date = "2017-01-25T00:00:00Z" } - definition_id = "bbbdb311-964f-499d-a774-5afb65f1720b" - name = "Javier Murray" + definition_id = "887ccaaf-58e0-4f5c-9159-d60149910eec" + name = "Leland Kshlerin" secret_id = "...my_secret_id..." - workspace_id = "c1916264-7e68-40e4-817c-6f4b509c8206" + workspace_id = "84ec6040-57d0-4451-918d-b5cccbbbdb31" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_insightly/resource.tf b/examples/resources/airbyte_source_insightly/resource.tf index f160e75b5..20c33dac7 100644 --- a/examples/resources/airbyte_source_insightly/resource.tf +++ b/examples/resources/airbyte_source_insightly/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_insightly" "my_source_insightly" { start_date = "2021-03-01T00:00:00Z" token = "...my_token..." } - definition_id = "b043ef09-e61b-475b-b267-65eab1ad8429" - name = "Eva Reinger" + definition_id = "64f99d67-745a-4fb6-9f17-20bd7a7ec191" + name = "Irene Huels" secret_id = "...my_secret_id..." - workspace_id = "59bdc8b9-3f80-4b7f-9570-94a97b6356d5" + workspace_id = "e680e441-7c6f-44b5-89c8-206a4b043ef0" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_instagram/resource.tf b/examples/resources/airbyte_source_instagram/resource.tf index 3ad5dd103..f48515dac 100644 --- a/examples/resources/airbyte_source_instagram/resource.tf +++ b/examples/resources/airbyte_source_instagram/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_instagram" "my_source_instagram" { client_secret = "...my_client_secret..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "91630fd2-f131-4d4f-bef2-53f33ac135dc" - name = "Kevin Weissnat" + definition_id = "61b75b72-6765-4eab-9ad8-42954bd759bd" + name = "Clayton Prosacco" secret_id = "...my_secret_id..." - workspace_id = "794a97d5-acf5-4625-ba66-e5ad39192931" + workspace_id = "f80b7f55-7094-4a97-b635-6d53391630fd" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_instatus/resource.tf b/examples/resources/airbyte_source_instatus/resource.tf index 0fc469dff..b1fd766d7 100644 --- a/examples/resources/airbyte_source_instatus/resource.tf +++ b/examples/resources/airbyte_source_instatus/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_instatus" "my_source_instatus" { configuration = { api_key = "...my_api_key..." } - definition_id = "4c65ed70-eb17-4cb4-bc24-002ca0d01711" - name = "Bobby Heidenreich" + definition_id = "2f131d4f-bef2-453f-b3ac-135dc90f6379" + name = "Eunice Mayert" secret_id = "...my_secret_id..." - workspace_id = "8dde04a9-ce3b-4e57-bfa4-6127442775ed" + workspace_id = "5acf5625-3a66-4e5a-9391-929314c65ed7" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_intercom/resource.tf b/examples/resources/airbyte_source_intercom/resource.tf index 94021db4a..93f8d3d9a 100644 --- a/examples/resources/airbyte_source_intercom/resource.tf +++ b/examples/resources/airbyte_source_intercom/resource.tf @@ -6,8 +6,8 @@ resource "airbyte_source_intercom" "my_source_intercom" { client_secret = "...my_client_secret..." start_date = "2020-11-16T00:00:00Z" } - definition_id = "4e17a648-8571-41ab-94fe-75a513e00977" - name = "Geneva Fisher" + definition_id = "7cb4fc24-002c-4a0d-8171-1f25a28dde04" + name = "Marshall Schinner" secret_id = "...my_secret_id..." - workspace_id = "7c06dd86-b4fb-4de6-ae53-955108cd8df8" + workspace_id = "be57bfa4-6127-4442-b75e-d08074e17a64" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_ip2whois/resource.tf b/examples/resources/airbyte_source_ip2whois/resource.tf index 2164293d4..d3b0a25ea 100644 --- a/examples/resources/airbyte_source_ip2whois/resource.tf +++ b/examples/resources/airbyte_source_ip2whois/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_ip2whois" "my_source_ip2whois" { api_key = "...my_api_key..." domain = "www.facebook.com" } - definition_id = "ddacae82-61af-48b9-bb48-50d654be1e78" - name = "Mercedes Turcotte" + definition_id = "85711ab9-4fe7-45a5-93e0-0977793827c0" + name = "Mable Stroman" secret_id = "...my_secret_id..." - workspace_id = "327e7787-5126-4eb5-a944-312d5d5e6a2d" + workspace_id = "b4fbde6a-e539-4551-88cd-8df8fddacae8" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_iterable/resource.tf b/examples/resources/airbyte_source_iterable/resource.tf index e8a10e738..ef9b5dd99 100644 --- a/examples/resources/airbyte_source_iterable/resource.tf +++ b/examples/resources/airbyte_source_iterable/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_iterable" "my_source_iterable" { api_key = "...my_api_key..." start_date = "2021-04-01T00:00:00Z" } - definition_id = "c0cc98dd-5412-4256-9139-361b0488926a" - name = "Marion Schimmel" + definition_id = "1af8b9bb-4850-4d65-8be1-e785de7e327e" + name = "Georgia Ledner" secret_id = "...my_secret_id..." - workspace_id = "2e85afcc-9acc-46e7-a95c-9a7c9f197511" + workspace_id = "126eb569-4431-42d5-95e6-a2d83c0cc98d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_jira/resource.tf b/examples/resources/airbyte_source_jira/resource.tf index a1e8bb82e..1a9c75c8d 100644 --- a/examples/resources/airbyte_source_jira/resource.tf +++ b/examples/resources/airbyte_source_jira/resource.tf @@ -2,9 +2,9 @@ resource "airbyte_source_jira" "my_source_jira" { configuration = { api_token = "...my_api_token..." domain = "jira..com" - email = "Celestino_Grimes@yahoo.com" + email = "Efren18@yahoo.com" enable_experimental_streams = false - expand_issue_changelog = true + expand_issue_changelog = false expand_issue_transition = false issues_stream_expand_with = [ "renderedFields", @@ -13,11 +13,11 @@ resource "airbyte_source_jira" "my_source_jira" { projects = [ "...", ] - render_fields = true + render_fields = false start_date = "2021-03-01T00:00:00Z" } - definition_id = "01aad5e5-f9cf-4b0d-9e8d-3acce90aeed1" - name = "Penny Koepp" + definition_id = "1b048892-6ab9-4cfe-ae85-afcc9acc6e7e" + name = "Herman Schowalter" secret_id = "...my_secret_id..." - workspace_id = "882d54ce-598c-4c59-ab95-2f06231c57fd" + workspace_id = "7c9f1975-11d6-4247-9658-5095001aad5e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_k6_cloud/resource.tf b/examples/resources/airbyte_source_k6_cloud/resource.tf index 17a2b54de..ce89a34d8 100644 --- a/examples/resources/airbyte_source_k6_cloud/resource.tf +++ b/examples/resources/airbyte_source_k6_cloud/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_k6_cloud" "my_source_k6cloud" { configuration = { api_token = "...my_api_token..." } - definition_id = "8f9d1baa-c6e0-45b1-a50c-14468d231cdd" - name = "Jordan Wunsch PhD" + definition_id = "5f9cfb0d-1e8d-43ac-8e90-aeed1087b988" + name = "Eula Hane" secret_id = "...my_secret_id..." - workspace_id = "deee1be4-e723-4eea-b419-bc59e04a869e" + workspace_id = "e598cc59-eb95-42f0-a231-c57fd8f9d1ba" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_klarna/resource.tf b/examples/resources/airbyte_source_klarna/resource.tf index fb1c6abd9..05fd1f91d 100644 --- a/examples/resources/airbyte_source_klarna/resource.tf +++ b/examples/resources/airbyte_source_klarna/resource.tf @@ -3,10 +3,10 @@ resource "airbyte_source_klarna" "my_source_klarna" { password = "...my_password..." playground = true region = "oc" - username = "Ben_Greenholt" + username = "Gretchen35" } - definition_id = "3b04e32d-c649-4b6b-88e2-c7d0de0f8a2b" - name = "Tanya Padberg" + definition_id = "b1e50c14-468d-4231-8dd9-8f81edeee1be" + name = "Sophia Kunze" secret_id = "...my_secret_id..." - workspace_id = "e20e7511-1fd0-4612-bfd3-df11978b3859" + workspace_id = "eeaf419b-c59e-404a-869e-9d149f3b04e3" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_klaviyo/resource.tf b/examples/resources/airbyte_source_klaviyo/resource.tf index 9ab55f131..ef26c51b9 100644 --- a/examples/resources/airbyte_source_klaviyo/resource.tf +++ b/examples/resources/airbyte_source_klaviyo/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_klaviyo" "my_source_klaviyo" { api_key = "...my_api_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "e3c921cc-9284-4a21-955c-54910609be9a" - name = "Ivan Grimes" + definition_id = "c649b6bc-8e2c-47d0-9e0f-8a2b57adde20" + name = "Mr. Erik Heathcote DVM" secret_id = "...my_secret_id..." - workspace_id = "b07bcaf1-3ed5-4606-ac59-e7c8aeeeb09f" + workspace_id = "d0612ffd-3df1-4197-8b38-5957e3c921cc" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_kyve/resource.tf b/examples/resources/airbyte_source_kyve/resource.tf index eb76f3a5a..2ce3ed528 100644 --- a/examples/resources/airbyte_source_kyve/resource.tf +++ b/examples/resources/airbyte_source_kyve/resource.tf @@ -1,13 +1,13 @@ resource "airbyte_source_kyve" "my_source_kyve" { configuration = { - max_pages = 10 - page_size = 9 - pool_ids = "0" + max_pages = 6 + page_size = 1 + pool_ids = "0,1" start_ids = "0" - url_base = "https://api.kaon.kyve.network/" + url_base = "https://api.korellia.kyve.network/" } - definition_id = "3fe46a14-03ba-41bd-8103-cfb422849b58" - name = "Constance Harris" + definition_id = "21155c54-9106-409b-a9a9-84e4b07bcaf1" + name = "Gwen Stark" secret_id = "...my_secret_id..." - workspace_id = "d79d74aa-20ea-469f-9b1a-975dd1b5a029" + workspace_id = "06ac59e7-c8ae-4eeb-89ff-d3753fe46a14" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_launchdarkly/resource.tf b/examples/resources/airbyte_source_launchdarkly/resource.tf index e30546bdb..fbcea9451 100644 --- a/examples/resources/airbyte_source_launchdarkly/resource.tf +++ b/examples/resources/airbyte_source_launchdarkly/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_launchdarkly" "my_source_launchdarkly" { configuration = { access_token = "...my_access_token..." } - definition_id = "5b197bbb-0227-4d62-9c31-55f731c6e6bc" - name = "Kara O'Keefe III" + definition_id = "03ba1bd8-103c-4fb4-a284-9b585759fd79" + name = "Neil Gleichner" secret_id = "...my_secret_id..." - workspace_id = "6aee7892-5477-4f38-bc53-022ba4aed299" + workspace_id = "20ea69f1-b1a9-475d-91b5-a0295b197bbb" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_lemlist/resource.tf b/examples/resources/airbyte_source_lemlist/resource.tf index 260c04527..07cc6932b 100644 --- a/examples/resources/airbyte_source_lemlist/resource.tf +++ b/examples/resources/airbyte_source_lemlist/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_lemlist" "my_source_lemlist" { configuration = { api_key = "...my_api_key..." } - definition_id = "5c663b6d-13c6-4e3b-bb93-bd413d75c669" - name = "Molly Huels" + definition_id = "0227d625-c315-45f7-b1c6-e6bc1caf166a" + name = "Bert Kohler" secret_id = "...my_secret_id..." - workspace_id = "2ef16650-e4c3-4120-977a-566ac796fdac" + workspace_id = "25477f38-7c53-4022-ba4a-ed2995c663b6" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_lever_hiring/resource.tf b/examples/resources/airbyte_source_lever_hiring/resource.tf index 9fcd13af8..8cde45f23 100644 --- a/examples/resources/airbyte_source_lever_hiring/resource.tf +++ b/examples/resources/airbyte_source_lever_hiring/resource.tf @@ -5,11 +5,11 @@ resource "airbyte_source_lever_hiring" "my_source_leverhiring" { api_key = "...my_api_key..." } } - environment = "Production" + environment = "Sandbox" start_date = "2021-03-01T00:00:00Z" } - definition_id = "f48b8f86-7010-454c-9db1-ce49a8fc7f8e" - name = "Anita Jacobson" + definition_id = "13c6e3bb-b93b-4d41-bd75-c6693a6b92ef" + name = "Rosemary Hyatt PhD" secret_id = "...my_secret_id..." - workspace_id = "645cfb24-49ee-4f87-a4eb-4b875ea1fa63" + workspace_id = "4c3120d7-7a56-46ac-b96f-dac1f48b8f86" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_linkedin_ads/resource.tf b/examples/resources/airbyte_source_linkedin_ads/resource.tf index 6a1e96926..d3022deff 100644 --- a/examples/resources/airbyte_source_linkedin_ads/resource.tf +++ b/examples/resources/airbyte_source_linkedin_ads/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { configuration = { account_ids = [ - 10, + 4, ] ad_analytics_reports = [ { - name = "Lynne Baumbach" + name = "Carolyn Bednar" pivot_by = "MEMBER_COUNTRY_V2" time_granularity = "ALL" }, @@ -17,8 +17,8 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" { } start_date = "2021-05-17" } - definition_id = "3cfd915c-c53a-4e1f-9c37-b350ebb3981c" - name = "Marshall Yundt" + definition_id = "1ce49a8f-c7f8-4e24-a726-45cfb2449eef" + name = "Cory Johnson" secret_id = "...my_secret_id..." - workspace_id = "3f1e6164-cc87-488f-b77a-58933f7738d6" + workspace_id = "b4b875ea-1fa6-43f6-80fa-c1403cfd915c" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_linkedin_pages/resource.tf b/examples/resources/airbyte_source_linkedin_pages/resource.tf index 52f5e23c9..a4da0860f 100644 --- a/examples/resources/airbyte_source_linkedin_pages/resource.tf +++ b/examples/resources/airbyte_source_linkedin_pages/resource.tf @@ -6,11 +6,11 @@ resource "airbyte_source_linkedin_pages" "my_source_linkedinpages" { } } org_id = "123456789" - start_date = "2022-02-20T02:33:55.102Z" - time_granularity_type = "MONTH" + start_date = "2022-01-06T04:41:29.233Z" + time_granularity_type = "DAY" } - definition_id = "7b7f8b16-c616-47f1-a8f0-042f92210b5c" - name = "Mrs. Edmond Cronin" + definition_id = "ae1f1c37-b350-4ebb-b981-c89f963f1e61" + name = "Anita Ryan" secret_id = "...my_secret_id..." - workspace_id = "6a775647-eb6b-4abc-8f9b-18b2eafdc453" + workspace_id = "788ff77a-5893-43f7-b38d-63dc7b7f8b16" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_linnworks/resource.tf b/examples/resources/airbyte_source_linnworks/resource.tf index e749685d2..2be182820 100644 --- a/examples/resources/airbyte_source_linnworks/resource.tf +++ b/examples/resources/airbyte_source_linnworks/resource.tf @@ -2,11 +2,11 @@ resource "airbyte_source_linnworks" "my_source_linnworks" { configuration = { application_id = "...my_application_id..." application_secret = "...my_application_secret..." - start_date = "2020-11-23T19:16:47.007Z" + start_date = "2021-09-13T06:35:49.884Z" token = "...my_token..." } - definition_id = "6a0192c4-4771-42b4-a020-8830aabeffb8" - name = "Luther Kunde" + definition_id = "167f1e8f-0042-4f92-a10b-5c8f204e6a77" + name = "Gertrude Gutkowski" secret_id = "...my_secret_id..." - workspace_id = "1059b440-a5f2-4f61-a4e4-66849f7bbeaa" + workspace_id = "b6babc0f-9b18-4b2e-afdc-453fb6a0192c" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_lokalise/resource.tf b/examples/resources/airbyte_source_lokalise/resource.tf index 235fe096f..1863e07d3 100644 --- a/examples/resources/airbyte_source_lokalise/resource.tf +++ b/examples/resources/airbyte_source_lokalise/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_lokalise" "my_source_lokalise" { api_key = "...my_api_key..." project_id = "...my_project_id..." } - definition_id = "ef524043-cb4c-4473-a8c7-bd5915174a55" - name = "Melba Shields" + definition_id = "447712b4-a020-4883-8aab-effb8d976510" + name = "Lindsey Pouros" secret_id = "...my_secret_id..." - workspace_id = "1daf7626-ef51-4c5f-a52e-0c6c0cc93e76" + workspace_id = "0a5f2f61-a4e4-4668-89f7-bbeaaef52404" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_mailchimp/resource.tf b/examples/resources/airbyte_source_mailchimp/resource.tf index 93709e030..2493fe62c 100644 --- a/examples/resources/airbyte_source_mailchimp/resource.tf +++ b/examples/resources/airbyte_source_mailchimp/resource.tf @@ -8,8 +8,8 @@ resource "airbyte_source_mailchimp" "my_source_mailchimp" { data_center = "...my_data_center..." start_date = "2020-01-01T00:00:00.000Z" } - definition_id = "fdef541f-06ca-413b-9e89-c1488faa411d" - name = "Mack Maggio" + definition_id = "b4c473e8-c7bd-4591-9174-a553fda41daf" + name = "Agnes Cronin" secret_id = "...my_secret_id..." - workspace_id = "269c9d64-8f0b-4ccd-92e9-5af6ed3c47c1" + workspace_id = "f51c5fa5-2e0c-46c0-8c93-e76e9fdef541" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_mailgun/resource.tf b/examples/resources/airbyte_source_mailgun/resource.tf index bbe00ddd4..b80304e62 100644 --- a/examples/resources/airbyte_source_mailgun/resource.tf +++ b/examples/resources/airbyte_source_mailgun/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_mailgun" "my_source_mailgun" { configuration = { - domain_region = "US" + domain_region = "EU" private_key = "...my_private_key..." start_date = "2023-08-01T00:00:00Z" } - definition_id = "0113c2d3-cb5e-4aa6-8b86-a42dbbb853ec" - name = "Jeannette Hayes" + definition_id = "ca13b1e8-9c14-488f-aa41-1d9d922269c9" + name = "Ricardo Gutmann" secret_id = "...my_secret_id..." - workspace_id = "a18b0d79-003d-4e8d-a443-bfaadd29a6df" + workspace_id = "0bccdd2e-95af-46ed-bc47-c14160113c2d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_mailjet_sms/resource.tf b/examples/resources/airbyte_source_mailjet_sms/resource.tf index caf374fd6..a56f26343 100644 --- a/examples/resources/airbyte_source_mailjet_sms/resource.tf +++ b/examples/resources/airbyte_source_mailjet_sms/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_mailjet_sms" "my_source_mailjetsms" { start_date = 1666261656 token = "...my_token..." } - definition_id = "cb6bf32f-af82-45be-a4ec-87aaffeb9ea2" - name = "Robert Windler" + definition_id = "b5eaa64b-86a4-42db-bb85-3ec4b5e6a18b" + name = "Christie Kshlerin Jr." secret_id = "...my_secret_id..." - workspace_id = "9f4166b4-2b69-4c61-927b-bad3f0bf8ca7" + workspace_id = "3de8da44-3bfa-4add-a9a6-dff6cb6bf32f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_marketo/resource.tf b/examples/resources/airbyte_source_marketo/resource.tf index f760aeef5..6d1ed302c 100644 --- a/examples/resources/airbyte_source_marketo/resource.tf +++ b/examples/resources/airbyte_source_marketo/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_marketo" "my_source_marketo" { domain_url = "https://000-AAA-000.mktorest.com" start_date = "2020-09-25T00:00:00Z" } - definition_id = "bfb1506e-5d6d-4eb8-b49c-82f283fdf1b3" - name = "Judith Pfannerstill" + definition_id = "825bea4e-c87a-4aff-ab9e-a290f7e9f416" + name = "Bridget Gutmann" secret_id = "...my_secret_id..." - workspace_id = "f9cacc87-9ba7-4ac0-9647-dc7c271c5044" + workspace_id = "69c61d27-bbad-43f0-bf8c-a743bfb1506e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_metabase/resource.tf b/examples/resources/airbyte_source_metabase/resource.tf index b0b9678dd..64be5e355 100644 --- a/examples/resources/airbyte_source_metabase/resource.tf +++ b/examples/resources/airbyte_source_metabase/resource.tf @@ -3,10 +3,10 @@ resource "airbyte_source_metabase" "my_source_metabase" { instance_api_url = "https://localhost:3000/api/" password = "...my_password..." session_token = "...my_session_token..." - username = "Lisandro_Champlin" + username = "Fatima_Simonis" } - definition_id = "4f7e4eab-e3a9-4776-8e79-345d14463033" - name = "Priscilla Zulauf" + definition_id = "eb8b49c8-2f28-43fd-b1b3-62a3ef9cacc8" + name = "Misty Price" secret_id = "...my_secret_id..." - workspace_id = "cf10b074-2b93-4b49-9111-a320ccad5adc" + workspace_id = "ac01647d-c7c2-471c-9044-a25a4f7e4eab" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_microsoft_onedrive/resource.tf b/examples/resources/airbyte_source_microsoft_onedrive/resource.tf index 64e5e3041..e02466bc2 100644 --- a/examples/resources/airbyte_source_microsoft_onedrive/resource.tf +++ b/examples/resources/airbyte_source_microsoft_onedrive/resource.tf @@ -10,11 +10,11 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { } drive_name = "...my_drive_name..." folder_path = "...my_folder_path..." - search_scope = "ACCESSIBLE_DRIVES" + search_scope = "ALL" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 0 + days_to_sync_if_history_is_full = 6 format = { avro_format = { double_as_string = true @@ -24,15 +24,15 @@ resource "airbyte_source_microsoft_onedrive" "my_source_microsoftonedrive" { "...", ] input_schema = "...my_input_schema..." - name = "Derek Kuhlman" + name = "Jeanette Larson" primary_key = "...my_primary_key..." schemaless = true validation_policy = "Emit Record" }, ] } - definition_id = "95b5ae04-23a6-4249-a514-955fa2ea25a5" - name = "Rosemarie Kulas Sr." + definition_id = "45d14463-0331-48f2-9cf1-0b0742b93b49" + name = "Miss Joshua Brekke" secret_id = "...my_secret_id..." - workspace_id = "e389cc42-00a4-4abb-b299-a611cc7be3e8" + workspace_id = "20ccad5a-dc13-430e-b574-88395b5ae042" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_microsoft_sharepoint/resource.tf b/examples/resources/airbyte_source_microsoft_sharepoint/resource.tf index 33fa7d5cb..3695b0926 100644 --- a/examples/resources/airbyte_source_microsoft_sharepoint/resource.tf +++ b/examples/resources/airbyte_source_microsoft_sharepoint/resource.tf @@ -9,29 +9,29 @@ resource "airbyte_source_microsoft_sharepoint" "my_source_microsoftsharepoint" { } } folder_path = "...my_folder_path..." - search_scope = "ALL" + search_scope = "ACCESSIBLE_DRIVES" start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 0 + days_to_sync_if_history_is_full = 1 format = { avro_format = { - double_as_string = true + double_as_string = false } } globs = [ "...", ] input_schema = "...my_input_schema..." - name = "Mrs. Al Schamberger" + name = "Mrs. Alfonso Hayes" primary_key = "...my_primary_key..." - schemaless = true - validation_policy = "Emit Record" + schemaless = false + validation_policy = "Skip Record" }, ] } - definition_id = "c2050fdf-2ba7-4d43-920d-3384e15ed535" - name = "Marilyn Kunde" + definition_id = "fa2ea25a-51d7-4622-a389-cc4200a4abb3" + name = "Bobbie McCullough" secret_id = "...my_secret_id..." - workspace_id = "faeabade-b93c-4772-879b-6069b6a28df3" + workspace_id = "11cc7be3-e8ba-4718-8dc0-5c92c2050fdf" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_microsoft_teams/resource.tf b/examples/resources/airbyte_source_microsoft_teams/resource.tf index 3ab6f7ad1..7afd53ddd 100644 --- a/examples/resources/airbyte_source_microsoft_teams/resource.tf +++ b/examples/resources/airbyte_source_microsoft_teams/resource.tf @@ -9,8 +9,8 @@ resource "airbyte_source_microsoft_teams" "my_source_microsoftteams" { } period = "D7" } - definition_id = "196ea920-3cb7-4876-a75a-531f3b4802a3" - name = "Terrence Smith" + definition_id = "2ba7d43d-20d3-4384-a15e-d53522788fae" + name = "Ed Ondricka" secret_id = "...my_secret_id..." - workspace_id = "4976dbe1-16c7-4811-ac70-bfb32667c47d" + workspace_id = "b93c7728-79b6-4069-b6a2-8df3196ea920" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_mixpanel/resource.tf b/examples/resources/airbyte_source_mixpanel/resource.tf index 4e7f61c94..df940dee3 100644 --- a/examples/resources/airbyte_source_mixpanel/resource.tf +++ b/examples/resources/airbyte_source_mixpanel/resource.tf @@ -1,20 +1,20 @@ resource "airbyte_source_mixpanel" "my_source_mixpanel" { configuration = { - attribution_window = 3 + attribution_window = 2 credentials = { project_secret = { api_secret = "...my_api_secret..." } } - date_window_size = 0 + date_window_size = 8 end_date = "2021-11-16" - project_timezone = "US/Pacific" + project_timezone = "UTC" region = "US" select_properties_by_default = false start_date = "2021-11-16" } - definition_id = "c03f8392-0634-4c9d-b1c4-26709282f0b3" - name = "Nora Waelchi" + definition_id = "5a531f3b-4802-4a3b-9d67-4976dbe116c7" + name = "Raymond Boyer" secret_id = "...my_secret_id..." - workspace_id = "729ff502-4b69-40b2-b36f-2f7a3b95d4ab" + workspace_id = "70bfb326-67c4-47d5-8361-6107c03f8392" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_monday/resource.tf b/examples/resources/airbyte_source_monday/resource.tf index 2276ad4bc..8d0b26950 100644 --- a/examples/resources/airbyte_source_monday/resource.tf +++ b/examples/resources/airbyte_source_monday/resource.tf @@ -6,8 +6,8 @@ resource "airbyte_source_monday" "my_source_monday" { } } } - definition_id = "cb3edfbb-ab6a-4d0e-84a4-dc970c078573" - name = "Benjamin Bartell" + definition_id = "0634c9db-1c42-4670-9282-f0b308e78729" + name = "Mr. Emmett Hermiston" secret_id = "...my_secret_id..." - workspace_id = "990f9b2c-e7a6-47a8-9150-ea86120cd618" + workspace_id = "b690b273-6f2f-47a3-b95d-4abcb3edfbba" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf b/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf index e548f5bd8..ae3520b7d 100644 --- a/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf +++ b/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf @@ -6,8 +6,8 @@ resource "airbyte_source_mongodb_internal_poc" "my_source_mongodbinternalpoc" { replica_set = "...my_replica_set..." user = "...my_user..." } - definition_id = "74280681-2ca7-4b26-9526-15553a713498" - name = "Luis Wilderman" + definition_id = "6ad0e44a-4dc9-470c-8785-73a20ac990f9" + name = "Steve Sauer" secret_id = "...my_secret_id..." - workspace_id = "99a12d6e-33e6-46d7-80d4-772456d0d26d" + workspace_id = "a67a8515-0ea8-4612-8cd6-18d742806812" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_mongodb_v2/resource.tf b/examples/resources/airbyte_source_mongodb_v2/resource.tf index aa0a4608e..8c6adfc01 100644 --- a/examples/resources/airbyte_source_mongodb_v2/resource.tf +++ b/examples/resources/airbyte_source_mongodb_v2/resource.tf @@ -7,18 +7,18 @@ resource "airbyte_source_mongodb_v2" "my_source_mongodbv2" { connection_string = "mongodb+srv://cluster0.abcd1.mongodb.net/" database = "...my_database..." password = "...my_password..." - schema_enforced = true - username = "Ashley_Gerhold" + schema_enforced = false + username = "Luciano.King42" } } - discover_sample_size = 8 - initial_waiting_seconds = 2 + discover_sample_size = 6 + initial_waiting_seconds = 4 invalid_cdc_cursor_position_behavior = "Fail sync" queue_size = 4 update_capture_mode = "Lookup" } - definition_id = "ca647ba4-f7aa-4ba2-9784-141a21c8938a" - name = "Marc Willms" + definition_id = "5553a713-498a-43f9-b99a-12d6e33e66d7" + name = "Melissa Stoltenberg" secret_id = "...my_secret_id..." - workspace_id = "b78bed98-212c-4704-ae19-387527d5e3ef" + workspace_id = "72456d0d-26d9-4147-bb35-66ca647ba4f7" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_mssql/resource.tf b/examples/resources/airbyte_source_mssql/resource.tf index bdd72611b..147c425fd 100644 --- a/examples/resources/airbyte_source_mssql/resource.tf +++ b/examples/resources/airbyte_source_mssql/resource.tf @@ -7,9 +7,9 @@ resource "airbyte_source_mssql" "my_source_mssql" { port = 1433 replication_method = { read_changes_using_change_data_capture_cdc = { - initial_waiting_seconds = 1 - invalid_cdc_cursor_position_behavior = "Fail sync" - queue_size = 4 + initial_waiting_seconds = 7 + invalid_cdc_cursor_position_behavior = "Re-sync data" + queue_size = 7 } } schemas = [ @@ -21,10 +21,10 @@ resource "airbyte_source_mssql" "my_source_mssql" { tunnel_method = { no_tunnel = {} } - username = "Raymond.Armstrong73" + username = "Caroline_Harvey" } - definition_id = "7968b724-2137-4fe2-a9e2-6c4c104f1dbe" - name = "Luz Brown" + definition_id = "4141a21c-8938-4ad6-bcbb-78bed98212c7" + name = "Eleanor O'Hara V" secret_id = "...my_secret_id..." - workspace_id = "90447757-3847-465c-b741-8014d1f26365" + workspace_id = "387527d5-e3ef-4724-ad0c-0b7968b72421" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_my_hours/resource.tf b/examples/resources/airbyte_source_my_hours/resource.tf index 06fe9be22..87a964570 100644 --- a/examples/resources/airbyte_source_my_hours/resource.tf +++ b/examples/resources/airbyte_source_my_hours/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_my_hours" "my_source_myhours" { password = "...my_password..." start_date = "2016-01-01" } - definition_id = "e0e5e5f3-86d0-4ac5-af3c-6558d9b03d25" - name = "Percy Walker" + definition_id = "26c4c104-f1db-4e3b-9f29-044775738476" + name = "Brooke Kihn" secret_id = "...my_secret_id..." - workspace_id = "badc477c-b62b-459b-9f1e-e4249578a5bc" + workspace_id = "18014d1f-2636-451b-b7f9-fe0e5e5f386d" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_mysql/resource.tf b/examples/resources/airbyte_source_mysql/resource.tf index c905c61f0..0b2c017b4 100644 --- a/examples/resources/airbyte_source_mysql/resource.tf +++ b/examples/resources/airbyte_source_mysql/resource.tf @@ -7,9 +7,8 @@ resource "airbyte_source_mysql" "my_source_mysql" { port = 3306 replication_method = { read_changes_using_binary_log_cdc = { - initial_load_timeout_hours = 7 - initial_waiting_seconds = 8 - invalid_cdc_cursor_position_behavior = "Fail sync" + initial_waiting_seconds = 7 + invalid_cdc_cursor_position_behavior = "Re-sync data" server_time_zone = "...my_server_time_zone..." } } @@ -19,10 +18,10 @@ resource "airbyte_source_mysql" "my_source_mysql" { tunnel_method = { no_tunnel = {} } - username = "Rachelle.Rippin" + username = "Flossie.Padberg78" } - definition_id = "b2c4dd4d-4290-4774-9ee0-bbab0457d926" - name = "Miriam Lynch" + definition_id = "6558d9b0-3d25-4bee-bdba-dc477cb62b59" + name = "Dr. Kirk Welch" secret_id = "...my_secret_id..." - workspace_id = "ecd841e7-2a76-46a6-86fa-a512d8044b05" + workspace_id = "4249578a-5bcb-4bc2-8b83-b2c4dd4d4290" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_netsuite/resource.tf b/examples/resources/airbyte_source_netsuite/resource.tf index c261b6202..ab74903dd 100644 --- a/examples/resources/airbyte_source_netsuite/resource.tf +++ b/examples/resources/airbyte_source_netsuite/resource.tf @@ -9,10 +9,10 @@ resource "airbyte_source_netsuite" "my_source_netsuite" { start_datetime = "2017-01-25T00:00:00Z" token_key = "...my_token_key..." token_secret = "...my_token_secret..." - window_in_days = 8 + window_in_days = 5 } - definition_id = "5b711236-1f26-4d47-b86c-dec1a2bc2b81" - name = "Francisco Hegmann" + definition_id = "741ee0bb-ab04-457d-9263-98e6ecd841e7" + name = "Jan Kub" secret_id = "...my_secret_id..." - workspace_id = "ceb6c910-dc95-4a96-8b5f-3bc4b3253e6b" + workspace_id = "a686faa5-12d8-4044-b05c-5b7112361f26" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_notion/resource.tf b/examples/resources/airbyte_source_notion/resource.tf index 6c8ae455d..6e79a5013 100644 --- a/examples/resources/airbyte_source_notion/resource.tf +++ b/examples/resources/airbyte_source_notion/resource.tf @@ -7,8 +7,8 @@ resource "airbyte_source_notion" "my_source_notion" { } start_date = "2020-11-16T00:00:00.000Z" } - definition_id = "91e25444-d223-44fd-9d8e-a1c7d43320fa" - name = "Miss Marshall Sauer" + definition_id = "7b86cdec-1a2b-4c2b-81e4-5e3ceb6c910d" + name = "Terrence Haley" secret_id = "...my_secret_id..." - workspace_id = "dab7e73a-5971-4814-a4dc-1f633abc58a5" + workspace_id = "6cb5f3bc-4b32-453e-abd5-91e25444d223" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_nytimes/resource.tf b/examples/resources/airbyte_source_nytimes/resource.tf index e00219aac..a3e9fa7a0 100644 --- a/examples/resources/airbyte_source_nytimes/resource.tf +++ b/examples/resources/airbyte_source_nytimes/resource.tf @@ -6,8 +6,8 @@ resource "airbyte_source_nytimes" "my_source_nytimes" { share_type = "facebook" start_date = "1851-01" } - definition_id = "517fc88b-c499-48d7-9efe-dea337d55b15" - name = "Sabrina Kuvalis" + definition_id = "a1c7d433-20fa-4c9c-9a8d-ab7e73a59718" + name = "Suzanne Terry" secret_id = "...my_secret_id..." - workspace_id = "92c72d54-1f53-4892-8a50-561c1cc6291a" + workspace_id = "c1f633ab-c58a-4542-9517-fc88bc4998d7" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_okta/resource.tf b/examples/resources/airbyte_source_okta/resource.tf index 39e1cbfc0..eb52154e4 100644 --- a/examples/resources/airbyte_source_okta/resource.tf +++ b/examples/resources/airbyte_source_okta/resource.tf @@ -8,8 +8,8 @@ resource "airbyte_source_okta" "my_source_okta" { domain = "...my_domain..." start_date = "2022-07-22T00:00:00Z" } - definition_id = "d7b3d761-e29e-4f26-ae07-d2b59ab56edb" - name = "Mr. Pearl Ruecker DDS" + definition_id = "fedea337-d55b-4155-98db-92c72d541f53" + name = "Marion Champlin" secret_id = "...my_secret_id..." - workspace_id = "cdeed12b-d5eb-473d-822a-608737f9f9cf" + workspace_id = "50561c1c-c629-41a1-ad7b-3d761e29ef26" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_omnisend/resource.tf b/examples/resources/airbyte_source_omnisend/resource.tf index a5d9b45d4..369e57845 100644 --- a/examples/resources/airbyte_source_omnisend/resource.tf +++ b/examples/resources/airbyte_source_omnisend/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_omnisend" "my_source_omnisend" { configuration = { api_key = "...my_api_key..." } - definition_id = "17c9c1c9-1886-4190-8dfc-35041fcdcac2" - name = "Andrea Howe" + definition_id = "ae07d2b5-9ab5-46ed-b57c-000ccdeed12b" + name = "Corey Walker" secret_id = "...my_secret_id..." - workspace_id = "f24d9236-9b1f-4f5a-bba2-88f10a0635ff" + workspace_id = "3d022a60-8737-4f9f-9cf1-7c9c1c918861" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_onesignal/resource.tf b/examples/resources/airbyte_source_onesignal/resource.tf index 7ea2d62cf..a530d9f03 100644 --- a/examples/resources/airbyte_source_onesignal/resource.tf +++ b/examples/resources/airbyte_source_onesignal/resource.tf @@ -11,8 +11,8 @@ resource "airbyte_source_onesignal" "my_source_onesignal" { start_date = "2020-11-16T00:00:00Z" user_auth_key = "...my_user_auth_key..." } - definition_id = "f388685d-8941-4e7d-b072-3f94739cc80e" - name = "Pedro Prohaska Sr." + definition_id = "0dfc3504-1fcd-4cac-a226-2ef24d92369b" + name = "Shawna Wilkinson" secret_id = "...my_secret_id..." - workspace_id = "25778f7a-023c-41e0-8d80-f694c48e9d0f" + workspace_id = "7ba288f1-0a06-435f-b19f-388685d8941e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_oracle/resource.tf b/examples/resources/airbyte_source_oracle/resource.tf index 88e879beb..cfbab523c 100644 --- a/examples/resources/airbyte_source_oracle/resource.tf +++ b/examples/resources/airbyte_source_oracle/resource.tf @@ -13,17 +13,17 @@ resource "airbyte_source_oracle" "my_source_oracle" { host = "...my_host..." jdbc_url_params = "...my_jdbc_url_params..." password = "...my_password..." - port = 2 + port = 9 schemas = [ "...", ] tunnel_method = { no_tunnel = {} } - username = "Orin_Romaguera85" + username = "Neha.Abbott" } - definition_id = "71dab038-014a-4124-b6e7-b2083a37b0c9" - name = "Harry Kuhic" + definition_id = "3f94739c-c80e-4e5b-b122-5778f7a023c1" + name = "Charles Littel" secret_id = "...my_secret_id..." - workspace_id = "a38aa73d-79a8-45cb-b246-518021619872" + workspace_id = "0f694c48-e9d0-4f84-8cba-d71dab038014" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_orb/resource.tf b/examples/resources/airbyte_source_orb/resource.tf index e769abaca..5f145d81e 100644 --- a/examples/resources/airbyte_source_orb/resource.tf +++ b/examples/resources/airbyte_source_orb/resource.tf @@ -2,7 +2,7 @@ resource "airbyte_source_orb" "my_source_orb" { configuration = { api_key = "...my_api_key..." end_date = "2024-03-01T00:00:00Z" - lookback_window_days = 2 + lookback_window_days = 7 numeric_event_properties_keys = [ "...", ] @@ -13,8 +13,8 @@ resource "airbyte_source_orb" "my_source_orb" { ] subscription_usage_grouping_key = "...my_subscription_usage_grouping_key..." } - definition_id = "e09a2aae-62d9-4d77-8257-55e6995c5765" - name = "Miss Nadine Wunsch" + definition_id = "124b6e7b-2083-4a37-b0c9-92762a38aa73" + name = "Julio Mayer" secret_id = "...my_secret_id..." - workspace_id = "422b3629-976b-4741-9bfa-fbdd349afd0c" + workspace_id = "5cb72465-1802-4161-9872-363e09a2aae6" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_orbit/resource.tf b/examples/resources/airbyte_source_orbit/resource.tf index f874e7e51..95bc54c6e 100644 --- a/examples/resources/airbyte_source_orbit/resource.tf +++ b/examples/resources/airbyte_source_orbit/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_orbit" "my_source_orbit" { start_date = "...my_start_date..." workspace = "...my_workspace..." } - definition_id = "d95bcfe3-342d-4c40-aaef-61635af9f94f" - name = "Ivan Hansen" + definition_id = "2d9d7702-5755-4e69-95c5-7652df199422" + name = "Danny Jakubowski" secret_id = "...my_secret_id..." - workspace_id = "22e677c7-7be4-4e42-84a4-1ce525b48930" + workspace_id = "976b741d-bfaf-4bdd-b49a-fd0cd95bcfe3" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_outbrain_amplify/resource.tf b/examples/resources/airbyte_source_outbrain_amplify/resource.tf index 24fbe89f5..26c6e0f81 100644 --- a/examples/resources/airbyte_source_outbrain_amplify/resource.tf +++ b/examples/resources/airbyte_source_outbrain_amplify/resource.tf @@ -7,11 +7,11 @@ resource "airbyte_source_outbrain_amplify" "my_source_outbrainamplify" { } end_date = "...my_end_date..." geo_location_breakdown = "country" - report_granularity = "weekly" + report_granularity = "daily" start_date = "...my_start_date..." } - definition_id = "e9c1af99-61b1-4c88-ba57-2712d8f3b643" - name = "Marianne Reilly" + definition_id = "2dc402ae-f616-435a-b9f9-4f985aa22e67" + name = "Della Koepp" secret_id = "...my_secret_id..." - workspace_id = "b32ad03f-d9a9-4d8b-a9b0-df86503c4743" + workspace_id = "e4e4244a-41ce-4525-b489-3048e9c1af99" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_outreach/resource.tf b/examples/resources/airbyte_source_outreach/resource.tf index 2bcd74102..213cd94bd 100644 --- a/examples/resources/airbyte_source_outreach/resource.tf +++ b/examples/resources/airbyte_source_outreach/resource.tf @@ -6,8 +6,8 @@ resource "airbyte_source_outreach" "my_source_outreach" { refresh_token = "...my_refresh_token..." start_date = "2020-11-16T00:00:00Z" } - definition_id = "ee79bd13-e204-4659-bbdc-56c2f2e20259" - name = "Mrs. Ramon Quitzon" + definition_id = "61b1c883-a572-4712-98f3-b6433cb82b32" + name = "Sammy Aufderhar" secret_id = "...my_secret_id..." - workspace_id = "98d3fc54-30ae-4066-94a9-1bbbc35ba892" + workspace_id = "d9a9d8ba-9b0d-4f86-903c-4743ee79bd13" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_paypal_transaction/resource.tf b/examples/resources/airbyte_source_paypal_transaction/resource.tf index 35a93b11c..94a1f7389 100644 --- a/examples/resources/airbyte_source_paypal_transaction/resource.tf +++ b/examples/resources/airbyte_source_paypal_transaction/resource.tf @@ -3,14 +3,14 @@ resource "airbyte_source_paypal_transaction" "my_source_paypaltransaction" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." dispute_start_date = "2021-06-11T23:59:59.000Z" - end_date = "2021-06-11T23:59:59+00:00" - is_sandbox = true + end_date = "2021-06-11T23:59:59Z" + is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-06-11T23:59:59Z" - time_window = 5 + start_date = "2021-06-11T23:59:59+00:00" + time_window = 9 } - definition_id = "b9331a5d-dafa-4d6a-b5ec-8caacd8d2abf" - name = "Leland Altenwerth" + definition_id = "c56c2f2e-2025-49c6-b139-98d3fc5430ae" + name = "Jeanette Howe" secret_id = "...my_secret_id..." - workspace_id = "3811ddad-7d79-4aa2-af68-e00dcdadd479" + workspace_id = "a91bbbc3-5ba8-492b-ad58-05ab7b9331a5" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_paystack/resource.tf b/examples/resources/airbyte_source_paystack/resource.tf index 3d028db79..875377dc1 100644 --- a/examples/resources/airbyte_source_paystack/resource.tf +++ b/examples/resources/airbyte_source_paystack/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_paystack" "my_source_paystack" { configuration = { - lookback_window_days = 4 + lookback_window_days = 9 secret_key = "...my_secret_key..." start_date = "2017-01-25T00:00:00Z" } - definition_id = "68b4fa72-62d2-4a48-b976-dd11df098493" - name = "Sally West" + definition_id = "fad6ab5e-c8ca-4acd-8d2a-bfdc0f33811d" + name = "Omar Sporer" secret_id = "...my_secret_id..." - workspace_id = "27890d41-f139-419c-925e-386517a80112" + workspace_id = "79aa2af6-8e00-4dcd-add4-7961168b4fa7" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_pendo/resource.tf b/examples/resources/airbyte_source_pendo/resource.tf index 50e08d6e8..886cd2c11 100644 --- a/examples/resources/airbyte_source_pendo/resource.tf +++ b/examples/resources/airbyte_source_pendo/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_pendo" "my_source_pendo" { configuration = { api_key = "...my_api_key..." } - definition_id = "166a5ec4-6f2b-4ce2-a77b-bccef588ac54" - name = "Randolph Walker" + definition_id = "262d2a48-f976-4dd1-9df0-9849375f6227" + name = "Terrence Anderson" secret_id = "...my_secret_id..." - workspace_id = "7a9dbf52-c792-493e-a8aa-81903348b38f" + workspace_id = "1f13919c-925e-4386-917a-80112166a5ec" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_persistiq/resource.tf b/examples/resources/airbyte_source_persistiq/resource.tf index 0c3eb0397..22d4f233a 100644 --- a/examples/resources/airbyte_source_persistiq/resource.tf +++ b/examples/resources/airbyte_source_persistiq/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_persistiq" "my_source_persistiq" { configuration = { api_key = "...my_api_key..." } - definition_id = "e3b52011-25b2-4925-aa78-4d2d0f170747" - name = "Sonja Dibbert" + definition_id = "46f2bce2-e77b-4bcc-af58-8ac548be8a7a" + name = "Wilfred Quitzon" secret_id = "...my_secret_id..." - workspace_id = "a49780ba-1d6a-428c-aeef-e59b72db2240" + workspace_id = "2c79293e-28aa-4819-8334-8b38fe3b5201" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_pexels_api/resource.tf b/examples/resources/airbyte_source_pexels_api/resource.tf index b7425a0db..89be8e0ba 100644 --- a/examples/resources/airbyte_source_pexels_api/resource.tf +++ b/examples/resources/airbyte_source_pexels_api/resource.tf @@ -2,13 +2,13 @@ resource "airbyte_source_pexels_api" "my_source_pexelsapi" { configuration = { api_key = "...my_api_key..." color = "red" - locale = "pt-BR" - orientation = "landscape" - query = "people" + locale = "en-US" + orientation = "square" + query = "oceans" size = "large" } - definition_id = "0da76331-50ac-4fec-a41f-73646e1c8795" - name = "Lee Nikolaus" + definition_id = "9252a784-d2d0-4f17-8747-5e2d6a49780b" + name = "Jack Swaniawski" secret_id = "...my_secret_id..." - workspace_id = "a8255310-1401-4784-96a4-c1173de2c277" + workspace_id = "28c6eefe-59b7-42db-a240-7ce310da7633" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_pinterest/resource.tf b/examples/resources/airbyte_source_pinterest/resource.tf index 772e4aaf6..fc450e669 100644 --- a/examples/resources/airbyte_source_pinterest/resource.tf +++ b/examples/resources/airbyte_source_pinterest/resource.tf @@ -8,28 +8,28 @@ resource "airbyte_source_pinterest" "my_source_pinterest" { custom_reports = [ { attribution_types = [ - "HOUSEHOLD", + "INDIVIDUAL", ] - click_window_days = "14" + click_window_days = "7" columns = [ - "VIDEO_LENGTH", + "CAMPAIGN_DAILY_SPEND_CAP", ] - conversion_report_time = "TIME_OF_AD_ACTION" - engagement_window_days = "1" - granularity = "HOUR" - level = "PIN_PROMOTION" - name = "Mr. Marcos Baumbach DVM" + conversion_report_time = "TIME_OF_CONVERSION" + engagement_window_days = "30" + granularity = "MONTH" + level = "PRODUCT_GROUP_TARGETING" + name = "Dr. Fred Grady" start_date = "2022-07-28" - view_window_days = "30" + view_window_days = "1" }, ] start_date = "2022-07-28" status = [ - "ARCHIVED", + "ACTIVE", ] } - definition_id = "2676b4d9-282a-4d19-925d-5253fa02ef00" - name = "Ms. Moses Boehm" + definition_id = "c879583a-59a8-4255-b101-40178456a4c1" + name = "Bessie Emard" secret_id = "...my_secret_id..." - workspace_id = "81572f72-4d1e-40e7-a708-b9f815bf9f13" + workspace_id = "2c277a8e-2388-4fd0-920f-62c51a2676b4" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_pipedrive/resource.tf b/examples/resources/airbyte_source_pipedrive/resource.tf index f755a1747..9b96c9107 100644 --- a/examples/resources/airbyte_source_pipedrive/resource.tf +++ b/examples/resources/airbyte_source_pipedrive/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_pipedrive" "my_source_pipedrive" { api_token = "...my_api_token..." replication_start_date = "2017-01-25 00:00:00Z" } - definition_id = "70c28b27-8d25-4e4e-a4a5-1abe7bbe4e8d" - name = "Derrick Wehner" + definition_id = "d9282ad1-9d25-4d52-93fa-02ef008f118d" + name = "Peter Hilll" secret_id = "...my_secret_id..." - workspace_id = "7ba5cf8d-b48a-42cc-8047-b120c3ecc155" + workspace_id = "f724d1e0-e7e7-408b-9f81-5bf9f1370c28" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_pocket/resource.tf b/examples/resources/airbyte_source_pocket/resource.tf index 2261796aa..7a7ad33b9 100644 --- a/examples/resources/airbyte_source_pocket/resource.tf +++ b/examples/resources/airbyte_source_pocket/resource.tf @@ -2,18 +2,18 @@ resource "airbyte_source_pocket" "my_source_pocket" { configuration = { access_token = "...my_access_token..." consumer_key = "...my_consumer_key..." - content_type = "video" - detail_type = "complete" + content_type = "image" + detail_type = "simple" domain = "...my_domain..." - favorite = true + favorite = false search = "...my_search..." since = "2022-10-20 14:14:14" sort = "title" - state = "unread" + state = "all" tag = "...my_tag..." } - definition_id = "f33bbc2f-8e75-4b95-ae5d-d11c77a4e3aa" - name = "Nadine Breitenberg" + definition_id = "25e4ee4a-51ab-4e7b-be4e-8da5f867ba5c" + name = "Felix Swaniawski" secret_id = "...my_secret_id..." - workspace_id = "4fcd7d93-9b8b-46b2-8092-0aa8be086075" + workspace_id = "8a2cc404-7b12-40c3-acc1-558e983f33bb" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_pokeapi/resource.tf b/examples/resources/airbyte_source_pokeapi/resource.tf index 5c7f20185..ce4ce8d66 100644 --- a/examples/resources/airbyte_source_pokeapi/resource.tf +++ b/examples/resources/airbyte_source_pokeapi/resource.tf @@ -1,9 +1,9 @@ resource "airbyte_source_pokeapi" "my_source_pokeapi" { configuration = { - pokemon_name = "ditto" + pokemon_name = "snorlax" } - definition_id = "1b21ea9b-c9d1-4c88-b1ee-12f8a7db098a" - name = "Lucille Blanda" + definition_id = "2f8e75b9-5ee5-4dd1-9c77-a4e3aa4d1c74" + name = "Gregg Smitham" secret_id = "...my_secret_id..." - workspace_id = "6a87d389-094e-4fa6-bbbe-a9f5a35d1bd0" + workspace_id = "939b8b6b-2c09-420a-a8be-08607521b21e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_polygon_stock_api/resource.tf b/examples/resources/airbyte_source_polygon_stock_api/resource.tf index 0f575a871..015acdb1d 100644 --- a/examples/resources/airbyte_source_polygon_stock_api/resource.tf +++ b/examples/resources/airbyte_source_polygon_stock_api/resource.tf @@ -3,15 +3,15 @@ resource "airbyte_source_polygon_stock_api" "my_source_polygonstockapi" { adjusted = "false" api_key = "...my_api_key..." end_date = "2020-10-14" - limit = 100 - multiplier = 1 - sort = "asc" + limit = 120 + multiplier = 2 + sort = "desc" start_date = "2020-10-14" stocks_ticker = "MSFT" timespan = "day" } - definition_id = "a6472a5f-8aec-48fe-9b8f-c35367bfee52" - name = "Olive Durgan" + definition_id = "1ee12f8a-7db0-498a-b412-66a87d389094" + name = "Emanuel Paucek" secret_id = "...my_secret_id..." - workspace_id = "74e8f7b8-37d7-46b0-aa3d-797c2fd02395" + workspace_id = "bbea9f5a-35d1-4bd0-bb63-21f6b4ca6472" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_postgres/resource.tf b/examples/resources/airbyte_source_postgres/resource.tf index b27291fa0..f2ac50d3b 100644 --- a/examples/resources/airbyte_source_postgres/resource.tf +++ b/examples/resources/airbyte_source_postgres/resource.tf @@ -19,10 +19,10 @@ resource "airbyte_source_postgres" "my_source_postgres" { tunnel_method = { no_tunnel = {} } - username = "Jayme_Boyer" + username = "Era_Wisoky" } - definition_id = "206b8fda-8b48-4bf3-b0e9-631ebcafaa2e" - name = "Dr. Clinton Osinski DDS" + definition_id = "ec8fedb8-fc35-4367-bfee-523e36b74e8f" + name = "Lula Lemke" secret_id = "...my_secret_id..." - workspace_id = "b6197095-b91e-4126-900f-09eb706bb016" + workspace_id = "d76b02a3-d797-4c2f-9023-950717b206b8" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_posthog/resource.tf b/examples/resources/airbyte_source_posthog/resource.tf index 4a9113098..e00b67b0b 100644 --- a/examples/resources/airbyte_source_posthog/resource.tf +++ b/examples/resources/airbyte_source_posthog/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_posthog" "my_source_posthog" { events_time_step = 5 start_date = "2021-01-01T00:00:00Z" } - definition_id = "c6bfae2b-40c1-473d-8d61-133ddb2a9593" - name = "Rosalie Walter Jr." + definition_id = "b48bf3f0-e963-41eb-8afa-a2ee7a1e0cb6" + name = "Ms. Jenny Konopelski" secret_id = "...my_secret_id..." - workspace_id = "62e7b59a-4e78-4152-8bd2-66e4c12d05e7" + workspace_id = "b91e1261-00f0-49eb-b06b-b016ea0ac6bf" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_postmarkapp/resource.tf b/examples/resources/airbyte_source_postmarkapp/resource.tf index 040c9e803..0de034252 100644 --- a/examples/resources/airbyte_source_postmarkapp/resource.tf +++ b/examples/resources/airbyte_source_postmarkapp/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_postmarkapp" "my_source_postmarkapp" { x_postmark_account_token = "...my_x_postmark_account_token..." x_postmark_server_token = "...my_x_postmark_server_token..." } - definition_id = "f58d4a06-25cb-4ff5-b31f-2b9304d3ebf3" - name = "Cora Barton" + definition_id = "ae2b40c1-73d4-4d61-933d-db2a95937ced" + name = "Sandra Hodkiewicz" secret_id = "...my_secret_id..." - workspace_id = "e61711be-8829-424e-a80a-a2980d84713e" + workspace_id = "7b59a4e7-8152-4cbd-a66e-4c12d05e7f58" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_prestashop/resource.tf b/examples/resources/airbyte_source_prestashop/resource.tf index 415b851ec..ae196b8c7 100644 --- a/examples/resources/airbyte_source_prestashop/resource.tf +++ b/examples/resources/airbyte_source_prestashop/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_prestashop" "my_source_prestashop" { start_date = "2022-01-01" url = "...my_url..." } - definition_id = "f014dd9a-f7c7-4e9c-8620-9ea52c707cb0" - name = "Rosalie Hagenes" + definition_id = "a0625cbf-f5b3-41f2-b930-4d3ebf32902d" + name = "Hector Breitenberg Jr." secret_id = "...my_secret_id..." - workspace_id = "d21cf346-58e5-420f-854a-567309cc0ee4" + workspace_id = "be882924-ee80-4aa2-980d-84713ebef014" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_punk_api/import.sh b/examples/resources/airbyte_source_punk_api/import.sh new file mode 100644 index 000000000..384b1d6ca --- /dev/null +++ b/examples/resources/airbyte_source_punk_api/import.sh @@ -0,0 +1 @@ +terraform import airbyte_source_punk_api.my_airbyte_source_punk_api "" diff --git a/examples/resources/airbyte_source_punk_api/resource.tf b/examples/resources/airbyte_source_punk_api/resource.tf new file mode 100644 index 000000000..fb7288cb0 --- /dev/null +++ b/examples/resources/airbyte_source_punk_api/resource.tf @@ -0,0 +1,11 @@ +resource "airbyte_source_punk_api" "my_source_punkapi" { + configuration = { + brewed_after = "MM-YYYY" + brewed_before = "MM-YYYY" + id = 22 + } + definition_id = "d21cf346-58e5-420f-854a-567309cc0ee4" + name = "Randolph Murphy" + secret_id = "...my_secret_id..." + workspace_id = "aed57205-4daa-484a-8e28-fea10a8a64b7" +} \ No newline at end of file diff --git a/examples/resources/airbyte_source_pypi/resource.tf b/examples/resources/airbyte_source_pypi/resource.tf index b40d56e98..0d2c4f56b 100644 --- a/examples/resources/airbyte_source_pypi/resource.tf +++ b/examples/resources/airbyte_source_pypi/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_pypi" "my_source_pypi" { project_name = "sampleproject" version = "1.2.0" } - definition_id = "bba7faed-5720-454d-aa84-a4e28fea10a8" - name = "Elmer Grady" + definition_id = "7a4fe630-3928-48c9-9001-e515b2e74052" + name = "Sandy Homenick" secret_id = "...my_secret_id..." - workspace_id = "7a4fe630-3928-48c9-9001-e515b2e74052" + workspace_id = "ad65e8ae-1d21-47c0-bcbe-7d2d3433ea86" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_qualaroo/resource.tf b/examples/resources/airbyte_source_qualaroo/resource.tf index da0331126..3a27872a9 100644 --- a/examples/resources/airbyte_source_qualaroo/resource.tf +++ b/examples/resources/airbyte_source_qualaroo/resource.tf @@ -7,8 +7,8 @@ resource "airbyte_source_qualaroo" "my_source_qualaroo" { ] token = "...my_token..." } - definition_id = "2a67dad6-5e8a-4e1d-a17c-0fcbe7d2d343" - name = "Jana O'Hara" + definition_id = "2799cad5-c4b8-4334-a9d3-410e395a0aac" + name = "Beatrice Stamm" secret_id = "...my_secret_id..." - workspace_id = "2799cad5-c4b8-4334-a9d3-410e395a0aac" + workspace_id = "d0978821-4279-492f-a5a7-105f2e570ad3" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_railz/resource.tf b/examples/resources/airbyte_source_railz/resource.tf index 0bec136c6..accdc9719 100644 --- a/examples/resources/airbyte_source_railz/resource.tf +++ b/examples/resources/airbyte_source_railz/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_railz" "my_source_railz" { secret_key = "...my_secret_key..." start_date = "...my_start_date..." } - definition_id = "55dc9d09-7882-4142-b992-f65a7105f2e5" - name = "Deborah Nader" + definition_id = "72ede129-9d48-4414-90fd-6e7ec48816b0" + name = "Reginald Dibbert" secret_id = "...my_secret_id..." - workspace_id = "72ede129-9d48-4414-90fd-6e7ec48816b0" + workspace_id = "975147c3-e6c8-4bd1-8cca-d3b1c4065293" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_recharge/resource.tf b/examples/resources/airbyte_source_recharge/resource.tf index 4f44ef428..71955ca75 100644 --- a/examples/resources/airbyte_source_recharge/resource.tf +++ b/examples/resources/airbyte_source_recharge/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_recharge" "my_source_recharge" { start_date = "2021-05-14T00:00:00Z" use_orders_deprecated_api = false } - definition_id = "b8975147-c3e6-4c8b-91cc-cad3b1c40652" - name = "Earl Bins" + definition_id = "648ca783-b586-4523-84bd-b821f9c8efa4" + name = "Christie Schiller IV" secret_id = "...my_secret_id..." - workspace_id = "648ca783-b586-4523-84bd-b821f9c8efa4" + workspace_id = "c50e6f12-11e1-4fcb-a6b9-0cc0df941919" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_recreation/resource.tf b/examples/resources/airbyte_source_recreation/resource.tf index 25a976184..1b06c05c4 100644 --- a/examples/resources/airbyte_source_recreation/resource.tf +++ b/examples/resources/airbyte_source_recreation/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_recreation" "my_source_recreation" { apikey = "...my_apikey..." query_campsites = "...my_query_campsites..." } - definition_id = "0dc207c5-0e6f-4121-9e1f-cb26b90cc0df" - name = "Randall Carroll V" + definition_id = "892a209c-167a-4f7b-834c-463b838dc5f9" + name = "Vanessa Hammes" secret_id = "...my_secret_id..." - workspace_id = "892a209c-167a-4f7b-834c-463b838dc5f9" + workspace_id = "f73a4553-5fff-45d1-934f-0cce5486a3a1" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_recruitee/resource.tf b/examples/resources/airbyte_source_recruitee/resource.tf index 63fcec679..5d3bff288 100644 --- a/examples/resources/airbyte_source_recruitee/resource.tf +++ b/examples/resources/airbyte_source_recruitee/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_recruitee" "my_source_recruitee" { configuration = { api_key = "...my_api_key..." - company_id = 5 + company_id = 4 } - definition_id = "6535f73a-4553-45ff-b5d1-d34f0cce5486" - name = "Ms. Nathan O'Reilly PhD" + definition_id = "1dc53f64-148a-4cb8-b41d-5bf94a01397d" + name = "Muriel Wunsch" secret_id = "...my_secret_id..." - workspace_id = "c53f6414-8acb-48b4-9d5b-f94a01397d3d" + workspace_id = "0aff6604-97cb-4974-a7d8-001cbe4b7daa" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_recurly/resource.tf b/examples/resources/airbyte_source_recurly/resource.tf index 7e0d8a987..2a56e3ffb 100644 --- a/examples/resources/airbyte_source_recurly/resource.tf +++ b/examples/resources/airbyte_source_recurly/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_recurly" "my_source_recurly" { begin_time = "2021-12-01T00:00:00" end_time = "2021-12-01T00:00:00" } - definition_id = "fd90aff6-6049-47cb-974a-7d8001cbe4b7" - name = "Carlton Pfeffer" + definition_id = "2d7b0215-50aa-4da4-9f01-cf56ee294adb" + name = "Pedro Rodriguez" secret_id = "...my_secret_id..." - workspace_id = "7b021550-aada-44df-81cf-56ee294adbc5" + workspace_id = "40789cf0-b8d2-4c04-9244-36569fd64cd2" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_redshift/resource.tf b/examples/resources/airbyte_source_redshift/resource.tf index 14e3924e1..0c4099977 100644 --- a/examples/resources/airbyte_source_redshift/resource.tf +++ b/examples/resources/airbyte_source_redshift/resource.tf @@ -8,10 +8,10 @@ resource "airbyte_source_redshift" "my_source_redshift" { schemas = [ "...", ] - username = "Riley3" + username = "Ralph52" } - definition_id = "789cf0b8-d2c0-4412-8436-569fd64cd2bc" - name = "Jeffrey Lebsack" + definition_id = "a635d7a8-c386-4cec-8fae-93f7f0f8c4b4" + name = "Ivan Stanton" secret_id = "...my_secret_id..." - workspace_id = "35d7a8c3-86ce-4ccf-ae93-f7f0f8c4b4f8" + workspace_id = "6833e1f3-303a-4b04-9c89-1fe9c8dcb6cc" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_retently/resource.tf b/examples/resources/airbyte_source_retently/resource.tf index 9990d6815..891f12097 100644 --- a/examples/resources/airbyte_source_retently/resource.tf +++ b/examples/resources/airbyte_source_retently/resource.tf @@ -9,8 +9,8 @@ resource "airbyte_source_retently" "my_source_retently" { } } } - definition_id = "d4f6833e-1f33-403a-b045-c891fe9c8dcb" - name = "Miss Kendra Sauer" + definition_id = "1cd73d2c-f401-436d-9989-e7dbace4005a" + name = "Sheila Bahringer" secret_id = "...my_secret_id..." - workspace_id = "73d2cf40-136d-4598-9e7d-bace4005a630" + workspace_id = "76c58b5d-a21f-4739-86a7-1e992c2b8105" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_rki_covid/resource.tf b/examples/resources/airbyte_source_rki_covid/resource.tf index b94f9993a..2e7dc6bde 100644 --- a/examples/resources/airbyte_source_rki_covid/resource.tf +++ b/examples/resources/airbyte_source_rki_covid/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_rki_covid" "my_source_rkicovid" { configuration = { start_date = "...my_start_date..." } - definition_id = "7276c58b-5da2-41f7-b986-a71e992c2b81" - name = "Erin Hyatt" + definition_id = "6bc977a3-bf4d-4ff8-9d83-5d80427d23a4" + name = "Gerald Stoltenberg" secret_id = "...my_secret_id..." - workspace_id = "977a3bf4-dff8-4dd8-b5d8-0427d23a4e1d" + workspace_id = "723c8e5e-259f-4e4e-b649-3875b5a324c6" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_rss/resource.tf b/examples/resources/airbyte_source_rss/resource.tf index 2b50ebbcb..86d6c0523 100644 --- a/examples/resources/airbyte_source_rss/resource.tf +++ b/examples/resources/airbyte_source_rss/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_rss" "my_source_rss" { configuration = { url = "...my_url..." } - definition_id = "8c723c8e-5e25-49fe-8ef6-493875b5a324" - name = "Raul Blick" + definition_id = "128aabba-d073-4078-ac3e-822825101e3e" + name = "Joann Runolfsson" secret_id = "...my_secret_id..." - workspace_id = "aabbad07-3078-42c3-a822-825101e3e25c" + workspace_id = "948d0388-851e-4c06-bd3b-8cc64e95a7a3" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_s3/resource.tf b/examples/resources/airbyte_source_s3/resource.tf index 18639172c..ec678fb57 100644 --- a/examples/resources/airbyte_source_s3/resource.tf +++ b/examples/resources/airbyte_source_s3/resource.tf @@ -25,10 +25,10 @@ resource "airbyte_source_s3" "my_source_s3" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 0 + days_to_sync_if_history_is_full = 4 format = { avro_format = { - double_as_string = false + double_as_string = true } } globs = [ @@ -36,15 +36,15 @@ resource "airbyte_source_s3" "my_source_s3" { ] input_schema = "...my_input_schema..." legacy_prefix = "...my_legacy_prefix..." - name = "Alfredo Lowe DVM" + name = "Pam Goldner" primary_key = "...my_primary_key..." schemaless = false - validation_policy = "Emit Record" + validation_policy = "Wait for Discover" }, ] } - definition_id = "6fd3b8cc-64e9-45a7-a369-2db06d3b499d" - name = "Gerardo Stroman" + definition_id = "bdae34af-cb06-4318-8072-9444d2b8965c" + name = "Julius Rau" secret_id = "...my_secret_id..." - workspace_id = "34afcb06-3184-4072-9444-d2b8965caaba" + workspace_id = "ee9d6378-e724-43c0-a1bc-073abf4dfebd" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_salesforce/resource.tf b/examples/resources/airbyte_source_salesforce/resource.tf index b79c3e0b8..0bd94a561 100644 --- a/examples/resources/airbyte_source_salesforce/resource.tf +++ b/examples/resources/airbyte_source_salesforce/resource.tf @@ -5,17 +5,17 @@ resource "airbyte_source_salesforce" "my_source_salesforce" { force_use_bulk_api = true is_sandbox = false refresh_token = "...my_refresh_token..." - start_date = "2021-07-25T00:00:00Z" - stream_slice_step = "P30D" + start_date = "2021-07-25" + stream_slice_step = "P1M" streams_criteria = [ { - criteria = "ends with" + criteria = "exacts" value = "...my_value..." }, ] } - definition_id = "78e7243c-021b-4c07-babf-4dfebd414e5a" - name = "Barbara Franecki" + definition_id = "03e6b3fc-a03d-492c-b145-10264179a403" + name = "Jean Prosacco" secret_id = "...my_secret_id..." - workspace_id = "b3fca03d-92cb-4145-9026-4179a40301bb" + workspace_id = "7b13a43b-1ead-4703-a4ee-b23fe553942b" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_salesloft/resource.tf b/examples/resources/airbyte_source_salesloft/resource.tf index 8a046fac7..9540624fb 100644 --- a/examples/resources/airbyte_source_salesloft/resource.tf +++ b/examples/resources/airbyte_source_salesloft/resource.tf @@ -7,8 +7,8 @@ resource "airbyte_source_salesloft" "my_source_salesloft" { } start_date = "2020-11-16T00:00:00Z" } - definition_id = "b13a43b1-ead7-403a-8eeb-23fe553942b5" - name = "Jonathon Jerde PhD" + definition_id = "b6d0d209-32d7-4e88-9861-9ec39811786e" + name = "Darlene Vandervort" secret_id = "...my_secret_id..." - workspace_id = "20932d7e-88d8-4619-ac39-811786e44e52" + workspace_id = "72c20971-d544-4a65-a7d2-b4609d4ec646" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_sap_fieldglass/resource.tf b/examples/resources/airbyte_source_sap_fieldglass/resource.tf index 2c347b947..76318fe2b 100644 --- a/examples/resources/airbyte_source_sap_fieldglass/resource.tf +++ b/examples/resources/airbyte_source_sap_fieldglass/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_sap_fieldglass" "my_source_sapfieldglass" { configuration = { api_key = "...my_api_key..." } - definition_id = "72c20971-d544-4a65-a7d2-b4609d4ec646" - name = "Vicky Maggio" + definition_id = "7c968cce-9339-44d8-a35d-b32f900f8cfe" + name = "Ethel Kulas" secret_id = "...my_secret_id..." - workspace_id = "cce93394-d8a3-45db-b2f9-00f8cfe7378a" + workspace_id = "58770229-72e2-437e-83d2-ab4198d2efe5" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_secoda/resource.tf b/examples/resources/airbyte_source_secoda/resource.tf index 2217f6655..cefbc72e9 100644 --- a/examples/resources/airbyte_source_secoda/resource.tf +++ b/examples/resources/airbyte_source_secoda/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_secoda" "my_source_secoda" { configuration = { api_key = "...my_api_key..." } - definition_id = "58770229-72e2-437e-83d2-ab4198d2efe5" - name = "Allen Gutkowski" + definition_id = "e34c931e-7a72-4ef9-ae22-c4d080cde039" + name = "Marcos Hilll" secret_id = "...my_secret_id..." - workspace_id = "31e7a72e-f9ee-422c-8d08-0cde039dd5e8" + workspace_id = "c5778ddd-1091-40de-87df-e701edbd0d10" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_sendgrid/resource.tf b/examples/resources/airbyte_source_sendgrid/resource.tf index ae505cfa3..0054d05e5 100644 --- a/examples/resources/airbyte_source_sendgrid/resource.tf +++ b/examples/resources/airbyte_source_sendgrid/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_sendgrid" "my_source_sendgrid" { configuration = { api_key = "...my_api_key..." - start_date = "2021-12-06T09:47:32.658Z" + start_date = "2020-02-29T00:35:24.807Z" } - definition_id = "778ddd10-910d-4e87-9fe7-01edbd0d10cf" - name = "Stella Torphy" + definition_id = "57eb672b-8aa5-45d6-bfb2-a63da0917a61" + name = "Christine Weimann" secret_id = "...my_secret_id..." - workspace_id = "72b8aa55-d63f-4b2a-a3da-0917a6151fac" + workspace_id = "3e8ec69b-abb3-4389-b4cd-0d539af2319a" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_sendinblue/resource.tf b/examples/resources/airbyte_source_sendinblue/resource.tf index 06cc58a08..b6fd42107 100644 --- a/examples/resources/airbyte_source_sendinblue/resource.tf +++ b/examples/resources/airbyte_source_sendinblue/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_sendinblue" "my_source_sendinblue" { configuration = { api_key = "...my_api_key..." } - definition_id = "3e8ec69b-abb3-4389-b4cd-0d539af2319a" - name = "Darla Lockman" + definition_id = "6f8898d7-4d7c-4d06-b0b6-3c633751f6c5" + name = "Debbie Sanford PhD" secret_id = "...my_secret_id..." - workspace_id = "8d74d7cd-0670-4b63-8633-751f6c544c20" + workspace_id = "73f23dc4-6e62-4d66-a727-78d5db92d16e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_senseforce/resource.tf b/examples/resources/airbyte_source_senseforce/resource.tf index e6a91c631..a2a592af9 100644 --- a/examples/resources/airbyte_source_senseforce/resource.tf +++ b/examples/resources/airbyte_source_senseforce/resource.tf @@ -3,11 +3,11 @@ resource "airbyte_source_senseforce" "my_source_senseforce" { access_token = "...my_access_token..." backend_url = "https://galaxyapi.senseforce.io" dataset_id = "8f418098-ca28-4df5-9498-0df9fe78eda7" - slice_range = 360 + slice_range = 1 start_date = "2017-01-25" } - definition_id = "23dc46e6-2d66-4e72-b78d-5db92d16e1dc" - name = "Paul Hyatt" + definition_id = "06fc1f7a-171f-47c1-98bf-ddb09b9a903f" + name = "Brenda Toy" secret_id = "...my_secret_id..." - workspace_id = "1f7a171f-7c1d-48bf-9db0-9b9a903f60eb" + workspace_id = "a54b7cf5-33c5-45d6-8a56-e1f7b10c6dd1" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_sentry/resource.tf b/examples/resources/airbyte_source_sentry/resource.tf index 450ddbfae..065d7c9d9 100644 --- a/examples/resources/airbyte_source_sentry/resource.tf +++ b/examples/resources/airbyte_source_sentry/resource.tf @@ -4,12 +4,12 @@ resource "airbyte_source_sentry" "my_source_sentry" { discover_fields = [ "{ \"see\": \"documentation\" }", ] - hostname = "expert-potato.info" + hostname = "unimportant-glacier.biz" organization = "...my_organization..." project = "...my_project..." } - definition_id = "4b7cf533-c55d-468a-96e1-f7b10c6dd1e6" - name = "Eloise Robel" + definition_id = "eb5fcf36-5dcc-4aec-ace4-1cbe1d2ecd01" + name = "Angela Boehm" secret_id = "...my_secret_id..." - workspace_id = "cf365dcc-aec2-4ce4-9cbe-1d2ecd01501d" + workspace_id = "2f6c56d3-cf89-4e69-a1ce-0c7a6ecf0509" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_sftp/resource.tf b/examples/resources/airbyte_source_sftp/resource.tf index d0b6f1e56..a2b813165 100644 --- a/examples/resources/airbyte_source_sftp/resource.tf +++ b/examples/resources/airbyte_source_sftp/resource.tf @@ -8,12 +8,12 @@ resource "airbyte_source_sftp" "my_source_sftp" { file_pattern = "log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd`" file_types = "csv,json" folder_path = "/logs/2022" - host = "www.host.com" + host = "192.0.2.1" port = 22 user = "...my_user..." } - definition_id = "6c56d3cf-89e6-4921-8e0c-7a6ecf05091d" - name = "Jason Lebsack" + definition_id = "08d9d001-7533-4842-9733-72c40ec92913" + name = "Gladys Zemlak" secret_id = "...my_secret_id..." - workspace_id = "d0017533-8429-4733-b2c4-0ec9291353f9" + workspace_id = "49bcc34d-389b-4bf5-924f-5b1164e1dc4a" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_sftp_bulk/resource.tf b/examples/resources/airbyte_source_sftp_bulk/resource.tf index 91326df9f..4e39dfe23 100644 --- a/examples/resources/airbyte_source_sftp_bulk/resource.tf +++ b/examples/resources/airbyte_source_sftp_bulk/resource.tf @@ -11,10 +11,10 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { start_date = "2021-01-01T00:00:00.000000Z" streams = [ { - days_to_sync_if_history_is_full = 8 + days_to_sync_if_history_is_full = 2 format = { avro_format = { - double_as_string = true + double_as_string = false } } globs = [ @@ -22,16 +22,16 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" { ] input_schema = "...my_input_schema..." legacy_prefix = "...my_legacy_prefix..." - name = "Jamie Swaniawski" + name = "Rene Kunze Jr." primary_key = "...my_primary_key..." schemaless = false - validation_policy = "Wait for Discover" + validation_policy = "Emit Record" }, ] - username = "Milford_Weissnat" + username = "Rose_Abshire56" } - definition_id = "24f5b116-4e1d-4c4a-81d4-4fb97610a4d0" - name = "Dr. Caleb Mann" + definition_id = "1eaa4a70-c9cb-4870-ab98-050c39e74506" + name = "Marlene Reichel" secret_id = "...my_secret_id..." - workspace_id = "a4a70c9c-b870-4eb9-8050-c39e7450657b" + workspace_id = "1cb4db2a-ae6c-420a-89c1-9db3e1c883c5" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_shopify/resource.tf b/examples/resources/airbyte_source_shopify/resource.tf index 6d059f65b..491d991cf 100644 --- a/examples/resources/airbyte_source_shopify/resource.tf +++ b/examples/resources/airbyte_source_shopify/resource.tf @@ -1,18 +1,17 @@ resource "airbyte_source_shopify" "my_source_shopify" { configuration = { - bulk_window_in_days = 10 + bulk_window_in_days = 3 credentials = { api_password = { api_password = "...my_api_password..." } } fetch_transactions_user_id = false - job_termination_threshold = 0 shop = "my-store.myshopify.com" - start_date = "2022-06-27" + start_date = "2020-04-28" } - definition_id = "db2aae6c-20ac-49c1-9db3-e1c883c55acc" - name = "Glen Schinner" + definition_id = "5c37529a-15c3-4606-aa63-f5716d2b265f" + name = "Marguerite Will" secret_id = "...my_secret_id..." - workspace_id = "529a15c3-6062-4a63-b571-6d2b265f2af5" + workspace_id = "fce7bdd5-81ac-4648-b876-fcad615bcace" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_shortio/resource.tf b/examples/resources/airbyte_source_shortio/resource.tf index 48f05e099..6922a6f18 100644 --- a/examples/resources/airbyte_source_shortio/resource.tf +++ b/examples/resources/airbyte_source_shortio/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_shortio" "my_source_shortio" { secret_key = "...my_secret_key..." start_date = "2023-07-30T03:43:59.244Z" } - definition_id = "6fce7bdd-581a-4c64-8787-6fcad615bcac" - name = "Shane Lebsack" + definition_id = "687b3371-0669-486a-bb02-fd25c7727b36" + name = "Yvonne Glover" secret_id = "...my_secret_id..." - workspace_id = "33710669-86a7-4b02-bd25-c7727b363542" + workspace_id = "1d3e7f0b-c649-4fe5-b08c-82dc40ca1ab7" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_slack/resource.tf b/examples/resources/airbyte_source_slack/resource.tf index 07a35842c..0d8a41458 100644 --- a/examples/resources/airbyte_source_slack/resource.tf +++ b/examples/resources/airbyte_source_slack/resource.tf @@ -8,13 +8,13 @@ resource "airbyte_source_slack" "my_source_slack" { api_token = "...my_api_token..." } } - include_private_channels = true + include_private_channels = false join_channels = true - lookback_window = 14 + lookback_window = 7 start_date = "2017-01-25T00:00:00Z" } - definition_id = "f0bc649f-e5b0-48c8-adc4-0ca1ab766397" - name = "Miss Beth Wunsch" + definition_id = "6f1b8331-df02-45a1-9458-6c7cdfb558f8" + name = "Kay Bauch" secret_id = "...my_secret_id..." - workspace_id = "331df025-a154-4586-87cd-fb558f87809d" + workspace_id = "3d1fcf2b-6755-4110-90ec-6c18f2017e88" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_smaily/resource.tf b/examples/resources/airbyte_source_smaily/resource.tf index 07226bce3..5aeb28f39 100644 --- a/examples/resources/airbyte_source_smaily/resource.tf +++ b/examples/resources/airbyte_source_smaily/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_smaily" "my_source_smaily" { api_subdomain = "...my_api_subdomain..." api_username = "...my_api_username..." } - definition_id = "3d1fcf2b-6755-4110-90ec-6c18f2017e88" - name = "Neil Pagac" + definition_id = "b7a8364f-95e8-44ef-b6a9-353261882dc6" + name = "Hubert Dickens" secret_id = "...my_secret_id..." - workspace_id = "64f95e84-efb6-4a93-9326-1882dc6ea377" + workspace_id = "e2f3a674-4848-4ac2-b04b-eae9e1753040" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_smartengage/resource.tf b/examples/resources/airbyte_source_smartengage/resource.tf index 67877c9bc..313dcb670 100644 --- a/examples/resources/airbyte_source_smartengage/resource.tf +++ b/examples/resources/airbyte_source_smartengage/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_smartengage" "my_source_smartengage" { configuration = { api_key = "...my_api_key..." } - definition_id = "e2f3a674-4848-4ac2-b04b-eae9e1753040" - name = "Lorraine Zieme" + definition_id = "65f64672-3901-4f87-89df-1af8f5013d5d" + name = "Robyn Weimann I" secret_id = "...my_secret_id..." - workspace_id = "6723901f-87c9-4df1-af8f-5013d5d0cf40" + workspace_id = "b2856e98-a695-40f0-807e-33047d95358a" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_smartsheets/resource.tf b/examples/resources/airbyte_source_smartsheets/resource.tf index 2f9cd65c9..efca0d9fa 100644 --- a/examples/resources/airbyte_source_smartsheets/resource.tf +++ b/examples/resources/airbyte_source_smartsheets/resource.tf @@ -6,13 +6,13 @@ resource "airbyte_source_smartsheets" "my_source_smartsheets" { } } metadata_fields = [ - "sheetname", + "sheetversion", ] spreadsheet_id = "...my_spreadsheet_id..." - start_datetime = "2000-01-01T13:00:00-07:00" + start_datetime = "2000-01-01T13:00:00" } - definition_id = "56e98a69-50f0-4007-a330-47d95358a568" - name = "Margarita Sipes" + definition_id = "9d2abec2-1d7e-43d2-8dfd-3d512342f997" + name = "Jose Hilpert" secret_id = "...my_secret_id..." - workspace_id = "bec21d7e-3d24-4dfd-bd51-2342f997d059" + workspace_id = "38a2e5fc-f99c-4418-b6fa-0cbc1b99ee1e" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_snapchat_marketing/resource.tf b/examples/resources/airbyte_source_snapchat_marketing/resource.tf index 17a7f25d5..5d5b3d6d3 100644 --- a/examples/resources/airbyte_source_snapchat_marketing/resource.tf +++ b/examples/resources/airbyte_source_snapchat_marketing/resource.tf @@ -6,11 +6,11 @@ resource "airbyte_source_snapchat_marketing" "my_source_snapchatmarketing" { end_date = "2022-01-30" refresh_token = "...my_refresh_token..." start_date = "2022-01-01" - swipe_up_attribution_window = "28_DAY" - view_attribution_window = "3_HOUR" + swipe_up_attribution_window = "7_DAY" + view_attribution_window = "1_HOUR" } - definition_id = "fcf99c41-876f-4a0c-bc1b-99ee1e960566" - name = "Dr. Beatrice Reilly" + definition_id = "5b0d51b3-114e-49ed-9754-1c3612b0e8c8" + name = "Miss Emilio Botsford PhD" secret_id = "...my_secret_id..." - workspace_id = "1b3114e9-ed57-4541-8361-2b0e8c8cf11a" + workspace_id = "259943df-a52a-49e4-b5ab-ffba2c1e7b69" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_snowflake/resource.tf b/examples/resources/airbyte_source_snowflake/resource.tf index 43e489b9d..b06d73b64 100644 --- a/examples/resources/airbyte_source_snowflake/resource.tf +++ b/examples/resources/airbyte_source_snowflake/resource.tf @@ -1,10 +1,11 @@ resource "airbyte_source_snowflake" "my_source_snowflake" { configuration = { credentials = { - key_pair_authentication = { - private_key = "...my_private_key..." - private_key_password = "...my_private_key_password..." - username = "AIRBYTE_USER" + o_auth20 = { + access_token = "...my_access_token..." + client_id = "...my_client_id..." + client_secret = "...my_client_secret..." + refresh_token = "...my_refresh_token..." } } database = "AIRBYTE_DATABASE" @@ -14,8 +15,8 @@ resource "airbyte_source_snowflake" "my_source_snowflake" { schema = "AIRBYTE_SCHEMA" warehouse = "AIRBYTE_WAREHOUSE" } - definition_id = "9943dfa5-2a9e-4475-abff-ba2c1e7b6908" - name = "Sherman Stokes" + definition_id = "08ecd761-f19b-460a-a080-4c971e60235d" + name = "Frank Marquardt" secret_id = "...my_secret_id..." - workspace_id = "1f19b60a-a080-44c9-b1e6-0235dc09fada" + workspace_id = "dad73b79-d20b-448a-8fdc-6fb504a12b77" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_sonar_cloud/resource.tf b/examples/resources/airbyte_source_sonar_cloud/resource.tf index 312499a9b..b3c2de577 100644 --- a/examples/resources/airbyte_source_sonar_cloud/resource.tf +++ b/examples/resources/airbyte_source_sonar_cloud/resource.tf @@ -8,8 +8,8 @@ resource "airbyte_source_sonar_cloud" "my_source_sonarcloud" { start_date = "YYYY-MM-DD" user_token = "...my_user_token..." } - definition_id = "79d20b48-acfd-4c6f-b504-a12b7723cbf0" - name = "Andrea Friesen" + definition_id = "f0223ae8-22e5-4327-98cb-c0547dc93d7d" + name = "Katie Deckow" secret_id = "...my_secret_id..." - workspace_id = "822e5327-d8cb-4c05-87dc-93d7d7628c47" + workspace_id = "47813582-a6f5-437d-9dfc-7f458565e715" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_spacex_api/resource.tf b/examples/resources/airbyte_source_spacex_api/resource.tf index 44606e23b..0f1723f1c 100644 --- a/examples/resources/airbyte_source_spacex_api/resource.tf +++ b/examples/resources/airbyte_source_spacex_api/resource.tf @@ -1,10 +1,10 @@ resource "airbyte_source_spacex_api" "my_source_spacexapi" { configuration = { - id = "813582a6-f537-4d9d-bc7f-458565e7155c" + id = "5c9f06b5-482c-49eb-b700-3d0337f10a64" options = "...my_options..." } - definition_id = "9f06b548-2c9e-4b77-803d-0337f10a6436" - name = "Conrad Glover" + definition_id = "369e4ee3-2ccb-44d5-ada6-128f2436a122" + name = "Travis McCullough" secret_id = "...my_secret_id..." - workspace_id = "32ccb4d5-2da6-4128-b243-6a122e3949c8" + workspace_id = "c8198a6b-f6f1-4cbd-b35a-96cd0e48f1e4" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_square/resource.tf b/examples/resources/airbyte_source_square/resource.tf index 60a98de0b..cfc014e6c 100644 --- a/examples/resources/airbyte_source_square/resource.tf +++ b/examples/resources/airbyte_source_square/resource.tf @@ -5,12 +5,12 @@ resource "airbyte_source_square" "my_source_square" { api_key = "...my_api_key..." } } - include_deleted_objects = false - is_sandbox = false - start_date = "2021-09-28" + include_deleted_objects = true + is_sandbox = true + start_date = "2022-09-30" } - definition_id = "6bf6f1cb-db35-4a96-8d0e-48f1e4b30469" - name = "Angel Sawayn DDS" + definition_id = "69b6ca0b-303c-4f01-bcd9-78363f1be7e9" + name = "Tom O'Keefe" secret_id = "...my_secret_id..." - workspace_id = "303cf017-cd97-4836-bf1b-e7e9b4aabfc5" + workspace_id = "fc5ff714-6c36-4bb7-b37b-f0beca93a8ae" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_strava/resource.tf b/examples/resources/airbyte_source_strava/resource.tf index eae9b94fc..03c3fe867 100644 --- a/examples/resources/airbyte_source_strava/resource.tf +++ b/examples/resources/airbyte_source_strava/resource.tf @@ -6,8 +6,8 @@ resource "airbyte_source_strava" "my_source_strava" { refresh_token = "fc6243f283e51f6ca989aab298b17da125496f50" start_date = "2021-03-01T00:00:00Z" } - definition_id = "146c36bb-7337-4bf0-beca-93a8ae78e1e5" - name = "Jackie Schuster" + definition_id = "1e537d96-eb6d-45dc-9e25-0f80fbc595c3" + name = "Jackie Krajcik" secret_id = "...my_secret_id..." - workspace_id = "eb6d5dc1-e250-4f80-bbc5-95c3777bccfe" + workspace_id = "cfe70cf1-47e2-493c-ba4b-2d7bbc290ef0" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_stripe/resource.tf b/examples/resources/airbyte_source_stripe/resource.tf index 48ed2fdda..d953bc922 100644 --- a/examples/resources/airbyte_source_stripe/resource.tf +++ b/examples/resources/airbyte_source_stripe/resource.tf @@ -3,13 +3,13 @@ resource "airbyte_source_stripe" "my_source_stripe" { account_id = "...my_account_id..." call_rate_limit = 25 client_secret = "...my_client_secret..." - lookback_window_days = 8 - num_workers = 3 - slice_range = 3 + lookback_window_days = 9 + num_workers = 1 + slice_range = 10 start_date = "2017-01-25T00:00:00Z" } - definition_id = "93c7a4b2-d7bb-4c29-8ef0-0ad5372256fe" - name = "Cynthia O'Reilly" + definition_id = "6fe50a2e-7cfe-46f3-8acc-65c56f5fa677" + name = "Sheldon Gerlach" secret_id = "...my_secret_id..." - workspace_id = "7cfe6f34-acc6-45c5-af5f-a6778e44b91c" + workspace_id = "91c615d1-2804-40ba-83eb-3c0afcc3c8fa" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_survey_sparrow/resource.tf b/examples/resources/airbyte_source_survey_sparrow/resource.tf index 7d38ab8a6..896f45031 100644 --- a/examples/resources/airbyte_source_survey_sparrow/resource.tf +++ b/examples/resources/airbyte_source_survey_sparrow/resource.tf @@ -8,8 +8,8 @@ resource "airbyte_source_survey_sparrow" "my_source_surveysparrow" { "{ \"see\": \"documentation\" }", ] } - definition_id = "84461977-a1b2-471a-9b00-9f29606a36da" - name = "Alejandro Muller" + definition_id = "6dac9959-2aae-4b21-989b-3db558d4aa17" + name = "Margaret Wiza" secret_id = "...my_secret_id..." - workspace_id = "2aaeb21d-89b3-4db5-98d4-aa1770fe21a7" + workspace_id = "1a7b03b3-15af-419b-84a1-418c27e2e49f" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_surveymonkey/resource.tf b/examples/resources/airbyte_source_surveymonkey/resource.tf index 4739a6335..45d51dd7f 100644 --- a/examples/resources/airbyte_source_surveymonkey/resource.tf +++ b/examples/resources/airbyte_source_surveymonkey/resource.tf @@ -11,8 +11,8 @@ resource "airbyte_source_surveymonkey" "my_source_surveymonkey" { "...", ] } - definition_id = "d128040b-a03e-4b3c-8afc-c3c8fa6eafbb" - name = "Alberto Tillman" + definition_id = "fbbc8e3e-7db5-4a3e-846f-c1e0fa91f7ef" + name = "Winifred Graham" secret_id = "...my_secret_id..." - workspace_id = "7db5a3e4-46fc-41e0-ba91-f7ef5f462d7c" + workspace_id = "d7c84461-977a-41b2-b1a5-b009f29606a3" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_tempo/resource.tf b/examples/resources/airbyte_source_tempo/resource.tf index d86881f6e..bdd88108c 100644 --- a/examples/resources/airbyte_source_tempo/resource.tf +++ b/examples/resources/airbyte_source_tempo/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_tempo" "my_source_tempo" { configuration = { api_token = "...my_api_token..." } - definition_id = "b03b315a-f19b-4c4a-9418-c27e2e49fbe8" - name = "Stella Hammes" + definition_id = "be84753d-48e3-40cc-8b1d-39ddfc649b7a" + name = "Cassandra O'Reilly" secret_id = "...my_secret_id..." - workspace_id = "48e30ccc-b1d3-49dd-bc64-9b7a58a56364" + workspace_id = "3641fd33-8f32-4285-acd8-8e7e494b9e58" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_the_guardian_api/resource.tf b/examples/resources/airbyte_source_the_guardian_api/resource.tf index e54b1ec7c..181d73eb6 100644 --- a/examples/resources/airbyte_source_the_guardian_api/resource.tf +++ b/examples/resources/airbyte_source_the_guardian_api/resource.tf @@ -3,12 +3,12 @@ resource "airbyte_source_the_guardian_api" "my_source_theguardianapi" { api_key = "...my_api_key..." end_date = "YYYY-MM-DD" query = "environment AND NOT water" - section = "housing-network" + section = "media" start_date = "YYYY-MM-DD" tag = "environment/energyefficiency" } - definition_id = "338f3228-56cd-488e-be49-4b9e5830e9ef" - name = "Mr. Timmy Gutkowski" + definition_id = "9efbf412-cdca-4e9f-85c7-017380526f88" + name = "Laurie Schiller" secret_id = "...my_secret_id..." - workspace_id = "dcae9f85-c701-4738-8526-f8856cdf3fde" + workspace_id = "3fdefbe1-9992-414f-bffa-48acadc06400" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_tiktok_marketing/resource.tf b/examples/resources/airbyte_source_tiktok_marketing/resource.tf index f0e25386b..8045d89f7 100644 --- a/examples/resources/airbyte_source_tiktok_marketing/resource.tf +++ b/examples/resources/airbyte_source_tiktok_marketing/resource.tf @@ -1,6 +1,6 @@ resource "airbyte_source_tiktok_marketing" "my_source_tiktokmarketing" { configuration = { - attribution_window = 10 + attribution_window = 8 credentials = { o_auth20 = { access_token = "...my_access_token..." @@ -9,12 +9,12 @@ resource "airbyte_source_tiktok_marketing" "my_source_tiktokmarketing" { secret = "...my_secret..." } } - end_date = "2021-02-26" + end_date = "2022-04-17" include_deleted = true - start_date = "2021-10-12" + start_date = "2021-05-10" } - definition_id = "9214f3ff-a48a-4cad-8064-00b7b58d13a2" - name = "Spencer Witting" + definition_id = "13a2ccf2-b1ad-4e2f-8984-bfb0e1b3d2b8" + name = "Jean Dare" secret_id = "...my_secret_id..." - workspace_id = "1ade2f49-84bf-4b0e-9b3d-2b89b26a8838" + workspace_id = "8838cf8d-227f-4318-9424-0654f4782740" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_trello/resource.tf b/examples/resources/airbyte_source_trello/resource.tf index e99461b5e..52829eb3c 100644 --- a/examples/resources/airbyte_source_trello/resource.tf +++ b/examples/resources/airbyte_source_trello/resource.tf @@ -7,8 +7,8 @@ resource "airbyte_source_trello" "my_source_trello" { start_date = "2021-03-01T00:00:00Z" token = "...my_token..." } - definition_id = "8d227f31-8d42-4406-94f4-782740a2b5a4" - name = "Beverly Grimes" + definition_id = "b5a46242-8ebc-45c7-bead-f0c9ce16ebe8" + name = "Josefina Pacocha" secret_id = "...my_secret_id..." - workspace_id = "ebc5c77e-adf0-4c9c-a16e-be85fa64aee8" + workspace_id = "aee8d2bd-e48e-4efc-ab9e-0d54b0894bdd" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_trustpilot/resource.tf b/examples/resources/airbyte_source_trustpilot/resource.tf index dedae3ad7..b375fb523 100644 --- a/examples/resources/airbyte_source_trustpilot/resource.tf +++ b/examples/resources/airbyte_source_trustpilot/resource.tf @@ -10,8 +10,8 @@ resource "airbyte_source_trustpilot" "my_source_trustpilot" { } start_date = "%Y-%m-%dT%H:%M:%S" } - definition_id = "d2bde48e-efce-4b9e-8d54-b0894bdd98fe" - name = "Lucia McClure" + definition_id = "98fe3f92-c06a-49aa-b270-2875abb88c39" + name = "Marcos Kuhic" secret_id = "...my_secret_id..." - workspace_id = "06a9aa72-7028-475a-bb88-c398d7966608" + workspace_id = "66080f3e-cae3-4cb4-91ea-7992cd63d338" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_tvmaze_schedule/resource.tf b/examples/resources/airbyte_source_tvmaze_schedule/resource.tf index 8cbb36a7a..9f8bc3aed 100644 --- a/examples/resources/airbyte_source_tvmaze_schedule/resource.tf +++ b/examples/resources/airbyte_source_tvmaze_schedule/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_tvmaze_schedule" "my_source_tvmazeschedule" { start_date = "...my_start_date..." web_schedule_country_code = "global" } - definition_id = "3ecae3cb-491e-4a79-92cd-63d3381efe3f" - name = "Mercedes Heathcote" + definition_id = "fe3f7d5a-433d-430c-a4aa-9f684d9ab345" + name = "Ms. Moses Dibbert" secret_id = "...my_secret_id..." - workspace_id = "33d30ca4-aa9f-4684-99ab-345ef3183cb2" + workspace_id = "cb2e52a8-6adb-4b57-85cb-e7ccff9d0724" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_twilio/resource.tf b/examples/resources/airbyte_source_twilio/resource.tf index 27880f03b..c2f55370e 100644 --- a/examples/resources/airbyte_source_twilio/resource.tf +++ b/examples/resources/airbyte_source_twilio/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_twilio" "my_source_twilio" { lookback_window = 60 start_date = "2020-10-01T00:00:00Z" } - definition_id = "a86adbb5-7c5c-4be7-8cff-9d0724747a4b" - name = "Marian Torphy" + definition_id = "a4b37eb2-05dd-4b7f-9b71-195e07e10364" + name = "Angie Jenkins" secret_id = "...my_secret_id..." - workspace_id = "05ddb7f1-b711-495e-87e1-03643a6dfd2a" + workspace_id = "d2a60225-b2ac-462e-b10f-1a0d51fb8be0" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_twilio_taskrouter/resource.tf b/examples/resources/airbyte_source_twilio_taskrouter/resource.tf index 50ffdb590..7567a159f 100644 --- a/examples/resources/airbyte_source_twilio_taskrouter/resource.tf +++ b/examples/resources/airbyte_source_twilio_taskrouter/resource.tf @@ -3,8 +3,8 @@ resource "airbyte_source_twilio_taskrouter" "my_source_twiliotaskrouter" { account_sid = "...my_account_sid..." auth_token = "...my_auth_token..." } - definition_id = "60225b2a-c62e-4b10-b1a0-d51fb8be0416" - name = "Rudolph Gerhold" + definition_id = "416cb49d-a06c-4239-a7af-3ca2cc2a5392" + name = "Julio Gutmann" secret_id = "...my_secret_id..." - workspace_id = "a06c239e-7af3-4ca2-8c2a-5392d7458890" + workspace_id = "89040904-7267-4ce8-aa32-2e02b7e6dd49" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_twitter/resource.tf b/examples/resources/airbyte_source_twitter/resource.tf index 195da80ab..6f94c6735 100644 --- a/examples/resources/airbyte_source_twitter/resource.tf +++ b/examples/resources/airbyte_source_twitter/resource.tf @@ -1,12 +1,12 @@ resource "airbyte_source_twitter" "my_source_twitter" { configuration = { api_key = "...my_api_key..." - end_date = "2022-12-29T05:52:40.964Z" + end_date = "2020-01-18T12:46:16.717Z" query = "...my_query..." - start_date = "2022-12-24T13:40:20.697Z" + start_date = "2022-03-25T00:43:50.915Z" } - definition_id = "47267ce8-6a32-42e0-ab7e-6dd49df5c359" - name = "Blanche Hartmann" + definition_id = "3592a5dd-7ddb-4d79-bd2e-b894fd682a67" + name = "Whitney Casper" secret_id = "...my_secret_id..." - workspace_id = "7ddbd797-d2eb-4894-bd68-2a677b1b8dbb" + workspace_id = "dbbaeb9b-5c2e-42ee-8b85-f41cf2efd5ed" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_typeform/resource.tf b/examples/resources/airbyte_source_typeform/resource.tf index 90dd3243a..63c1a3c00 100644 --- a/examples/resources/airbyte_source_typeform/resource.tf +++ b/examples/resources/airbyte_source_typeform/resource.tf @@ -6,7 +6,7 @@ resource "airbyte_source_typeform" "my_source_typeform" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." refresh_token = "...my_refresh_token..." - token_expiry_date = "2021-02-27T17:24:02.669Z" + token_expiry_date = "2022-12-23T20:48:01.588Z" } } form_ids = [ @@ -14,8 +14,8 @@ resource "airbyte_source_typeform" "my_source_typeform" { ] start_date = "2021-03-01T00:00:00Z" } - definition_id = "b5c2e2ee-8b85-4f41-8f2e-fd5ed605e9e4" - name = "Darin Spinka" + definition_id = "9e4deda3-0dd3-4cfb-8aa2-fad058413083" + name = "Krystal Dietrich" secret_id = "...my_secret_id..." - workspace_id = "0dd3cfb0-aa2f-4ad0-9841-30837d3e5de4" + workspace_id = "de43c907-f63c-4c02-bc2f-7f5dfb2c26b4" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_us_census/resource.tf b/examples/resources/airbyte_source_us_census/resource.tf index 9f6328c7f..84b1bea1f 100644 --- a/examples/resources/airbyte_source_us_census/resource.tf +++ b/examples/resources/airbyte_source_us_census/resource.tf @@ -1,11 +1,11 @@ resource "airbyte_source_us_census" "my_source_uscensus" { configuration = { api_key = "...my_api_key..." - query_params = "get=NAME,NAICS2017_LABEL,LFO_LABEL,EMPSZES_LABEL,ESTAB,PAYANN,PAYQTR1,EMP&for=us:*&NAICS2017=72&LFO=001&EMPSZES=001" - query_path = "data/timeseries/healthins/sahie" + query_params = "get=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:*" + query_path = "data/2018/acs" } - definition_id = "907f63cc-02bc-42f7-b5df-b2c26b498691" - name = "Christie Emard" + definition_id = "6915d332-4b48-419f-b393-429d3165dd85" + name = "Vernon Tillman" secret_id = "...my_secret_id..." - workspace_id = "4b4819ff-3934-429d-b165-dd8595e9c61e" + workspace_id = "61e20db5-f4bb-411c-a0c3-a7ba336248be" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_vantage/resource.tf b/examples/resources/airbyte_source_vantage/resource.tf index bc55ddd02..a5f13d359 100644 --- a/examples/resources/airbyte_source_vantage/resource.tf +++ b/examples/resources/airbyte_source_vantage/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_vantage" "my_source_vantage" { configuration = { access_token = "...my_access_token..." } - definition_id = "20db5f4b-b11c-460c-ba7b-a336248be45d" - name = "Shaun Schultz" + definition_id = "45dfad93-24f6-4ab9-b833-4526eae71eb7" + name = "Sheryl Stroman" secret_id = "...my_secret_id..." - workspace_id = "24f6ab9f-8334-4526-aae7-1eb759d7dd0b" + workspace_id = "d0bf2f57-2195-478f-bbe9-226a954fff93" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_webflow/resource.tf b/examples/resources/airbyte_source_webflow/resource.tf index d0c78da90..05a1a9bdb 100644 --- a/examples/resources/airbyte_source_webflow/resource.tf +++ b/examples/resources/airbyte_source_webflow/resource.tf @@ -4,8 +4,8 @@ resource "airbyte_source_webflow" "my_source_webflow" { api_key = "a very long hex sequence" site_id = "a relatively long hex sequence" } - definition_id = "f2f57219-578f-4bbe-9226-a954fff93d12" - name = "Bryan McKenzie" + definition_id = "d12e392c-e90b-4916-9fb3-0db2efb21ef2" + name = "Israel Gleason" secret_id = "...my_secret_id..." - workspace_id = "e90b9169-fb30-4db2-afb2-1ef2bc48bf07" + workspace_id = "f07f2e77-2136-4664-afa9-b2db7532b28c" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_whisky_hunter/resource.tf b/examples/resources/airbyte_source_whisky_hunter/resource.tf index 1f95783f3..bcd001fef 100644 --- a/examples/resources/airbyte_source_whisky_hunter/resource.tf +++ b/examples/resources/airbyte_source_whisky_hunter/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_source_whisky_hunter" "my_source_whiskyhunter" { configuration = {} - definition_id = "f2e77213-6664-46fa-9b2d-b7532b28cb78" - name = "Olivia Lesch" + definition_id = "b785b8d4-ad9b-4b4c-ad04-c6ceb0e44096" + name = "Jenny Strosin" secret_id = "...my_secret_id..." - workspace_id = "ad9bb4c2-d04c-46ce-b0e4-409659dbf6ec" + workspace_id = "6ecaf35c-15b3-4779-97e3-dccb9fd6e1ad" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf b/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf index 431fc0d61..a169b4439 100644 --- a/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf +++ b/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf @@ -1,15 +1,15 @@ resource "airbyte_source_wikipedia_pageviews" "my_source_wikipediapageviews" { configuration = { - access = "mobile-app" - agent = "automated" + access = "desktop" + agent = "user" article = "Are_You_the_One%3F" country = "FR" end = "...my_end..." project = "commons.wikimedia.org" start = "...my_start..." } - definition_id = "15b3779d-7e3d-4ccb-9fd6-e1ad7470b832" - name = "Delia Zulauf MD" + definition_id = "8320ef50-a8ca-476b-883e-a280df1804a6" + name = "Hannah Moore" secret_id = "...my_secret_id..." - workspace_id = "8ca76b08-3ea2-480d-b180-4a67b9f3e581" + workspace_id = "e5814951-2957-4c29-8696-756fe0588102" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_woocommerce/resource.tf b/examples/resources/airbyte_source_woocommerce/resource.tf index a21569a27..18f637e79 100644 --- a/examples/resources/airbyte_source_woocommerce/resource.tf +++ b/examples/resources/airbyte_source_woocommerce/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_woocommerce" "my_source_woocommerce" { shop = "...my_shop..." start_date = "2021-01-01" } - definition_id = "512957c2-9869-4675-afe0-5881022b8ad4" - name = "Ms. Marcella Schiller" + definition_id = "8ad45dc0-7887-4545-a3f3-6dab5122890f" + name = "Cecelia McClure" secret_id = "...my_secret_id..." - workspace_id = "8754523f-36da-4b51-a289-0f3e992c2a3f" + workspace_id = "c2a3f4c8-fc02-46c7-8c4e-afdab4c1bcaf" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_xkcd/resource.tf b/examples/resources/airbyte_source_xkcd/resource.tf index e7c586c61..efb69375a 100644 --- a/examples/resources/airbyte_source_xkcd/resource.tf +++ b/examples/resources/airbyte_source_xkcd/resource.tf @@ -1,7 +1,7 @@ resource "airbyte_source_xkcd" "my_source_xkcd" { configuration = {} - definition_id = "4c8fc026-c7cc-44ea-bdab-4c1bcaf66c12" - name = "Rafael Mante" + definition_id = "66c12869-f984-4d61-b828-542bb37a458f" + name = "Ms. Lowell Stiedemann" secret_id = "...my_secret_id..." - workspace_id = "84d61382-8542-4bb3-ba45-8facd1771a16" + workspace_id = "1a16fff1-f04a-4eeb-8306-c4f3397c2047" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_yandex_metrica/resource.tf b/examples/resources/airbyte_source_yandex_metrica/resource.tf index 3792f7de7..b9781e76c 100644 --- a/examples/resources/airbyte_source_yandex_metrica/resource.tf +++ b/examples/resources/airbyte_source_yandex_metrica/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_yandex_metrica" "my_source_yandexmetrica" { end_date = "2022-01-01" start_date = "2022-01-01" } - definition_id = "f04aeebc-306c-44f3-b97c-20475faadeba" - name = "Terry Bergnaum" + definition_id = "deba481e-413d-4d76-8cc3-ae1d775ee978" + name = "Dr. Lawrence Howe" secret_id = "...my_secret_id..." - workspace_id = "13dd760c-c3ae-41d7-b5ee-978f160f4574" + workspace_id = "5746ac11-eb02-4437-a4c2-fa90b3fc58ae" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_yotpo/resource.tf b/examples/resources/airbyte_source_yotpo/resource.tf index 87823e7f6..c229f8152 100644 --- a/examples/resources/airbyte_source_yotpo/resource.tf +++ b/examples/resources/airbyte_source_yotpo/resource.tf @@ -2,11 +2,11 @@ resource "airbyte_source_yotpo" "my_source_yotpo" { configuration = { access_token = "...my_access_token..." app_key = "...my_app_key..." - email = "Louvenia9@yahoo.com" + email = "Leta.Jakubowski@hotmail.com" start_date = "2022-03-01T00:00:00.000Z" } - definition_id = "0243724c-2fa9-40b3-bc58-aed9663e07de" - name = "Chester Armstrong" + definition_id = "7de96097-25c6-4d5a-9da3-5039f4e4098b" + name = "Morris Schimmel" secret_id = "...my_secret_id..." - workspace_id = "25c6d5a5-da35-4039-b4e4-098bb8c2a23b" + workspace_id = "23b3c013-4621-4866-8f51-8dbd5ebee014" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_youtube_analytics/resource.tf b/examples/resources/airbyte_source_youtube_analytics/resource.tf index 9da0f9c5b..99a9589f8 100644 --- a/examples/resources/airbyte_source_youtube_analytics/resource.tf +++ b/examples/resources/airbyte_source_youtube_analytics/resource.tf @@ -7,8 +7,8 @@ resource "airbyte_source_youtube_analytics" "my_source_youtubeanalytics" { refresh_token = "...my_refresh_token..." } } - definition_id = "3c013462-1866-4cf5-98db-d5ebee014e07" - name = "Oliver Smith" + definition_id = "e07eadc6-f53d-4253-9b8b-1e39d437be8f" + name = "Vicky Welch" secret_id = "...my_secret_id..." - workspace_id = "f53d253d-b8b1-4e39-9437-be8f4cf797fa" + workspace_id = "7fa8ae01-2beb-4a22-8996-41ef630f5d87" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_zendesk_chat/resource.tf b/examples/resources/airbyte_source_zendesk_chat/resource.tf index b63d943f5..47551dbd4 100644 --- a/examples/resources/airbyte_source_zendesk_chat/resource.tf +++ b/examples/resources/airbyte_source_zendesk_chat/resource.tf @@ -8,8 +8,8 @@ resource "airbyte_source_zendesk_chat" "my_source_zendeskchat" { start_date = "2021-02-01T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "e012beba-22c9-4964-9ef6-30f5d8739c0e" - name = "Hazel Pfeffer" + definition_id = "c0e34b35-2ddb-404c-9bce-387d66444a18" + name = "Claudia Mills" secret_id = "...my_secret_id..." - workspace_id = "2ddb04c9-bce3-487d-a644-4a186797a763" + workspace_id = "763e10f9-9e00-4879-a494-84a748552064" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_zendesk_sell/resource.tf b/examples/resources/airbyte_source_zendesk_sell/resource.tf index 4424d5d2a..eb2fd8777 100644 --- a/examples/resources/airbyte_source_zendesk_sell/resource.tf +++ b/examples/resources/airbyte_source_zendesk_sell/resource.tf @@ -2,8 +2,8 @@ resource "airbyte_source_zendesk_sell" "my_source_zendesksell" { configuration = { api_token = "f23yhd630otl94y85a8bf384958473pto95847fd006da49382716or937ruw059" } - definition_id = "e10f99e0-0879-4e49-884a-7485520644ae" - name = "Francis Daniel" + definition_id = "4aee427f-93df-49bf-84b7-84edaaf2f424" + name = "Ms. Marcos Ebert" secret_id = "...my_secret_id..." - workspace_id = "93df9bf8-4b78-44ed-aaf2-f424ed308606" + workspace_id = "06f09926-22de-47b1-a93e-5915fe5844c8" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_zendesk_sunshine/resource.tf b/examples/resources/airbyte_source_zendesk_sunshine/resource.tf index 7a2270926..c65f22ac1 100644 --- a/examples/resources/airbyte_source_zendesk_sunshine/resource.tf +++ b/examples/resources/airbyte_source_zendesk_sunshine/resource.tf @@ -3,14 +3,14 @@ resource "airbyte_source_zendesk_sunshine" "my_source_zendesksunshine" { credentials = { api_token = { api_token = "...my_api_token..." - email = "Amos.McKenzie@hotmail.com" + email = "Jannie_Zulauf@hotmail.com" } } start_date = "2021-01-01T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "2de7b1a9-3e59-415f-a584-4c8d7f9e67ba" - name = "Randal Kuphal" + definition_id = "badf74d2-3a87-4a42-abf6-ae57802daa82" + name = "Ramona Marvin" secret_id = "...my_secret_id..." - workspace_id = "23a87a42-abf6-4ae5-b802-daa821998eac" + workspace_id = "ac7526c0-e68d-441f-a947-8bd831a4caf6" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_zendesk_support/resource.tf b/examples/resources/airbyte_source_zendesk_support/resource.tf index 76e801ad6..f1c14eaba 100644 --- a/examples/resources/airbyte_source_zendesk_support/resource.tf +++ b/examples/resources/airbyte_source_zendesk_support/resource.tf @@ -4,15 +4,15 @@ resource "airbyte_source_zendesk_support" "my_source_zendesksupport" { api_token = { additional_properties = "{ \"see\": \"documentation\" }" api_token = "...my_api_token..." - email = "Ericka_Dach@yahoo.com" + email = "Anastacio94@yahoo.com" } } - ignore_pagination = false + ignore_pagination = true start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "8d41f294-78bd-4831-a4ca-f6a030f2320a" - name = "Tom Schamberger" + definition_id = "0a84c82f-eed3-45fd-8712-605259781224" + name = "Kathleen Greenfelder" secret_id = "...my_secret_id..." - workspace_id = "feed35fd-4712-4605-a597-81224214e979" + workspace_id = "79a97873-ec6e-4c23-b893-6834bb7f256a" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_zendesk_talk/resource.tf b/examples/resources/airbyte_source_zendesk_talk/resource.tf index e6d8579ff..7cd8470cb 100644 --- a/examples/resources/airbyte_source_zendesk_talk/resource.tf +++ b/examples/resources/airbyte_source_zendesk_talk/resource.tf @@ -4,14 +4,14 @@ resource "airbyte_source_zendesk_talk" "my_source_zendesktalk" { api_token = { additional_properties = "{ \"see\": \"documentation\" }" api_token = "...my_api_token..." - email = "Lavada.Kshlerin@yahoo.com" + email = "Carolyne_Turcotte57@hotmail.com" } } start_date = "2020-10-15T00:00:00Z" subdomain = "...my_subdomain..." } - definition_id = "c6ec23f8-9368-434b-b7f2-56aa2eed97a7" - name = "Jermaine Miller" + definition_id = "7ac93ce2-101f-4692-aff8-de5650472830" + name = "Grant Schmitt V" secret_id = "...my_secret_id..." - workspace_id = "e2101f69-2eff-48de-9650-472830aace29" + workspace_id = "0d7b3b35-8aff-4520-ae7c-66512764ede9" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_zenloop/resource.tf b/examples/resources/airbyte_source_zenloop/resource.tf index 3896b0476..91500588b 100644 --- a/examples/resources/airbyte_source_zenloop/resource.tf +++ b/examples/resources/airbyte_source_zenloop/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_zenloop" "my_source_zenloop" { survey_group_id = "...my_survey_group_id..." survey_id = "...my_survey_id..." } - definition_id = "0d7b3b35-8aff-4520-ae7c-66512764ede9" - name = "Miss Jake Lueilwitz" + definition_id = "cd819ecc-37ba-4170-8ba6-4daf2cd7c8fe" + name = "Delores Hamill" secret_id = "...my_secret_id..." - workspace_id = "cc37ba17-00ba-464d-af2c-d7c8fe5757a3" + workspace_id = "306443a7-5bcf-44e2-a137-8db01d76f7dd" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_zoho_crm/resource.tf b/examples/resources/airbyte_source_zoho_crm/resource.tf index 9f36e32f1..0c06fa5e3 100644 --- a/examples/resources/airbyte_source_zoho_crm/resource.tf +++ b/examples/resources/airbyte_source_zoho_crm/resource.tf @@ -4,12 +4,12 @@ resource "airbyte_source_zoho_crm" "my_source_zohocrm" { client_secret = "...my_client_secret..." dc_region = "US" edition = "Professional" - environment = "Production" + environment = "Developer" refresh_token = "...my_refresh_token..." - start_datetime = "2000-01-01 13:00" + start_datetime = "2000-01-01T13:00+00:00" } - definition_id = "75bcf4e2-e137-48db-81d7-6f7dd27aa6e5" - name = "Melba Beer" + definition_id = "51f0c20e-4312-4d0c-bfe3-9df03e297d6f" + name = "Roxanne Yundt" secret_id = "...my_secret_id..." - workspace_id = "0e4312d0-cbfe-439d-b03e-297d6f5cf39b" + workspace_id = "b34f9589-f421-498f-b282-2b82a159ebc2" } \ No newline at end of file diff --git a/examples/resources/airbyte_source_zoom/resource.tf b/examples/resources/airbyte_source_zoom/resource.tf index 53ec70687..fea40f666 100644 --- a/examples/resources/airbyte_source_zoom/resource.tf +++ b/examples/resources/airbyte_source_zoom/resource.tf @@ -5,8 +5,8 @@ resource "airbyte_source_zoom" "my_source_zoom" { client_id = "...my_client_id..." client_secret = "...my_client_secret..." } - definition_id = "34f9589f-4219-48f3-a822-b82a159ebc2b" - name = "Della Brekke" + definition_id = "b7c1d354-0fbb-4e2d-8a9d-0010028d11c1" + name = "Leona Bechtelar" secret_id = "...my_secret_id..." - workspace_id = "540fbbe2-d8a9-4d00-9002-8d11c1280d80" + workspace_id = "07cdd8eb-8c75-4c46-9093-8eb2433624d8" } \ No newline at end of file diff --git a/examples/resources/airbyte_workspace/resource.tf b/examples/resources/airbyte_workspace/resource.tf index c70404c7f..08ee8f291 100644 --- a/examples/resources/airbyte_workspace/resource.tf +++ b/examples/resources/airbyte_workspace/resource.tf @@ -1,4 +1,4 @@ resource "airbyte_workspace" "my_workspace" { - name = "Johnnie Skiles" - organization_id = "eb8c75c4-6109-438e-b243-3624d8c5c5aa" + name = "Floyd Schinner" + organization_id = "a0b5368b-26a5-468a-a6dc-340bb1546957" } \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 0a0bb0ca9..911bc9d34 100755 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: oAuth2ClientCredentialsEnabled: true telemetryEnabled: true terraform: - version: 0.7.1 + version: 0.7.0 additionalDataSources: [] additionalDependencies: {} additionalResources: [] diff --git a/go.mod b/go.mod index e14952b91..086550ea3 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/airbytehq/terraform-provider-airbyte go 1.21 -toolchain go1.22.5 +toolchain go1.22.1 require ( github.com/cenkalti/backoff/v4 v4.2.0 diff --git a/internal/provider/source_clazar_data_source.go b/internal/provider/destination_langchain_data_source.go similarity index 57% rename from internal/provider/source_clazar_data_source.go rename to internal/provider/destination_langchain_data_source.go index c905a10fd..0e2659833 100644 --- a/internal/provider/source_clazar_data_source.go +++ b/internal/provider/destination_langchain_data_source.go @@ -14,49 +14,49 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ datasource.DataSource = &SourceClazarDataSource{} -var _ datasource.DataSourceWithConfigure = &SourceClazarDataSource{} +var _ datasource.DataSource = &DestinationLangchainDataSource{} +var _ datasource.DataSourceWithConfigure = &DestinationLangchainDataSource{} -func NewSourceClazarDataSource() datasource.DataSource { - return &SourceClazarDataSource{} +func NewDestinationLangchainDataSource() datasource.DataSource { + return &DestinationLangchainDataSource{} } -// SourceClazarDataSource is the data source implementation. -type SourceClazarDataSource struct { +// DestinationLangchainDataSource is the data source implementation. +type DestinationLangchainDataSource struct { client *sdk.SDK } -// SourceClazarDataSourceModel describes the data model. -type SourceClazarDataSourceModel struct { - Configuration types.String `tfsdk:"configuration"` - Name types.String `tfsdk:"name"` - SourceID types.String `tfsdk:"source_id"` - SourceType types.String `tfsdk:"source_type"` - WorkspaceID types.String `tfsdk:"workspace_id"` +// DestinationLangchainDataSourceModel describes the data model. +type DestinationLangchainDataSourceModel struct { + Configuration types.String `tfsdk:"configuration"` + DestinationID types.String `tfsdk:"destination_id"` + DestinationType types.String `tfsdk:"destination_type"` + Name types.String `tfsdk:"name"` + WorkspaceID types.String `tfsdk:"workspace_id"` } // Metadata returns the data source type name. -func (r *SourceClazarDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_clazar" +func (r *DestinationLangchainDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_destination_langchain" } // Schema defines the schema for the data source. -func (r *SourceClazarDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { +func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceClazar DataSource", + MarkdownDescription: "DestinationLangchain DataSource", Attributes: map[string]schema.Attribute{ "configuration": schema.StringAttribute{ Computed: true, - Description: `The values required to configure the source. Parsed as JSON.`, + Description: `The values required to configure the destination. Parsed as JSON.`, }, - "name": schema.StringAttribute{ - Computed: true, - }, - "source_id": schema.StringAttribute{ + "destination_id": schema.StringAttribute{ Required: true, }, - "source_type": schema.StringAttribute{ + "destination_type": schema.StringAttribute{ + Computed: true, + }, + "name": schema.StringAttribute{ Computed: true, }, "workspace_id": schema.StringAttribute{ @@ -66,7 +66,7 @@ func (r *SourceClazarDataSource) Schema(ctx context.Context, req datasource.Sche } } -func (r *SourceClazarDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { +func (r *DestinationLangchainDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -86,8 +86,8 @@ func (r *SourceClazarDataSource) Configure(ctx context.Context, req datasource.C r.client = client } -func (r *SourceClazarDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data *SourceClazarDataSourceModel +func (r *DestinationLangchainDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *DestinationLangchainDataSourceModel var item types.Object resp.Diagnostics.Append(req.Config.Get(ctx, &item)...) @@ -104,11 +104,11 @@ func (r *SourceClazarDataSource) Read(ctx context.Context, req datasource.ReadRe return } - sourceID := data.SourceID.ValueString() - request := operations.GetSourceClazarRequest{ - SourceID: sourceID, + destinationID := data.DestinationID.ValueString() + request := operations.GetDestinationLangchainRequest{ + DestinationID: destinationID, } - res, err := r.client.Sources.GetSourceClazar(ctx, request) + res, err := r.client.Destinations.GetDestinationLangchain(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -128,11 +128,11 @@ func (r *SourceClazarDataSource) Read(ctx context.Context, req datasource.ReadRe resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) return } - if !(res.SourceResponse != nil) { + if !(res.DestinationResponse != nil) { resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res.RawResponse)) return } - data.RefreshFromSharedSourceResponse(res.SourceResponse) + data.RefreshFromSharedDestinationResponse(res.DestinationResponse) // Save updated data into Terraform state resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) diff --git a/internal/provider/source_clazar_data_source_sdk.go b/internal/provider/destination_langchain_data_source_sdk.go similarity index 67% rename from internal/provider/source_clazar_data_source_sdk.go rename to internal/provider/destination_langchain_data_source_sdk.go index 1a271d52b..8d280d71f 100644 --- a/internal/provider/source_clazar_data_source_sdk.go +++ b/internal/provider/destination_langchain_data_source_sdk.go @@ -8,13 +8,13 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *SourceClazarDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *DestinationLangchainDataSourceModel) RefreshFromSharedDestinationResponse(resp *shared.DestinationResponse) { if resp != nil { configurationResult, _ := json.Marshal(resp.Configuration) r.Configuration = types.StringValue(string(configurationResult)) + r.DestinationID = types.StringValue(resp.DestinationID) + r.DestinationType = types.StringValue(resp.DestinationType) r.Name = types.StringValue(resp.Name) - r.SourceID = types.StringValue(resp.SourceID) - r.SourceType = types.StringValue(resp.SourceType) r.WorkspaceID = types.StringValue(resp.WorkspaceID) } } diff --git a/internal/provider/destination_langchain_resource.go b/internal/provider/destination_langchain_resource.go new file mode 100644 index 000000000..e29a2d9c7 --- /dev/null +++ b/internal/provider/destination_langchain_resource.go @@ -0,0 +1,482 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + speakeasy_objectplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/objectplanmodifier" + speakeasy_stringplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/stringplanmodifier" + tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/airbytehq/terraform-provider-airbyte/internal/validators" + "github.com/hashicorp/terraform-plugin-framework-validators/objectvalidator" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ resource.Resource = &DestinationLangchainResource{} +var _ resource.ResourceWithImportState = &DestinationLangchainResource{} + +func NewDestinationLangchainResource() resource.Resource { + return &DestinationLangchainResource{} +} + +// DestinationLangchainResource defines the resource implementation. +type DestinationLangchainResource struct { + client *sdk.SDK +} + +// DestinationLangchainResourceModel describes the resource data model. +type DestinationLangchainResourceModel struct { + Configuration tfTypes.DestinationLangchain `tfsdk:"configuration"` + DefinitionID types.String `tfsdk:"definition_id"` + DestinationID types.String `tfsdk:"destination_id"` + DestinationType types.String `tfsdk:"destination_type"` + Name types.String `tfsdk:"name"` + WorkspaceID types.String `tfsdk:"workspace_id"` +} + +func (r *DestinationLangchainResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_destination_langchain" +} + +func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "DestinationLangchain Resource", + Attributes: map[string]schema.Attribute{ + "configuration": schema.SingleNestedAttribute{ + PlanModifiers: []planmodifier.Object{ + speakeasy_objectplanmodifier.SuppressDiff(speakeasy_objectplanmodifier.ExplicitSuppress), + }, + Required: true, + Attributes: map[string]schema.Attribute{ + "embedding": schema.SingleNestedAttribute{ + Required: true, + Attributes: map[string]schema.Attribute{ + "fake": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("open_ai"), + }...), + }, + }, + "open_ai": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "openai_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + }, + Description: `Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("fake"), + }...), + }, + }, + }, + Description: `Embedding configuration`, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, + }, + "indexing": schema.SingleNestedAttribute{ + Required: true, + Attributes: map[string]schema.Attribute{ + "chroma_local_persistance": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "collection_name": schema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("langchain"), + Description: `Name of the collection to use. Default: "langchain"`, + }, + "destination_path": schema.StringAttribute{ + Required: true, + Description: `Path to the directory where chroma files will be written. The files will be placed inside that local mount.`, + }, + }, + Description: `Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("doc_array_hnsw_search"), + path.MatchRelative().AtParent().AtName("pinecone"), + }...), + }, + }, + "doc_array_hnsw_search": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "destination_path": schema.StringAttribute{ + Required: true, + Description: `Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.`, + }, + }, + Description: `DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("chroma_local_persistance"), + path.MatchRelative().AtParent().AtName("pinecone"), + }...), + }, + }, + "pinecone": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "index": schema.StringAttribute{ + Required: true, + Description: `Pinecone index to use`, + }, + "pinecone_environment": schema.StringAttribute{ + Required: true, + Description: `Pinecone environment to use`, + }, + "pinecone_key": schema.StringAttribute{ + Required: true, + Sensitive: true, + }, + }, + Description: `Pinecone is a popular vector store that can be used to store and retrieve embeddings. It is a managed service and can also be queried from outside of langchain.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("chroma_local_persistance"), + path.MatchRelative().AtParent().AtName("doc_array_hnsw_search"), + }...), + }, + }, + }, + Description: `Indexing configuration`, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, + }, + "processing": schema.SingleNestedAttribute{ + Required: true, + Attributes: map[string]schema.Attribute{ + "chunk_overlap": schema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + Description: `Size of overlap between chunks in tokens to store in vector store to better capture relevant context. Default: 0`, + }, + "chunk_size": schema.Int64Attribute{ + Required: true, + Description: `Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM)`, + }, + "text_fields": schema.ListAttribute{ + Required: true, + ElementType: types.StringType, + Description: `List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. ` + "`" + `user.name` + "`" + ` will access the ` + "`" + `name` + "`" + ` field in the ` + "`" + `user` + "`" + ` object. It's also possible to use wildcards to access all fields in an object, e.g. ` + "`" + `users.*.name` + "`" + ` will access all ` + "`" + `names` + "`" + ` fields in all entries of the ` + "`" + `users` + "`" + ` array.`, + }, + }, + }, + }, + }, + "definition_id": schema.StringAttribute{ + PlanModifiers: []planmodifier.String{ + stringplanmodifier.RequiresReplaceIfConfigured(), + }, + Optional: true, + Description: `The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. Requires replacement if changed. `, + }, + "destination_id": schema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{ + speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), + }, + }, + "destination_type": schema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{ + speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), + }, + }, + "name": schema.StringAttribute{ + PlanModifiers: []planmodifier.String{ + speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), + }, + Required: true, + Description: `Name of the destination e.g. dev-mysql-instance.`, + }, + "workspace_id": schema.StringAttribute{ + PlanModifiers: []planmodifier.String{ + speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), + }, + Required: true, + }, + }, + } +} + +func (r *DestinationLangchainResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*sdk.SDK) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Resource Configure Type", + fmt.Sprintf("Expected *sdk.SDK, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *DestinationLangchainResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *DestinationLangchainResourceModel + var plan types.Object + + resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) + if resp.Diagnostics.HasError() { + return + } + + resp.Diagnostics.Append(plan.As(ctx, &data, basetypes.ObjectAsOptions{ + UnhandledNullAsEmpty: true, + UnhandledUnknownAsEmpty: true, + })...) + + if resp.Diagnostics.HasError() { + return + } + + request := data.ToSharedDestinationLangchainCreateRequest() + res, err := r.client.Destinations.CreateDestinationLangchain(ctx, request) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res != nil && res.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) + } + return + } + if res == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) + return + } + if res.StatusCode != 200 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) + return + } + if !(res.DestinationResponse != nil) { + resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res.RawResponse)) + return + } + data.RefreshFromSharedDestinationResponse(res.DestinationResponse) + refreshPlan(ctx, plan, &data, resp.Diagnostics) + destinationID := data.DestinationID.ValueString() + request1 := operations.GetDestinationLangchainRequest{ + DestinationID: destinationID, + } + res1, err := r.client.Destinations.GetDestinationLangchain(ctx, request1) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res1 != nil && res1.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res1.RawResponse)) + } + return + } + if res1 == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res1)) + return + } + if res1.StatusCode != 200 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res1.StatusCode), debugResponse(res1.RawResponse)) + return + } + if !(res1.DestinationResponse != nil) { + resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res1.RawResponse)) + return + } + data.RefreshFromSharedDestinationResponse(res1.DestinationResponse) + refreshPlan(ctx, plan, &data, resp.Diagnostics) + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *DestinationLangchainResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *DestinationLangchainResourceModel + var item types.Object + + resp.Diagnostics.Append(req.State.Get(ctx, &item)...) + if resp.Diagnostics.HasError() { + return + } + + resp.Diagnostics.Append(item.As(ctx, &data, basetypes.ObjectAsOptions{ + UnhandledNullAsEmpty: true, + UnhandledUnknownAsEmpty: true, + })...) + + if resp.Diagnostics.HasError() { + return + } + + destinationID := data.DestinationID.ValueString() + request := operations.GetDestinationLangchainRequest{ + DestinationID: destinationID, + } + res, err := r.client.Destinations.GetDestinationLangchain(ctx, request) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res != nil && res.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) + } + return + } + if res == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) + return + } + if res.StatusCode == 404 { + resp.State.RemoveResource(ctx) + return + } + if res.StatusCode != 200 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) + return + } + if !(res.DestinationResponse != nil) { + resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res.RawResponse)) + return + } + data.RefreshFromSharedDestinationResponse(res.DestinationResponse) + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *DestinationLangchainResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *DestinationLangchainResourceModel + var plan types.Object + + resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) + if resp.Diagnostics.HasError() { + return + } + + merge(ctx, req, resp, &data) + if resp.Diagnostics.HasError() { + return + } + + destinationLangchainPutRequest := data.ToSharedDestinationLangchainPutRequest() + destinationID := data.DestinationID.ValueString() + request := operations.PutDestinationLangchainRequest{ + DestinationLangchainPutRequest: destinationLangchainPutRequest, + DestinationID: destinationID, + } + res, err := r.client.Destinations.PutDestinationLangchain(ctx, request) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res != nil && res.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) + } + return + } + if res == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) + return + } + if fmt.Sprintf("%v", res.StatusCode)[0] != '2' { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) + return + } + refreshPlan(ctx, plan, &data, resp.Diagnostics) + destinationId1 := data.DestinationID.ValueString() + request1 := operations.GetDestinationLangchainRequest{ + DestinationID: destinationId1, + } + res1, err := r.client.Destinations.GetDestinationLangchain(ctx, request1) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res1 != nil && res1.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res1.RawResponse)) + } + return + } + if res1 == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res1)) + return + } + if res1.StatusCode != 200 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res1.StatusCode), debugResponse(res1.RawResponse)) + return + } + if !(res1.DestinationResponse != nil) { + resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res1.RawResponse)) + return + } + data.RefreshFromSharedDestinationResponse(res1.DestinationResponse) + refreshPlan(ctx, plan, &data, resp.Diagnostics) + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *DestinationLangchainResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *DestinationLangchainResourceModel + var item types.Object + + resp.Diagnostics.Append(req.State.Get(ctx, &item)...) + if resp.Diagnostics.HasError() { + return + } + + resp.Diagnostics.Append(item.As(ctx, &data, basetypes.ObjectAsOptions{ + UnhandledNullAsEmpty: true, + UnhandledUnknownAsEmpty: true, + })...) + + if resp.Diagnostics.HasError() { + return + } + + destinationID := data.DestinationID.ValueString() + request := operations.DeleteDestinationLangchainRequest{ + DestinationID: destinationID, + } + res, err := r.client.Destinations.DeleteDestinationLangchain(ctx, request) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + if res != nil && res.RawResponse != nil { + resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) + } + return + } + if res == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) + return + } + if fmt.Sprintf("%v", res.StatusCode)[0] != '2' { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) + return + } + +} + +func (r *DestinationLangchainResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("destination_id"), req.ID)...) +} diff --git a/internal/provider/destination_langchain_resource_sdk.go b/internal/provider/destination_langchain_resource_sdk.go new file mode 100644 index 000000000..767048f52 --- /dev/null +++ b/internal/provider/destination_langchain_resource_sdk.go @@ -0,0 +1,228 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *DestinationLangchainResourceModel) ToSharedDestinationLangchainCreateRequest() *shared.DestinationLangchainCreateRequest { + var embedding shared.DestinationLangchainEmbedding + var destinationLangchainOpenAI *shared.DestinationLangchainOpenAI + if r.Configuration.Embedding.OpenAI != nil { + openaiKey := r.Configuration.Embedding.OpenAI.OpenaiKey.ValueString() + destinationLangchainOpenAI = &shared.DestinationLangchainOpenAI{ + OpenaiKey: openaiKey, + } + } + if destinationLangchainOpenAI != nil { + embedding = shared.DestinationLangchainEmbedding{ + DestinationLangchainOpenAI: destinationLangchainOpenAI, + } + } + var destinationLangchainFake *shared.DestinationLangchainFake + if r.Configuration.Embedding.Fake != nil { + destinationLangchainFake = &shared.DestinationLangchainFake{} + } + if destinationLangchainFake != nil { + embedding = shared.DestinationLangchainEmbedding{ + DestinationLangchainFake: destinationLangchainFake, + } + } + var indexing shared.DestinationLangchainIndexing + var destinationLangchainPinecone *shared.DestinationLangchainPinecone + if r.Configuration.Indexing.Pinecone != nil { + index := r.Configuration.Indexing.Pinecone.Index.ValueString() + pineconeEnvironment := r.Configuration.Indexing.Pinecone.PineconeEnvironment.ValueString() + pineconeKey := r.Configuration.Indexing.Pinecone.PineconeKey.ValueString() + destinationLangchainPinecone = &shared.DestinationLangchainPinecone{ + Index: index, + PineconeEnvironment: pineconeEnvironment, + PineconeKey: pineconeKey, + } + } + if destinationLangchainPinecone != nil { + indexing = shared.DestinationLangchainIndexing{ + DestinationLangchainPinecone: destinationLangchainPinecone, + } + } + var destinationLangchainDocArrayHnswSearch *shared.DestinationLangchainDocArrayHnswSearch + if r.Configuration.Indexing.DocArrayHnswSearch != nil { + destinationPath := r.Configuration.Indexing.DocArrayHnswSearch.DestinationPath.ValueString() + destinationLangchainDocArrayHnswSearch = &shared.DestinationLangchainDocArrayHnswSearch{ + DestinationPath: destinationPath, + } + } + if destinationLangchainDocArrayHnswSearch != nil { + indexing = shared.DestinationLangchainIndexing{ + DestinationLangchainDocArrayHnswSearch: destinationLangchainDocArrayHnswSearch, + } + } + var destinationLangchainChromaLocalPersistance *shared.DestinationLangchainChromaLocalPersistance + if r.Configuration.Indexing.ChromaLocalPersistance != nil { + collectionName := new(string) + if !r.Configuration.Indexing.ChromaLocalPersistance.CollectionName.IsUnknown() && !r.Configuration.Indexing.ChromaLocalPersistance.CollectionName.IsNull() { + *collectionName = r.Configuration.Indexing.ChromaLocalPersistance.CollectionName.ValueString() + } else { + collectionName = nil + } + destinationPath1 := r.Configuration.Indexing.ChromaLocalPersistance.DestinationPath.ValueString() + destinationLangchainChromaLocalPersistance = &shared.DestinationLangchainChromaLocalPersistance{ + CollectionName: collectionName, + DestinationPath: destinationPath1, + } + } + if destinationLangchainChromaLocalPersistance != nil { + indexing = shared.DestinationLangchainIndexing{ + DestinationLangchainChromaLocalPersistance: destinationLangchainChromaLocalPersistance, + } + } + chunkOverlap := new(int64) + if !r.Configuration.Processing.ChunkOverlap.IsUnknown() && !r.Configuration.Processing.ChunkOverlap.IsNull() { + *chunkOverlap = r.Configuration.Processing.ChunkOverlap.ValueInt64() + } else { + chunkOverlap = nil + } + chunkSize := r.Configuration.Processing.ChunkSize.ValueInt64() + var textFields []string = []string{} + for _, textFieldsItem := range r.Configuration.Processing.TextFields { + textFields = append(textFields, textFieldsItem.ValueString()) + } + processing := shared.DestinationLangchainProcessingConfigModel{ + ChunkOverlap: chunkOverlap, + ChunkSize: chunkSize, + TextFields: textFields, + } + configuration := shared.DestinationLangchain{ + Embedding: embedding, + Indexing: indexing, + Processing: processing, + } + definitionID := new(string) + if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { + *definitionID = r.DefinitionID.ValueString() + } else { + definitionID = nil + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.DestinationLangchainCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *DestinationLangchainResourceModel) RefreshFromSharedDestinationResponse(resp *shared.DestinationResponse) { + if resp != nil { + r.DestinationID = types.StringValue(resp.DestinationID) + r.DestinationType = types.StringValue(resp.DestinationType) + r.Name = types.StringValue(resp.Name) + r.WorkspaceID = types.StringValue(resp.WorkspaceID) + } +} + +func (r *DestinationLangchainResourceModel) ToSharedDestinationLangchainPutRequest() *shared.DestinationLangchainPutRequest { + var embedding shared.DestinationLangchainUpdateEmbedding + var destinationLangchainUpdateOpenAI *shared.DestinationLangchainUpdateOpenAI + if r.Configuration.Embedding.OpenAI != nil { + openaiKey := r.Configuration.Embedding.OpenAI.OpenaiKey.ValueString() + destinationLangchainUpdateOpenAI = &shared.DestinationLangchainUpdateOpenAI{ + OpenaiKey: openaiKey, + } + } + if destinationLangchainUpdateOpenAI != nil { + embedding = shared.DestinationLangchainUpdateEmbedding{ + DestinationLangchainUpdateOpenAI: destinationLangchainUpdateOpenAI, + } + } + var destinationLangchainUpdateFake *shared.DestinationLangchainUpdateFake + if r.Configuration.Embedding.Fake != nil { + destinationLangchainUpdateFake = &shared.DestinationLangchainUpdateFake{} + } + if destinationLangchainUpdateFake != nil { + embedding = shared.DestinationLangchainUpdateEmbedding{ + DestinationLangchainUpdateFake: destinationLangchainUpdateFake, + } + } + var indexing shared.DestinationLangchainUpdateIndexing + var destinationLangchainUpdatePinecone *shared.DestinationLangchainUpdatePinecone + if r.Configuration.Indexing.Pinecone != nil { + index := r.Configuration.Indexing.Pinecone.Index.ValueString() + pineconeEnvironment := r.Configuration.Indexing.Pinecone.PineconeEnvironment.ValueString() + pineconeKey := r.Configuration.Indexing.Pinecone.PineconeKey.ValueString() + destinationLangchainUpdatePinecone = &shared.DestinationLangchainUpdatePinecone{ + Index: index, + PineconeEnvironment: pineconeEnvironment, + PineconeKey: pineconeKey, + } + } + if destinationLangchainUpdatePinecone != nil { + indexing = shared.DestinationLangchainUpdateIndexing{ + DestinationLangchainUpdatePinecone: destinationLangchainUpdatePinecone, + } + } + var docArrayHnswSearch *shared.DocArrayHnswSearch + if r.Configuration.Indexing.DocArrayHnswSearch != nil { + destinationPath := r.Configuration.Indexing.DocArrayHnswSearch.DestinationPath.ValueString() + docArrayHnswSearch = &shared.DocArrayHnswSearch{ + DestinationPath: destinationPath, + } + } + if docArrayHnswSearch != nil { + indexing = shared.DestinationLangchainUpdateIndexing{ + DocArrayHnswSearch: docArrayHnswSearch, + } + } + var chromaLocalPersistance *shared.ChromaLocalPersistance + if r.Configuration.Indexing.ChromaLocalPersistance != nil { + collectionName := new(string) + if !r.Configuration.Indexing.ChromaLocalPersistance.CollectionName.IsUnknown() && !r.Configuration.Indexing.ChromaLocalPersistance.CollectionName.IsNull() { + *collectionName = r.Configuration.Indexing.ChromaLocalPersistance.CollectionName.ValueString() + } else { + collectionName = nil + } + destinationPath1 := r.Configuration.Indexing.ChromaLocalPersistance.DestinationPath.ValueString() + chromaLocalPersistance = &shared.ChromaLocalPersistance{ + CollectionName: collectionName, + DestinationPath: destinationPath1, + } + } + if chromaLocalPersistance != nil { + indexing = shared.DestinationLangchainUpdateIndexing{ + ChromaLocalPersistance: chromaLocalPersistance, + } + } + chunkOverlap := new(int64) + if !r.Configuration.Processing.ChunkOverlap.IsUnknown() && !r.Configuration.Processing.ChunkOverlap.IsNull() { + *chunkOverlap = r.Configuration.Processing.ChunkOverlap.ValueInt64() + } else { + chunkOverlap = nil + } + chunkSize := r.Configuration.Processing.ChunkSize.ValueInt64() + var textFields []string = []string{} + for _, textFieldsItem := range r.Configuration.Processing.TextFields { + textFields = append(textFields, textFieldsItem.ValueString()) + } + processing := shared.DestinationLangchainUpdateProcessingConfigModel{ + ChunkOverlap: chunkOverlap, + ChunkSize: chunkSize, + TextFields: textFields, + } + configuration := shared.DestinationLangchainUpdate{ + Embedding: embedding, + Indexing: indexing, + Processing: processing, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.DestinationLangchainPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/destination_redshift_resource.go b/internal/provider/destination_redshift_resource.go index 88bf8d4e8..00b7b240c 100644 --- a/internal/provider/destination_redshift_resource.go +++ b/internal/provider/destination_redshift_resource.go @@ -198,6 +198,41 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S Sensitive: true, Description: `This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See AWS docs on how to generate an access key ID and secret access key.`, }, + "encryption": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "aescbc_envelope_encryption": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "key_encrypting_key": schema.StringAttribute{ + Optional: true, + Sensitive: true, + Description: `The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.`, + }, + }, + Description: `Staging data will be encrypted using AES-CBC envelope encryption.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("no_encryption"), + }...), + }, + }, + "no_encryption": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Description: `Staging data will be stored in plaintext.`, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("aescbc_envelope_encryption"), + }...), + }, + }, + }, + Description: `How to encrypt the staging data`, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, + }, "file_name_pattern": schema.StringAttribute{ Optional: true, Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`, diff --git a/internal/provider/destination_redshift_resource_sdk.go b/internal/provider/destination_redshift_resource_sdk.go index 8ed029320..1c96310a4 100644 --- a/internal/provider/destination_redshift_resource_sdk.go +++ b/internal/provider/destination_redshift_resource_sdk.go @@ -110,6 +110,35 @@ func (r *DestinationRedshiftResourceModel) ToSharedDestinationRedshiftCreateRequ var destinationRedshiftAWSS3Staging *shared.DestinationRedshiftAWSS3Staging if r.Configuration.UploadingMethod.AWSS3Staging != nil { accessKeyID := r.Configuration.UploadingMethod.AWSS3Staging.AccessKeyID.ValueString() + var encryption *shared.DestinationRedshiftEncryption + if r.Configuration.UploadingMethod.AWSS3Staging.Encryption != nil { + var destinationRedshiftNoEncryption *shared.DestinationRedshiftNoEncryption + if r.Configuration.UploadingMethod.AWSS3Staging.Encryption.NoEncryption != nil { + destinationRedshiftNoEncryption = &shared.DestinationRedshiftNoEncryption{} + } + if destinationRedshiftNoEncryption != nil { + encryption = &shared.DestinationRedshiftEncryption{ + DestinationRedshiftNoEncryption: destinationRedshiftNoEncryption, + } + } + var destinationRedshiftAESCBCEnvelopeEncryption *shared.DestinationRedshiftAESCBCEnvelopeEncryption + if r.Configuration.UploadingMethod.AWSS3Staging.Encryption.AESCBCEnvelopeEncryption != nil { + keyEncryptingKey := new(string) + if !r.Configuration.UploadingMethod.AWSS3Staging.Encryption.AESCBCEnvelopeEncryption.KeyEncryptingKey.IsUnknown() && !r.Configuration.UploadingMethod.AWSS3Staging.Encryption.AESCBCEnvelopeEncryption.KeyEncryptingKey.IsNull() { + *keyEncryptingKey = r.Configuration.UploadingMethod.AWSS3Staging.Encryption.AESCBCEnvelopeEncryption.KeyEncryptingKey.ValueString() + } else { + keyEncryptingKey = nil + } + destinationRedshiftAESCBCEnvelopeEncryption = &shared.DestinationRedshiftAESCBCEnvelopeEncryption{ + KeyEncryptingKey: keyEncryptingKey, + } + } + if destinationRedshiftAESCBCEnvelopeEncryption != nil { + encryption = &shared.DestinationRedshiftEncryption{ + DestinationRedshiftAESCBCEnvelopeEncryption: destinationRedshiftAESCBCEnvelopeEncryption, + } + } + } fileNamePattern := new(string) if !r.Configuration.UploadingMethod.AWSS3Staging.FileNamePattern.IsUnknown() && !r.Configuration.UploadingMethod.AWSS3Staging.FileNamePattern.IsNull() { *fileNamePattern = r.Configuration.UploadingMethod.AWSS3Staging.FileNamePattern.ValueString() @@ -138,6 +167,7 @@ func (r *DestinationRedshiftResourceModel) ToSharedDestinationRedshiftCreateRequ secretAccessKey := r.Configuration.UploadingMethod.AWSS3Staging.SecretAccessKey.ValueString() destinationRedshiftAWSS3Staging = &shared.DestinationRedshiftAWSS3Staging{ AccessKeyID: accessKeyID, + Encryption: encryption, FileNamePattern: fileNamePattern, PurgeStagingData: purgeStagingData, S3BucketName: s3BucketName, @@ -296,6 +326,35 @@ func (r *DestinationRedshiftResourceModel) ToSharedDestinationRedshiftPutRequest var awsS3Staging *shared.AWSS3Staging if r.Configuration.UploadingMethod.AWSS3Staging != nil { accessKeyID := r.Configuration.UploadingMethod.AWSS3Staging.AccessKeyID.ValueString() + var encryption *shared.DestinationRedshiftUpdateEncryption + if r.Configuration.UploadingMethod.AWSS3Staging.Encryption != nil { + var noEncryption *shared.NoEncryption + if r.Configuration.UploadingMethod.AWSS3Staging.Encryption.NoEncryption != nil { + noEncryption = &shared.NoEncryption{} + } + if noEncryption != nil { + encryption = &shared.DestinationRedshiftUpdateEncryption{ + NoEncryption: noEncryption, + } + } + var aesCBCEnvelopeEncryption *shared.AESCBCEnvelopeEncryption + if r.Configuration.UploadingMethod.AWSS3Staging.Encryption.AESCBCEnvelopeEncryption != nil { + keyEncryptingKey := new(string) + if !r.Configuration.UploadingMethod.AWSS3Staging.Encryption.AESCBCEnvelopeEncryption.KeyEncryptingKey.IsUnknown() && !r.Configuration.UploadingMethod.AWSS3Staging.Encryption.AESCBCEnvelopeEncryption.KeyEncryptingKey.IsNull() { + *keyEncryptingKey = r.Configuration.UploadingMethod.AWSS3Staging.Encryption.AESCBCEnvelopeEncryption.KeyEncryptingKey.ValueString() + } else { + keyEncryptingKey = nil + } + aesCBCEnvelopeEncryption = &shared.AESCBCEnvelopeEncryption{ + KeyEncryptingKey: keyEncryptingKey, + } + } + if aesCBCEnvelopeEncryption != nil { + encryption = &shared.DestinationRedshiftUpdateEncryption{ + AESCBCEnvelopeEncryption: aesCBCEnvelopeEncryption, + } + } + } fileNamePattern := new(string) if !r.Configuration.UploadingMethod.AWSS3Staging.FileNamePattern.IsUnknown() && !r.Configuration.UploadingMethod.AWSS3Staging.FileNamePattern.IsNull() { *fileNamePattern = r.Configuration.UploadingMethod.AWSS3Staging.FileNamePattern.ValueString() @@ -324,6 +383,7 @@ func (r *DestinationRedshiftResourceModel) ToSharedDestinationRedshiftPutRequest secretAccessKey := r.Configuration.UploadingMethod.AWSS3Staging.SecretAccessKey.ValueString() awsS3Staging = &shared.AWSS3Staging{ AccessKeyID: accessKeyID, + Encryption: encryption, FileNamePattern: fileNamePattern, PurgeStagingData: purgeStagingData, S3BucketName: s3BucketName, diff --git a/internal/provider/destination_snowflake_resource.go b/internal/provider/destination_snowflake_resource.go index 20738ae4b..5c1916f21 100644 --- a/internal/provider/destination_snowflake_resource.go +++ b/internal/provider/destination_snowflake_resource.go @@ -177,7 +177,7 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource. }, "warehouse": schema.StringAttribute{ Required: true, - Description: `Enter the name of the warehouse that you want to use as a compute cluster`, + Description: `Enter the name of the warehouse that you want to sync data into`, }, }, }, diff --git a/internal/provider/destination_snowflakecortex_resource.go b/internal/provider/destination_snowflakecortex_resource.go index 7812b7ea0..8b6900bb5 100644 --- a/internal/provider/destination_snowflakecortex_resource.go +++ b/internal/provider/destination_snowflakecortex_resource.go @@ -218,7 +218,7 @@ func (r *DestinationSnowflakeCortexResource) Schema(ctx context.Context, req res }, "warehouse": schema.StringAttribute{ Required: true, - Description: `Enter the name of the warehouse that you want to use as a compute cluster`, + Description: `Enter the name of the warehouse that you want to sync data into`, }, }, Description: `Snowflake can be used to store vector data and retrieve embeddings.`, diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 8e445bb7a..e0fe2251b 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -144,6 +144,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewDestinationFirestoreResource, NewDestinationGcsResource, NewDestinationGoogleSheetsResource, + NewDestinationLangchainResource, NewDestinationMilvusResource, NewDestinationMongodbResource, NewDestinationMssqlResource, @@ -188,7 +189,6 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceCartResource, NewSourceChargebeeResource, NewSourceChartmogulResource, - NewSourceClazarResource, NewSourceClickhouseResource, NewSourceClickupAPIResource, NewSourceClockifyResource, @@ -200,7 +200,6 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceConfluenceResource, NewSourceConvexResource, NewSourceCustomResource, - NewSourceDatadogResource, NewSourceDatascopeResource, NewSourceDelightedResource, NewSourceDixaResource, @@ -225,9 +224,9 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourceGitlabResource, NewSourceGlassfrogResource, NewSourceGnewsResource, - NewSourceGoldcastResource, NewSourceGoogleAdsResource, NewSourceGoogleAnalyticsDataAPIResource, + NewSourceGoogleAnalyticsV4ServiceAccountOnlyResource, NewSourceGoogleDirectoryResource, NewSourceGoogleDriveResource, NewSourceGooglePagespeedInsightsResource, @@ -297,6 +296,7 @@ func (p *AirbyteProvider) Resources(ctx context.Context) []func() resource.Resou NewSourcePosthogResource, NewSourcePostmarkappResource, NewSourcePrestashopResource, + NewSourcePunkAPIResource, NewSourcePypiResource, NewSourceQualarooResource, NewSourceRailzResource, @@ -385,6 +385,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewDestinationFirestoreDataSource, NewDestinationGcsDataSource, NewDestinationGoogleSheetsDataSource, + NewDestinationLangchainDataSource, NewDestinationMilvusDataSource, NewDestinationMongodbDataSource, NewDestinationMssqlDataSource, @@ -429,7 +430,6 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceCartDataSource, NewSourceChargebeeDataSource, NewSourceChartmogulDataSource, - NewSourceClazarDataSource, NewSourceClickhouseDataSource, NewSourceClickupAPIDataSource, NewSourceClockifyDataSource, @@ -441,7 +441,6 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceConfluenceDataSource, NewSourceConvexDataSource, NewSourceCustomDataSource, - NewSourceDatadogDataSource, NewSourceDatascopeDataSource, NewSourceDelightedDataSource, NewSourceDixaDataSource, @@ -466,9 +465,9 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourceGitlabDataSource, NewSourceGlassfrogDataSource, NewSourceGnewsDataSource, - NewSourceGoldcastDataSource, NewSourceGoogleAdsDataSource, NewSourceGoogleAnalyticsDataAPIDataSource, + NewSourceGoogleAnalyticsV4ServiceAccountOnlyDataSource, NewSourceGoogleDirectoryDataSource, NewSourceGoogleDriveDataSource, NewSourceGooglePagespeedInsightsDataSource, @@ -538,6 +537,7 @@ func (p *AirbyteProvider) DataSources(ctx context.Context) []func() datasource.D NewSourcePosthogDataSource, NewSourcePostmarkappDataSource, NewSourcePrestashopDataSource, + NewSourcePunkAPIDataSource, NewSourcePypiDataSource, NewSourceQualarooDataSource, NewSourceRailzDataSource, diff --git a/internal/provider/source_amazonsellerpartner_resource.go b/internal/provider/source_amazonsellerpartner_resource.go index 854f95efc..7216b0b01 100644 --- a/internal/provider/source_amazonsellerpartner_resource.go +++ b/internal/provider/source_amazonsellerpartner_resource.go @@ -146,7 +146,7 @@ func (r *SourceAmazonSellerPartnerResource) Schema(ctx context.Context, req reso }, "replication_start_date": schema.StringAttribute{ Optional: true, - Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used.`, + Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided, the date 2 years ago from today will be used.`, Validators: []validator.String{ validators.IsRFC3339(), }, diff --git a/internal/provider/source_awscloudtrail_resource.go b/internal/provider/source_awscloudtrail_resource.go index d62230d27..c1813bd22 100644 --- a/internal/provider/source_awscloudtrail_resource.go +++ b/internal/provider/source_awscloudtrail_resource.go @@ -66,37 +66,19 @@ func (r *SourceAwsCloudtrailResource) Schema(ctx context.Context, req resource.S Description: `AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.`, }, "aws_region_name": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("us-east-1"), - Description: `The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. Default: "us-east-1"`, + Required: true, + Description: `The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name.`, }, "aws_secret_key": schema.StringAttribute{ Required: true, Sensitive: true, Description: `AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.`, }, - "lookup_attributes_filter": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "attribute_key": schema.StringAttribute{ - Computed: true, - Optional: true, - Sensitive: true, - Default: stringdefault.StaticString("EventName"), - Description: `Default: "EventName"`, - }, - "attribute_value": schema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("ListInstanceAssociations"), - Description: `Default: "ListInstanceAssociations"`, - }, - }, - }, "start_date": schema.StringAttribute{ + Computed: true, Optional: true, - Description: `The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.`, + Default: stringdefault.StaticString("1970-01-01"), + Description: `The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. Default: "1970-01-01"`, Validators: []validator.String{ validators.IsValidDate(), }, diff --git a/internal/provider/source_awscloudtrail_resource_sdk.go b/internal/provider/source_awscloudtrail_resource_sdk.go index ffca64da5..f75196b8e 100644 --- a/internal/provider/source_awscloudtrail_resource_sdk.go +++ b/internal/provider/source_awscloudtrail_resource_sdk.go @@ -10,32 +10,8 @@ import ( func (r *SourceAwsCloudtrailResourceModel) ToSharedSourceAwsCloudtrailCreateRequest() *shared.SourceAwsCloudtrailCreateRequest { awsKeyID := r.Configuration.AwsKeyID.ValueString() - awsRegionName := new(string) - if !r.Configuration.AwsRegionName.IsUnknown() && !r.Configuration.AwsRegionName.IsNull() { - *awsRegionName = r.Configuration.AwsRegionName.ValueString() - } else { - awsRegionName = nil - } + awsRegionName := r.Configuration.AwsRegionName.ValueString() awsSecretKey := r.Configuration.AwsSecretKey.ValueString() - var lookupAttributesFilter *shared.SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody - if r.Configuration.LookupAttributesFilter != nil { - attributeKey := new(string) - if !r.Configuration.LookupAttributesFilter.AttributeKey.IsUnknown() && !r.Configuration.LookupAttributesFilter.AttributeKey.IsNull() { - *attributeKey = r.Configuration.LookupAttributesFilter.AttributeKey.ValueString() - } else { - attributeKey = nil - } - attributeValue := new(string) - if !r.Configuration.LookupAttributesFilter.AttributeValue.IsUnknown() && !r.Configuration.LookupAttributesFilter.AttributeValue.IsNull() { - *attributeValue = r.Configuration.LookupAttributesFilter.AttributeValue.ValueString() - } else { - attributeValue = nil - } - lookupAttributesFilter = &shared.SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody{ - AttributeKey: attributeKey, - AttributeValue: attributeValue, - } - } startDate := new(customTypes.Date) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString()) @@ -43,11 +19,10 @@ func (r *SourceAwsCloudtrailResourceModel) ToSharedSourceAwsCloudtrailCreateRequ startDate = nil } configuration := shared.SourceAwsCloudtrail{ - AwsKeyID: awsKeyID, - AwsRegionName: awsRegionName, - AwsSecretKey: awsSecretKey, - LookupAttributesFilter: lookupAttributesFilter, - StartDate: startDate, + AwsKeyID: awsKeyID, + AwsRegionName: awsRegionName, + AwsSecretKey: awsSecretKey, + StartDate: startDate, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -84,32 +59,8 @@ func (r *SourceAwsCloudtrailResourceModel) RefreshFromSharedSourceResponse(resp func (r *SourceAwsCloudtrailResourceModel) ToSharedSourceAwsCloudtrailPutRequest() *shared.SourceAwsCloudtrailPutRequest { awsKeyID := r.Configuration.AwsKeyID.ValueString() - awsRegionName := new(string) - if !r.Configuration.AwsRegionName.IsUnknown() && !r.Configuration.AwsRegionName.IsNull() { - *awsRegionName = r.Configuration.AwsRegionName.ValueString() - } else { - awsRegionName = nil - } + awsRegionName := r.Configuration.AwsRegionName.ValueString() awsSecretKey := r.Configuration.AwsSecretKey.ValueString() - var lookupAttributesFilter *shared.FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody - if r.Configuration.LookupAttributesFilter != nil { - attributeKey := new(string) - if !r.Configuration.LookupAttributesFilter.AttributeKey.IsUnknown() && !r.Configuration.LookupAttributesFilter.AttributeKey.IsNull() { - *attributeKey = r.Configuration.LookupAttributesFilter.AttributeKey.ValueString() - } else { - attributeKey = nil - } - attributeValue := new(string) - if !r.Configuration.LookupAttributesFilter.AttributeValue.IsUnknown() && !r.Configuration.LookupAttributesFilter.AttributeValue.IsNull() { - *attributeValue = r.Configuration.LookupAttributesFilter.AttributeValue.ValueString() - } else { - attributeValue = nil - } - lookupAttributesFilter = &shared.FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody{ - AttributeKey: attributeKey, - AttributeValue: attributeValue, - } - } startDate := new(customTypes.Date) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString()) @@ -117,11 +68,10 @@ func (r *SourceAwsCloudtrailResourceModel) ToSharedSourceAwsCloudtrailPutRequest startDate = nil } configuration := shared.SourceAwsCloudtrailUpdate{ - AwsKeyID: awsKeyID, - AwsRegionName: awsRegionName, - AwsSecretKey: awsSecretKey, - LookupAttributesFilter: lookupAttributesFilter, - StartDate: startDate, + AwsKeyID: awsKeyID, + AwsRegionName: awsRegionName, + AwsSecretKey: awsSecretKey, + StartDate: startDate, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() diff --git a/internal/provider/source_clazar_resource.go b/internal/provider/source_clazar_resource.go deleted file mode 100644 index 6269888bd..000000000 --- a/internal/provider/source_clazar_resource.go +++ /dev/null @@ -1,366 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package provider - -import ( - "context" - "fmt" - speakeasy_objectplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/objectplanmodifier" - speakeasy_stringplanmodifier "github.com/airbytehq/terraform-provider-airbyte/internal/planmodifiers/stringplanmodifier" - tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" - "github.com/hashicorp/terraform-plugin-framework/path" - "github.com/hashicorp/terraform-plugin-framework/resource" - "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/hashicorp/terraform-plugin-framework/types/basetypes" -) - -// Ensure provider defined types fully satisfy framework interfaces. -var _ resource.Resource = &SourceClazarResource{} -var _ resource.ResourceWithImportState = &SourceClazarResource{} - -func NewSourceClazarResource() resource.Resource { - return &SourceClazarResource{} -} - -// SourceClazarResource defines the resource implementation. -type SourceClazarResource struct { - client *sdk.SDK -} - -// SourceClazarResourceModel describes the resource data model. -type SourceClazarResourceModel struct { - Configuration tfTypes.DestinationVectaraOAuth20Credentials `tfsdk:"configuration"` - DefinitionID types.String `tfsdk:"definition_id"` - Name types.String `tfsdk:"name"` - SecretID types.String `tfsdk:"secret_id"` - SourceID types.String `tfsdk:"source_id"` - SourceType types.String `tfsdk:"source_type"` - WorkspaceID types.String `tfsdk:"workspace_id"` -} - -func (r *SourceClazarResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_clazar" -} - -func (r *SourceClazarResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { - resp.Schema = schema.Schema{ - MarkdownDescription: "SourceClazar Resource", - Attributes: map[string]schema.Attribute{ - "configuration": schema.SingleNestedAttribute{ - PlanModifiers: []planmodifier.Object{ - speakeasy_objectplanmodifier.SuppressDiff(speakeasy_objectplanmodifier.ExplicitSuppress), - }, - Required: true, - Attributes: map[string]schema.Attribute{ - "client_id": schema.StringAttribute{ - Required: true, - }, - "client_secret": schema.StringAttribute{ - Required: true, - }, - }, - }, - "definition_id": schema.StringAttribute{ - PlanModifiers: []planmodifier.String{ - stringplanmodifier.RequiresReplaceIfConfigured(), - }, - Optional: true, - Description: `The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed. `, - }, - "name": schema.StringAttribute{ - PlanModifiers: []planmodifier.String{ - speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), - }, - Required: true, - Description: `Name of the source e.g. dev-mysql-instance.`, - }, - "secret_id": schema.StringAttribute{ - PlanModifiers: []planmodifier.String{ - stringplanmodifier.RequiresReplaceIfConfigured(), - }, - Optional: true, - Description: `Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed. `, - }, - "source_id": schema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{ - speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), - }, - }, - "source_type": schema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{ - speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), - }, - }, - "workspace_id": schema.StringAttribute{ - PlanModifiers: []planmodifier.String{ - speakeasy_stringplanmodifier.SuppressDiff(speakeasy_stringplanmodifier.ExplicitSuppress), - }, - Required: true, - }, - }, - } -} - -func (r *SourceClazarResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { - // Prevent panic if the provider has not been configured. - if req.ProviderData == nil { - return - } - - client, ok := req.ProviderData.(*sdk.SDK) - - if !ok { - resp.Diagnostics.AddError( - "Unexpected Resource Configure Type", - fmt.Sprintf("Expected *sdk.SDK, got: %T. Please report this issue to the provider developers.", req.ProviderData), - ) - - return - } - - r.client = client -} - -func (r *SourceClazarResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *SourceClazarResourceModel - var plan types.Object - - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - if resp.Diagnostics.HasError() { - return - } - - resp.Diagnostics.Append(plan.As(ctx, &data, basetypes.ObjectAsOptions{ - UnhandledNullAsEmpty: true, - UnhandledUnknownAsEmpty: true, - })...) - - if resp.Diagnostics.HasError() { - return - } - - request := data.ToSharedSourceClazarCreateRequest() - res, err := r.client.Sources.CreateSourceClazar(ctx, request) - if err != nil { - resp.Diagnostics.AddError("failure to invoke API", err.Error()) - if res != nil && res.RawResponse != nil { - resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) - } - return - } - if res == nil { - resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) - return - } - if res.StatusCode != 200 { - resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) - return - } - if !(res.SourceResponse != nil) { - resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res.RawResponse)) - return - } - data.RefreshFromSharedSourceResponse(res.SourceResponse) - refreshPlan(ctx, plan, &data, resp.Diagnostics) - sourceID := data.SourceID.ValueString() - request1 := operations.GetSourceClazarRequest{ - SourceID: sourceID, - } - res1, err := r.client.Sources.GetSourceClazar(ctx, request1) - if err != nil { - resp.Diagnostics.AddError("failure to invoke API", err.Error()) - if res1 != nil && res1.RawResponse != nil { - resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res1.RawResponse)) - } - return - } - if res1 == nil { - resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res1)) - return - } - if res1.StatusCode != 200 { - resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res1.StatusCode), debugResponse(res1.RawResponse)) - return - } - if !(res1.SourceResponse != nil) { - resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res1.RawResponse)) - return - } - data.RefreshFromSharedSourceResponse(res1.SourceResponse) - refreshPlan(ctx, plan, &data, resp.Diagnostics) - - // Save updated data into Terraform state - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) -} - -func (r *SourceClazarResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *SourceClazarResourceModel - var item types.Object - - resp.Diagnostics.Append(req.State.Get(ctx, &item)...) - if resp.Diagnostics.HasError() { - return - } - - resp.Diagnostics.Append(item.As(ctx, &data, basetypes.ObjectAsOptions{ - UnhandledNullAsEmpty: true, - UnhandledUnknownAsEmpty: true, - })...) - - if resp.Diagnostics.HasError() { - return - } - - sourceID := data.SourceID.ValueString() - request := operations.GetSourceClazarRequest{ - SourceID: sourceID, - } - res, err := r.client.Sources.GetSourceClazar(ctx, request) - if err != nil { - resp.Diagnostics.AddError("failure to invoke API", err.Error()) - if res != nil && res.RawResponse != nil { - resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) - } - return - } - if res == nil { - resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) - return - } - if res.StatusCode == 404 { - resp.State.RemoveResource(ctx) - return - } - if res.StatusCode != 200 { - resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) - return - } - if !(res.SourceResponse != nil) { - resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res.RawResponse)) - return - } - data.RefreshFromSharedSourceResponse(res.SourceResponse) - - // Save updated data into Terraform state - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) -} - -func (r *SourceClazarResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *SourceClazarResourceModel - var plan types.Object - - resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) - if resp.Diagnostics.HasError() { - return - } - - merge(ctx, req, resp, &data) - if resp.Diagnostics.HasError() { - return - } - - sourceClazarPutRequest := data.ToSharedSourceClazarPutRequest() - sourceID := data.SourceID.ValueString() - request := operations.PutSourceClazarRequest{ - SourceClazarPutRequest: sourceClazarPutRequest, - SourceID: sourceID, - } - res, err := r.client.Sources.PutSourceClazar(ctx, request) - if err != nil { - resp.Diagnostics.AddError("failure to invoke API", err.Error()) - if res != nil && res.RawResponse != nil { - resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) - } - return - } - if res == nil { - resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) - return - } - if fmt.Sprintf("%v", res.StatusCode)[0] != '2' { - resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) - return - } - refreshPlan(ctx, plan, &data, resp.Diagnostics) - sourceId1 := data.SourceID.ValueString() - request1 := operations.GetSourceClazarRequest{ - SourceID: sourceId1, - } - res1, err := r.client.Sources.GetSourceClazar(ctx, request1) - if err != nil { - resp.Diagnostics.AddError("failure to invoke API", err.Error()) - if res1 != nil && res1.RawResponse != nil { - resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res1.RawResponse)) - } - return - } - if res1 == nil { - resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res1)) - return - } - if res1.StatusCode != 200 { - resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res1.StatusCode), debugResponse(res1.RawResponse)) - return - } - if !(res1.SourceResponse != nil) { - resp.Diagnostics.AddError("unexpected response from API. Got an unexpected response body", debugResponse(res1.RawResponse)) - return - } - data.RefreshFromSharedSourceResponse(res1.SourceResponse) - refreshPlan(ctx, plan, &data, resp.Diagnostics) - - // Save updated data into Terraform state - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) -} - -func (r *SourceClazarResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *SourceClazarResourceModel - var item types.Object - - resp.Diagnostics.Append(req.State.Get(ctx, &item)...) - if resp.Diagnostics.HasError() { - return - } - - resp.Diagnostics.Append(item.As(ctx, &data, basetypes.ObjectAsOptions{ - UnhandledNullAsEmpty: true, - UnhandledUnknownAsEmpty: true, - })...) - - if resp.Diagnostics.HasError() { - return - } - - sourceID := data.SourceID.ValueString() - request := operations.DeleteSourceClazarRequest{ - SourceID: sourceID, - } - res, err := r.client.Sources.DeleteSourceClazar(ctx, request) - if err != nil { - resp.Diagnostics.AddError("failure to invoke API", err.Error()) - if res != nil && res.RawResponse != nil { - resp.Diagnostics.AddError("unexpected http request/response", debugResponse(res.RawResponse)) - } - return - } - if res == nil { - resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) - return - } - if fmt.Sprintf("%v", res.StatusCode)[0] != '2' { - resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) - return - } - -} - -func (r *SourceClazarResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("source_id"), req.ID)...) -} diff --git a/internal/provider/source_datadog_resource_sdk.go b/internal/provider/source_datadog_resource_sdk.go deleted file mode 100644 index 599946d74..000000000 --- a/internal/provider/source_datadog_resource_sdk.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package provider - -import ( - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -func (r *SourceDatadogResourceModel) ToSharedSourceDatadogCreateRequest() *shared.SourceDatadogCreateRequest { - apiKey := r.Configuration.APIKey.ValueString() - applicationKey := r.Configuration.ApplicationKey.ValueString() - endDate := new(string) - if !r.Configuration.EndDate.IsUnknown() && !r.Configuration.EndDate.IsNull() { - *endDate = r.Configuration.EndDate.ValueString() - } else { - endDate = nil - } - maxRecordsPerRequest := new(int64) - if !r.Configuration.MaxRecordsPerRequest.IsUnknown() && !r.Configuration.MaxRecordsPerRequest.IsNull() { - *maxRecordsPerRequest = r.Configuration.MaxRecordsPerRequest.ValueInt64() - } else { - maxRecordsPerRequest = nil - } - var queries []shared.SourceDatadogQueries = []shared.SourceDatadogQueries{} - for _, queriesItem := range r.Configuration.Queries { - dataSource := shared.SourceDatadogDataSource(queriesItem.DataSource.ValueString()) - name := queriesItem.Name.ValueString() - query := queriesItem.Query.ValueString() - queries = append(queries, shared.SourceDatadogQueries{ - DataSource: dataSource, - Name: name, - Query: query, - }) - } - query1 := new(string) - if !r.Configuration.Query.IsUnknown() && !r.Configuration.Query.IsNull() { - *query1 = r.Configuration.Query.ValueString() - } else { - query1 = nil - } - site := new(shared.SourceDatadogSite) - if !r.Configuration.Site.IsUnknown() && !r.Configuration.Site.IsNull() { - *site = shared.SourceDatadogSite(r.Configuration.Site.ValueString()) - } else { - site = nil - } - startDate := new(string) - if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { - *startDate = r.Configuration.StartDate.ValueString() - } else { - startDate = nil - } - configuration := shared.SourceDatadog{ - APIKey: apiKey, - ApplicationKey: applicationKey, - EndDate: endDate, - MaxRecordsPerRequest: maxRecordsPerRequest, - Queries: queries, - Query: query1, - Site: site, - StartDate: startDate, - } - definitionID := new(string) - if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { - *definitionID = r.DefinitionID.ValueString() - } else { - definitionID = nil - } - name1 := r.Name.ValueString() - secretID := new(string) - if !r.SecretID.IsUnknown() && !r.SecretID.IsNull() { - *secretID = r.SecretID.ValueString() - } else { - secretID = nil - } - workspaceID := r.WorkspaceID.ValueString() - out := shared.SourceDatadogCreateRequest{ - Configuration: configuration, - DefinitionID: definitionID, - Name: name1, - SecretID: secretID, - WorkspaceID: workspaceID, - } - return &out -} - -func (r *SourceDatadogResourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { - if resp != nil { - r.Name = types.StringValue(resp.Name) - r.SourceID = types.StringValue(resp.SourceID) - r.SourceType = types.StringValue(resp.SourceType) - r.WorkspaceID = types.StringValue(resp.WorkspaceID) - } -} - -func (r *SourceDatadogResourceModel) ToSharedSourceDatadogPutRequest() *shared.SourceDatadogPutRequest { - apiKey := r.Configuration.APIKey.ValueString() - applicationKey := r.Configuration.ApplicationKey.ValueString() - endDate := new(string) - if !r.Configuration.EndDate.IsUnknown() && !r.Configuration.EndDate.IsNull() { - *endDate = r.Configuration.EndDate.ValueString() - } else { - endDate = nil - } - maxRecordsPerRequest := new(int64) - if !r.Configuration.MaxRecordsPerRequest.IsUnknown() && !r.Configuration.MaxRecordsPerRequest.IsNull() { - *maxRecordsPerRequest = r.Configuration.MaxRecordsPerRequest.ValueInt64() - } else { - maxRecordsPerRequest = nil - } - var queries []shared.Queries = []shared.Queries{} - for _, queriesItem := range r.Configuration.Queries { - dataSource := shared.SourceDatadogUpdateDataSource(queriesItem.DataSource.ValueString()) - name := queriesItem.Name.ValueString() - query := queriesItem.Query.ValueString() - queries = append(queries, shared.Queries{ - DataSource: dataSource, - Name: name, - Query: query, - }) - } - query1 := new(string) - if !r.Configuration.Query.IsUnknown() && !r.Configuration.Query.IsNull() { - *query1 = r.Configuration.Query.ValueString() - } else { - query1 = nil - } - site := new(shared.Site) - if !r.Configuration.Site.IsUnknown() && !r.Configuration.Site.IsNull() { - *site = shared.Site(r.Configuration.Site.ValueString()) - } else { - site = nil - } - startDate := new(string) - if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { - *startDate = r.Configuration.StartDate.ValueString() - } else { - startDate = nil - } - configuration := shared.SourceDatadogUpdate{ - APIKey: apiKey, - ApplicationKey: applicationKey, - EndDate: endDate, - MaxRecordsPerRequest: maxRecordsPerRequest, - Queries: queries, - Query: query1, - Site: site, - StartDate: startDate, - } - name1 := r.Name.ValueString() - workspaceID := r.WorkspaceID.ValueString() - out := shared.SourceDatadogPutRequest{ - Configuration: configuration, - Name: name1, - WorkspaceID: workspaceID, - } - return &out -} diff --git a/internal/provider/source_facebookmarketing_resource.go b/internal/provider/source_facebookmarketing_resource.go index 9b1a7f05c..cc4f3c674 100644 --- a/internal/provider/source_facebookmarketing_resource.go +++ b/internal/provider/source_facebookmarketing_resource.go @@ -12,7 +12,6 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" "github.com/airbytehq/terraform-provider-airbyte/internal/validators" "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" - "github.com/hashicorp/terraform-plugin-framework-validators/objectvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" @@ -108,53 +107,6 @@ func (r *SourceFacebookMarketingResource) Schema(ctx context.Context, req resour Optional: true, Description: `The Client Secret for your OAuth app`, }, - "credentials": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "authenticate_via_facebook_marketing_oauth": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "access_token": schema.StringAttribute{ - Optional: true, - Sensitive: true, - Description: `The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information.`, - }, - "client_id": schema.StringAttribute{ - Required: true, - Description: `Client ID for the Facebook Marketing API`, - }, - "client_secret": schema.StringAttribute{ - Required: true, - Description: `Client Secret for the Facebook Marketing API`, - }, - }, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("service_account_key_authentication"), - }...), - }, - }, - "service_account_key_authentication": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "access_token": schema.StringAttribute{ - Required: true, - Sensitive: true, - Description: `The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information.`, - }, - }, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("authenticate_via_facebook_marketing_oauth"), - }...), - }, - }, - }, - Description: `Credentials for connecting to the Facebook Marketing API`, - Validators: []validator.Object{ - validators.ExactlyOneChild(), - }, - }, "custom_insights": schema.ListNestedAttribute{ Optional: true, NestedObject: schema.NestedAttributeObject{ diff --git a/internal/provider/source_facebookmarketing_resource_sdk.go b/internal/provider/source_facebookmarketing_resource_sdk.go index 829d6e26c..8f8c7302f 100644 --- a/internal/provider/source_facebookmarketing_resource_sdk.go +++ b/internal/provider/source_facebookmarketing_resource_sdk.go @@ -49,42 +49,6 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingCr } else { clientSecret = nil } - var credentials *shared.SourceFacebookMarketingAuthentication - if r.Configuration.Credentials != nil { - var sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth *shared.SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth - if r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth != nil { - accessToken1 := new(string) - if !r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.AccessToken.IsUnknown() && !r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.AccessToken.IsNull() { - *accessToken1 = r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.AccessToken.ValueString() - } else { - accessToken1 = nil - } - clientId1 := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientID.ValueString() - clientSecret1 := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientSecret.ValueString() - sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth = &shared.SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth{ - AccessToken: accessToken1, - ClientID: clientId1, - ClientSecret: clientSecret1, - } - } - if sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth != nil { - credentials = &shared.SourceFacebookMarketingAuthentication{ - SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth: sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth, - } - } - var sourceFacebookMarketingServiceAccountKeyAuthentication *shared.SourceFacebookMarketingServiceAccountKeyAuthentication - if r.Configuration.Credentials.ServiceAccountKeyAuthentication != nil { - accessToken2 := r.Configuration.Credentials.ServiceAccountKeyAuthentication.AccessToken.ValueString() - sourceFacebookMarketingServiceAccountKeyAuthentication = &shared.SourceFacebookMarketingServiceAccountKeyAuthentication{ - AccessToken: accessToken2, - } - } - if sourceFacebookMarketingServiceAccountKeyAuthentication != nil { - credentials = &shared.SourceFacebookMarketingAuthentication{ - SourceFacebookMarketingServiceAccountKeyAuthentication: sourceFacebookMarketingServiceAccountKeyAuthentication, - } - } - } var customInsights []shared.SourceFacebookMarketingInsightConfig = []shared.SourceFacebookMarketingInsightConfig{} for _, customInsightsItem := range r.Configuration.CustomInsights { var actionBreakdowns []shared.SourceFacebookMarketingValidActionBreakdowns = []shared.SourceFacebookMarketingValidActionBreakdowns{} @@ -201,7 +165,6 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingCr CampaignStatuses: campaignStatuses, ClientID: clientID, ClientSecret: clientSecret, - Credentials: credentials, CustomInsights: customInsights, EndDate: endDate1, FetchThumbnailImages: fetchThumbnailImages, @@ -284,42 +247,6 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingPu } else { clientSecret = nil } - var credentials *shared.SourceFacebookMarketingUpdateAuthentication - if r.Configuration.Credentials != nil { - var authenticateViaFacebookMarketingOauth *shared.AuthenticateViaFacebookMarketingOauth - if r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth != nil { - accessToken1 := new(string) - if !r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.AccessToken.IsUnknown() && !r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.AccessToken.IsNull() { - *accessToken1 = r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.AccessToken.ValueString() - } else { - accessToken1 = nil - } - clientId1 := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientID.ValueString() - clientSecret1 := r.Configuration.Credentials.AuthenticateViaFacebookMarketingOauth.ClientSecret.ValueString() - authenticateViaFacebookMarketingOauth = &shared.AuthenticateViaFacebookMarketingOauth{ - AccessToken: accessToken1, - ClientID: clientId1, - ClientSecret: clientSecret1, - } - } - if authenticateViaFacebookMarketingOauth != nil { - credentials = &shared.SourceFacebookMarketingUpdateAuthentication{ - AuthenticateViaFacebookMarketingOauth: authenticateViaFacebookMarketingOauth, - } - } - var serviceAccountKeyAuthentication *shared.ServiceAccountKeyAuthentication - if r.Configuration.Credentials.ServiceAccountKeyAuthentication != nil { - accessToken2 := r.Configuration.Credentials.ServiceAccountKeyAuthentication.AccessToken.ValueString() - serviceAccountKeyAuthentication = &shared.ServiceAccountKeyAuthentication{ - AccessToken: accessToken2, - } - } - if serviceAccountKeyAuthentication != nil { - credentials = &shared.SourceFacebookMarketingUpdateAuthentication{ - ServiceAccountKeyAuthentication: serviceAccountKeyAuthentication, - } - } - } var customInsights []shared.InsightConfig = []shared.InsightConfig{} for _, customInsightsItem := range r.Configuration.CustomInsights { var actionBreakdowns []shared.ValidActionBreakdowns = []shared.ValidActionBreakdowns{} @@ -436,7 +363,6 @@ func (r *SourceFacebookMarketingResourceModel) ToSharedSourceFacebookMarketingPu CampaignStatuses: campaignStatuses, ClientID: clientID, ClientSecret: clientSecret, - Credentials: credentials, CustomInsights: customInsights, EndDate: endDate1, FetchThumbnailImages: fetchThumbnailImages, diff --git a/internal/provider/source_goldcast_resource_sdk.go b/internal/provider/source_goldcast_resource_sdk.go deleted file mode 100644 index 5a8c5c86c..000000000 --- a/internal/provider/source_goldcast_resource_sdk.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package provider - -import ( - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" - "github.com/hashicorp/terraform-plugin-framework/types" -) - -func (r *SourceGoldcastResourceModel) ToSharedSourceGoldcastCreateRequest() *shared.SourceGoldcastCreateRequest { - accessKey := r.Configuration.AccessKey.ValueString() - configuration := shared.SourceGoldcast{ - AccessKey: accessKey, - } - definitionID := new(string) - if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { - *definitionID = r.DefinitionID.ValueString() - } else { - definitionID = nil - } - name := r.Name.ValueString() - secretID := new(string) - if !r.SecretID.IsUnknown() && !r.SecretID.IsNull() { - *secretID = r.SecretID.ValueString() - } else { - secretID = nil - } - workspaceID := r.WorkspaceID.ValueString() - out := shared.SourceGoldcastCreateRequest{ - Configuration: configuration, - DefinitionID: definitionID, - Name: name, - SecretID: secretID, - WorkspaceID: workspaceID, - } - return &out -} - -func (r *SourceGoldcastResourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { - if resp != nil { - r.Name = types.StringValue(resp.Name) - r.SourceID = types.StringValue(resp.SourceID) - r.SourceType = types.StringValue(resp.SourceType) - r.WorkspaceID = types.StringValue(resp.WorkspaceID) - } -} - -func (r *SourceGoldcastResourceModel) ToSharedSourceGoldcastPutRequest() *shared.SourceGoldcastPutRequest { - accessKey := r.Configuration.AccessKey.ValueString() - configuration := shared.SourceGoldcastUpdate{ - AccessKey: accessKey, - } - name := r.Name.ValueString() - workspaceID := r.WorkspaceID.ValueString() - out := shared.SourceGoldcastPutRequest{ - Configuration: configuration, - Name: name, - WorkspaceID: workspaceID, - } - return &out -} diff --git a/internal/provider/source_googleanalyticsdataapi_resource_sdk.go b/internal/provider/source_googleanalyticsdataapi_resource_sdk.go index f8dd366af..ecfd294cd 100644 --- a/internal/provider/source_googleanalyticsdataapi_resource_sdk.go +++ b/internal/provider/source_googleanalyticsdataapi_resource_sdk.go @@ -1596,16 +1596,16 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToSharedSourceGoogleAnalytic AuthenticateViaGoogleOauth: authenticateViaGoogleOauth, } } - var sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication + var serviceAccountKeyAuthentication *shared.ServiceAccountKeyAuthentication if r.Configuration.Credentials.ServiceAccountKeyAuthentication != nil { credentialsJSON := r.Configuration.Credentials.ServiceAccountKeyAuthentication.CredentialsJSON.ValueString() - sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication = &shared.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication{ + serviceAccountKeyAuthentication = &shared.ServiceAccountKeyAuthentication{ CredentialsJSON: credentialsJSON, } } - if sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication != nil { + if serviceAccountKeyAuthentication != nil { credentials = &shared.SourceGoogleAnalyticsDataAPIUpdateCredentials{ - SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication: sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication, + ServiceAccountKeyAuthentication: serviceAccountKeyAuthentication, } } } diff --git a/internal/provider/source_goldcast_data_source.go b/internal/provider/source_googleanalyticsv4serviceaccountonly_data_source.go similarity index 65% rename from internal/provider/source_goldcast_data_source.go rename to internal/provider/source_googleanalyticsv4serviceaccountonly_data_source.go index 2a1408b07..a40ed54d1 100644 --- a/internal/provider/source_goldcast_data_source.go +++ b/internal/provider/source_googleanalyticsv4serviceaccountonly_data_source.go @@ -14,20 +14,20 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ datasource.DataSource = &SourceGoldcastDataSource{} -var _ datasource.DataSourceWithConfigure = &SourceGoldcastDataSource{} +var _ datasource.DataSource = &SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource{} +var _ datasource.DataSourceWithConfigure = &SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource{} -func NewSourceGoldcastDataSource() datasource.DataSource { - return &SourceGoldcastDataSource{} +func NewSourceGoogleAnalyticsV4ServiceAccountOnlyDataSource() datasource.DataSource { + return &SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource{} } -// SourceGoldcastDataSource is the data source implementation. -type SourceGoldcastDataSource struct { +// SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource is the data source implementation. +type SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource struct { client *sdk.SDK } -// SourceGoldcastDataSourceModel describes the data model. -type SourceGoldcastDataSourceModel struct { +// SourceGoogleAnalyticsV4ServiceAccountOnlyDataSourceModel describes the data model. +type SourceGoogleAnalyticsV4ServiceAccountOnlyDataSourceModel struct { Configuration types.String `tfsdk:"configuration"` Name types.String `tfsdk:"name"` SourceID types.String `tfsdk:"source_id"` @@ -36,14 +36,14 @@ type SourceGoldcastDataSourceModel struct { } // Metadata returns the data source type name. -func (r *SourceGoldcastDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_goldcast" +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_google_analytics_v4_service_account_only" } // Schema defines the schema for the data source. -func (r *SourceGoldcastDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceGoldcast DataSource", + MarkdownDescription: "SourceGoogleAnalyticsV4ServiceAccountOnly DataSource", Attributes: map[string]schema.Attribute{ "configuration": schema.StringAttribute{ @@ -66,7 +66,7 @@ func (r *SourceGoldcastDataSource) Schema(ctx context.Context, req datasource.Sc } } -func (r *SourceGoldcastDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -86,8 +86,8 @@ func (r *SourceGoldcastDataSource) Configure(ctx context.Context, req datasource r.client = client } -func (r *SourceGoldcastDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data *SourceGoldcastDataSourceModel +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSourceModel var item types.Object resp.Diagnostics.Append(req.Config.Get(ctx, &item)...) @@ -105,10 +105,10 @@ func (r *SourceGoldcastDataSource) Read(ctx context.Context, req datasource.Read } sourceID := data.SourceID.ValueString() - request := operations.GetSourceGoldcastRequest{ + request := operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceGoldcast(ctx, request) + res, err := r.client.Sources.GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { diff --git a/internal/provider/source_goldcast_data_source_sdk.go b/internal/provider/source_googleanalyticsv4serviceaccountonly_data_source_sdk.go similarity index 82% rename from internal/provider/source_goldcast_data_source_sdk.go rename to internal/provider/source_googleanalyticsv4serviceaccountonly_data_source_sdk.go index 9e5671d82..3b1d21247 100644 --- a/internal/provider/source_goldcast_data_source_sdk.go +++ b/internal/provider/source_googleanalyticsv4serviceaccountonly_data_source_sdk.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *SourceGoldcastDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { if resp != nil { configurationResult, _ := json.Marshal(resp.Configuration) r.Configuration = types.StringValue(string(configurationResult)) diff --git a/internal/provider/source_datadog_resource.go b/internal/provider/source_googleanalyticsv4serviceaccountonly_resource.go similarity index 61% rename from internal/provider/source_datadog_resource.go rename to internal/provider/source_googleanalyticsv4serviceaccountonly_resource.go index 43737d3b7..d4c464b2a 100644 --- a/internal/provider/source_datadog_resource.go +++ b/internal/provider/source_googleanalyticsv4serviceaccountonly_resource.go @@ -10,13 +10,12 @@ import ( tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" - "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" + "github.com/airbytehq/terraform-provider-airbyte/internal/validators" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" @@ -24,36 +23,36 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ resource.Resource = &SourceDatadogResource{} -var _ resource.ResourceWithImportState = &SourceDatadogResource{} +var _ resource.Resource = &SourceGoogleAnalyticsV4ServiceAccountOnlyResource{} +var _ resource.ResourceWithImportState = &SourceGoogleAnalyticsV4ServiceAccountOnlyResource{} -func NewSourceDatadogResource() resource.Resource { - return &SourceDatadogResource{} +func NewSourceGoogleAnalyticsV4ServiceAccountOnlyResource() resource.Resource { + return &SourceGoogleAnalyticsV4ServiceAccountOnlyResource{} } -// SourceDatadogResource defines the resource implementation. -type SourceDatadogResource struct { +// SourceGoogleAnalyticsV4ServiceAccountOnlyResource defines the resource implementation. +type SourceGoogleAnalyticsV4ServiceAccountOnlyResource struct { client *sdk.SDK } -// SourceDatadogResourceModel describes the resource data model. -type SourceDatadogResourceModel struct { - Configuration tfTypes.SourceDatadog `tfsdk:"configuration"` - DefinitionID types.String `tfsdk:"definition_id"` - Name types.String `tfsdk:"name"` - SecretID types.String `tfsdk:"secret_id"` - SourceID types.String `tfsdk:"source_id"` - SourceType types.String `tfsdk:"source_type"` - WorkspaceID types.String `tfsdk:"workspace_id"` +// SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel describes the resource data model. +type SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel struct { + Configuration tfTypes.SourceGoogleAnalyticsV4ServiceAccountOnly `tfsdk:"configuration"` + DefinitionID types.String `tfsdk:"definition_id"` + Name types.String `tfsdk:"name"` + SecretID types.String `tfsdk:"secret_id"` + SourceID types.String `tfsdk:"source_id"` + SourceType types.String `tfsdk:"source_type"` + WorkspaceID types.String `tfsdk:"workspace_id"` } -func (r *SourceDatadogResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_datadog" +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_google_analytics_v4_service_account_only" } -func (r *SourceDatadogResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceDatadog Resource", + MarkdownDescription: "SourceGoogleAnalyticsV4ServiceAccountOnly Resource", Attributes: map[string]schema.Attribute{ "configuration": schema.SingleNestedAttribute{ PlanModifiers: []planmodifier.Object{ @@ -61,76 +60,51 @@ func (r *SourceDatadogResource) Schema(ctx context.Context, req resource.SchemaR }, Required: true, Attributes: map[string]schema.Attribute{ - "api_key": schema.StringAttribute{ - Required: true, - Sensitive: true, - Description: `Datadog API key`, - }, - "application_key": schema.StringAttribute{ - Required: true, - Sensitive: true, - Description: `Datadog application key`, - }, - "end_date": schema.StringAttribute{ - Optional: true, - Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs.`, - }, - "max_records_per_request": schema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(5000), - Description: `Maximum number of records to collect per request. Default: 5000`, - }, - "queries": schema.ListNestedAttribute{ + "credentials": schema.SingleNestedAttribute{ Optional: true, - NestedObject: schema.NestedAttributeObject{ - Attributes: map[string]schema.Attribute{ - "data_source": schema.StringAttribute{ - Required: true, - Description: `A data source that is powered by the platform. must be one of ["metrics", "cloud_cost", "logs", "rum"]`, - Validators: []validator.String{ - stringvalidator.OneOf( - "metrics", - "cloud_cost", - "logs", - "rum", - ), + Attributes: map[string]schema.Attribute{ + "service_account_key_authentication": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "credentials_json": schema.StringAttribute{ + Required: true, + Description: `The JSON key of the service account to use for authorization`, }, }, - "name": schema.StringAttribute{ - Required: true, - Description: `The variable name for use in queries.`, - }, - "query": schema.StringAttribute{ - Required: true, - Description: `A classic query string.`, - }, }, }, - Description: `List of queries to be run and used as inputs.`, + Description: `Credentials for the service`, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, }, - "query": schema.StringAttribute{ + "custom_reports": schema.StringAttribute{ Optional: true, - Description: `The search query. This just applies to Incremental syncs. If empty, it'll collect all logs.`, + Description: `A JSON array describing the custom reports you want to sync from Google Analytics. See the docs for more information about the exact format you can use to fill out this field.`, }, - "site": schema.StringAttribute{ - Computed: true, + "end_date": schema.StringAttribute{ Optional: true, - Default: stringdefault.StaticString("datadoghq.com"), - Description: `The site where Datadog data resides in. must be one of ["datadoghq.com", "us3.datadoghq.com", "us5.datadoghq.com", "datadoghq.eu", "ddog-gov.com"]; Default: "datadoghq.com"`, + Description: `The date in the format YYYY-MM-DD. Any data after this date will not be replicated.`, Validators: []validator.String{ - stringvalidator.OneOf( - "datadoghq.com", - "us3.datadoghq.com", - "us5.datadoghq.com", - "datadoghq.eu", - "ddog-gov.com", - ), + validators.IsValidDate(), }, }, "start_date": schema.StringAttribute{ + Required: true, + Description: `The date in the format YYYY-MM-DD. Any data before this date will not be replicated.`, + Validators: []validator.String{ + validators.IsValidDate(), + }, + }, + "view_id": schema.StringAttribute{ + Required: true, + Description: `The ID for the Google Analytics View you want to fetch data from. This can be found from the Google Analytics Account Explorer.`, + }, + "window_in_days": schema.Int64Attribute{ + Computed: true, Optional: true, - Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs.`, + Default: int64default.StaticInt64(1), + Description: `The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the the docs. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. . Default: 1`, }, }, }, @@ -177,7 +151,7 @@ func (r *SourceDatadogResource) Schema(ctx context.Context, req resource.SchemaR } } -func (r *SourceDatadogResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -197,8 +171,8 @@ func (r *SourceDatadogResource) Configure(ctx context.Context, req resource.Conf r.client = client } -func (r *SourceDatadogResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *SourceDatadogResourceModel +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -215,8 +189,8 @@ func (r *SourceDatadogResource) Create(ctx context.Context, req resource.CreateR return } - request := data.ToSharedSourceDatadogCreateRequest() - res, err := r.client.Sources.CreateSourceDatadog(ctx, request) + request := data.ToSharedSourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest() + res, err := r.client.Sources.CreateSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -239,10 +213,10 @@ func (r *SourceDatadogResource) Create(ctx context.Context, req resource.CreateR data.RefreshFromSharedSourceResponse(res.SourceResponse) refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceID := data.SourceID.ValueString() - request1 := operations.GetSourceDatadogRequest{ + request1 := operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ SourceID: sourceID, } - res1, err := r.client.Sources.GetSourceDatadog(ctx, request1) + res1, err := r.client.Sources.GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -269,8 +243,8 @@ func (r *SourceDatadogResource) Create(ctx context.Context, req resource.CreateR resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceDatadogResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *SourceDatadogResourceModel +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -288,10 +262,10 @@ func (r *SourceDatadogResource) Read(ctx context.Context, req resource.ReadReque } sourceID := data.SourceID.ValueString() - request := operations.GetSourceDatadogRequest{ + request := operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceDatadog(ctx, request) + res, err := r.client.Sources.GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -321,8 +295,8 @@ func (r *SourceDatadogResource) Read(ctx context.Context, req resource.ReadReque resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceDatadogResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *SourceDatadogResourceModel +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -335,13 +309,13 @@ func (r *SourceDatadogResource) Update(ctx context.Context, req resource.UpdateR return } - sourceDatadogPutRequest := data.ToSharedSourceDatadogPutRequest() + sourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest := data.ToSharedSourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest() sourceID := data.SourceID.ValueString() - request := operations.PutSourceDatadogRequest{ - SourceDatadogPutRequest: sourceDatadogPutRequest, - SourceID: sourceID, + request := operations.PutSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ + SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest: sourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest, + SourceID: sourceID, } - res, err := r.client.Sources.PutSourceDatadog(ctx, request) + res, err := r.client.Sources.PutSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -359,10 +333,10 @@ func (r *SourceDatadogResource) Update(ctx context.Context, req resource.UpdateR } refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceId1 := data.SourceID.ValueString() - request1 := operations.GetSourceDatadogRequest{ + request1 := operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ SourceID: sourceId1, } - res1, err := r.client.Sources.GetSourceDatadog(ctx, request1) + res1, err := r.client.Sources.GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -389,8 +363,8 @@ func (r *SourceDatadogResource) Update(ctx context.Context, req resource.UpdateR resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceDatadogResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *SourceDatadogResourceModel +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -408,10 +382,10 @@ func (r *SourceDatadogResource) Delete(ctx context.Context, req resource.DeleteR } sourceID := data.SourceID.ValueString() - request := operations.DeleteSourceDatadogRequest{ + request := operations.DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyRequest{ SourceID: sourceID, } - res, err := r.client.Sources.DeleteSourceDatadog(ctx, request) + res, err := r.client.Sources.DeleteSourceGoogleAnalyticsV4ServiceAccountOnly(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -430,6 +404,6 @@ func (r *SourceDatadogResource) Delete(ctx context.Context, req resource.DeleteR } -func (r *SourceDatadogResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("source_id"), req.ID)...) } diff --git a/internal/provider/source_googleanalyticsv4serviceaccountonly_resource_sdk.go b/internal/provider/source_googleanalyticsv4serviceaccountonly_resource_sdk.go new file mode 100644 index 000000000..33000ed6a --- /dev/null +++ b/internal/provider/source_googleanalyticsv4serviceaccountonly_resource_sdk.go @@ -0,0 +1,140 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + customTypes "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/types" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel) ToSharedSourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest() *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest { + var credentials *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials + if r.Configuration.Credentials != nil { + var sourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication + if r.Configuration.Credentials.ServiceAccountKeyAuthentication != nil { + credentialsJSON := r.Configuration.Credentials.ServiceAccountKeyAuthentication.CredentialsJSON.ValueString() + sourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication = &shared.SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication{ + CredentialsJSON: credentialsJSON, + } + } + if sourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication != nil { + credentials = &shared.SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials{ + SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication: sourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication, + } + } + } + customReports := new(string) + if !r.Configuration.CustomReports.IsUnknown() && !r.Configuration.CustomReports.IsNull() { + *customReports = r.Configuration.CustomReports.ValueString() + } else { + customReports = nil + } + endDate := new(customTypes.Date) + if !r.Configuration.EndDate.IsUnknown() && !r.Configuration.EndDate.IsNull() { + endDate = customTypes.MustNewDateFromString(r.Configuration.EndDate.ValueString()) + } else { + endDate = nil + } + startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) + viewID := r.Configuration.ViewID.ValueString() + windowInDays := new(int64) + if !r.Configuration.WindowInDays.IsUnknown() && !r.Configuration.WindowInDays.IsNull() { + *windowInDays = r.Configuration.WindowInDays.ValueInt64() + } else { + windowInDays = nil + } + configuration := shared.SourceGoogleAnalyticsV4ServiceAccountOnly{ + Credentials: credentials, + CustomReports: customReports, + EndDate: endDate, + StartDate: startDate, + ViewID: viewID, + WindowInDays: windowInDays, + } + definitionID := new(string) + if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { + *definitionID = r.DefinitionID.ValueString() + } else { + definitionID = nil + } + name := r.Name.ValueString() + secretID := new(string) + if !r.SecretID.IsUnknown() && !r.SecretID.IsNull() { + *secretID = r.SecretID.ValueString() + } else { + secretID = nil + } + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest{ + Configuration: configuration, + DefinitionID: definitionID, + Name: name, + SecretID: secretID, + WorkspaceID: workspaceID, + } + return &out +} + +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { + if resp != nil { + r.Name = types.StringValue(resp.Name) + r.SourceID = types.StringValue(resp.SourceID) + r.SourceType = types.StringValue(resp.SourceType) + r.WorkspaceID = types.StringValue(resp.WorkspaceID) + } +} + +func (r *SourceGoogleAnalyticsV4ServiceAccountOnlyResourceModel) ToSharedSourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest() *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest { + var credentials *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials + if r.Configuration.Credentials != nil { + var sourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication + if r.Configuration.Credentials.ServiceAccountKeyAuthentication != nil { + credentialsJSON := r.Configuration.Credentials.ServiceAccountKeyAuthentication.CredentialsJSON.ValueString() + sourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication = &shared.SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication{ + CredentialsJSON: credentialsJSON, + } + } + if sourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication != nil { + credentials = &shared.SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials{ + SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication: sourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication, + } + } + } + customReports := new(string) + if !r.Configuration.CustomReports.IsUnknown() && !r.Configuration.CustomReports.IsNull() { + *customReports = r.Configuration.CustomReports.ValueString() + } else { + customReports = nil + } + endDate := new(customTypes.Date) + if !r.Configuration.EndDate.IsUnknown() && !r.Configuration.EndDate.IsNull() { + endDate = customTypes.MustNewDateFromString(r.Configuration.EndDate.ValueString()) + } else { + endDate = nil + } + startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) + viewID := r.Configuration.ViewID.ValueString() + windowInDays := new(int64) + if !r.Configuration.WindowInDays.IsUnknown() && !r.Configuration.WindowInDays.IsNull() { + *windowInDays = r.Configuration.WindowInDays.ValueInt64() + } else { + windowInDays = nil + } + configuration := shared.SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate{ + Credentials: credentials, + CustomReports: customReports, + EndDate: endDate, + StartDate: startDate, + ViewID: viewID, + WindowInDays: windowInDays, + } + name := r.Name.ValueString() + workspaceID := r.WorkspaceID.ValueString() + out := shared.SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest{ + Configuration: configuration, + Name: name, + WorkspaceID: workspaceID, + } + return &out +} diff --git a/internal/provider/source_microsoftonedrive_resource.go b/internal/provider/source_microsoftonedrive_resource.go index 74025e1c7..868c377b2 100644 --- a/internal/provider/source_microsoftonedrive_resource.go +++ b/internal/provider/source_microsoftonedrive_resource.go @@ -189,9 +189,9 @@ func (r *SourceMicrosoftOnedriveResource) Schema(ctx context.Context, req resour Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, @@ -323,44 +323,13 @@ func (r *SourceMicrosoftOnedriveResource) Schema(ctx context.Context, req resour Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, - "jsonl_format": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{}, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("avro_format"), - path.MatchRelative().AtParent().AtName("csv_format"), - path.MatchRelative().AtParent().AtName("parquet_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), - }...), - }, - }, - "parquet_format": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "decimal_as_float": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false`, - }, - }, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("avro_format"), - path.MatchRelative().AtParent().AtName("csv_format"), - path.MatchRelative().AtParent().AtName("jsonl_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), - }...), - }, - }, - "unstructured_document_format": schema.SingleNestedAttribute{ + "document_file_type_format_experimental": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ "processing": schema.SingleNestedAttribute{ @@ -408,6 +377,37 @@ func (r *SourceMicrosoftOnedriveResource) Schema(ctx context.Context, req resour }...), }, }, + "jsonl_format": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), + path.MatchRelative().AtParent().AtName("parquet_format"), + }...), + }, + }, + "parquet_format": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "decimal_as_float": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false`, + }, + }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + }...), + }, + }, }, Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`, Validators: []validator.Object{ diff --git a/internal/provider/source_microsoftonedrive_resource_sdk.go b/internal/provider/source_microsoftonedrive_resource_sdk.go index db85bdbcc..c5e51a870 100644 --- a/internal/provider/source_microsoftonedrive_resource_sdk.go +++ b/internal/provider/source_microsoftonedrive_resource_sdk.go @@ -247,12 +247,12 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedriveCr SourceMicrosoftOnedriveParquetFormat: sourceMicrosoftOnedriveParquetFormat, } } - var sourceMicrosoftOnedriveUnstructuredDocumentFormat *shared.SourceMicrosoftOnedriveUnstructuredDocumentFormat - if streamsItem.Format.UnstructuredDocumentFormat != nil { + var sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental *shared.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental + if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { var processing *shared.SourceMicrosoftOnedriveProcessing - if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { var sourceMicrosoftOnedriveLocal *shared.SourceMicrosoftOnedriveLocal - if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { sourceMicrosoftOnedriveLocal = &shared.SourceMicrosoftOnedriveLocal{} } if sourceMicrosoftOnedriveLocal != nil { @@ -262,26 +262,26 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedriveCr } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceMicrosoftOnedriveParsingStrategy) - if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { - *strategy = shared.SourceMicrosoftOnedriveParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) + if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { + *strategy = shared.SourceMicrosoftOnedriveParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) } else { strategy = nil } - sourceMicrosoftOnedriveUnstructuredDocumentFormat = &shared.SourceMicrosoftOnedriveUnstructuredDocumentFormat{ + sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental = &shared.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceMicrosoftOnedriveUnstructuredDocumentFormat != nil { + if sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental != nil { format = shared.SourceMicrosoftOnedriveFormat{ - SourceMicrosoftOnedriveUnstructuredDocumentFormat: sourceMicrosoftOnedriveUnstructuredDocumentFormat, + SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental: sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental, } } var globs []string = []string{} @@ -604,12 +604,12 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedrivePu SourceMicrosoftOnedriveUpdateParquetFormat: sourceMicrosoftOnedriveUpdateParquetFormat, } } - var unstructuredDocumentFormat *shared.UnstructuredDocumentFormat - if streamsItem.Format.UnstructuredDocumentFormat != nil { + var sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental *shared.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental + if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { var processing *shared.SourceMicrosoftOnedriveUpdateProcessing - if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { var sourceMicrosoftOnedriveUpdateLocal *shared.SourceMicrosoftOnedriveUpdateLocal - if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { sourceMicrosoftOnedriveUpdateLocal = &shared.SourceMicrosoftOnedriveUpdateLocal{} } if sourceMicrosoftOnedriveUpdateLocal != nil { @@ -619,26 +619,26 @@ func (r *SourceMicrosoftOnedriveResourceModel) ToSharedSourceMicrosoftOnedrivePu } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceMicrosoftOnedriveUpdateParsingStrategy) - if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { - *strategy = shared.SourceMicrosoftOnedriveUpdateParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) + if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { + *strategy = shared.SourceMicrosoftOnedriveUpdateParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) } else { strategy = nil } - unstructuredDocumentFormat = &shared.UnstructuredDocumentFormat{ + sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental = &shared.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if unstructuredDocumentFormat != nil { + if sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental != nil { format = shared.SourceMicrosoftOnedriveUpdateFormat{ - UnstructuredDocumentFormat: unstructuredDocumentFormat, + SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental: sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental, } } var globs []string = []string{} diff --git a/internal/provider/source_microsoftsharepoint_resource.go b/internal/provider/source_microsoftsharepoint_resource.go index 106e1706e..d63a7e9af 100644 --- a/internal/provider/source_microsoftsharepoint_resource.go +++ b/internal/provider/source_microsoftsharepoint_resource.go @@ -183,9 +183,9 @@ func (r *SourceMicrosoftSharepointResource) Schema(ctx context.Context, req reso Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, @@ -317,44 +317,13 @@ func (r *SourceMicrosoftSharepointResource) Schema(ctx context.Context, req reso Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, - "jsonl_format": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{}, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("avro_format"), - path.MatchRelative().AtParent().AtName("csv_format"), - path.MatchRelative().AtParent().AtName("parquet_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), - }...), - }, - }, - "parquet_format": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "decimal_as_float": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false`, - }, - }, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("avro_format"), - path.MatchRelative().AtParent().AtName("csv_format"), - path.MatchRelative().AtParent().AtName("jsonl_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), - }...), - }, - }, - "unstructured_document_format": schema.SingleNestedAttribute{ + "document_file_type_format_experimental": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ "processing": schema.SingleNestedAttribute{ @@ -402,6 +371,37 @@ func (r *SourceMicrosoftSharepointResource) Schema(ctx context.Context, req reso }...), }, }, + "jsonl_format": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), + path.MatchRelative().AtParent().AtName("parquet_format"), + }...), + }, + }, + "parquet_format": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "decimal_as_float": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false`, + }, + }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + }...), + }, + }, }, Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`, Validators: []validator.Object{ diff --git a/internal/provider/source_microsoftsharepoint_resource_sdk.go b/internal/provider/source_microsoftsharepoint_resource_sdk.go index 3636faa30..8c4be197e 100644 --- a/internal/provider/source_microsoftsharepoint_resource_sdk.go +++ b/internal/provider/source_microsoftsharepoint_resource_sdk.go @@ -246,12 +246,12 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi SourceMicrosoftSharepointParquetFormat: sourceMicrosoftSharepointParquetFormat, } } - var sourceMicrosoftSharepointUnstructuredDocumentFormat *shared.SourceMicrosoftSharepointUnstructuredDocumentFormat - if streamsItem.Format.UnstructuredDocumentFormat != nil { + var sourceMicrosoftSharepointDocumentFileTypeFormatExperimental *shared.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental + if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { var processing *shared.SourceMicrosoftSharepointProcessing - if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { var sourceMicrosoftSharepointLocal *shared.SourceMicrosoftSharepointLocal - if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { sourceMicrosoftSharepointLocal = &shared.SourceMicrosoftSharepointLocal{} } if sourceMicrosoftSharepointLocal != nil { @@ -261,26 +261,26 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceMicrosoftSharepointParsingStrategy) - if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { - *strategy = shared.SourceMicrosoftSharepointParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) + if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { + *strategy = shared.SourceMicrosoftSharepointParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) } else { strategy = nil } - sourceMicrosoftSharepointUnstructuredDocumentFormat = &shared.SourceMicrosoftSharepointUnstructuredDocumentFormat{ + sourceMicrosoftSharepointDocumentFileTypeFormatExperimental = &shared.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceMicrosoftSharepointUnstructuredDocumentFormat != nil { + if sourceMicrosoftSharepointDocumentFileTypeFormatExperimental != nil { format = shared.SourceMicrosoftSharepointFormat{ - SourceMicrosoftSharepointUnstructuredDocumentFormat: sourceMicrosoftSharepointUnstructuredDocumentFormat, + SourceMicrosoftSharepointDocumentFileTypeFormatExperimental: sourceMicrosoftSharepointDocumentFileTypeFormatExperimental, } } var globs []string = []string{} @@ -601,12 +601,12 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi SourceMicrosoftSharepointUpdateParquetFormat: sourceMicrosoftSharepointUpdateParquetFormat, } } - var sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat *shared.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat - if streamsItem.Format.UnstructuredDocumentFormat != nil { + var sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental *shared.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental + if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { var processing *shared.SourceMicrosoftSharepointUpdateProcessing - if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { var sourceMicrosoftSharepointUpdateLocal *shared.SourceMicrosoftSharepointUpdateLocal - if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { sourceMicrosoftSharepointUpdateLocal = &shared.SourceMicrosoftSharepointUpdateLocal{} } if sourceMicrosoftSharepointUpdateLocal != nil { @@ -616,26 +616,26 @@ func (r *SourceMicrosoftSharepointResourceModel) ToSharedSourceMicrosoftSharepoi } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceMicrosoftSharepointUpdateParsingStrategy) - if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { - *strategy = shared.SourceMicrosoftSharepointUpdateParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) + if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { + *strategy = shared.SourceMicrosoftSharepointUpdateParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) } else { strategy = nil } - sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat = &shared.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat{ + sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental = &shared.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat != nil { + if sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental != nil { format = shared.SourceMicrosoftSharepointUpdateFormat{ - SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat: sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat, + SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental: sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental, } } var globs []string = []string{} diff --git a/internal/provider/source_mysql_resource.go b/internal/provider/source_mysql_resource.go index 130c2f4ff..14bb6def0 100644 --- a/internal/provider/source_mysql_resource.go +++ b/internal/provider/source_mysql_resource.go @@ -92,12 +92,6 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq "read_changes_using_binary_log_cdc": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ - "initial_load_timeout_hours": schema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(8), - Description: `The amount of time an initial load is allowed to continue for before catching up on CDC logs. Default: 8`, - }, "initial_waiting_seconds": schema.Int64Attribute{ Computed: true, Optional: true, diff --git a/internal/provider/source_mysql_resource_sdk.go b/internal/provider/source_mysql_resource_sdk.go index 9137c9bd9..d3ced347f 100644 --- a/internal/provider/source_mysql_resource_sdk.go +++ b/internal/provider/source_mysql_resource_sdk.go @@ -31,12 +31,6 @@ func (r *SourceMysqlResourceModel) ToSharedSourceMysqlCreateRequest() *shared.So var replicationMethod shared.SourceMysqlUpdateMethod var sourceMysqlReadChangesUsingBinaryLogCDC *shared.SourceMysqlReadChangesUsingBinaryLogCDC if r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC != nil { - initialLoadTimeoutHours := new(int64) - if !r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialLoadTimeoutHours.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialLoadTimeoutHours.IsNull() { - *initialLoadTimeoutHours = r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialLoadTimeoutHours.ValueInt64() - } else { - initialLoadTimeoutHours = nil - } initialWaitingSeconds := new(int64) if !r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialWaitingSeconds.IsNull() { *initialWaitingSeconds = r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialWaitingSeconds.ValueInt64() @@ -56,7 +50,6 @@ func (r *SourceMysqlResourceModel) ToSharedSourceMysqlCreateRequest() *shared.So serverTimeZone = nil } sourceMysqlReadChangesUsingBinaryLogCDC = &shared.SourceMysqlReadChangesUsingBinaryLogCDC{ - InitialLoadTimeoutHours: initialLoadTimeoutHours, InitialWaitingSeconds: initialWaitingSeconds, InvalidCdcCursorPositionBehavior: invalidCdcCursorPositionBehavior, ServerTimeZone: serverTimeZone, @@ -290,12 +283,6 @@ func (r *SourceMysqlResourceModel) ToSharedSourceMysqlPutRequest() *shared.Sourc var replicationMethod shared.SourceMysqlUpdateUpdateMethod var readChangesUsingBinaryLogCDC *shared.ReadChangesUsingBinaryLogCDC if r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC != nil { - initialLoadTimeoutHours := new(int64) - if !r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialLoadTimeoutHours.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialLoadTimeoutHours.IsNull() { - *initialLoadTimeoutHours = r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialLoadTimeoutHours.ValueInt64() - } else { - initialLoadTimeoutHours = nil - } initialWaitingSeconds := new(int64) if !r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialWaitingSeconds.IsNull() { *initialWaitingSeconds = r.Configuration.ReplicationMethod.ReadChangesUsingBinaryLogCDC.InitialWaitingSeconds.ValueInt64() @@ -315,7 +302,6 @@ func (r *SourceMysqlResourceModel) ToSharedSourceMysqlPutRequest() *shared.Sourc serverTimeZone = nil } readChangesUsingBinaryLogCDC = &shared.ReadChangesUsingBinaryLogCDC{ - InitialLoadTimeoutHours: initialLoadTimeoutHours, InitialWaitingSeconds: initialWaitingSeconds, InvalidCdcCursorPositionBehavior: invalidCdcCursorPositionBehavior, ServerTimeZone: serverTimeZone, diff --git a/internal/provider/source_nytimes_resource.go b/internal/provider/source_nytimes_resource.go index ff7437cfb..208853b9e 100644 --- a/internal/provider/source_nytimes_resource.go +++ b/internal/provider/source_nytimes_resource.go @@ -10,6 +10,7 @@ import ( tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" + "github.com/airbytehq/terraform-provider-airbyte/internal/validators" "github.com/hashicorp/terraform-plugin-framework-validators/int64validator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/path" @@ -68,6 +69,9 @@ func (r *SourceNytimesResource) Schema(ctx context.Context, req resource.SchemaR "end_date": schema.StringAttribute{ Optional: true, Description: `End date to stop the article retrieval (format YYYY-MM)`, + Validators: []validator.String{ + validators.IsValidDate(), + }, }, "period": schema.Int64Attribute{ Required: true, @@ -94,6 +98,9 @@ func (r *SourceNytimesResource) Schema(ctx context.Context, req resource.SchemaR "start_date": schema.StringAttribute{ Required: true, Description: `Start date to begin the article retrieval (format YYYY-MM)`, + Validators: []validator.String{ + validators.IsValidDate(), + }, }, }, }, diff --git a/internal/provider/source_nytimes_resource_sdk.go b/internal/provider/source_nytimes_resource_sdk.go index d6dd58610..66a157143 100644 --- a/internal/provider/source_nytimes_resource_sdk.go +++ b/internal/provider/source_nytimes_resource_sdk.go @@ -4,14 +4,15 @@ package provider import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + customTypes "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/types" "github.com/hashicorp/terraform-plugin-framework/types" ) func (r *SourceNytimesResourceModel) ToSharedSourceNytimesCreateRequest() *shared.SourceNytimesCreateRequest { apiKey := r.Configuration.APIKey.ValueString() - endDate := new(string) + endDate := new(customTypes.Date) if !r.Configuration.EndDate.IsUnknown() && !r.Configuration.EndDate.IsNull() { - *endDate = r.Configuration.EndDate.ValueString() + endDate = customTypes.MustNewDateFromString(r.Configuration.EndDate.ValueString()) } else { endDate = nil } @@ -22,7 +23,7 @@ func (r *SourceNytimesResourceModel) ToSharedSourceNytimesCreateRequest() *share } else { shareType = nil } - startDate := r.Configuration.StartDate.ValueString() + startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) configuration := shared.SourceNytimes{ APIKey: apiKey, EndDate: endDate, @@ -65,9 +66,9 @@ func (r *SourceNytimesResourceModel) RefreshFromSharedSourceResponse(resp *share func (r *SourceNytimesResourceModel) ToSharedSourceNytimesPutRequest() *shared.SourceNytimesPutRequest { apiKey := r.Configuration.APIKey.ValueString() - endDate := new(string) + endDate := new(customTypes.Date) if !r.Configuration.EndDate.IsUnknown() && !r.Configuration.EndDate.IsNull() { - *endDate = r.Configuration.EndDate.ValueString() + endDate = customTypes.MustNewDateFromString(r.Configuration.EndDate.ValueString()) } else { endDate = nil } @@ -78,7 +79,7 @@ func (r *SourceNytimesResourceModel) ToSharedSourceNytimesPutRequest() *shared.S } else { shareType = nil } - startDate := r.Configuration.StartDate.ValueString() + startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString()) configuration := shared.SourceNytimesUpdate{ APIKey: apiKey, EndDate: endDate, diff --git a/internal/provider/source_orb_resource.go b/internal/provider/source_orb_resource.go index 1ae83f45a..2954a3cc3 100644 --- a/internal/provider/source_orb_resource.go +++ b/internal/provider/source_orb_resource.go @@ -10,14 +10,12 @@ import ( tfTypes "github.com/airbytehq/terraform-provider-airbyte/internal/provider/types" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/operations" - "github.com/airbytehq/terraform-provider-airbyte/internal/validators" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" ) @@ -88,9 +86,6 @@ func (r *SourceOrbResource) Schema(ctx context.Context, req resource.SchemaReque "start_date": schema.StringAttribute{ Required: true, Description: `UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the ` + "`" + `timeframe_start` + "`" + ` API parameter.`, - Validators: []validator.String{ - validators.IsRFC3339(), - }, }, "string_event_properties_keys": schema.ListAttribute{ Optional: true, diff --git a/internal/provider/source_orb_resource_sdk.go b/internal/provider/source_orb_resource_sdk.go index b6dbe5069..46902ed09 100644 --- a/internal/provider/source_orb_resource_sdk.go +++ b/internal/provider/source_orb_resource_sdk.go @@ -5,7 +5,6 @@ package provider import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" "github.com/hashicorp/terraform-plugin-framework/types" - "time" ) func (r *SourceOrbResourceModel) ToSharedSourceOrbCreateRequest() *shared.SourceOrbCreateRequest { @@ -32,7 +31,7 @@ func (r *SourceOrbResourceModel) ToSharedSourceOrbCreateRequest() *shared.Source } else { planID = nil } - startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + startDate := r.Configuration.StartDate.ValueString() var stringEventPropertiesKeys []string = []string{} for _, stringEventPropertiesKeysItem := range r.Configuration.StringEventPropertiesKeys { stringEventPropertiesKeys = append(stringEventPropertiesKeys, stringEventPropertiesKeysItem.ValueString()) @@ -110,7 +109,7 @@ func (r *SourceOrbResourceModel) ToSharedSourceOrbPutRequest() *shared.SourceOrb } else { planID = nil } - startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) + startDate := r.Configuration.StartDate.ValueString() var stringEventPropertiesKeys []string = []string{} for _, stringEventPropertiesKeysItem := range r.Configuration.StringEventPropertiesKeys { stringEventPropertiesKeys = append(stringEventPropertiesKeys, stringEventPropertiesKeysItem.ValueString()) diff --git a/internal/provider/source_datadog_data_source.go b/internal/provider/source_punkapi_data_source.go similarity index 78% rename from internal/provider/source_datadog_data_source.go rename to internal/provider/source_punkapi_data_source.go index 1ef35c65f..017c25811 100644 --- a/internal/provider/source_datadog_data_source.go +++ b/internal/provider/source_punkapi_data_source.go @@ -14,20 +14,20 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ datasource.DataSource = &SourceDatadogDataSource{} -var _ datasource.DataSourceWithConfigure = &SourceDatadogDataSource{} +var _ datasource.DataSource = &SourcePunkAPIDataSource{} +var _ datasource.DataSourceWithConfigure = &SourcePunkAPIDataSource{} -func NewSourceDatadogDataSource() datasource.DataSource { - return &SourceDatadogDataSource{} +func NewSourcePunkAPIDataSource() datasource.DataSource { + return &SourcePunkAPIDataSource{} } -// SourceDatadogDataSource is the data source implementation. -type SourceDatadogDataSource struct { +// SourcePunkAPIDataSource is the data source implementation. +type SourcePunkAPIDataSource struct { client *sdk.SDK } -// SourceDatadogDataSourceModel describes the data model. -type SourceDatadogDataSourceModel struct { +// SourcePunkAPIDataSourceModel describes the data model. +type SourcePunkAPIDataSourceModel struct { Configuration types.String `tfsdk:"configuration"` Name types.String `tfsdk:"name"` SourceID types.String `tfsdk:"source_id"` @@ -36,14 +36,14 @@ type SourceDatadogDataSourceModel struct { } // Metadata returns the data source type name. -func (r *SourceDatadogDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_datadog" +func (r *SourcePunkAPIDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_punk_api" } // Schema defines the schema for the data source. -func (r *SourceDatadogDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { +func (r *SourcePunkAPIDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceDatadog DataSource", + MarkdownDescription: "SourcePunkAPI DataSource", Attributes: map[string]schema.Attribute{ "configuration": schema.StringAttribute{ @@ -66,7 +66,7 @@ func (r *SourceDatadogDataSource) Schema(ctx context.Context, req datasource.Sch } } -func (r *SourceDatadogDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { +func (r *SourcePunkAPIDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -86,8 +86,8 @@ func (r *SourceDatadogDataSource) Configure(ctx context.Context, req datasource. r.client = client } -func (r *SourceDatadogDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data *SourceDatadogDataSourceModel +func (r *SourcePunkAPIDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data *SourcePunkAPIDataSourceModel var item types.Object resp.Diagnostics.Append(req.Config.Get(ctx, &item)...) @@ -105,10 +105,10 @@ func (r *SourceDatadogDataSource) Read(ctx context.Context, req datasource.ReadR } sourceID := data.SourceID.ValueString() - request := operations.GetSourceDatadogRequest{ + request := operations.GetSourcePunkAPIRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceDatadog(ctx, request) + res, err := r.client.Sources.GetSourcePunkAPI(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { diff --git a/internal/provider/source_datadog_data_source_sdk.go b/internal/provider/source_punkapi_data_source_sdk.go similarity index 90% rename from internal/provider/source_datadog_data_source_sdk.go rename to internal/provider/source_punkapi_data_source_sdk.go index 8384a4fbd..0ff63c7d4 100644 --- a/internal/provider/source_datadog_data_source_sdk.go +++ b/internal/provider/source_punkapi_data_source_sdk.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *SourceDatadogDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *SourcePunkAPIDataSourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { if resp != nil { configurationResult, _ := json.Marshal(resp.Configuration) r.Configuration = types.StringValue(string(configurationResult)) diff --git a/internal/provider/source_goldcast_resource.go b/internal/provider/source_punkapi_resource.go similarity index 75% rename from internal/provider/source_goldcast_resource.go rename to internal/provider/source_punkapi_resource.go index c4d3e88d4..8f10d4452 100644 --- a/internal/provider/source_goldcast_resource.go +++ b/internal/provider/source_punkapi_resource.go @@ -20,36 +20,36 @@ import ( ) // Ensure provider defined types fully satisfy framework interfaces. -var _ resource.Resource = &SourceGoldcastResource{} -var _ resource.ResourceWithImportState = &SourceGoldcastResource{} +var _ resource.Resource = &SourcePunkAPIResource{} +var _ resource.ResourceWithImportState = &SourcePunkAPIResource{} -func NewSourceGoldcastResource() resource.Resource { - return &SourceGoldcastResource{} +func NewSourcePunkAPIResource() resource.Resource { + return &SourcePunkAPIResource{} } -// SourceGoldcastResource defines the resource implementation. -type SourceGoldcastResource struct { +// SourcePunkAPIResource defines the resource implementation. +type SourcePunkAPIResource struct { client *sdk.SDK } -// SourceGoldcastResourceModel describes the resource data model. -type SourceGoldcastResourceModel struct { - Configuration tfTypes.SourceGoldcast `tfsdk:"configuration"` - DefinitionID types.String `tfsdk:"definition_id"` - Name types.String `tfsdk:"name"` - SecretID types.String `tfsdk:"secret_id"` - SourceID types.String `tfsdk:"source_id"` - SourceType types.String `tfsdk:"source_type"` - WorkspaceID types.String `tfsdk:"workspace_id"` +// SourcePunkAPIResourceModel describes the resource data model. +type SourcePunkAPIResourceModel struct { + Configuration tfTypes.SourcePunkAPI `tfsdk:"configuration"` + DefinitionID types.String `tfsdk:"definition_id"` + Name types.String `tfsdk:"name"` + SecretID types.String `tfsdk:"secret_id"` + SourceID types.String `tfsdk:"source_id"` + SourceType types.String `tfsdk:"source_type"` + WorkspaceID types.String `tfsdk:"workspace_id"` } -func (r *SourceGoldcastResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_source_goldcast" +func (r *SourcePunkAPIResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_source_punk_api" } -func (r *SourceGoldcastResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { +func (r *SourcePunkAPIResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "SourceGoldcast Resource", + MarkdownDescription: "SourcePunkAPI Resource", Attributes: map[string]schema.Attribute{ "configuration": schema.SingleNestedAttribute{ PlanModifiers: []planmodifier.Object{ @@ -57,10 +57,17 @@ func (r *SourceGoldcastResource) Schema(ctx context.Context, req resource.Schema }, Required: true, Attributes: map[string]schema.Attribute{ - "access_key": schema.StringAttribute{ + "brewed_after": schema.StringAttribute{ Required: true, - Sensitive: true, - Description: `Your API Access Key. See here. The key is case sensitive.`, + Description: `To extract specific data with Unique ID`, + }, + "brewed_before": schema.StringAttribute{ + Required: true, + Description: `To extract specific data with Unique ID`, + }, + "id": schema.StringAttribute{ + Optional: true, + Description: `To extract specific data with Unique ID`, }, }, }, @@ -107,7 +114,7 @@ func (r *SourceGoldcastResource) Schema(ctx context.Context, req resource.Schema } } -func (r *SourceGoldcastResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { +func (r *SourcePunkAPIResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { // Prevent panic if the provider has not been configured. if req.ProviderData == nil { return @@ -127,8 +134,8 @@ func (r *SourceGoldcastResource) Configure(ctx context.Context, req resource.Con r.client = client } -func (r *SourceGoldcastResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *SourceGoldcastResourceModel +func (r *SourcePunkAPIResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *SourcePunkAPIResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -145,8 +152,8 @@ func (r *SourceGoldcastResource) Create(ctx context.Context, req resource.Create return } - request := data.ToSharedSourceGoldcastCreateRequest() - res, err := r.client.Sources.CreateSourceGoldcast(ctx, request) + request := data.ToSharedSourcePunkAPICreateRequest() + res, err := r.client.Sources.CreateSourcePunkAPI(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -169,10 +176,10 @@ func (r *SourceGoldcastResource) Create(ctx context.Context, req resource.Create data.RefreshFromSharedSourceResponse(res.SourceResponse) refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceID := data.SourceID.ValueString() - request1 := operations.GetSourceGoldcastRequest{ + request1 := operations.GetSourcePunkAPIRequest{ SourceID: sourceID, } - res1, err := r.client.Sources.GetSourceGoldcast(ctx, request1) + res1, err := r.client.Sources.GetSourcePunkAPI(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -199,8 +206,8 @@ func (r *SourceGoldcastResource) Create(ctx context.Context, req resource.Create resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceGoldcastResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *SourceGoldcastResourceModel +func (r *SourcePunkAPIResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *SourcePunkAPIResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -218,10 +225,10 @@ func (r *SourceGoldcastResource) Read(ctx context.Context, req resource.ReadRequ } sourceID := data.SourceID.ValueString() - request := operations.GetSourceGoldcastRequest{ + request := operations.GetSourcePunkAPIRequest{ SourceID: sourceID, } - res, err := r.client.Sources.GetSourceGoldcast(ctx, request) + res, err := r.client.Sources.GetSourcePunkAPI(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -251,8 +258,8 @@ func (r *SourceGoldcastResource) Read(ctx context.Context, req resource.ReadRequ resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceGoldcastResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *SourceGoldcastResourceModel +func (r *SourcePunkAPIResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *SourcePunkAPIResourceModel var plan types.Object resp.Diagnostics.Append(req.Plan.Get(ctx, &plan)...) @@ -265,13 +272,13 @@ func (r *SourceGoldcastResource) Update(ctx context.Context, req resource.Update return } - sourceGoldcastPutRequest := data.ToSharedSourceGoldcastPutRequest() + sourcePunkAPIPutRequest := data.ToSharedSourcePunkAPIPutRequest() sourceID := data.SourceID.ValueString() - request := operations.PutSourceGoldcastRequest{ - SourceGoldcastPutRequest: sourceGoldcastPutRequest, - SourceID: sourceID, + request := operations.PutSourcePunkAPIRequest{ + SourcePunkAPIPutRequest: sourcePunkAPIPutRequest, + SourceID: sourceID, } - res, err := r.client.Sources.PutSourceGoldcast(ctx, request) + res, err := r.client.Sources.PutSourcePunkAPI(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -289,10 +296,10 @@ func (r *SourceGoldcastResource) Update(ctx context.Context, req resource.Update } refreshPlan(ctx, plan, &data, resp.Diagnostics) sourceId1 := data.SourceID.ValueString() - request1 := operations.GetSourceGoldcastRequest{ + request1 := operations.GetSourcePunkAPIRequest{ SourceID: sourceId1, } - res1, err := r.client.Sources.GetSourceGoldcast(ctx, request1) + res1, err := r.client.Sources.GetSourcePunkAPI(ctx, request1) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res1 != nil && res1.RawResponse != nil { @@ -319,8 +326,8 @@ func (r *SourceGoldcastResource) Update(ctx context.Context, req resource.Update resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } -func (r *SourceGoldcastResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *SourceGoldcastResourceModel +func (r *SourcePunkAPIResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *SourcePunkAPIResourceModel var item types.Object resp.Diagnostics.Append(req.State.Get(ctx, &item)...) @@ -338,10 +345,10 @@ func (r *SourceGoldcastResource) Delete(ctx context.Context, req resource.Delete } sourceID := data.SourceID.ValueString() - request := operations.DeleteSourceGoldcastRequest{ + request := operations.DeleteSourcePunkAPIRequest{ SourceID: sourceID, } - res, err := r.client.Sources.DeleteSourceGoldcast(ctx, request) + res, err := r.client.Sources.DeleteSourcePunkAPI(ctx, request) if err != nil { resp.Diagnostics.AddError("failure to invoke API", err.Error()) if res != nil && res.RawResponse != nil { @@ -360,6 +367,6 @@ func (r *SourceGoldcastResource) Delete(ctx context.Context, req resource.Delete } -func (r *SourceGoldcastResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { +func (r *SourcePunkAPIResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("source_id"), req.ID)...) } diff --git a/internal/provider/source_clazar_resource_sdk.go b/internal/provider/source_punkapi_resource_sdk.go similarity index 50% rename from internal/provider/source_clazar_resource_sdk.go rename to internal/provider/source_punkapi_resource_sdk.go index 04fafc5b2..8948185fd 100644 --- a/internal/provider/source_clazar_resource_sdk.go +++ b/internal/provider/source_punkapi_resource_sdk.go @@ -7,12 +7,19 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -func (r *SourceClazarResourceModel) ToSharedSourceClazarCreateRequest() *shared.SourceClazarCreateRequest { - clientID := r.Configuration.ClientID.ValueString() - clientSecret := r.Configuration.ClientSecret.ValueString() - configuration := shared.SourceClazar{ - ClientID: clientID, - ClientSecret: clientSecret, +func (r *SourcePunkAPIResourceModel) ToSharedSourcePunkAPICreateRequest() *shared.SourcePunkAPICreateRequest { + brewedAfter := r.Configuration.BrewedAfter.ValueString() + brewedBefore := r.Configuration.BrewedBefore.ValueString() + id := new(string) + if !r.Configuration.ID.IsUnknown() && !r.Configuration.ID.IsNull() { + *id = r.Configuration.ID.ValueString() + } else { + id = nil + } + configuration := shared.SourcePunkAPI{ + BrewedAfter: brewedAfter, + BrewedBefore: brewedBefore, + ID: id, } definitionID := new(string) if !r.DefinitionID.IsUnknown() && !r.DefinitionID.IsNull() { @@ -28,7 +35,7 @@ func (r *SourceClazarResourceModel) ToSharedSourceClazarCreateRequest() *shared. secretID = nil } workspaceID := r.WorkspaceID.ValueString() - out := shared.SourceClazarCreateRequest{ + out := shared.SourcePunkAPICreateRequest{ Configuration: configuration, DefinitionID: definitionID, Name: name, @@ -38,7 +45,7 @@ func (r *SourceClazarResourceModel) ToSharedSourceClazarCreateRequest() *shared. return &out } -func (r *SourceClazarResourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { +func (r *SourcePunkAPIResourceModel) RefreshFromSharedSourceResponse(resp *shared.SourceResponse) { if resp != nil { r.Name = types.StringValue(resp.Name) r.SourceID = types.StringValue(resp.SourceID) @@ -47,16 +54,23 @@ func (r *SourceClazarResourceModel) RefreshFromSharedSourceResponse(resp *shared } } -func (r *SourceClazarResourceModel) ToSharedSourceClazarPutRequest() *shared.SourceClazarPutRequest { - clientID := r.Configuration.ClientID.ValueString() - clientSecret := r.Configuration.ClientSecret.ValueString() - configuration := shared.SourceClazarUpdate{ - ClientID: clientID, - ClientSecret: clientSecret, +func (r *SourcePunkAPIResourceModel) ToSharedSourcePunkAPIPutRequest() *shared.SourcePunkAPIPutRequest { + brewedAfter := r.Configuration.BrewedAfter.ValueString() + brewedBefore := r.Configuration.BrewedBefore.ValueString() + id := new(string) + if !r.Configuration.ID.IsUnknown() && !r.Configuration.ID.IsNull() { + *id = r.Configuration.ID.ValueString() + } else { + id = nil + } + configuration := shared.SourcePunkAPIUpdate{ + BrewedAfter: brewedAfter, + BrewedBefore: brewedBefore, + ID: id, } name := r.Name.ValueString() workspaceID := r.WorkspaceID.ValueString() - out := shared.SourceClazarPutRequest{ + out := shared.SourcePunkAPIPutRequest{ Configuration: configuration, Name: name, WorkspaceID: workspaceID, diff --git a/internal/provider/source_s3_resource.go b/internal/provider/source_s3_resource.go index c59740342..3a7261415 100644 --- a/internal/provider/source_s3_resource.go +++ b/internal/provider/source_s3_resource.go @@ -343,9 +343,9 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, @@ -489,44 +489,13 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), path.MatchRelative().AtParent().AtName("jsonl_format"), path.MatchRelative().AtParent().AtName("parquet_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), }...), }, }, - "jsonl_format": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{}, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("avro_format"), - path.MatchRelative().AtParent().AtName("csv_format"), - path.MatchRelative().AtParent().AtName("parquet_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), - }...), - }, - }, - "parquet_format": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "decimal_as_float": schema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false`, - }, - }, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("avro_format"), - path.MatchRelative().AtParent().AtName("csv_format"), - path.MatchRelative().AtParent().AtName("jsonl_format"), - path.MatchRelative().AtParent().AtName("unstructured_document_format"), - }...), - }, - }, - "unstructured_document_format": schema.SingleNestedAttribute{ + "document_file_type_format_experimental": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ "processing": schema.SingleNestedAttribute{ @@ -574,6 +543,37 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques }...), }, }, + "jsonl_format": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{}, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), + path.MatchRelative().AtParent().AtName("parquet_format"), + }...), + }, + }, + "parquet_format": schema.SingleNestedAttribute{ + Optional: true, + Attributes: map[string]schema.Attribute{ + "decimal_as_float": schema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false`, + }, + }, + Validators: []validator.Object{ + objectvalidator.ConflictsWith(path.Expressions{ + path.MatchRelative().AtParent().AtName("avro_format"), + path.MatchRelative().AtParent().AtName("csv_format"), + path.MatchRelative().AtParent().AtName("document_file_type_format_experimental"), + path.MatchRelative().AtParent().AtName("jsonl_format"), + }...), + }, + }, }, Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`, Validators: []validator.Object{ diff --git a/internal/provider/source_s3_resource_sdk.go b/internal/provider/source_s3_resource_sdk.go index d8b088f93..47dfcc087 100644 --- a/internal/provider/source_s3_resource_sdk.go +++ b/internal/provider/source_s3_resource_sdk.go @@ -461,12 +461,12 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 SourceS3ParquetFormat: sourceS3ParquetFormat, } } - var sourceS3UnstructuredDocumentFormat *shared.SourceS3UnstructuredDocumentFormat - if streamsItem.Format.UnstructuredDocumentFormat != nil { + var sourceS3DocumentFileTypeFormatExperimental *shared.SourceS3DocumentFileTypeFormatExperimental + if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { var processing *shared.SourceS3Processing - if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { var sourceS3Local *shared.SourceS3Local - if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { sourceS3Local = &shared.SourceS3Local{} } if sourceS3Local != nil { @@ -476,26 +476,26 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3CreateRequest() *shared.SourceS3 } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceS3ParsingStrategy) - if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { - *strategy = shared.SourceS3ParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) + if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { + *strategy = shared.SourceS3ParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) } else { strategy = nil } - sourceS3UnstructuredDocumentFormat = &shared.SourceS3UnstructuredDocumentFormat{ + sourceS3DocumentFileTypeFormatExperimental = &shared.SourceS3DocumentFileTypeFormatExperimental{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceS3UnstructuredDocumentFormat != nil { + if sourceS3DocumentFileTypeFormatExperimental != nil { format1 = shared.SourceS3Format{ - SourceS3UnstructuredDocumentFormat: sourceS3UnstructuredDocumentFormat, + SourceS3DocumentFileTypeFormatExperimental: sourceS3DocumentFileTypeFormatExperimental, } } var globs []string = []string{} @@ -1046,12 +1046,12 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put SourceS3UpdateParquetFormat: sourceS3UpdateParquetFormat, } } - var sourceS3UpdateUnstructuredDocumentFormat *shared.SourceS3UpdateUnstructuredDocumentFormat - if streamsItem.Format.UnstructuredDocumentFormat != nil { + var sourceS3UpdateDocumentFileTypeFormatExperimental *shared.SourceS3UpdateDocumentFileTypeFormatExperimental + if streamsItem.Format.DocumentFileTypeFormatExperimental != nil { var processing *shared.SourceS3UpdateProcessing - if streamsItem.Format.UnstructuredDocumentFormat.Processing != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing != nil { var sourceS3UpdateLocal *shared.SourceS3UpdateLocal - if streamsItem.Format.UnstructuredDocumentFormat.Processing.Local != nil { + if streamsItem.Format.DocumentFileTypeFormatExperimental.Processing.Local != nil { sourceS3UpdateLocal = &shared.SourceS3UpdateLocal{} } if sourceS3UpdateLocal != nil { @@ -1061,26 +1061,26 @@ func (r *SourceS3ResourceModel) ToSharedSourceS3PutRequest() *shared.SourceS3Put } } skipUnprocessableFiles := new(bool) - if !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.IsNull() { - *skipUnprocessableFiles = streamsItem.Format.UnstructuredDocumentFormat.SkipUnprocessableFiles.ValueBool() + if !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.IsNull() { + *skipUnprocessableFiles = streamsItem.Format.DocumentFileTypeFormatExperimental.SkipUnprocessableFiles.ValueBool() } else { skipUnprocessableFiles = nil } strategy := new(shared.SourceS3UpdateParsingStrategy) - if !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsUnknown() && !streamsItem.Format.UnstructuredDocumentFormat.Strategy.IsNull() { - *strategy = shared.SourceS3UpdateParsingStrategy(streamsItem.Format.UnstructuredDocumentFormat.Strategy.ValueString()) + if !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsUnknown() && !streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.IsNull() { + *strategy = shared.SourceS3UpdateParsingStrategy(streamsItem.Format.DocumentFileTypeFormatExperimental.Strategy.ValueString()) } else { strategy = nil } - sourceS3UpdateUnstructuredDocumentFormat = &shared.SourceS3UpdateUnstructuredDocumentFormat{ + sourceS3UpdateDocumentFileTypeFormatExperimental = &shared.SourceS3UpdateDocumentFileTypeFormatExperimental{ Processing: processing, SkipUnprocessableFiles: skipUnprocessableFiles, Strategy: strategy, } } - if sourceS3UpdateUnstructuredDocumentFormat != nil { + if sourceS3UpdateDocumentFileTypeFormatExperimental != nil { format1 = shared.SourceS3UpdateFormat{ - SourceS3UpdateUnstructuredDocumentFormat: sourceS3UpdateUnstructuredDocumentFormat, + SourceS3UpdateDocumentFileTypeFormatExperimental: sourceS3UpdateDocumentFileTypeFormatExperimental, } } var globs []string = []string{} diff --git a/internal/provider/source_shopify_resource.go b/internal/provider/source_shopify_resource.go index 0254c4400..750874e3d 100644 --- a/internal/provider/source_shopify_resource.go +++ b/internal/provider/source_shopify_resource.go @@ -124,12 +124,6 @@ func (r *SourceShopifyResource) Schema(ctx context.Context, req resource.SchemaR Default: booldefault.StaticBool(false), Description: `Defines which API type (REST/BULK) to use to fetch ` + "`" + `Transactions` + "`" + ` data. If you are a ` + "`" + `Shopify Plus` + "`" + ` user, leave the default value to speed up the fetch. Default: false`, }, - "job_termination_threshold": schema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(3600), - Description: `The max time in seconds, after which the single BULK Job should be ` + "`" + `CANCELED` + "`" + ` and retried. The bigger the value the longer the BULK Job is allowed to run. Default: 3600`, - }, "shop": schema.StringAttribute{ Required: true, Description: `The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'.`, diff --git a/internal/provider/source_shopify_resource_sdk.go b/internal/provider/source_shopify_resource_sdk.go index 5b5553ef1..817b741c3 100644 --- a/internal/provider/source_shopify_resource_sdk.go +++ b/internal/provider/source_shopify_resource_sdk.go @@ -67,12 +67,6 @@ func (r *SourceShopifyResourceModel) ToSharedSourceShopifyCreateRequest() *share } else { fetchTransactionsUserID = nil } - jobTerminationThreshold := new(int64) - if !r.Configuration.JobTerminationThreshold.IsUnknown() && !r.Configuration.JobTerminationThreshold.IsNull() { - *jobTerminationThreshold = r.Configuration.JobTerminationThreshold.ValueInt64() - } else { - jobTerminationThreshold = nil - } shop := r.Configuration.Shop.ValueString() startDate := new(customTypes.Date) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { @@ -84,7 +78,6 @@ func (r *SourceShopifyResourceModel) ToSharedSourceShopifyCreateRequest() *share BulkWindowInDays: bulkWindowInDays, Credentials: credentials, FetchTransactionsUserID: fetchTransactionsUserID, - JobTerminationThreshold: jobTerminationThreshold, Shop: shop, StartDate: startDate, } @@ -180,12 +173,6 @@ func (r *SourceShopifyResourceModel) ToSharedSourceShopifyPutRequest() *shared.S } else { fetchTransactionsUserID = nil } - jobTerminationThreshold := new(int64) - if !r.Configuration.JobTerminationThreshold.IsUnknown() && !r.Configuration.JobTerminationThreshold.IsNull() { - *jobTerminationThreshold = r.Configuration.JobTerminationThreshold.ValueInt64() - } else { - jobTerminationThreshold = nil - } shop := r.Configuration.Shop.ValueString() startDate := new(customTypes.Date) if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() { @@ -197,7 +184,6 @@ func (r *SourceShopifyResourceModel) ToSharedSourceShopifyPutRequest() *shared.S BulkWindowInDays: bulkWindowInDays, Credentials: credentials, FetchTransactionsUserID: fetchTransactionsUserID, - JobTerminationThreshold: jobTerminationThreshold, Shop: shop, StartDate: startDate, } diff --git a/internal/provider/source_snowflake_resource.go b/internal/provider/source_snowflake_resource.go index 00e06a22a..c17f62cce 100644 --- a/internal/provider/source_snowflake_resource.go +++ b/internal/provider/source_snowflake_resource.go @@ -63,31 +63,6 @@ func (r *SourceSnowflakeResource) Schema(ctx context.Context, req resource.Schem "credentials": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ - "key_pair_authentication": schema.SingleNestedAttribute{ - Optional: true, - Attributes: map[string]schema.Attribute{ - "private_key": schema.StringAttribute{ - Required: true, - Sensitive: true, - Description: `RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key.`, - }, - "private_key_password": schema.StringAttribute{ - Optional: true, - Sensitive: true, - Description: `Passphrase for private key`, - }, - "username": schema.StringAttribute{ - Required: true, - Description: `The username you created to allow Airbyte to access the database.`, - }, - }, - Validators: []validator.Object{ - objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("o_auth20"), - path.MatchRelative().AtParent().AtName("username_and_password"), - }...), - }, - }, "o_auth20": schema.SingleNestedAttribute{ Optional: true, Attributes: map[string]schema.Attribute{ @@ -112,7 +87,6 @@ func (r *SourceSnowflakeResource) Schema(ctx context.Context, req resource.Schem }, Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("key_pair_authentication"), path.MatchRelative().AtParent().AtName("username_and_password"), }...), }, @@ -132,7 +106,6 @@ func (r *SourceSnowflakeResource) Schema(ctx context.Context, req resource.Schem }, Validators: []validator.Object{ objectvalidator.ConflictsWith(path.Expressions{ - path.MatchRelative().AtParent().AtName("key_pair_authentication"), path.MatchRelative().AtParent().AtName("o_auth20"), }...), }, diff --git a/internal/provider/source_snowflake_resource_sdk.go b/internal/provider/source_snowflake_resource_sdk.go index eb99d78cf..24bbf9d1f 100644 --- a/internal/provider/source_snowflake_resource_sdk.go +++ b/internal/provider/source_snowflake_resource_sdk.go @@ -38,34 +38,13 @@ func (r *SourceSnowflakeResourceModel) ToSharedSourceSnowflakeCreateRequest() *s SourceSnowflakeOAuth20: sourceSnowflakeOAuth20, } } - var sourceSnowflakeKeyPairAuthentication *shared.SourceSnowflakeKeyPairAuthentication - if r.Configuration.Credentials.KeyPairAuthentication != nil { - privateKey := r.Configuration.Credentials.KeyPairAuthentication.PrivateKey.ValueString() - privateKeyPassword := new(string) - if !r.Configuration.Credentials.KeyPairAuthentication.PrivateKeyPassword.IsUnknown() && !r.Configuration.Credentials.KeyPairAuthentication.PrivateKeyPassword.IsNull() { - *privateKeyPassword = r.Configuration.Credentials.KeyPairAuthentication.PrivateKeyPassword.ValueString() - } else { - privateKeyPassword = nil - } - username := r.Configuration.Credentials.KeyPairAuthentication.Username.ValueString() - sourceSnowflakeKeyPairAuthentication = &shared.SourceSnowflakeKeyPairAuthentication{ - PrivateKey: privateKey, - PrivateKeyPassword: privateKeyPassword, - Username: username, - } - } - if sourceSnowflakeKeyPairAuthentication != nil { - credentials = &shared.SourceSnowflakeAuthorizationMethod{ - SourceSnowflakeKeyPairAuthentication: sourceSnowflakeKeyPairAuthentication, - } - } var sourceSnowflakeUsernameAndPassword *shared.SourceSnowflakeUsernameAndPassword if r.Configuration.Credentials.UsernameAndPassword != nil { password := r.Configuration.Credentials.UsernameAndPassword.Password.ValueString() - username1 := r.Configuration.Credentials.UsernameAndPassword.Username.ValueString() + username := r.Configuration.Credentials.UsernameAndPassword.Username.ValueString() sourceSnowflakeUsernameAndPassword = &shared.SourceSnowflakeUsernameAndPassword{ Password: password, - Username: username1, + Username: username, } } if sourceSnowflakeUsernameAndPassword != nil { @@ -163,34 +142,13 @@ func (r *SourceSnowflakeResourceModel) ToSharedSourceSnowflakePutRequest() *shar SourceSnowflakeUpdateOAuth20: sourceSnowflakeUpdateOAuth20, } } - var sourceSnowflakeUpdateKeyPairAuthentication *shared.SourceSnowflakeUpdateKeyPairAuthentication - if r.Configuration.Credentials.KeyPairAuthentication != nil { - privateKey := r.Configuration.Credentials.KeyPairAuthentication.PrivateKey.ValueString() - privateKeyPassword := new(string) - if !r.Configuration.Credentials.KeyPairAuthentication.PrivateKeyPassword.IsUnknown() && !r.Configuration.Credentials.KeyPairAuthentication.PrivateKeyPassword.IsNull() { - *privateKeyPassword = r.Configuration.Credentials.KeyPairAuthentication.PrivateKeyPassword.ValueString() - } else { - privateKeyPassword = nil - } - username := r.Configuration.Credentials.KeyPairAuthentication.Username.ValueString() - sourceSnowflakeUpdateKeyPairAuthentication = &shared.SourceSnowflakeUpdateKeyPairAuthentication{ - PrivateKey: privateKey, - PrivateKeyPassword: privateKeyPassword, - Username: username, - } - } - if sourceSnowflakeUpdateKeyPairAuthentication != nil { - credentials = &shared.SourceSnowflakeUpdateAuthorizationMethod{ - SourceSnowflakeUpdateKeyPairAuthentication: sourceSnowflakeUpdateKeyPairAuthentication, - } - } var sourceSnowflakeUpdateUsernameAndPassword *shared.SourceSnowflakeUpdateUsernameAndPassword if r.Configuration.Credentials.UsernameAndPassword != nil { password := r.Configuration.Credentials.UsernameAndPassword.Password.ValueString() - username1 := r.Configuration.Credentials.UsernameAndPassword.Username.ValueString() + username := r.Configuration.Credentials.UsernameAndPassword.Username.ValueString() sourceSnowflakeUpdateUsernameAndPassword = &shared.SourceSnowflakeUpdateUsernameAndPassword{ Password: password, - Username: username1, + Username: username, } } if sourceSnowflakeUpdateUsernameAndPassword != nil { diff --git a/internal/provider/source_tiktokmarketing_resource.go b/internal/provider/source_tiktokmarketing_resource.go index 93c0c7553..99ebe5117 100644 --- a/internal/provider/source_tiktokmarketing_resource.go +++ b/internal/provider/source_tiktokmarketing_resource.go @@ -135,7 +135,7 @@ func (r *SourceTiktokMarketingResource) Schema(ctx context.Context, req resource Computed: true, Optional: true, Default: booldefault.StaticBool(false), - Description: `Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. Default: false`, + Description: `Set to active if you want to include deleted data in reports. Default: false`, }, "start_date": schema.StringAttribute{ Computed: true, diff --git a/internal/provider/source_wikipediapageviews_resource.go b/internal/provider/source_wikipediapageviews_resource.go index 8d3a0cab5..17f6da3b7 100644 --- a/internal/provider/source_wikipediapageviews_resource.go +++ b/internal/provider/source_wikipediapageviews_resource.go @@ -83,7 +83,7 @@ func (r *SourceWikipediaPageviewsResource) Schema(ctx context.Context, req resou }, "start": schema.StringAttribute{ Required: true, - Description: `The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles.`, + Description: `The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format.`, }, }, }, diff --git a/internal/provider/types/queries.go b/internal/provider/types/aescbc_envelope_encryption.go similarity index 50% rename from internal/provider/types/queries.go rename to internal/provider/types/aescbc_envelope_encryption.go index 84234a7cc..426dae6ef 100644 --- a/internal/provider/types/queries.go +++ b/internal/provider/types/aescbc_envelope_encryption.go @@ -4,8 +4,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type Queries struct { - DataSource types.String `tfsdk:"data_source"` - Name types.String `tfsdk:"name"` - Query types.String `tfsdk:"query"` +type AESCBCEnvelopeEncryption struct { + KeyEncryptingKey types.String `tfsdk:"key_encrypting_key"` } diff --git a/internal/provider/types/authenticate_via_facebook_marketing_oauth.go b/internal/provider/types/authenticate_via_facebook_marketing_oauth.go deleted file mode 100644 index 0582e83c5..000000000 --- a/internal/provider/types/authenticate_via_facebook_marketing_oauth.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type AuthenticateViaFacebookMarketingOauth struct { - AccessToken types.String `tfsdk:"access_token"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` -} diff --git a/internal/provider/types/awss3_staging.go b/internal/provider/types/awss3_staging.go index b7a090990..acc3df2fd 100644 --- a/internal/provider/types/awss3_staging.go +++ b/internal/provider/types/awss3_staging.go @@ -5,11 +5,12 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type AWSS3Staging struct { - AccessKeyID types.String `tfsdk:"access_key_id"` - FileNamePattern types.String `tfsdk:"file_name_pattern"` - PurgeStagingData types.Bool `tfsdk:"purge_staging_data"` - S3BucketName types.String `tfsdk:"s3_bucket_name"` - S3BucketPath types.String `tfsdk:"s3_bucket_path"` - S3BucketRegion types.String `tfsdk:"s3_bucket_region"` - SecretAccessKey types.String `tfsdk:"secret_access_key"` + AccessKeyID types.String `tfsdk:"access_key_id"` + Encryption *DestinationRedshiftEncryption `tfsdk:"encryption"` + FileNamePattern types.String `tfsdk:"file_name_pattern"` + PurgeStagingData types.Bool `tfsdk:"purge_staging_data"` + S3BucketName types.String `tfsdk:"s3_bucket_name"` + S3BucketPath types.String `tfsdk:"s3_bucket_path"` + S3BucketRegion types.String `tfsdk:"s3_bucket_region"` + SecretAccessKey types.String `tfsdk:"secret_access_key"` } diff --git a/internal/provider/types/chroma_local_persistance.go b/internal/provider/types/chroma_local_persistance.go new file mode 100644 index 000000000..fed2b19f7 --- /dev/null +++ b/internal/provider/types/chroma_local_persistance.go @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type ChromaLocalPersistance struct { + CollectionName types.String `tfsdk:"collection_name"` + DestinationPath types.String `tfsdk:"destination_path"` +} diff --git a/internal/provider/types/destination_langchain.go b/internal/provider/types/destination_langchain.go new file mode 100644 index 000000000..e5b261aec --- /dev/null +++ b/internal/provider/types/destination_langchain.go @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +type DestinationLangchain struct { + Embedding DestinationLangchainEmbedding `tfsdk:"embedding"` + Indexing DestinationLangchainIndexing `tfsdk:"indexing"` + Processing DestinationLangchainProcessingConfigModel `tfsdk:"processing"` +} diff --git a/internal/provider/types/destination_langchain_embedding.go b/internal/provider/types/destination_langchain_embedding.go new file mode 100644 index 000000000..eceb05d98 --- /dev/null +++ b/internal/provider/types/destination_langchain_embedding.go @@ -0,0 +1,8 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +type DestinationLangchainEmbedding struct { + Fake *Fake `tfsdk:"fake" tfPlanOnly:"true"` + OpenAI *OpenAI `tfsdk:"open_ai" tfPlanOnly:"true"` +} diff --git a/internal/provider/types/destination_langchain_indexing.go b/internal/provider/types/destination_langchain_indexing.go new file mode 100644 index 000000000..39fa10525 --- /dev/null +++ b/internal/provider/types/destination_langchain_indexing.go @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +type DestinationLangchainIndexing struct { + ChromaLocalPersistance *ChromaLocalPersistance `tfsdk:"chroma_local_persistance" tfPlanOnly:"true"` + DocArrayHnswSearch *DocArrayHnswSearch `tfsdk:"doc_array_hnsw_search" tfPlanOnly:"true"` + Pinecone *DestinationLangchainPinecone `tfsdk:"pinecone" tfPlanOnly:"true"` +} diff --git a/internal/provider/types/destination_pinecone_indexing.go b/internal/provider/types/destination_langchain_pinecone.go similarity index 88% rename from internal/provider/types/destination_pinecone_indexing.go rename to internal/provider/types/destination_langchain_pinecone.go index 87ab6fe9a..e9531c11a 100644 --- a/internal/provider/types/destination_pinecone_indexing.go +++ b/internal/provider/types/destination_langchain_pinecone.go @@ -4,7 +4,7 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type DestinationPineconeIndexing struct { +type DestinationLangchainPinecone struct { Index types.String `tfsdk:"index"` PineconeEnvironment types.String `tfsdk:"pinecone_environment"` PineconeKey types.String `tfsdk:"pinecone_key"` diff --git a/internal/provider/types/destination_langchain_processing_config_model.go b/internal/provider/types/destination_langchain_processing_config_model.go new file mode 100644 index 000000000..681537b20 --- /dev/null +++ b/internal/provider/types/destination_langchain_processing_config_model.go @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type DestinationLangchainProcessingConfigModel struct { + ChunkOverlap types.Int64 `tfsdk:"chunk_overlap"` + ChunkSize types.Int64 `tfsdk:"chunk_size"` + TextFields []types.String `tfsdk:"text_fields"` +} diff --git a/internal/provider/types/destination_pinecone.go b/internal/provider/types/destination_pinecone.go index 9b4af1ad2..22ef2e9b1 100644 --- a/internal/provider/types/destination_pinecone.go +++ b/internal/provider/types/destination_pinecone.go @@ -6,7 +6,7 @@ import "github.com/hashicorp/terraform-plugin-framework/types" type DestinationPinecone struct { Embedding DestinationAstraEmbedding `tfsdk:"embedding"` - Indexing DestinationPineconeIndexing `tfsdk:"indexing"` + Indexing DestinationLangchainPinecone `tfsdk:"indexing"` OmitRawText types.Bool `tfsdk:"omit_raw_text"` Processing DestinationAstraProcessingConfigModel `tfsdk:"processing"` } diff --git a/internal/provider/types/destination_redshift_encryption.go b/internal/provider/types/destination_redshift_encryption.go new file mode 100644 index 000000000..5d1010ef5 --- /dev/null +++ b/internal/provider/types/destination_redshift_encryption.go @@ -0,0 +1,8 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +type DestinationRedshiftEncryption struct { + AESCBCEnvelopeEncryption *AESCBCEnvelopeEncryption `tfsdk:"aescbc_envelope_encryption" tfPlanOnly:"true"` + NoEncryption *Fake `tfsdk:"no_encryption" tfPlanOnly:"true"` +} diff --git a/internal/provider/types/source_goldcast.go b/internal/provider/types/doc_array_hnsw_search.go similarity index 63% rename from internal/provider/types/source_goldcast.go rename to internal/provider/types/doc_array_hnsw_search.go index 8b329520c..8c45d3040 100644 --- a/internal/provider/types/source_goldcast.go +++ b/internal/provider/types/doc_array_hnsw_search.go @@ -4,6 +4,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type SourceGoldcast struct { - AccessKey types.String `tfsdk:"access_key"` +type DocArrayHnswSearch struct { + DestinationPath types.String `tfsdk:"destination_path"` } diff --git a/internal/provider/types/read_changes_using_binary_log_cdc.go b/internal/provider/types/read_changes_using_binary_log_cdc.go index 55eb1604f..73721888a 100644 --- a/internal/provider/types/read_changes_using_binary_log_cdc.go +++ b/internal/provider/types/read_changes_using_binary_log_cdc.go @@ -5,7 +5,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type ReadChangesUsingBinaryLogCDC struct { - InitialLoadTimeoutHours types.Int64 `tfsdk:"initial_load_timeout_hours"` InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"` InvalidCdcCursorPositionBehavior types.String `tfsdk:"invalid_cdc_cursor_position_behavior"` ServerTimeZone types.String `tfsdk:"server_time_zone"` diff --git a/internal/provider/types/source_google_analytics_data_api_service_account_key_authentication.go b/internal/provider/types/service_account_key_authentication.go similarity index 74% rename from internal/provider/types/source_google_analytics_data_api_service_account_key_authentication.go rename to internal/provider/types/service_account_key_authentication.go index 73a73fe1d..a7e118c3b 100644 --- a/internal/provider/types/source_google_analytics_data_api_service_account_key_authentication.go +++ b/internal/provider/types/service_account_key_authentication.go @@ -4,6 +4,6 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" -type SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication struct { +type ServiceAccountKeyAuthentication struct { CredentialsJSON types.String `tfsdk:"credentials_json"` } diff --git a/internal/provider/types/source_aws_cloudtrail.go b/internal/provider/types/source_aws_cloudtrail.go index e2ab5f620..23df8b34a 100644 --- a/internal/provider/types/source_aws_cloudtrail.go +++ b/internal/provider/types/source_aws_cloudtrail.go @@ -5,9 +5,8 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceAwsCloudtrail struct { - AwsKeyID types.String `tfsdk:"aws_key_id"` - AwsRegionName types.String `tfsdk:"aws_region_name"` - AwsSecretKey types.String `tfsdk:"aws_secret_key"` - LookupAttributesFilter *SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody `tfsdk:"lookup_attributes_filter"` - StartDate types.String `tfsdk:"start_date"` + AwsKeyID types.String `tfsdk:"aws_key_id"` + AwsRegionName types.String `tfsdk:"aws_region_name"` + AwsSecretKey types.String `tfsdk:"aws_secret_key"` + StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_aws_cloudtrail_filter_applied_while_fetching_records_based_on_attribute_key_and_attribute_value_which_will_be_appended_on_the_request_body.go b/internal/provider/types/source_aws_cloudtrail_filter_applied_while_fetching_records_based_on_attribute_key_and_attribute_value_which_will_be_appended_on_the_request_body.go deleted file mode 100644 index 5f07c62bf..000000000 --- a/internal/provider/types/source_aws_cloudtrail_filter_applied_while_fetching_records_based_on_attribute_key_and_attribute_value_which_will_be_appended_on_the_request_body.go +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody struct { - AttributeKey types.String `tfsdk:"attribute_key"` - AttributeValue types.String `tfsdk:"attribute_value"` -} diff --git a/internal/provider/types/source_datadog.go b/internal/provider/types/source_datadog.go deleted file mode 100644 index f926ebc18..000000000 --- a/internal/provider/types/source_datadog.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type SourceDatadog struct { - APIKey types.String `tfsdk:"api_key"` - ApplicationKey types.String `tfsdk:"application_key"` - EndDate types.String `tfsdk:"end_date"` - MaxRecordsPerRequest types.Int64 `tfsdk:"max_records_per_request"` - Queries []Queries `tfsdk:"queries"` - Query types.String `tfsdk:"query"` - Site types.String `tfsdk:"site"` - StartDate types.String `tfsdk:"start_date"` -} diff --git a/internal/provider/types/source_facebook_marketing.go b/internal/provider/types/source_facebook_marketing.go index f027b28d5..901689df9 100644 --- a/internal/provider/types/source_facebook_marketing.go +++ b/internal/provider/types/source_facebook_marketing.go @@ -5,20 +5,19 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceFacebookMarketing struct { - AccessToken types.String `tfsdk:"access_token"` - AccountIds []types.String `tfsdk:"account_ids"` - ActionBreakdownsAllowEmpty types.Bool `tfsdk:"action_breakdowns_allow_empty"` - AdStatuses []types.String `tfsdk:"ad_statuses"` - AdsetStatuses []types.String `tfsdk:"adset_statuses"` - CampaignStatuses []types.String `tfsdk:"campaign_statuses"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - Credentials *SourceFacebookMarketingAuthentication `tfsdk:"credentials"` - CustomInsights []InsightConfig `tfsdk:"custom_insights"` - EndDate types.String `tfsdk:"end_date"` - FetchThumbnailImages types.Bool `tfsdk:"fetch_thumbnail_images"` - InsightsJobTimeout types.Int64 `tfsdk:"insights_job_timeout"` - InsightsLookbackWindow types.Int64 `tfsdk:"insights_lookback_window"` - PageSize types.Int64 `tfsdk:"page_size"` - StartDate types.String `tfsdk:"start_date"` + AccessToken types.String `tfsdk:"access_token"` + AccountIds []types.String `tfsdk:"account_ids"` + ActionBreakdownsAllowEmpty types.Bool `tfsdk:"action_breakdowns_allow_empty"` + AdStatuses []types.String `tfsdk:"ad_statuses"` + AdsetStatuses []types.String `tfsdk:"adset_statuses"` + CampaignStatuses []types.String `tfsdk:"campaign_statuses"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + CustomInsights []InsightConfig `tfsdk:"custom_insights"` + EndDate types.String `tfsdk:"end_date"` + FetchThumbnailImages types.Bool `tfsdk:"fetch_thumbnail_images"` + InsightsJobTimeout types.Int64 `tfsdk:"insights_job_timeout"` + InsightsLookbackWindow types.Int64 `tfsdk:"insights_lookback_window"` + PageSize types.Int64 `tfsdk:"page_size"` + StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_facebook_marketing_authentication.go b/internal/provider/types/source_facebook_marketing_authentication.go deleted file mode 100644 index f96d6c7b8..000000000 --- a/internal/provider/types/source_facebook_marketing_authentication.go +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type SourceFacebookMarketingAuthentication struct { - AuthenticateViaFacebookMarketingOauth *AuthenticateViaFacebookMarketingOauth `tfsdk:"authenticate_via_facebook_marketing_oauth" tfPlanOnly:"true"` - ServiceAccountKeyAuthentication *OAuth2AccessToken `tfsdk:"service_account_key_authentication" tfPlanOnly:"true"` -} diff --git a/internal/provider/types/source_google_analytics_data_api_credentials.go b/internal/provider/types/source_google_analytics_data_api_credentials.go index 7c8448ea5..cb0773a9c 100644 --- a/internal/provider/types/source_google_analytics_data_api_credentials.go +++ b/internal/provider/types/source_google_analytics_data_api_credentials.go @@ -3,6 +3,6 @@ package types type SourceGoogleAnalyticsDataAPICredentials struct { - AuthenticateViaGoogleOauth *AuthenticateViaGoogleOauth `tfsdk:"authenticate_via_google_oauth" tfPlanOnly:"true"` - ServiceAccountKeyAuthentication *SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication `tfsdk:"service_account_key_authentication" tfPlanOnly:"true"` + AuthenticateViaGoogleOauth *AuthenticateViaGoogleOauth `tfsdk:"authenticate_via_google_oauth" tfPlanOnly:"true"` + ServiceAccountKeyAuthentication *ServiceAccountKeyAuthentication `tfsdk:"service_account_key_authentication" tfPlanOnly:"true"` } diff --git a/internal/provider/types/source_google_analytics_v4_service_account_only.go b/internal/provider/types/source_google_analytics_v4_service_account_only.go new file mode 100644 index 000000000..c615f320a --- /dev/null +++ b/internal/provider/types/source_google_analytics_v4_service_account_only.go @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type SourceGoogleAnalyticsV4ServiceAccountOnly struct { + Credentials *SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials `tfsdk:"credentials"` + CustomReports types.String `tfsdk:"custom_reports"` + EndDate types.String `tfsdk:"end_date"` + StartDate types.String `tfsdk:"start_date"` + ViewID types.String `tfsdk:"view_id"` + WindowInDays types.Int64 `tfsdk:"window_in_days"` +} diff --git a/internal/provider/types/source_google_analytics_v4_service_account_only_credentials.go b/internal/provider/types/source_google_analytics_v4_service_account_only_credentials.go new file mode 100644 index 000000000..980ce2ac7 --- /dev/null +++ b/internal/provider/types/source_google_analytics_v4_service_account_only_credentials.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +type SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials struct { + ServiceAccountKeyAuthentication *ServiceAccountKeyAuthentication `tfsdk:"service_account_key_authentication" tfPlanOnly:"true"` +} diff --git a/internal/provider/types/source_microsoft_onedrive.go b/internal/provider/types/source_microsoft_onedrive.go index 12d218c24..238ad24ae 100644 --- a/internal/provider/types/source_microsoft_onedrive.go +++ b/internal/provider/types/source_microsoft_onedrive.go @@ -5,10 +5,10 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceMicrosoftOnedrive struct { - Credentials SourceMicrosoftOnedriveAuthentication `tfsdk:"credentials"` - DriveName types.String `tfsdk:"drive_name"` - FolderPath types.String `tfsdk:"folder_path"` - SearchScope types.String `tfsdk:"search_scope"` - StartDate types.String `tfsdk:"start_date"` - Streams []SourceMicrosoftOnedriveFileBasedStreamConfig `tfsdk:"streams"` + Credentials SourceMicrosoftOnedriveAuthentication `tfsdk:"credentials"` + DriveName types.String `tfsdk:"drive_name"` + FolderPath types.String `tfsdk:"folder_path"` + SearchScope types.String `tfsdk:"search_scope"` + StartDate types.String `tfsdk:"start_date"` + Streams []SourceGoogleDriveFileBasedStreamConfig `tfsdk:"streams"` } diff --git a/internal/provider/types/source_microsoft_onedrive_file_based_stream_config.go b/internal/provider/types/source_microsoft_onedrive_file_based_stream_config.go deleted file mode 100644 index 0bda64ec1..000000000 --- a/internal/provider/types/source_microsoft_onedrive_file_based_stream_config.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type SourceMicrosoftOnedriveFileBasedStreamConfig struct { - DaysToSyncIfHistoryIsFull types.Int64 `tfsdk:"days_to_sync_if_history_is_full"` - Format SourceMicrosoftOnedriveFormat `tfsdk:"format"` - Globs []types.String `tfsdk:"globs"` - InputSchema types.String `tfsdk:"input_schema"` - Name types.String `tfsdk:"name"` - PrimaryKey types.String `tfsdk:"primary_key"` - Schemaless types.Bool `tfsdk:"schemaless"` - ValidationPolicy types.String `tfsdk:"validation_policy"` -} diff --git a/internal/provider/types/source_microsoft_onedrive_format.go b/internal/provider/types/source_microsoft_onedrive_format.go deleted file mode 100644 index 0e0684cb0..000000000 --- a/internal/provider/types/source_microsoft_onedrive_format.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type SourceMicrosoftOnedriveFormat struct { - AvroFormat *AvroFormat `tfsdk:"avro_format" tfPlanOnly:"true"` - CSVFormat *SourceGoogleDriveCSVFormat `tfsdk:"csv_format" tfPlanOnly:"true"` - JsonlFormat *Fake `tfsdk:"jsonl_format" tfPlanOnly:"true"` - ParquetFormat *ParquetFormat `tfsdk:"parquet_format" tfPlanOnly:"true"` - UnstructuredDocumentFormat *DocumentFileTypeFormatExperimental `tfsdk:"unstructured_document_format" tfPlanOnly:"true"` -} diff --git a/internal/provider/types/source_microsoft_sharepoint.go b/internal/provider/types/source_microsoft_sharepoint.go index 967b400ab..b702d6217 100644 --- a/internal/provider/types/source_microsoft_sharepoint.go +++ b/internal/provider/types/source_microsoft_sharepoint.go @@ -5,9 +5,9 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceMicrosoftSharepoint struct { - Credentials SourceMicrosoftSharepointAuthentication `tfsdk:"credentials"` - FolderPath types.String `tfsdk:"folder_path"` - SearchScope types.String `tfsdk:"search_scope"` - StartDate types.String `tfsdk:"start_date"` - Streams []SourceMicrosoftOnedriveFileBasedStreamConfig `tfsdk:"streams"` + Credentials SourceMicrosoftSharepointAuthentication `tfsdk:"credentials"` + FolderPath types.String `tfsdk:"folder_path"` + SearchScope types.String `tfsdk:"search_scope"` + StartDate types.String `tfsdk:"start_date"` + Streams []SourceGoogleDriveFileBasedStreamConfig `tfsdk:"streams"` } diff --git a/internal/provider/types/source_punk_api.go b/internal/provider/types/source_punk_api.go new file mode 100644 index 000000000..7c8c3e222 --- /dev/null +++ b/internal/provider/types/source_punk_api.go @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types" + +type SourcePunkAPI struct { + BrewedAfter types.String `tfsdk:"brewed_after"` + BrewedBefore types.String `tfsdk:"brewed_before"` + ID types.String `tfsdk:"id"` +} diff --git a/internal/provider/types/source_s3.go b/internal/provider/types/source_s3.go index 9427420bd..a61dc250a 100644 --- a/internal/provider/types/source_s3.go +++ b/internal/provider/types/source_s3.go @@ -5,17 +5,17 @@ package types import "github.com/hashicorp/terraform-plugin-framework/types" type SourceS3 struct { - AwsAccessKeyID types.String `tfsdk:"aws_access_key_id"` - AwsSecretAccessKey types.String `tfsdk:"aws_secret_access_key"` - Bucket types.String `tfsdk:"bucket"` - Dataset types.String `tfsdk:"dataset"` - Endpoint types.String `tfsdk:"endpoint"` - Format *SourceS3FileFormat `tfsdk:"format"` - PathPattern types.String `tfsdk:"path_pattern"` - Provider *SourceS3S3AmazonWebServices `tfsdk:"provider"` - RegionName types.String `tfsdk:"region_name"` - RoleArn types.String `tfsdk:"role_arn"` - Schema types.String `tfsdk:"schema"` - StartDate types.String `tfsdk:"start_date"` - Streams []SourceS3FileBasedStreamConfig `tfsdk:"streams"` + AwsAccessKeyID types.String `tfsdk:"aws_access_key_id"` + AwsSecretAccessKey types.String `tfsdk:"aws_secret_access_key"` + Bucket types.String `tfsdk:"bucket"` + Dataset types.String `tfsdk:"dataset"` + Endpoint types.String `tfsdk:"endpoint"` + Format *SourceS3FileFormat `tfsdk:"format"` + PathPattern types.String `tfsdk:"path_pattern"` + Provider *SourceS3S3AmazonWebServices `tfsdk:"provider"` + RegionName types.String `tfsdk:"region_name"` + RoleArn types.String `tfsdk:"role_arn"` + Schema types.String `tfsdk:"schema"` + StartDate types.String `tfsdk:"start_date"` + Streams []FileBasedStreamConfig `tfsdk:"streams"` } diff --git a/internal/provider/types/source_s3_file_based_stream_config.go b/internal/provider/types/source_s3_file_based_stream_config.go deleted file mode 100644 index ea5e4791c..000000000 --- a/internal/provider/types/source_s3_file_based_stream_config.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type SourceS3FileBasedStreamConfig struct { - DaysToSyncIfHistoryIsFull types.Int64 `tfsdk:"days_to_sync_if_history_is_full"` - Format SourceS3Format `tfsdk:"format"` - Globs []types.String `tfsdk:"globs"` - InputSchema types.String `tfsdk:"input_schema"` - LegacyPrefix types.String `tfsdk:"legacy_prefix"` - Name types.String `tfsdk:"name"` - PrimaryKey types.String `tfsdk:"primary_key"` - Schemaless types.Bool `tfsdk:"schemaless"` - ValidationPolicy types.String `tfsdk:"validation_policy"` -} diff --git a/internal/provider/types/source_s3_format.go b/internal/provider/types/source_s3_format.go deleted file mode 100644 index 8611b8a42..000000000 --- a/internal/provider/types/source_s3_format.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -type SourceS3Format struct { - AvroFormat *AvroFormat `tfsdk:"avro_format" tfPlanOnly:"true"` - CSVFormat *CSVFormat `tfsdk:"csv_format" tfPlanOnly:"true"` - JsonlFormat *Fake `tfsdk:"jsonl_format" tfPlanOnly:"true"` - ParquetFormat *ParquetFormat `tfsdk:"parquet_format" tfPlanOnly:"true"` - UnstructuredDocumentFormat *DocumentFileTypeFormatExperimental `tfsdk:"unstructured_document_format" tfPlanOnly:"true"` -} diff --git a/internal/provider/types/source_shopify.go b/internal/provider/types/source_shopify.go index 63a448ed8..041896250 100644 --- a/internal/provider/types/source_shopify.go +++ b/internal/provider/types/source_shopify.go @@ -8,7 +8,6 @@ type SourceShopify struct { BulkWindowInDays types.Int64 `tfsdk:"bulk_window_in_days"` Credentials *SourceShopifyShopifyAuthorizationMethod `tfsdk:"credentials"` FetchTransactionsUserID types.Bool `tfsdk:"fetch_transactions_user_id"` - JobTerminationThreshold types.Int64 `tfsdk:"job_termination_threshold"` Shop types.String `tfsdk:"shop"` StartDate types.String `tfsdk:"start_date"` } diff --git a/internal/provider/types/source_snowflake_authorization_method.go b/internal/provider/types/source_snowflake_authorization_method.go index 4c0354bbb..b6338b33f 100644 --- a/internal/provider/types/source_snowflake_authorization_method.go +++ b/internal/provider/types/source_snowflake_authorization_method.go @@ -3,7 +3,6 @@ package types type SourceSnowflakeAuthorizationMethod struct { - KeyPairAuthentication *SourceSnowflakeKeyPairAuthentication `tfsdk:"key_pair_authentication" tfPlanOnly:"true"` - OAuth20 *SourceSnowflakeOAuth20 `tfsdk:"o_auth20" tfPlanOnly:"true"` - UsernameAndPassword *UsernamePassword `tfsdk:"username_and_password" tfPlanOnly:"true"` + OAuth20 *SourceSnowflakeOAuth20 `tfsdk:"o_auth20" tfPlanOnly:"true"` + UsernameAndPassword *UsernamePassword `tfsdk:"username_and_password" tfPlanOnly:"true"` } diff --git a/internal/provider/types/source_snowflake_key_pair_authentication.go b/internal/provider/types/source_snowflake_key_pair_authentication.go deleted file mode 100644 index 8b2a8302d..000000000 --- a/internal/provider/types/source_snowflake_key_pair_authentication.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package types - -import "github.com/hashicorp/terraform-plugin-framework/types" - -type SourceSnowflakeKeyPairAuthentication struct { - PrivateKey types.String `tfsdk:"private_key"` - PrivateKeyPassword types.String `tfsdk:"private_key_password"` - Username types.String `tfsdk:"username"` -} diff --git a/internal/sdk/destinations.go b/internal/sdk/destinations.go index 77476f31d..2678298dc 100644 --- a/internal/sdk/destinations.go +++ b/internal/sdk/destinations.go @@ -2085,6 +2085,127 @@ func (s *Destinations) CreateDestinationGoogleSheets(ctx context.Context, reques } +// CreateDestinationLangchain - Create a destination +// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. +func (s *Destinations) CreateDestinationLangchain(ctx context.Context, request *shared.DestinationLangchainCreateRequest, opts ...operations.Option) (*operations.CreateDestinationLangchainResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "createDestinationLangchain", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := url.JoinPath(baseURL, "/destinations") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.CreateDestinationLangchainResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + var out shared.DestinationResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.DestinationResponse = &out + default: + return nil, errors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // CreateDestinationMilvus - Create a destination // Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination. func (s *Destinations) CreateDestinationMilvus(ctx context.Context, request *shared.DestinationMilvusCreateRequest, opts ...operations.Option) (*operations.CreateDestinationMilvusResponse, error) { @@ -6394,6 +6515,110 @@ func (s *Destinations) DeleteDestinationGoogleSheets(ctx context.Context, reques } +// DeleteDestinationLangchain - Delete a Destination +func (s *Destinations) DeleteDestinationLangchain(ctx context.Context, request operations.DeleteDestinationLangchainRequest, opts ...operations.Option) (*operations.DeleteDestinationLangchainResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteDestinationLangchain", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/destinations/{destinationId}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.DeleteDestinationLangchainResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // DeleteDestinationMilvus - Delete a Destination func (s *Destinations) DeleteDestinationMilvus(ctx context.Context, request operations.DeleteDestinationMilvusRequest, opts ...operations.Option) (*operations.DeleteDestinationMilvusResponse, error) { hookCtx := hooks.HookContext{ @@ -10516,6 +10741,120 @@ func (s *Destinations) GetDestinationGoogleSheets(ctx context.Context, request o } +// GetDestinationLangchain - Get Destination details +func (s *Destinations) GetDestinationLangchain(ctx context.Context, request operations.GetDestinationLangchainRequest, opts ...operations.Option) (*operations.GetDestinationLangchainResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getDestinationLangchain", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/destinations/{destinationId}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.GetDestinationLangchainResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + var out shared.DestinationResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.DestinationResponse = &out + default: + return nil, errors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // GetDestinationMilvus - Get Destination details func (s *Destinations) GetDestinationMilvus(ctx context.Context, request operations.GetDestinationMilvusRequest, opts ...operations.Option) (*operations.GetDestinationMilvusResponse, error) { hookCtx := hooks.HookContext{ @@ -15028,6 +15367,116 @@ func (s *Destinations) PutDestinationGoogleSheets(ctx context.Context, request o } +// PutDestinationLangchain - Update a Destination fully +func (s *Destinations) PutDestinationLangchain(ctx context.Context, request operations.PutDestinationLangchainRequest, opts ...operations.Option) (*operations.PutDestinationLangchainResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putDestinationLangchain", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/destinations/{destinationId}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationLangchainPutRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.PutDestinationLangchainResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // PutDestinationMilvus - Update a Destination fully func (s *Destinations) PutDestinationMilvus(ctx context.Context, request operations.PutDestinationMilvusRequest, opts ...operations.Option) (*operations.PutDestinationMilvusResponse, error) { hookCtx := hooks.HookContext{ diff --git a/internal/sdk/models/operations/createsourcegoldcast.go b/internal/sdk/models/operations/createdestinationlangchain.go similarity index 59% rename from internal/sdk/models/operations/createsourcegoldcast.go rename to internal/sdk/models/operations/createdestinationlangchain.go index 7f0b376fb..7829a6e0c 100644 --- a/internal/sdk/models/operations/createsourcegoldcast.go +++ b/internal/sdk/models/operations/createdestinationlangchain.go @@ -7,39 +7,39 @@ import ( "net/http" ) -type CreateSourceGoldcastResponse struct { +type CreateDestinationLangchainResponse struct { // HTTP response content type for this operation ContentType string // Successful operation - SourceResponse *shared.SourceResponse + DestinationResponse *shared.DestinationResponse // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response } -func (o *CreateSourceGoldcastResponse) GetContentType() string { +func (o *CreateDestinationLangchainResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *CreateSourceGoldcastResponse) GetSourceResponse() *shared.SourceResponse { +func (o *CreateDestinationLangchainResponse) GetDestinationResponse() *shared.DestinationResponse { if o == nil { return nil } - return o.SourceResponse + return o.DestinationResponse } -func (o *CreateSourceGoldcastResponse) GetStatusCode() int { +func (o *CreateDestinationLangchainResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *CreateSourceGoldcastResponse) GetRawResponse() *http.Response { +func (o *CreateDestinationLangchainResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/createsourceclazar.go b/internal/sdk/models/operations/createsourcegoogleanalyticsv4serviceaccountonly.go similarity index 60% rename from internal/sdk/models/operations/createsourceclazar.go rename to internal/sdk/models/operations/createsourcegoogleanalyticsv4serviceaccountonly.go index 999f381e8..840853615 100644 --- a/internal/sdk/models/operations/createsourceclazar.go +++ b/internal/sdk/models/operations/createsourcegoogleanalyticsv4serviceaccountonly.go @@ -7,7 +7,7 @@ import ( "net/http" ) -type CreateSourceClazarResponse struct { +type CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { // HTTP response content type for this operation ContentType string // Successful operation @@ -18,28 +18,28 @@ type CreateSourceClazarResponse struct { RawResponse *http.Response } -func (o *CreateSourceClazarResponse) GetContentType() string { +func (o *CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *CreateSourceClazarResponse) GetSourceResponse() *shared.SourceResponse { +func (o *CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *CreateSourceClazarResponse) GetStatusCode() int { +func (o *CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *CreateSourceClazarResponse) GetRawResponse() *http.Response { +func (o *CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/createsourcedatadog.go b/internal/sdk/models/operations/createsourcepunkapi.go similarity index 71% rename from internal/sdk/models/operations/createsourcedatadog.go rename to internal/sdk/models/operations/createsourcepunkapi.go index d55a613f8..afb1bda3d 100644 --- a/internal/sdk/models/operations/createsourcedatadog.go +++ b/internal/sdk/models/operations/createsourcepunkapi.go @@ -7,7 +7,7 @@ import ( "net/http" ) -type CreateSourceDatadogResponse struct { +type CreateSourcePunkAPIResponse struct { // HTTP response content type for this operation ContentType string // Successful operation @@ -18,28 +18,28 @@ type CreateSourceDatadogResponse struct { RawResponse *http.Response } -func (o *CreateSourceDatadogResponse) GetContentType() string { +func (o *CreateSourcePunkAPIResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *CreateSourceDatadogResponse) GetSourceResponse() *shared.SourceResponse { +func (o *CreateSourcePunkAPIResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *CreateSourceDatadogResponse) GetStatusCode() int { +func (o *CreateSourcePunkAPIResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *CreateSourceDatadogResponse) GetRawResponse() *http.Response { +func (o *CreateSourcePunkAPIResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/deletesourceclazar.go b/internal/sdk/models/operations/deletedestinationlangchain.go similarity index 52% rename from internal/sdk/models/operations/deletesourceclazar.go rename to internal/sdk/models/operations/deletedestinationlangchain.go index 1e5cb109b..0e6665605 100644 --- a/internal/sdk/models/operations/deletesourceclazar.go +++ b/internal/sdk/models/operations/deletedestinationlangchain.go @@ -6,18 +6,18 @@ import ( "net/http" ) -type DeleteSourceClazarRequest struct { - SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +type DeleteDestinationLangchainRequest struct { + DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` } -func (o *DeleteSourceClazarRequest) GetSourceID() string { +func (o *DeleteDestinationLangchainRequest) GetDestinationID() string { if o == nil { return "" } - return o.SourceID + return o.DestinationID } -type DeleteSourceClazarResponse struct { +type DeleteDestinationLangchainResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -26,21 +26,21 @@ type DeleteSourceClazarResponse struct { RawResponse *http.Response } -func (o *DeleteSourceClazarResponse) GetContentType() string { +func (o *DeleteDestinationLangchainResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *DeleteSourceClazarResponse) GetStatusCode() int { +func (o *DeleteDestinationLangchainResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *DeleteSourceClazarResponse) GetRawResponse() *http.Response { +func (o *DeleteDestinationLangchainResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/deletesourcegoldcast.go b/internal/sdk/models/operations/deletesourcegoogleanalyticsv4serviceaccountonly.go similarity index 55% rename from internal/sdk/models/operations/deletesourcegoldcast.go rename to internal/sdk/models/operations/deletesourcegoogleanalyticsv4serviceaccountonly.go index 14d0e40c6..45fa6fd44 100644 --- a/internal/sdk/models/operations/deletesourcegoldcast.go +++ b/internal/sdk/models/operations/deletesourcegoogleanalyticsv4serviceaccountonly.go @@ -6,18 +6,18 @@ import ( "net/http" ) -type DeleteSourceGoldcastRequest struct { +type DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *DeleteSourceGoldcastRequest) GetSourceID() string { +func (o *DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type DeleteSourceGoldcastResponse struct { +type DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -26,21 +26,21 @@ type DeleteSourceGoldcastResponse struct { RawResponse *http.Response } -func (o *DeleteSourceGoldcastResponse) GetContentType() string { +func (o *DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *DeleteSourceGoldcastResponse) GetStatusCode() int { +func (o *DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *DeleteSourceGoldcastResponse) GetRawResponse() *http.Response { +func (o *DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/deletesourcedatadog.go b/internal/sdk/models/operations/deletesourcepunkapi.go similarity index 65% rename from internal/sdk/models/operations/deletesourcedatadog.go rename to internal/sdk/models/operations/deletesourcepunkapi.go index 1606445ef..a779cb183 100644 --- a/internal/sdk/models/operations/deletesourcedatadog.go +++ b/internal/sdk/models/operations/deletesourcepunkapi.go @@ -6,18 +6,18 @@ import ( "net/http" ) -type DeleteSourceDatadogRequest struct { +type DeleteSourcePunkAPIRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *DeleteSourceDatadogRequest) GetSourceID() string { +func (o *DeleteSourcePunkAPIRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type DeleteSourceDatadogResponse struct { +type DeleteSourcePunkAPIResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -26,21 +26,21 @@ type DeleteSourceDatadogResponse struct { RawResponse *http.Response } -func (o *DeleteSourceDatadogResponse) GetContentType() string { +func (o *DeleteSourcePunkAPIResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *DeleteSourceDatadogResponse) GetStatusCode() int { +func (o *DeleteSourcePunkAPIResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *DeleteSourceDatadogResponse) GetRawResponse() *http.Response { +func (o *DeleteSourcePunkAPIResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/getdestinationlangchain.go b/internal/sdk/models/operations/getdestinationlangchain.go new file mode 100644 index 000000000..adb9116aa --- /dev/null +++ b/internal/sdk/models/operations/getdestinationlangchain.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "net/http" +) + +type GetDestinationLangchainRequest struct { + DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` +} + +func (o *GetDestinationLangchainRequest) GetDestinationID() string { + if o == nil { + return "" + } + return o.DestinationID +} + +type GetDestinationLangchainResponse struct { + // HTTP response content type for this operation + ContentType string + // Get a Destination by the id in the path. + DestinationResponse *shared.DestinationResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (o *GetDestinationLangchainResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetDestinationLangchainResponse) GetDestinationResponse() *shared.DestinationResponse { + if o == nil { + return nil + } + return o.DestinationResponse +} + +func (o *GetDestinationLangchainResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetDestinationLangchainResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/getsourcegoldcast.go b/internal/sdk/models/operations/getsourcegoldcast.go deleted file mode 100644 index 86bf7222d..000000000 --- a/internal/sdk/models/operations/getsourcegoldcast.go +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package operations - -import ( - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" - "net/http" -) - -type GetSourceGoldcastRequest struct { - SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` -} - -func (o *GetSourceGoldcastRequest) GetSourceID() string { - if o == nil { - return "" - } - return o.SourceID -} - -type GetSourceGoldcastResponse struct { - // HTTP response content type for this operation - ContentType string - // Get a Source by the id in the path. - SourceResponse *shared.SourceResponse - // HTTP response status code for this operation - StatusCode int - // Raw HTTP response; suitable for custom response parsing - RawResponse *http.Response -} - -func (o *GetSourceGoldcastResponse) GetContentType() string { - if o == nil { - return "" - } - return o.ContentType -} - -func (o *GetSourceGoldcastResponse) GetSourceResponse() *shared.SourceResponse { - if o == nil { - return nil - } - return o.SourceResponse -} - -func (o *GetSourceGoldcastResponse) GetStatusCode() int { - if o == nil { - return 0 - } - return o.StatusCode -} - -func (o *GetSourceGoldcastResponse) GetRawResponse() *http.Response { - if o == nil { - return nil - } - return o.RawResponse -} diff --git a/internal/sdk/models/operations/getsourceclazar.go b/internal/sdk/models/operations/getsourcegoogleanalyticsv4serviceaccountonly.go similarity index 58% rename from internal/sdk/models/operations/getsourceclazar.go rename to internal/sdk/models/operations/getsourcegoogleanalyticsv4serviceaccountonly.go index 243be3a96..207c5e0fe 100644 --- a/internal/sdk/models/operations/getsourceclazar.go +++ b/internal/sdk/models/operations/getsourcegoogleanalyticsv4serviceaccountonly.go @@ -7,18 +7,18 @@ import ( "net/http" ) -type GetSourceClazarRequest struct { +type GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *GetSourceClazarRequest) GetSourceID() string { +func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type GetSourceClazarResponse struct { +type GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { // HTTP response content type for this operation ContentType string // Get a Source by the id in the path. @@ -29,28 +29,28 @@ type GetSourceClazarResponse struct { RawResponse *http.Response } -func (o *GetSourceClazarResponse) GetContentType() string { +func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *GetSourceClazarResponse) GetSourceResponse() *shared.SourceResponse { +func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *GetSourceClazarResponse) GetStatusCode() int { +func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *GetSourceClazarResponse) GetRawResponse() *http.Response { +func (o *GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/getsourcedatadog.go b/internal/sdk/models/operations/getsourcepunkapi.go similarity index 69% rename from internal/sdk/models/operations/getsourcedatadog.go rename to internal/sdk/models/operations/getsourcepunkapi.go index a50657695..6cb711ba1 100644 --- a/internal/sdk/models/operations/getsourcedatadog.go +++ b/internal/sdk/models/operations/getsourcepunkapi.go @@ -7,18 +7,18 @@ import ( "net/http" ) -type GetSourceDatadogRequest struct { +type GetSourcePunkAPIRequest struct { SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *GetSourceDatadogRequest) GetSourceID() string { +func (o *GetSourcePunkAPIRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type GetSourceDatadogResponse struct { +type GetSourcePunkAPIResponse struct { // HTTP response content type for this operation ContentType string // Get a Source by the id in the path. @@ -29,28 +29,28 @@ type GetSourceDatadogResponse struct { RawResponse *http.Response } -func (o *GetSourceDatadogResponse) GetContentType() string { +func (o *GetSourcePunkAPIResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *GetSourceDatadogResponse) GetSourceResponse() *shared.SourceResponse { +func (o *GetSourcePunkAPIResponse) GetSourceResponse() *shared.SourceResponse { if o == nil { return nil } return o.SourceResponse } -func (o *GetSourceDatadogResponse) GetStatusCode() int { +func (o *GetSourcePunkAPIResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *GetSourceDatadogResponse) GetRawResponse() *http.Response { +func (o *GetSourcePunkAPIResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/operations/putdestinationlangchain.go b/internal/sdk/models/operations/putdestinationlangchain.go new file mode 100644 index 000000000..95ab8e466 --- /dev/null +++ b/internal/sdk/models/operations/putdestinationlangchain.go @@ -0,0 +1,57 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "net/http" +) + +type PutDestinationLangchainRequest struct { + DestinationLangchainPutRequest *shared.DestinationLangchainPutRequest `request:"mediaType=application/json"` + DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"` +} + +func (o *PutDestinationLangchainRequest) GetDestinationLangchainPutRequest() *shared.DestinationLangchainPutRequest { + if o == nil { + return nil + } + return o.DestinationLangchainPutRequest +} + +func (o *PutDestinationLangchainRequest) GetDestinationID() string { + if o == nil { + return "" + } + return o.DestinationID +} + +type PutDestinationLangchainResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (o *PutDestinationLangchainResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutDestinationLangchainResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutDestinationLangchainResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourceclazar.go b/internal/sdk/models/operations/putsourceclazar.go deleted file mode 100644 index 6377c7340..000000000 --- a/internal/sdk/models/operations/putsourceclazar.go +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package operations - -import ( - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" - "net/http" -) - -type PutSourceClazarRequest struct { - SourceClazarPutRequest *shared.SourceClazarPutRequest `request:"mediaType=application/json"` - SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` -} - -func (o *PutSourceClazarRequest) GetSourceClazarPutRequest() *shared.SourceClazarPutRequest { - if o == nil { - return nil - } - return o.SourceClazarPutRequest -} - -func (o *PutSourceClazarRequest) GetSourceID() string { - if o == nil { - return "" - } - return o.SourceID -} - -type PutSourceClazarResponse struct { - // HTTP response content type for this operation - ContentType string - // HTTP response status code for this operation - StatusCode int - // Raw HTTP response; suitable for custom response parsing - RawResponse *http.Response -} - -func (o *PutSourceClazarResponse) GetContentType() string { - if o == nil { - return "" - } - return o.ContentType -} - -func (o *PutSourceClazarResponse) GetStatusCode() int { - if o == nil { - return 0 - } - return o.StatusCode -} - -func (o *PutSourceClazarResponse) GetRawResponse() *http.Response { - if o == nil { - return nil - } - return o.RawResponse -} diff --git a/internal/sdk/models/operations/putsourcegoldcast.go b/internal/sdk/models/operations/putsourcegoldcast.go deleted file mode 100644 index 656dd79f7..000000000 --- a/internal/sdk/models/operations/putsourcegoldcast.go +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package operations - -import ( - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" - "net/http" -) - -type PutSourceGoldcastRequest struct { - SourceGoldcastPutRequest *shared.SourceGoldcastPutRequest `request:"mediaType=application/json"` - SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` -} - -func (o *PutSourceGoldcastRequest) GetSourceGoldcastPutRequest() *shared.SourceGoldcastPutRequest { - if o == nil { - return nil - } - return o.SourceGoldcastPutRequest -} - -func (o *PutSourceGoldcastRequest) GetSourceID() string { - if o == nil { - return "" - } - return o.SourceID -} - -type PutSourceGoldcastResponse struct { - // HTTP response content type for this operation - ContentType string - // HTTP response status code for this operation - StatusCode int - // Raw HTTP response; suitable for custom response parsing - RawResponse *http.Response -} - -func (o *PutSourceGoldcastResponse) GetContentType() string { - if o == nil { - return "" - } - return o.ContentType -} - -func (o *PutSourceGoldcastResponse) GetStatusCode() int { - if o == nil { - return 0 - } - return o.StatusCode -} - -func (o *PutSourceGoldcastResponse) GetRawResponse() *http.Response { - if o == nil { - return nil - } - return o.RawResponse -} diff --git a/internal/sdk/models/operations/putsourcegoogleanalyticsv4serviceaccountonly.go b/internal/sdk/models/operations/putsourcegoogleanalyticsv4serviceaccountonly.go new file mode 100644 index 000000000..d7c6dd658 --- /dev/null +++ b/internal/sdk/models/operations/putsourcegoogleanalyticsv4serviceaccountonly.go @@ -0,0 +1,57 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/models/shared" + "net/http" +) + +type PutSourceGoogleAnalyticsV4ServiceAccountOnlyRequest struct { + SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest `request:"mediaType=application/json"` + SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` +} + +func (o *PutSourceGoogleAnalyticsV4ServiceAccountOnlyRequest) GetSourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest() *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest { + if o == nil { + return nil + } + return o.SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest +} + +func (o *PutSourceGoogleAnalyticsV4ServiceAccountOnlyRequest) GetSourceID() string { + if o == nil { + return "" + } + return o.SourceID +} + +type PutSourceGoogleAnalyticsV4ServiceAccountOnlyResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (o *PutSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *PutSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *PutSourceGoogleAnalyticsV4ServiceAccountOnlyResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/internal/sdk/models/operations/putsourcedatadog.go b/internal/sdk/models/operations/putsourcepunkapi.go similarity index 61% rename from internal/sdk/models/operations/putsourcedatadog.go rename to internal/sdk/models/operations/putsourcepunkapi.go index 2d5c01f0e..33d5166ab 100644 --- a/internal/sdk/models/operations/putsourcedatadog.go +++ b/internal/sdk/models/operations/putsourcepunkapi.go @@ -7,26 +7,26 @@ import ( "net/http" ) -type PutSourceDatadogRequest struct { - SourceDatadogPutRequest *shared.SourceDatadogPutRequest `request:"mediaType=application/json"` +type PutSourcePunkAPIRequest struct { + SourcePunkAPIPutRequest *shared.SourcePunkAPIPutRequest `request:"mediaType=application/json"` SourceID string `pathParam:"style=simple,explode=false,name=sourceId"` } -func (o *PutSourceDatadogRequest) GetSourceDatadogPutRequest() *shared.SourceDatadogPutRequest { +func (o *PutSourcePunkAPIRequest) GetSourcePunkAPIPutRequest() *shared.SourcePunkAPIPutRequest { if o == nil { return nil } - return o.SourceDatadogPutRequest + return o.SourcePunkAPIPutRequest } -func (o *PutSourceDatadogRequest) GetSourceID() string { +func (o *PutSourcePunkAPIRequest) GetSourceID() string { if o == nil { return "" } return o.SourceID } -type PutSourceDatadogResponse struct { +type PutSourcePunkAPIResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation @@ -35,21 +35,21 @@ type PutSourceDatadogResponse struct { RawResponse *http.Response } -func (o *PutSourceDatadogResponse) GetContentType() string { +func (o *PutSourcePunkAPIResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } -func (o *PutSourceDatadogResponse) GetStatusCode() int { +func (o *PutSourcePunkAPIResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } -func (o *PutSourceDatadogResponse) GetRawResponse() *http.Response { +func (o *PutSourcePunkAPIResponse) GetRawResponse() *http.Response { if o == nil { return nil } diff --git a/internal/sdk/models/shared/destinationlangchain.go b/internal/sdk/models/shared/destinationlangchain.go new file mode 100644 index 000000000..372465c7c --- /dev/null +++ b/internal/sdk/models/shared/destinationlangchain.go @@ -0,0 +1,545 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "encoding/json" + "errors" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" +) + +type Langchain string + +const ( + LangchainLangchain Langchain = "langchain" +) + +func (e Langchain) ToPointer() *Langchain { + return &e +} +func (e *Langchain) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "langchain": + *e = Langchain(v) + return nil + default: + return fmt.Errorf("invalid value for Langchain: %v", v) + } +} + +type DestinationLangchainSchemasMode string + +const ( + DestinationLangchainSchemasModeFake DestinationLangchainSchemasMode = "fake" +) + +func (e DestinationLangchainSchemasMode) ToPointer() *DestinationLangchainSchemasMode { + return &e +} +func (e *DestinationLangchainSchemasMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "fake": + *e = DestinationLangchainSchemasMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainSchemasMode: %v", v) + } +} + +// DestinationLangchainFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. +type DestinationLangchainFake struct { + mode *DestinationLangchainSchemasMode `const:"fake" json:"mode"` +} + +func (d DestinationLangchainFake) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainFake) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainFake) GetMode() *DestinationLangchainSchemasMode { + return DestinationLangchainSchemasModeFake.ToPointer() +} + +type DestinationLangchainMode string + +const ( + DestinationLangchainModeOpenai DestinationLangchainMode = "openai" +) + +func (e DestinationLangchainMode) ToPointer() *DestinationLangchainMode { + return &e +} +func (e *DestinationLangchainMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "openai": + *e = DestinationLangchainMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainMode: %v", v) + } +} + +// DestinationLangchainOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. +type DestinationLangchainOpenAI struct { + mode *DestinationLangchainMode `const:"openai" json:"mode"` + OpenaiKey string `json:"openai_key"` +} + +func (d DestinationLangchainOpenAI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainOpenAI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainOpenAI) GetMode() *DestinationLangchainMode { + return DestinationLangchainModeOpenai.ToPointer() +} + +func (o *DestinationLangchainOpenAI) GetOpenaiKey() string { + if o == nil { + return "" + } + return o.OpenaiKey +} + +type DestinationLangchainEmbeddingType string + +const ( + DestinationLangchainEmbeddingTypeDestinationLangchainOpenAI DestinationLangchainEmbeddingType = "destination-langchain_OpenAI" + DestinationLangchainEmbeddingTypeDestinationLangchainFake DestinationLangchainEmbeddingType = "destination-langchain_Fake" +) + +// DestinationLangchainEmbedding - Embedding configuration +type DestinationLangchainEmbedding struct { + DestinationLangchainOpenAI *DestinationLangchainOpenAI + DestinationLangchainFake *DestinationLangchainFake + + Type DestinationLangchainEmbeddingType +} + +func CreateDestinationLangchainEmbeddingDestinationLangchainOpenAI(destinationLangchainOpenAI DestinationLangchainOpenAI) DestinationLangchainEmbedding { + typ := DestinationLangchainEmbeddingTypeDestinationLangchainOpenAI + + return DestinationLangchainEmbedding{ + DestinationLangchainOpenAI: &destinationLangchainOpenAI, + Type: typ, + } +} + +func CreateDestinationLangchainEmbeddingDestinationLangchainFake(destinationLangchainFake DestinationLangchainFake) DestinationLangchainEmbedding { + typ := DestinationLangchainEmbeddingTypeDestinationLangchainFake + + return DestinationLangchainEmbedding{ + DestinationLangchainFake: &destinationLangchainFake, + Type: typ, + } +} + +func (u *DestinationLangchainEmbedding) UnmarshalJSON(data []byte) error { + + var destinationLangchainFake DestinationLangchainFake = DestinationLangchainFake{} + if err := utils.UnmarshalJSON(data, &destinationLangchainFake, "", true, true); err == nil { + u.DestinationLangchainFake = &destinationLangchainFake + u.Type = DestinationLangchainEmbeddingTypeDestinationLangchainFake + return nil + } + + var destinationLangchainOpenAI DestinationLangchainOpenAI = DestinationLangchainOpenAI{} + if err := utils.UnmarshalJSON(data, &destinationLangchainOpenAI, "", true, true); err == nil { + u.DestinationLangchainOpenAI = &destinationLangchainOpenAI + u.Type = DestinationLangchainEmbeddingTypeDestinationLangchainOpenAI + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationLangchainEmbedding", string(data)) +} + +func (u DestinationLangchainEmbedding) MarshalJSON() ([]byte, error) { + if u.DestinationLangchainOpenAI != nil { + return utils.MarshalJSON(u.DestinationLangchainOpenAI, "", true) + } + + if u.DestinationLangchainFake != nil { + return utils.MarshalJSON(u.DestinationLangchainFake, "", true) + } + + return nil, errors.New("could not marshal union type DestinationLangchainEmbedding: all fields are null") +} + +type DestinationLangchainSchemasIndexingIndexing3Mode string + +const ( + DestinationLangchainSchemasIndexingIndexing3ModeChromaLocal DestinationLangchainSchemasIndexingIndexing3Mode = "chroma_local" +) + +func (e DestinationLangchainSchemasIndexingIndexing3Mode) ToPointer() *DestinationLangchainSchemasIndexingIndexing3Mode { + return &e +} +func (e *DestinationLangchainSchemasIndexingIndexing3Mode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "chroma_local": + *e = DestinationLangchainSchemasIndexingIndexing3Mode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainSchemasIndexingIndexing3Mode: %v", v) + } +} + +// DestinationLangchainChromaLocalPersistance - Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync. +type DestinationLangchainChromaLocalPersistance struct { + // Name of the collection to use. + CollectionName *string `default:"langchain" json:"collection_name"` + // Path to the directory where chroma files will be written. The files will be placed inside that local mount. + DestinationPath string `json:"destination_path"` + mode *DestinationLangchainSchemasIndexingIndexing3Mode `const:"chroma_local" json:"mode"` +} + +func (d DestinationLangchainChromaLocalPersistance) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainChromaLocalPersistance) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainChromaLocalPersistance) GetCollectionName() *string { + if o == nil { + return nil + } + return o.CollectionName +} + +func (o *DestinationLangchainChromaLocalPersistance) GetDestinationPath() string { + if o == nil { + return "" + } + return o.DestinationPath +} + +func (o *DestinationLangchainChromaLocalPersistance) GetMode() *DestinationLangchainSchemasIndexingIndexing3Mode { + return DestinationLangchainSchemasIndexingIndexing3ModeChromaLocal.ToPointer() +} + +type DestinationLangchainSchemasIndexingIndexingMode string + +const ( + DestinationLangchainSchemasIndexingIndexingModeDocArrayHnswSearch DestinationLangchainSchemasIndexingIndexingMode = "DocArrayHnswSearch" +) + +func (e DestinationLangchainSchemasIndexingIndexingMode) ToPointer() *DestinationLangchainSchemasIndexingIndexingMode { + return &e +} +func (e *DestinationLangchainSchemasIndexingIndexingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "DocArrayHnswSearch": + *e = DestinationLangchainSchemasIndexingIndexingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainSchemasIndexingIndexingMode: %v", v) + } +} + +// DestinationLangchainDocArrayHnswSearch - DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite. +type DestinationLangchainDocArrayHnswSearch struct { + // Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run. + DestinationPath string `json:"destination_path"` + mode *DestinationLangchainSchemasIndexingIndexingMode `const:"DocArrayHnswSearch" json:"mode"` +} + +func (d DestinationLangchainDocArrayHnswSearch) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainDocArrayHnswSearch) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainDocArrayHnswSearch) GetDestinationPath() string { + if o == nil { + return "" + } + return o.DestinationPath +} + +func (o *DestinationLangchainDocArrayHnswSearch) GetMode() *DestinationLangchainSchemasIndexingIndexingMode { + return DestinationLangchainSchemasIndexingIndexingModeDocArrayHnswSearch.ToPointer() +} + +type DestinationLangchainSchemasIndexingMode string + +const ( + DestinationLangchainSchemasIndexingModePinecone DestinationLangchainSchemasIndexingMode = "pinecone" +) + +func (e DestinationLangchainSchemasIndexingMode) ToPointer() *DestinationLangchainSchemasIndexingMode { + return &e +} +func (e *DestinationLangchainSchemasIndexingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "pinecone": + *e = DestinationLangchainSchemasIndexingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainSchemasIndexingMode: %v", v) + } +} + +// DestinationLangchainPinecone - Pinecone is a popular vector store that can be used to store and retrieve embeddings. It is a managed service and can also be queried from outside of langchain. +type DestinationLangchainPinecone struct { + // Pinecone index to use + Index string `json:"index"` + mode *DestinationLangchainSchemasIndexingMode `const:"pinecone" json:"mode"` + // Pinecone environment to use + PineconeEnvironment string `json:"pinecone_environment"` + PineconeKey string `json:"pinecone_key"` +} + +func (d DestinationLangchainPinecone) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainPinecone) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainPinecone) GetIndex() string { + if o == nil { + return "" + } + return o.Index +} + +func (o *DestinationLangchainPinecone) GetMode() *DestinationLangchainSchemasIndexingMode { + return DestinationLangchainSchemasIndexingModePinecone.ToPointer() +} + +func (o *DestinationLangchainPinecone) GetPineconeEnvironment() string { + if o == nil { + return "" + } + return o.PineconeEnvironment +} + +func (o *DestinationLangchainPinecone) GetPineconeKey() string { + if o == nil { + return "" + } + return o.PineconeKey +} + +type DestinationLangchainIndexingType string + +const ( + DestinationLangchainIndexingTypeDestinationLangchainPinecone DestinationLangchainIndexingType = "destination-langchain_Pinecone" + DestinationLangchainIndexingTypeDestinationLangchainDocArrayHnswSearch DestinationLangchainIndexingType = "destination-langchain_DocArrayHnswSearch" + DestinationLangchainIndexingTypeDestinationLangchainChromaLocalPersistance DestinationLangchainIndexingType = "destination-langchain_Chroma (local persistance)" +) + +// DestinationLangchainIndexing - Indexing configuration +type DestinationLangchainIndexing struct { + DestinationLangchainPinecone *DestinationLangchainPinecone + DestinationLangchainDocArrayHnswSearch *DestinationLangchainDocArrayHnswSearch + DestinationLangchainChromaLocalPersistance *DestinationLangchainChromaLocalPersistance + + Type DestinationLangchainIndexingType +} + +func CreateDestinationLangchainIndexingDestinationLangchainPinecone(destinationLangchainPinecone DestinationLangchainPinecone) DestinationLangchainIndexing { + typ := DestinationLangchainIndexingTypeDestinationLangchainPinecone + + return DestinationLangchainIndexing{ + DestinationLangchainPinecone: &destinationLangchainPinecone, + Type: typ, + } +} + +func CreateDestinationLangchainIndexingDestinationLangchainDocArrayHnswSearch(destinationLangchainDocArrayHnswSearch DestinationLangchainDocArrayHnswSearch) DestinationLangchainIndexing { + typ := DestinationLangchainIndexingTypeDestinationLangchainDocArrayHnswSearch + + return DestinationLangchainIndexing{ + DestinationLangchainDocArrayHnswSearch: &destinationLangchainDocArrayHnswSearch, + Type: typ, + } +} + +func CreateDestinationLangchainIndexingDestinationLangchainChromaLocalPersistance(destinationLangchainChromaLocalPersistance DestinationLangchainChromaLocalPersistance) DestinationLangchainIndexing { + typ := DestinationLangchainIndexingTypeDestinationLangchainChromaLocalPersistance + + return DestinationLangchainIndexing{ + DestinationLangchainChromaLocalPersistance: &destinationLangchainChromaLocalPersistance, + Type: typ, + } +} + +func (u *DestinationLangchainIndexing) UnmarshalJSON(data []byte) error { + + var destinationLangchainDocArrayHnswSearch DestinationLangchainDocArrayHnswSearch = DestinationLangchainDocArrayHnswSearch{} + if err := utils.UnmarshalJSON(data, &destinationLangchainDocArrayHnswSearch, "", true, true); err == nil { + u.DestinationLangchainDocArrayHnswSearch = &destinationLangchainDocArrayHnswSearch + u.Type = DestinationLangchainIndexingTypeDestinationLangchainDocArrayHnswSearch + return nil + } + + var destinationLangchainChromaLocalPersistance DestinationLangchainChromaLocalPersistance = DestinationLangchainChromaLocalPersistance{} + if err := utils.UnmarshalJSON(data, &destinationLangchainChromaLocalPersistance, "", true, true); err == nil { + u.DestinationLangchainChromaLocalPersistance = &destinationLangchainChromaLocalPersistance + u.Type = DestinationLangchainIndexingTypeDestinationLangchainChromaLocalPersistance + return nil + } + + var destinationLangchainPinecone DestinationLangchainPinecone = DestinationLangchainPinecone{} + if err := utils.UnmarshalJSON(data, &destinationLangchainPinecone, "", true, true); err == nil { + u.DestinationLangchainPinecone = &destinationLangchainPinecone + u.Type = DestinationLangchainIndexingTypeDestinationLangchainPinecone + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationLangchainIndexing", string(data)) +} + +func (u DestinationLangchainIndexing) MarshalJSON() ([]byte, error) { + if u.DestinationLangchainPinecone != nil { + return utils.MarshalJSON(u.DestinationLangchainPinecone, "", true) + } + + if u.DestinationLangchainDocArrayHnswSearch != nil { + return utils.MarshalJSON(u.DestinationLangchainDocArrayHnswSearch, "", true) + } + + if u.DestinationLangchainChromaLocalPersistance != nil { + return utils.MarshalJSON(u.DestinationLangchainChromaLocalPersistance, "", true) + } + + return nil, errors.New("could not marshal union type DestinationLangchainIndexing: all fields are null") +} + +type DestinationLangchainProcessingConfigModel struct { + // Size of overlap between chunks in tokens to store in vector store to better capture relevant context + ChunkOverlap *int64 `default:"0" json:"chunk_overlap"` + // Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + ChunkSize int64 `json:"chunk_size"` + // List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + TextFields []string `json:"text_fields"` +} + +func (d DestinationLangchainProcessingConfigModel) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainProcessingConfigModel) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainProcessingConfigModel) GetChunkOverlap() *int64 { + if o == nil { + return nil + } + return o.ChunkOverlap +} + +func (o *DestinationLangchainProcessingConfigModel) GetChunkSize() int64 { + if o == nil { + return 0 + } + return o.ChunkSize +} + +func (o *DestinationLangchainProcessingConfigModel) GetTextFields() []string { + if o == nil { + return []string{} + } + return o.TextFields +} + +type DestinationLangchain struct { + destinationType Langchain `const:"langchain" json:"destinationType"` + // Embedding configuration + Embedding DestinationLangchainEmbedding `json:"embedding"` + // Indexing configuration + Indexing DestinationLangchainIndexing `json:"indexing"` + Processing DestinationLangchainProcessingConfigModel `json:"processing"` +} + +func (d DestinationLangchain) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchain) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchain) GetDestinationType() Langchain { + return LangchainLangchain +} + +func (o *DestinationLangchain) GetEmbedding() DestinationLangchainEmbedding { + if o == nil { + return DestinationLangchainEmbedding{} + } + return o.Embedding +} + +func (o *DestinationLangchain) GetIndexing() DestinationLangchainIndexing { + if o == nil { + return DestinationLangchainIndexing{} + } + return o.Indexing +} + +func (o *DestinationLangchain) GetProcessing() DestinationLangchainProcessingConfigModel { + if o == nil { + return DestinationLangchainProcessingConfigModel{} + } + return o.Processing +} diff --git a/internal/sdk/models/shared/destinationlangchaincreaterequest.go b/internal/sdk/models/shared/destinationlangchaincreaterequest.go new file mode 100644 index 000000000..b4945cc39 --- /dev/null +++ b/internal/sdk/models/shared/destinationlangchaincreaterequest.go @@ -0,0 +1,40 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type DestinationLangchainCreateRequest struct { + Configuration DestinationLangchain `json:"configuration"` + // The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. + DefinitionID *string `json:"definitionId,omitempty"` + // Name of the destination e.g. dev-mysql-instance. + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *DestinationLangchainCreateRequest) GetConfiguration() DestinationLangchain { + if o == nil { + return DestinationLangchain{} + } + return o.Configuration +} + +func (o *DestinationLangchainCreateRequest) GetDefinitionID() *string { + if o == nil { + return nil + } + return o.DefinitionID +} + +func (o *DestinationLangchainCreateRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *DestinationLangchainCreateRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/destinationlangchainputrequest.go b/internal/sdk/models/shared/destinationlangchainputrequest.go new file mode 100644 index 000000000..cd3de13c9 --- /dev/null +++ b/internal/sdk/models/shared/destinationlangchainputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type DestinationLangchainPutRequest struct { + Configuration DestinationLangchainUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *DestinationLangchainPutRequest) GetConfiguration() DestinationLangchainUpdate { + if o == nil { + return DestinationLangchainUpdate{} + } + return o.Configuration +} + +func (o *DestinationLangchainPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *DestinationLangchainPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/destinationlangchainupdate.go b/internal/sdk/models/shared/destinationlangchainupdate.go new file mode 100644 index 000000000..d299ae5da --- /dev/null +++ b/internal/sdk/models/shared/destinationlangchainupdate.go @@ -0,0 +1,506 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "encoding/json" + "errors" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" +) + +type DestinationLangchainUpdateSchemasMode string + +const ( + DestinationLangchainUpdateSchemasModeFake DestinationLangchainUpdateSchemasMode = "fake" +) + +func (e DestinationLangchainUpdateSchemasMode) ToPointer() *DestinationLangchainUpdateSchemasMode { + return &e +} +func (e *DestinationLangchainUpdateSchemasMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "fake": + *e = DestinationLangchainUpdateSchemasMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainUpdateSchemasMode: %v", v) + } +} + +// DestinationLangchainUpdateFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. +type DestinationLangchainUpdateFake struct { + mode *DestinationLangchainUpdateSchemasMode `const:"fake" json:"mode"` +} + +func (d DestinationLangchainUpdateFake) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainUpdateFake) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainUpdateFake) GetMode() *DestinationLangchainUpdateSchemasMode { + return DestinationLangchainUpdateSchemasModeFake.ToPointer() +} + +type DestinationLangchainUpdateMode string + +const ( + DestinationLangchainUpdateModeOpenai DestinationLangchainUpdateMode = "openai" +) + +func (e DestinationLangchainUpdateMode) ToPointer() *DestinationLangchainUpdateMode { + return &e +} +func (e *DestinationLangchainUpdateMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "openai": + *e = DestinationLangchainUpdateMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainUpdateMode: %v", v) + } +} + +// DestinationLangchainUpdateOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. +type DestinationLangchainUpdateOpenAI struct { + mode *DestinationLangchainUpdateMode `const:"openai" json:"mode"` + OpenaiKey string `json:"openai_key"` +} + +func (d DestinationLangchainUpdateOpenAI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainUpdateOpenAI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainUpdateOpenAI) GetMode() *DestinationLangchainUpdateMode { + return DestinationLangchainUpdateModeOpenai.ToPointer() +} + +func (o *DestinationLangchainUpdateOpenAI) GetOpenaiKey() string { + if o == nil { + return "" + } + return o.OpenaiKey +} + +type DestinationLangchainUpdateEmbeddingType string + +const ( + DestinationLangchainUpdateEmbeddingTypeDestinationLangchainUpdateOpenAI DestinationLangchainUpdateEmbeddingType = "destination-langchain-update_OpenAI" + DestinationLangchainUpdateEmbeddingTypeDestinationLangchainUpdateFake DestinationLangchainUpdateEmbeddingType = "destination-langchain-update_Fake" +) + +// DestinationLangchainUpdateEmbedding - Embedding configuration +type DestinationLangchainUpdateEmbedding struct { + DestinationLangchainUpdateOpenAI *DestinationLangchainUpdateOpenAI + DestinationLangchainUpdateFake *DestinationLangchainUpdateFake + + Type DestinationLangchainUpdateEmbeddingType +} + +func CreateDestinationLangchainUpdateEmbeddingDestinationLangchainUpdateOpenAI(destinationLangchainUpdateOpenAI DestinationLangchainUpdateOpenAI) DestinationLangchainUpdateEmbedding { + typ := DestinationLangchainUpdateEmbeddingTypeDestinationLangchainUpdateOpenAI + + return DestinationLangchainUpdateEmbedding{ + DestinationLangchainUpdateOpenAI: &destinationLangchainUpdateOpenAI, + Type: typ, + } +} + +func CreateDestinationLangchainUpdateEmbeddingDestinationLangchainUpdateFake(destinationLangchainUpdateFake DestinationLangchainUpdateFake) DestinationLangchainUpdateEmbedding { + typ := DestinationLangchainUpdateEmbeddingTypeDestinationLangchainUpdateFake + + return DestinationLangchainUpdateEmbedding{ + DestinationLangchainUpdateFake: &destinationLangchainUpdateFake, + Type: typ, + } +} + +func (u *DestinationLangchainUpdateEmbedding) UnmarshalJSON(data []byte) error { + + var destinationLangchainUpdateFake DestinationLangchainUpdateFake = DestinationLangchainUpdateFake{} + if err := utils.UnmarshalJSON(data, &destinationLangchainUpdateFake, "", true, true); err == nil { + u.DestinationLangchainUpdateFake = &destinationLangchainUpdateFake + u.Type = DestinationLangchainUpdateEmbeddingTypeDestinationLangchainUpdateFake + return nil + } + + var destinationLangchainUpdateOpenAI DestinationLangchainUpdateOpenAI = DestinationLangchainUpdateOpenAI{} + if err := utils.UnmarshalJSON(data, &destinationLangchainUpdateOpenAI, "", true, true); err == nil { + u.DestinationLangchainUpdateOpenAI = &destinationLangchainUpdateOpenAI + u.Type = DestinationLangchainUpdateEmbeddingTypeDestinationLangchainUpdateOpenAI + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationLangchainUpdateEmbedding", string(data)) +} + +func (u DestinationLangchainUpdateEmbedding) MarshalJSON() ([]byte, error) { + if u.DestinationLangchainUpdateOpenAI != nil { + return utils.MarshalJSON(u.DestinationLangchainUpdateOpenAI, "", true) + } + + if u.DestinationLangchainUpdateFake != nil { + return utils.MarshalJSON(u.DestinationLangchainUpdateFake, "", true) + } + + return nil, errors.New("could not marshal union type DestinationLangchainUpdateEmbedding: all fields are null") +} + +type DestinationLangchainUpdateSchemasIndexingIndexing3Mode string + +const ( + DestinationLangchainUpdateSchemasIndexingIndexing3ModeChromaLocal DestinationLangchainUpdateSchemasIndexingIndexing3Mode = "chroma_local" +) + +func (e DestinationLangchainUpdateSchemasIndexingIndexing3Mode) ToPointer() *DestinationLangchainUpdateSchemasIndexingIndexing3Mode { + return &e +} +func (e *DestinationLangchainUpdateSchemasIndexingIndexing3Mode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "chroma_local": + *e = DestinationLangchainUpdateSchemasIndexingIndexing3Mode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainUpdateSchemasIndexingIndexing3Mode: %v", v) + } +} + +// ChromaLocalPersistance - Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync. +type ChromaLocalPersistance struct { + // Name of the collection to use. + CollectionName *string `default:"langchain" json:"collection_name"` + // Path to the directory where chroma files will be written. The files will be placed inside that local mount. + DestinationPath string `json:"destination_path"` + mode *DestinationLangchainUpdateSchemasIndexingIndexing3Mode `const:"chroma_local" json:"mode"` +} + +func (c ChromaLocalPersistance) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *ChromaLocalPersistance) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, true); err != nil { + return err + } + return nil +} + +func (o *ChromaLocalPersistance) GetCollectionName() *string { + if o == nil { + return nil + } + return o.CollectionName +} + +func (o *ChromaLocalPersistance) GetDestinationPath() string { + if o == nil { + return "" + } + return o.DestinationPath +} + +func (o *ChromaLocalPersistance) GetMode() *DestinationLangchainUpdateSchemasIndexingIndexing3Mode { + return DestinationLangchainUpdateSchemasIndexingIndexing3ModeChromaLocal.ToPointer() +} + +type DestinationLangchainUpdateSchemasIndexingIndexingMode string + +const ( + DestinationLangchainUpdateSchemasIndexingIndexingModeDocArrayHnswSearch DestinationLangchainUpdateSchemasIndexingIndexingMode = "DocArrayHnswSearch" +) + +func (e DestinationLangchainUpdateSchemasIndexingIndexingMode) ToPointer() *DestinationLangchainUpdateSchemasIndexingIndexingMode { + return &e +} +func (e *DestinationLangchainUpdateSchemasIndexingIndexingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "DocArrayHnswSearch": + *e = DestinationLangchainUpdateSchemasIndexingIndexingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainUpdateSchemasIndexingIndexingMode: %v", v) + } +} + +// DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite. +type DocArrayHnswSearch struct { + // Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run. + DestinationPath string `json:"destination_path"` + mode *DestinationLangchainUpdateSchemasIndexingIndexingMode `const:"DocArrayHnswSearch" json:"mode"` +} + +func (d DocArrayHnswSearch) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DocArrayHnswSearch) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DocArrayHnswSearch) GetDestinationPath() string { + if o == nil { + return "" + } + return o.DestinationPath +} + +func (o *DocArrayHnswSearch) GetMode() *DestinationLangchainUpdateSchemasIndexingIndexingMode { + return DestinationLangchainUpdateSchemasIndexingIndexingModeDocArrayHnswSearch.ToPointer() +} + +type DestinationLangchainUpdateSchemasIndexingMode string + +const ( + DestinationLangchainUpdateSchemasIndexingModePinecone DestinationLangchainUpdateSchemasIndexingMode = "pinecone" +) + +func (e DestinationLangchainUpdateSchemasIndexingMode) ToPointer() *DestinationLangchainUpdateSchemasIndexingMode { + return &e +} +func (e *DestinationLangchainUpdateSchemasIndexingMode) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "pinecone": + *e = DestinationLangchainUpdateSchemasIndexingMode(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationLangchainUpdateSchemasIndexingMode: %v", v) + } +} + +// DestinationLangchainUpdatePinecone - Pinecone is a popular vector store that can be used to store and retrieve embeddings. It is a managed service and can also be queried from outside of langchain. +type DestinationLangchainUpdatePinecone struct { + // Pinecone index to use + Index string `json:"index"` + mode *DestinationLangchainUpdateSchemasIndexingMode `const:"pinecone" json:"mode"` + // Pinecone environment to use + PineconeEnvironment string `json:"pinecone_environment"` + PineconeKey string `json:"pinecone_key"` +} + +func (d DestinationLangchainUpdatePinecone) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainUpdatePinecone) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainUpdatePinecone) GetIndex() string { + if o == nil { + return "" + } + return o.Index +} + +func (o *DestinationLangchainUpdatePinecone) GetMode() *DestinationLangchainUpdateSchemasIndexingMode { + return DestinationLangchainUpdateSchemasIndexingModePinecone.ToPointer() +} + +func (o *DestinationLangchainUpdatePinecone) GetPineconeEnvironment() string { + if o == nil { + return "" + } + return o.PineconeEnvironment +} + +func (o *DestinationLangchainUpdatePinecone) GetPineconeKey() string { + if o == nil { + return "" + } + return o.PineconeKey +} + +type DestinationLangchainUpdateIndexingType string + +const ( + DestinationLangchainUpdateIndexingTypeDestinationLangchainUpdatePinecone DestinationLangchainUpdateIndexingType = "destination-langchain-update_Pinecone" + DestinationLangchainUpdateIndexingTypeDocArrayHnswSearch DestinationLangchainUpdateIndexingType = "DocArrayHnswSearch" + DestinationLangchainUpdateIndexingTypeChromaLocalPersistance DestinationLangchainUpdateIndexingType = "Chroma (local persistance)" +) + +// DestinationLangchainUpdateIndexing - Indexing configuration +type DestinationLangchainUpdateIndexing struct { + DestinationLangchainUpdatePinecone *DestinationLangchainUpdatePinecone + DocArrayHnswSearch *DocArrayHnswSearch + ChromaLocalPersistance *ChromaLocalPersistance + + Type DestinationLangchainUpdateIndexingType +} + +func CreateDestinationLangchainUpdateIndexingDestinationLangchainUpdatePinecone(destinationLangchainUpdatePinecone DestinationLangchainUpdatePinecone) DestinationLangchainUpdateIndexing { + typ := DestinationLangchainUpdateIndexingTypeDestinationLangchainUpdatePinecone + + return DestinationLangchainUpdateIndexing{ + DestinationLangchainUpdatePinecone: &destinationLangchainUpdatePinecone, + Type: typ, + } +} + +func CreateDestinationLangchainUpdateIndexingDocArrayHnswSearch(docArrayHnswSearch DocArrayHnswSearch) DestinationLangchainUpdateIndexing { + typ := DestinationLangchainUpdateIndexingTypeDocArrayHnswSearch + + return DestinationLangchainUpdateIndexing{ + DocArrayHnswSearch: &docArrayHnswSearch, + Type: typ, + } +} + +func CreateDestinationLangchainUpdateIndexingChromaLocalPersistance(chromaLocalPersistance ChromaLocalPersistance) DestinationLangchainUpdateIndexing { + typ := DestinationLangchainUpdateIndexingTypeChromaLocalPersistance + + return DestinationLangchainUpdateIndexing{ + ChromaLocalPersistance: &chromaLocalPersistance, + Type: typ, + } +} + +func (u *DestinationLangchainUpdateIndexing) UnmarshalJSON(data []byte) error { + + var docArrayHnswSearch DocArrayHnswSearch = DocArrayHnswSearch{} + if err := utils.UnmarshalJSON(data, &docArrayHnswSearch, "", true, true); err == nil { + u.DocArrayHnswSearch = &docArrayHnswSearch + u.Type = DestinationLangchainUpdateIndexingTypeDocArrayHnswSearch + return nil + } + + var chromaLocalPersistance ChromaLocalPersistance = ChromaLocalPersistance{} + if err := utils.UnmarshalJSON(data, &chromaLocalPersistance, "", true, true); err == nil { + u.ChromaLocalPersistance = &chromaLocalPersistance + u.Type = DestinationLangchainUpdateIndexingTypeChromaLocalPersistance + return nil + } + + var destinationLangchainUpdatePinecone DestinationLangchainUpdatePinecone = DestinationLangchainUpdatePinecone{} + if err := utils.UnmarshalJSON(data, &destinationLangchainUpdatePinecone, "", true, true); err == nil { + u.DestinationLangchainUpdatePinecone = &destinationLangchainUpdatePinecone + u.Type = DestinationLangchainUpdateIndexingTypeDestinationLangchainUpdatePinecone + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationLangchainUpdateIndexing", string(data)) +} + +func (u DestinationLangchainUpdateIndexing) MarshalJSON() ([]byte, error) { + if u.DestinationLangchainUpdatePinecone != nil { + return utils.MarshalJSON(u.DestinationLangchainUpdatePinecone, "", true) + } + + if u.DocArrayHnswSearch != nil { + return utils.MarshalJSON(u.DocArrayHnswSearch, "", true) + } + + if u.ChromaLocalPersistance != nil { + return utils.MarshalJSON(u.ChromaLocalPersistance, "", true) + } + + return nil, errors.New("could not marshal union type DestinationLangchainUpdateIndexing: all fields are null") +} + +type DestinationLangchainUpdateProcessingConfigModel struct { + // Size of overlap between chunks in tokens to store in vector store to better capture relevant context + ChunkOverlap *int64 `default:"0" json:"chunk_overlap"` + // Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + ChunkSize int64 `json:"chunk_size"` + // List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + TextFields []string `json:"text_fields"` +} + +func (d DestinationLangchainUpdateProcessingConfigModel) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationLangchainUpdateProcessingConfigModel) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DestinationLangchainUpdateProcessingConfigModel) GetChunkOverlap() *int64 { + if o == nil { + return nil + } + return o.ChunkOverlap +} + +func (o *DestinationLangchainUpdateProcessingConfigModel) GetChunkSize() int64 { + if o == nil { + return 0 + } + return o.ChunkSize +} + +func (o *DestinationLangchainUpdateProcessingConfigModel) GetTextFields() []string { + if o == nil { + return []string{} + } + return o.TextFields +} + +type DestinationLangchainUpdate struct { + // Embedding configuration + Embedding DestinationLangchainUpdateEmbedding `json:"embedding"` + // Indexing configuration + Indexing DestinationLangchainUpdateIndexing `json:"indexing"` + Processing DestinationLangchainUpdateProcessingConfigModel `json:"processing"` +} + +func (o *DestinationLangchainUpdate) GetEmbedding() DestinationLangchainUpdateEmbedding { + if o == nil { + return DestinationLangchainUpdateEmbedding{} + } + return o.Embedding +} + +func (o *DestinationLangchainUpdate) GetIndexing() DestinationLangchainUpdateIndexing { + if o == nil { + return DestinationLangchainUpdateIndexing{} + } + return o.Indexing +} + +func (o *DestinationLangchainUpdate) GetProcessing() DestinationLangchainUpdateProcessingConfigModel { + if o == nil { + return DestinationLangchainUpdateProcessingConfigModel{} + } + return o.Processing +} diff --git a/internal/sdk/models/shared/destinationredshift.go b/internal/sdk/models/shared/destinationredshift.go index 8cb265185..b57efe5df 100644 --- a/internal/sdk/models/shared/destinationredshift.go +++ b/internal/sdk/models/shared/destinationredshift.go @@ -322,6 +322,165 @@ func (u DestinationRedshiftSSHTunnelMethod) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type DestinationRedshiftSSHTunnelMethod: all fields are null") } +type DestinationRedshiftSchemasEncryptionType string + +const ( + DestinationRedshiftSchemasEncryptionTypeAesCbcEnvelope DestinationRedshiftSchemasEncryptionType = "aes_cbc_envelope" +) + +func (e DestinationRedshiftSchemasEncryptionType) ToPointer() *DestinationRedshiftSchemasEncryptionType { + return &e +} +func (e *DestinationRedshiftSchemasEncryptionType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "aes_cbc_envelope": + *e = DestinationRedshiftSchemasEncryptionType(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationRedshiftSchemasEncryptionType: %v", v) + } +} + +// DestinationRedshiftAESCBCEnvelopeEncryption - Staging data will be encrypted using AES-CBC envelope encryption. +type DestinationRedshiftAESCBCEnvelopeEncryption struct { + encryptionType *DestinationRedshiftSchemasEncryptionType `const:"aes_cbc_envelope" json:"encryption_type"` + // The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. + KeyEncryptingKey *string `json:"key_encrypting_key,omitempty"` +} + +func (d DestinationRedshiftAESCBCEnvelopeEncryption) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationRedshiftAESCBCEnvelopeEncryption) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationRedshiftAESCBCEnvelopeEncryption) GetEncryptionType() *DestinationRedshiftSchemasEncryptionType { + return DestinationRedshiftSchemasEncryptionTypeAesCbcEnvelope.ToPointer() +} + +func (o *DestinationRedshiftAESCBCEnvelopeEncryption) GetKeyEncryptingKey() *string { + if o == nil { + return nil + } + return o.KeyEncryptingKey +} + +type DestinationRedshiftEncryptionType string + +const ( + DestinationRedshiftEncryptionTypeNone DestinationRedshiftEncryptionType = "none" +) + +func (e DestinationRedshiftEncryptionType) ToPointer() *DestinationRedshiftEncryptionType { + return &e +} +func (e *DestinationRedshiftEncryptionType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "none": + *e = DestinationRedshiftEncryptionType(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationRedshiftEncryptionType: %v", v) + } +} + +// DestinationRedshiftNoEncryption - Staging data will be stored in plaintext. +type DestinationRedshiftNoEncryption struct { + encryptionType *DestinationRedshiftEncryptionType `const:"none" json:"encryption_type"` +} + +func (d DestinationRedshiftNoEncryption) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DestinationRedshiftNoEncryption) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil { + return err + } + return nil +} + +func (o *DestinationRedshiftNoEncryption) GetEncryptionType() *DestinationRedshiftEncryptionType { + return DestinationRedshiftEncryptionTypeNone.ToPointer() +} + +type DestinationRedshiftEncryptionUnionType string + +const ( + DestinationRedshiftEncryptionUnionTypeDestinationRedshiftNoEncryption DestinationRedshiftEncryptionUnionType = "destination-redshift_No encryption" + DestinationRedshiftEncryptionUnionTypeDestinationRedshiftAESCBCEnvelopeEncryption DestinationRedshiftEncryptionUnionType = "destination-redshift_AES-CBC envelope encryption" +) + +// DestinationRedshiftEncryption - How to encrypt the staging data +type DestinationRedshiftEncryption struct { + DestinationRedshiftNoEncryption *DestinationRedshiftNoEncryption + DestinationRedshiftAESCBCEnvelopeEncryption *DestinationRedshiftAESCBCEnvelopeEncryption + + Type DestinationRedshiftEncryptionUnionType +} + +func CreateDestinationRedshiftEncryptionDestinationRedshiftNoEncryption(destinationRedshiftNoEncryption DestinationRedshiftNoEncryption) DestinationRedshiftEncryption { + typ := DestinationRedshiftEncryptionUnionTypeDestinationRedshiftNoEncryption + + return DestinationRedshiftEncryption{ + DestinationRedshiftNoEncryption: &destinationRedshiftNoEncryption, + Type: typ, + } +} + +func CreateDestinationRedshiftEncryptionDestinationRedshiftAESCBCEnvelopeEncryption(destinationRedshiftAESCBCEnvelopeEncryption DestinationRedshiftAESCBCEnvelopeEncryption) DestinationRedshiftEncryption { + typ := DestinationRedshiftEncryptionUnionTypeDestinationRedshiftAESCBCEnvelopeEncryption + + return DestinationRedshiftEncryption{ + DestinationRedshiftAESCBCEnvelopeEncryption: &destinationRedshiftAESCBCEnvelopeEncryption, + Type: typ, + } +} + +func (u *DestinationRedshiftEncryption) UnmarshalJSON(data []byte) error { + + var destinationRedshiftNoEncryption DestinationRedshiftNoEncryption = DestinationRedshiftNoEncryption{} + if err := utils.UnmarshalJSON(data, &destinationRedshiftNoEncryption, "", true, true); err == nil { + u.DestinationRedshiftNoEncryption = &destinationRedshiftNoEncryption + u.Type = DestinationRedshiftEncryptionUnionTypeDestinationRedshiftNoEncryption + return nil + } + + var destinationRedshiftAESCBCEnvelopeEncryption DestinationRedshiftAESCBCEnvelopeEncryption = DestinationRedshiftAESCBCEnvelopeEncryption{} + if err := utils.UnmarshalJSON(data, &destinationRedshiftAESCBCEnvelopeEncryption, "", true, true); err == nil { + u.DestinationRedshiftAESCBCEnvelopeEncryption = &destinationRedshiftAESCBCEnvelopeEncryption + u.Type = DestinationRedshiftEncryptionUnionTypeDestinationRedshiftAESCBCEnvelopeEncryption + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationRedshiftEncryption", string(data)) +} + +func (u DestinationRedshiftEncryption) MarshalJSON() ([]byte, error) { + if u.DestinationRedshiftNoEncryption != nil { + return utils.MarshalJSON(u.DestinationRedshiftNoEncryption, "", true) + } + + if u.DestinationRedshiftAESCBCEnvelopeEncryption != nil { + return utils.MarshalJSON(u.DestinationRedshiftAESCBCEnvelopeEncryption, "", true) + } + + return nil, errors.New("could not marshal union type DestinationRedshiftEncryption: all fields are null") +} + type DestinationRedshiftMethod string const ( @@ -472,6 +631,8 @@ func (e *DestinationRedshiftS3BucketRegion) UnmarshalJSON(data []byte) error { type DestinationRedshiftAWSS3Staging struct { // This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See AWS docs on how to generate an access key ID and secret access key. AccessKeyID string `json:"access_key_id"` + // How to encrypt the staging data + Encryption *DestinationRedshiftEncryption `json:"encryption,omitempty"` // The pattern allows you to set the file-name format for the S3 staging file(s) FileNamePattern *string `json:"file_name_pattern,omitempty"` method DestinationRedshiftMethod `const:"S3 Staging" json:"method"` @@ -505,6 +666,13 @@ func (o *DestinationRedshiftAWSS3Staging) GetAccessKeyID() string { return o.AccessKeyID } +func (o *DestinationRedshiftAWSS3Staging) GetEncryption() *DestinationRedshiftEncryption { + if o == nil { + return nil + } + return o.Encryption +} + func (o *DestinationRedshiftAWSS3Staging) GetFileNamePattern() *string { if o == nil { return nil diff --git a/internal/sdk/models/shared/destinationredshiftupdate.go b/internal/sdk/models/shared/destinationredshiftupdate.go index d9c823322..e0d493c9d 100644 --- a/internal/sdk/models/shared/destinationredshiftupdate.go +++ b/internal/sdk/models/shared/destinationredshiftupdate.go @@ -299,6 +299,165 @@ func (u DestinationRedshiftUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) return nil, errors.New("could not marshal union type DestinationRedshiftUpdateSSHTunnelMethod: all fields are null") } +type DestinationRedshiftUpdateEncryptionType string + +const ( + DestinationRedshiftUpdateEncryptionTypeAesCbcEnvelope DestinationRedshiftUpdateEncryptionType = "aes_cbc_envelope" +) + +func (e DestinationRedshiftUpdateEncryptionType) ToPointer() *DestinationRedshiftUpdateEncryptionType { + return &e +} +func (e *DestinationRedshiftUpdateEncryptionType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "aes_cbc_envelope": + *e = DestinationRedshiftUpdateEncryptionType(v) + return nil + default: + return fmt.Errorf("invalid value for DestinationRedshiftUpdateEncryptionType: %v", v) + } +} + +// AESCBCEnvelopeEncryption - Staging data will be encrypted using AES-CBC envelope encryption. +type AESCBCEnvelopeEncryption struct { + encryptionType *DestinationRedshiftUpdateEncryptionType `const:"aes_cbc_envelope" json:"encryption_type"` + // The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync. + KeyEncryptingKey *string `json:"key_encrypting_key,omitempty"` +} + +func (a AESCBCEnvelopeEncryption) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AESCBCEnvelopeEncryption) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, true); err != nil { + return err + } + return nil +} + +func (o *AESCBCEnvelopeEncryption) GetEncryptionType() *DestinationRedshiftUpdateEncryptionType { + return DestinationRedshiftUpdateEncryptionTypeAesCbcEnvelope.ToPointer() +} + +func (o *AESCBCEnvelopeEncryption) GetKeyEncryptingKey() *string { + if o == nil { + return nil + } + return o.KeyEncryptingKey +} + +type EncryptionType string + +const ( + EncryptionTypeNone EncryptionType = "none" +) + +func (e EncryptionType) ToPointer() *EncryptionType { + return &e +} +func (e *EncryptionType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "none": + *e = EncryptionType(v) + return nil + default: + return fmt.Errorf("invalid value for EncryptionType: %v", v) + } +} + +// NoEncryption - Staging data will be stored in plaintext. +type NoEncryption struct { + encryptionType *EncryptionType `const:"none" json:"encryption_type"` +} + +func (n NoEncryption) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NoEncryption) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, true); err != nil { + return err + } + return nil +} + +func (o *NoEncryption) GetEncryptionType() *EncryptionType { + return EncryptionTypeNone.ToPointer() +} + +type DestinationRedshiftUpdateEncryptionUnionType string + +const ( + DestinationRedshiftUpdateEncryptionUnionTypeNoEncryption DestinationRedshiftUpdateEncryptionUnionType = "No encryption" + DestinationRedshiftUpdateEncryptionUnionTypeAESCBCEnvelopeEncryption DestinationRedshiftUpdateEncryptionUnionType = "AES-CBC envelope encryption" +) + +// DestinationRedshiftUpdateEncryption - How to encrypt the staging data +type DestinationRedshiftUpdateEncryption struct { + NoEncryption *NoEncryption + AESCBCEnvelopeEncryption *AESCBCEnvelopeEncryption + + Type DestinationRedshiftUpdateEncryptionUnionType +} + +func CreateDestinationRedshiftUpdateEncryptionNoEncryption(noEncryption NoEncryption) DestinationRedshiftUpdateEncryption { + typ := DestinationRedshiftUpdateEncryptionUnionTypeNoEncryption + + return DestinationRedshiftUpdateEncryption{ + NoEncryption: &noEncryption, + Type: typ, + } +} + +func CreateDestinationRedshiftUpdateEncryptionAESCBCEnvelopeEncryption(aesCBCEnvelopeEncryption AESCBCEnvelopeEncryption) DestinationRedshiftUpdateEncryption { + typ := DestinationRedshiftUpdateEncryptionUnionTypeAESCBCEnvelopeEncryption + + return DestinationRedshiftUpdateEncryption{ + AESCBCEnvelopeEncryption: &aesCBCEnvelopeEncryption, + Type: typ, + } +} + +func (u *DestinationRedshiftUpdateEncryption) UnmarshalJSON(data []byte) error { + + var noEncryption NoEncryption = NoEncryption{} + if err := utils.UnmarshalJSON(data, &noEncryption, "", true, true); err == nil { + u.NoEncryption = &noEncryption + u.Type = DestinationRedshiftUpdateEncryptionUnionTypeNoEncryption + return nil + } + + var aesCBCEnvelopeEncryption AESCBCEnvelopeEncryption = AESCBCEnvelopeEncryption{} + if err := utils.UnmarshalJSON(data, &aesCBCEnvelopeEncryption, "", true, true); err == nil { + u.AESCBCEnvelopeEncryption = &aesCBCEnvelopeEncryption + u.Type = DestinationRedshiftUpdateEncryptionUnionTypeAESCBCEnvelopeEncryption + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for DestinationRedshiftUpdateEncryption", string(data)) +} + +func (u DestinationRedshiftUpdateEncryption) MarshalJSON() ([]byte, error) { + if u.NoEncryption != nil { + return utils.MarshalJSON(u.NoEncryption, "", true) + } + + if u.AESCBCEnvelopeEncryption != nil { + return utils.MarshalJSON(u.AESCBCEnvelopeEncryption, "", true) + } + + return nil, errors.New("could not marshal union type DestinationRedshiftUpdateEncryption: all fields are null") +} + type DestinationRedshiftUpdateMethod string const ( @@ -449,6 +608,8 @@ func (e *DestinationRedshiftUpdateS3BucketRegion) UnmarshalJSON(data []byte) err type AWSS3Staging struct { // This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See AWS docs on how to generate an access key ID and secret access key. AccessKeyID string `json:"access_key_id"` + // How to encrypt the staging data + Encryption *DestinationRedshiftUpdateEncryption `json:"encryption,omitempty"` // The pattern allows you to set the file-name format for the S3 staging file(s) FileNamePattern *string `json:"file_name_pattern,omitempty"` method DestinationRedshiftUpdateMethod `const:"S3 Staging" json:"method"` @@ -482,6 +643,13 @@ func (o *AWSS3Staging) GetAccessKeyID() string { return o.AccessKeyID } +func (o *AWSS3Staging) GetEncryption() *DestinationRedshiftUpdateEncryption { + if o == nil { + return nil + } + return o.Encryption +} + func (o *AWSS3Staging) GetFileNamePattern() *string { if o == nil { return nil diff --git a/internal/sdk/models/shared/destinationsnowflake.go b/internal/sdk/models/shared/destinationsnowflake.go index 7ee65d88b..e1ce4c4a1 100644 --- a/internal/sdk/models/shared/destinationsnowflake.go +++ b/internal/sdk/models/shared/destinationsnowflake.go @@ -327,7 +327,7 @@ type DestinationSnowflake struct { Schema string `json:"schema"` // Enter the name of the user you want to use to access the database Username string `json:"username"` - // Enter the name of the warehouse that you want to use as a compute cluster + // Enter the name of the warehouse that you want to sync data into Warehouse string `json:"warehouse"` } diff --git a/internal/sdk/models/shared/destinationsnowflakecortex.go b/internal/sdk/models/shared/destinationsnowflakecortex.go index 97728af24..df427ec43 100644 --- a/internal/sdk/models/shared/destinationsnowflakecortex.go +++ b/internal/sdk/models/shared/destinationsnowflakecortex.go @@ -480,7 +480,7 @@ type DestinationSnowflakeCortexSnowflakeConnection struct { Role string `json:"role"` // Enter the name of the user you want to use to access the database Username string `json:"username"` - // Enter the name of the warehouse that you want to use as a compute cluster + // Enter the name of the warehouse that you want to sync data into Warehouse string `json:"warehouse"` } diff --git a/internal/sdk/models/shared/destinationsnowflakecortexupdate.go b/internal/sdk/models/shared/destinationsnowflakecortexupdate.go index 9f77ea09b..479a31f5a 100644 --- a/internal/sdk/models/shared/destinationsnowflakecortexupdate.go +++ b/internal/sdk/models/shared/destinationsnowflakecortexupdate.go @@ -457,7 +457,7 @@ type SnowflakeConnection struct { Role string `json:"role"` // Enter the name of the user you want to use to access the database Username string `json:"username"` - // Enter the name of the warehouse that you want to use as a compute cluster + // Enter the name of the warehouse that you want to sync data into Warehouse string `json:"warehouse"` } diff --git a/internal/sdk/models/shared/destinationsnowflakeupdate.go b/internal/sdk/models/shared/destinationsnowflakeupdate.go index 1ca9a034c..1225f7b53 100644 --- a/internal/sdk/models/shared/destinationsnowflakeupdate.go +++ b/internal/sdk/models/shared/destinationsnowflakeupdate.go @@ -303,7 +303,7 @@ type DestinationSnowflakeUpdate struct { Schema string `json:"schema"` // Enter the name of the user you want to use to access the database Username string `json:"username"` - // Enter the name of the warehouse that you want to use as a compute cluster + // Enter the name of the warehouse that you want to sync data into Warehouse string `json:"warehouse"` } diff --git a/internal/sdk/models/shared/schemeclientcredentials.go b/internal/sdk/models/shared/schemeclientcredentials.go index 003ede0b5..492194be9 100644 --- a/internal/sdk/models/shared/schemeclientcredentials.go +++ b/internal/sdk/models/shared/schemeclientcredentials.go @@ -9,7 +9,7 @@ import ( type SchemeClientCredentials struct { ClientID string `security:"name=clientID"` ClientSecret string `security:"name=clientSecret"` - tokenURL string `const:"/applications/token"` + tokenURL string `const:"/api/v1/applications/token"` } func (s SchemeClientCredentials) MarshalJSON() ([]byte, error) { @@ -38,5 +38,5 @@ func (o *SchemeClientCredentials) GetClientSecret() string { } func (o *SchemeClientCredentials) GetTokenURL() string { - return "/applications/token" + return "/api/v1/applications/token" } diff --git a/internal/sdk/models/shared/sourceamazonsellerpartner.go b/internal/sdk/models/shared/sourceamazonsellerpartner.go index 54e51f37b..e10df3559 100644 --- a/internal/sdk/models/shared/sourceamazonsellerpartner.go +++ b/internal/sdk/models/shared/sourceamazonsellerpartner.go @@ -392,7 +392,7 @@ type SourceAmazonSellerPartner struct { Region *SourceAmazonSellerPartnerAWSRegion `default:"US" json:"region"` // UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. ReplicationEndDate *time.Time `json:"replication_end_date,omitempty"` - // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. + // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided, the date 2 years ago from today will be used. ReplicationStartDate *time.Time `json:"replication_start_date,omitempty"` // Additional information passed to reports. This varies by report type. ReportOptionsList []SourceAmazonSellerPartnerReportOptions `json:"report_options_list,omitempty"` diff --git a/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go b/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go index 3b27565da..4e16321da 100644 --- a/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go +++ b/internal/sdk/models/shared/sourceamazonsellerpartnerupdate.go @@ -369,7 +369,7 @@ type SourceAmazonSellerPartnerUpdate struct { Region *AWSRegion `default:"US" json:"region"` // UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. ReplicationEndDate *time.Time `json:"replication_end_date,omitempty"` - // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. + // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided, the date 2 years ago from today will be used. ReplicationStartDate *time.Time `json:"replication_start_date,omitempty"` // Additional information passed to reports. This varies by report type. ReportOptionsList []ReportOptions `json:"report_options_list,omitempty"` diff --git a/internal/sdk/models/shared/sourceawscloudtrail.go b/internal/sdk/models/shared/sourceawscloudtrail.go index cb45b8cc6..47afcc121 100644 --- a/internal/sdk/models/shared/sourceawscloudtrail.go +++ b/internal/sdk/models/shared/sourceawscloudtrail.go @@ -9,36 +9,6 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/types" ) -type SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody struct { - AttributeKey *string `default:"EventName" json:"attribute_key"` - AttributeValue *string `default:"ListInstanceAssociations" json:"attribute_value"` -} - -func (s SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) GetAttributeKey() *string { - if o == nil { - return nil - } - return o.AttributeKey -} - -func (o *SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) GetAttributeValue() *string { - if o == nil { - return nil - } - return o.AttributeValue -} - type AwsCloudtrail string const ( @@ -66,13 +36,12 @@ type SourceAwsCloudtrail struct { // AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. AwsKeyID string `json:"aws_key_id"` // The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. - AwsRegionName *string `default:"us-east-1" json:"aws_region_name"` + AwsRegionName string `json:"aws_region_name"` // AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. - AwsSecretKey string `json:"aws_secret_key"` - LookupAttributesFilter *SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody `json:"lookup_attributes_filter,omitempty"` - sourceType AwsCloudtrail `const:"aws-cloudtrail" json:"sourceType"` + AwsSecretKey string `json:"aws_secret_key"` + sourceType AwsCloudtrail `const:"aws-cloudtrail" json:"sourceType"` // The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. - StartDate *types.Date `json:"start_date,omitempty"` + StartDate *types.Date `default:"1970-01-01" json:"start_date"` } func (s SourceAwsCloudtrail) MarshalJSON() ([]byte, error) { @@ -93,9 +62,9 @@ func (o *SourceAwsCloudtrail) GetAwsKeyID() string { return o.AwsKeyID } -func (o *SourceAwsCloudtrail) GetAwsRegionName() *string { +func (o *SourceAwsCloudtrail) GetAwsRegionName() string { if o == nil { - return nil + return "" } return o.AwsRegionName } @@ -107,13 +76,6 @@ func (o *SourceAwsCloudtrail) GetAwsSecretKey() string { return o.AwsSecretKey } -func (o *SourceAwsCloudtrail) GetLookupAttributesFilter() *SourceAwsCloudtrailFilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody { - if o == nil { - return nil - } - return o.LookupAttributesFilter -} - func (o *SourceAwsCloudtrail) GetSourceType() AwsCloudtrail { return AwsCloudtrailAwsCloudtrail } diff --git a/internal/sdk/models/shared/sourceawscloudtrailupdate.go b/internal/sdk/models/shared/sourceawscloudtrailupdate.go index 3ab86b30c..ecfb7dff5 100644 --- a/internal/sdk/models/shared/sourceawscloudtrailupdate.go +++ b/internal/sdk/models/shared/sourceawscloudtrailupdate.go @@ -7,46 +7,15 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/types" ) -type FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody struct { - AttributeKey *string `default:"EventName" json:"attribute_key"` - AttributeValue *string `default:"ListInstanceAssociations" json:"attribute_value"` -} - -func (f FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(f, "", false) -} - -func (f *FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, false); err != nil { - return err - } - return nil -} - -func (o *FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) GetAttributeKey() *string { - if o == nil { - return nil - } - return o.AttributeKey -} - -func (o *FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) GetAttributeValue() *string { - if o == nil { - return nil - } - return o.AttributeValue -} - type SourceAwsCloudtrailUpdate struct { // AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. AwsKeyID string `json:"aws_key_id"` // The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. - AwsRegionName *string `default:"us-east-1" json:"aws_region_name"` + AwsRegionName string `json:"aws_region_name"` // AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key. - AwsSecretKey string `json:"aws_secret_key"` - LookupAttributesFilter *FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody `json:"lookup_attributes_filter,omitempty"` + AwsSecretKey string `json:"aws_secret_key"` // The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. - StartDate *types.Date `json:"start_date,omitempty"` + StartDate *types.Date `default:"1970-01-01" json:"start_date"` } func (s SourceAwsCloudtrailUpdate) MarshalJSON() ([]byte, error) { @@ -67,9 +36,9 @@ func (o *SourceAwsCloudtrailUpdate) GetAwsKeyID() string { return o.AwsKeyID } -func (o *SourceAwsCloudtrailUpdate) GetAwsRegionName() *string { +func (o *SourceAwsCloudtrailUpdate) GetAwsRegionName() string { if o == nil { - return nil + return "" } return o.AwsRegionName } @@ -81,13 +50,6 @@ func (o *SourceAwsCloudtrailUpdate) GetAwsSecretKey() string { return o.AwsSecretKey } -func (o *SourceAwsCloudtrailUpdate) GetLookupAttributesFilter() *FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody { - if o == nil { - return nil - } - return o.LookupAttributesFilter -} - func (o *SourceAwsCloudtrailUpdate) GetStartDate() *types.Date { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourceclazar.go b/internal/sdk/models/shared/sourceclazar.go deleted file mode 100644 index 0b53a68e3..000000000 --- a/internal/sdk/models/shared/sourceclazar.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -import ( - "encoding/json" - "fmt" - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" -) - -type Clazar string - -const ( - ClazarClazar Clazar = "clazar" -) - -func (e Clazar) ToPointer() *Clazar { - return &e -} -func (e *Clazar) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "clazar": - *e = Clazar(v) - return nil - default: - return fmt.Errorf("invalid value for Clazar: %v", v) - } -} - -type SourceClazar struct { - ClientID string `json:"client_id"` - ClientSecret string `json:"client_secret"` - sourceType Clazar `const:"clazar" json:"sourceType"` -} - -func (s SourceClazar) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceClazar) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *SourceClazar) GetClientID() string { - if o == nil { - return "" - } - return o.ClientID -} - -func (o *SourceClazar) GetClientSecret() string { - if o == nil { - return "" - } - return o.ClientSecret -} - -func (o *SourceClazar) GetSourceType() Clazar { - return ClazarClazar -} diff --git a/internal/sdk/models/shared/sourceclazarputrequest.go b/internal/sdk/models/shared/sourceclazarputrequest.go deleted file mode 100644 index 08d15a7d9..000000000 --- a/internal/sdk/models/shared/sourceclazarputrequest.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -type SourceClazarPutRequest struct { - Configuration SourceClazarUpdate `json:"configuration"` - Name string `json:"name"` - WorkspaceID string `json:"workspaceId"` -} - -func (o *SourceClazarPutRequest) GetConfiguration() SourceClazarUpdate { - if o == nil { - return SourceClazarUpdate{} - } - return o.Configuration -} - -func (o *SourceClazarPutRequest) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *SourceClazarPutRequest) GetWorkspaceID() string { - if o == nil { - return "" - } - return o.WorkspaceID -} diff --git a/internal/sdk/models/shared/sourceclazarupdate.go b/internal/sdk/models/shared/sourceclazarupdate.go deleted file mode 100644 index 4f70ef9ba..000000000 --- a/internal/sdk/models/shared/sourceclazarupdate.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -type SourceClazarUpdate struct { - ClientID string `json:"client_id"` - ClientSecret string `json:"client_secret"` -} - -func (o *SourceClazarUpdate) GetClientID() string { - if o == nil { - return "" - } - return o.ClientID -} - -func (o *SourceClazarUpdate) GetClientSecret() string { - if o == nil { - return "" - } - return o.ClientSecret -} diff --git a/internal/sdk/models/shared/sourcedatadog.go b/internal/sdk/models/shared/sourcedatadog.go deleted file mode 100644 index 2a0e4943f..000000000 --- a/internal/sdk/models/shared/sourcedatadog.go +++ /dev/null @@ -1,222 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -import ( - "encoding/json" - "fmt" - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" -) - -// SourceDatadogDataSource - A data source that is powered by the platform. -type SourceDatadogDataSource string - -const ( - SourceDatadogDataSourceMetrics SourceDatadogDataSource = "metrics" - SourceDatadogDataSourceCloudCost SourceDatadogDataSource = "cloud_cost" - SourceDatadogDataSourceLogs SourceDatadogDataSource = "logs" - SourceDatadogDataSourceRum SourceDatadogDataSource = "rum" -) - -func (e SourceDatadogDataSource) ToPointer() *SourceDatadogDataSource { - return &e -} -func (e *SourceDatadogDataSource) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "metrics": - fallthrough - case "cloud_cost": - fallthrough - case "logs": - fallthrough - case "rum": - *e = SourceDatadogDataSource(v) - return nil - default: - return fmt.Errorf("invalid value for SourceDatadogDataSource: %v", v) - } -} - -type SourceDatadogQueries struct { - // A data source that is powered by the platform. - DataSource SourceDatadogDataSource `json:"data_source"` - // The variable name for use in queries. - Name string `json:"name"` - // A classic query string. - Query string `json:"query"` -} - -func (o *SourceDatadogQueries) GetDataSource() SourceDatadogDataSource { - if o == nil { - return SourceDatadogDataSource("") - } - return o.DataSource -} - -func (o *SourceDatadogQueries) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *SourceDatadogQueries) GetQuery() string { - if o == nil { - return "" - } - return o.Query -} - -// SourceDatadogSite - The site where Datadog data resides in. -type SourceDatadogSite string - -const ( - SourceDatadogSiteDatadoghqCom SourceDatadogSite = "datadoghq.com" - SourceDatadogSiteUs3DatadoghqCom SourceDatadogSite = "us3.datadoghq.com" - SourceDatadogSiteUs5DatadoghqCom SourceDatadogSite = "us5.datadoghq.com" - SourceDatadogSiteDatadoghqEu SourceDatadogSite = "datadoghq.eu" - SourceDatadogSiteDdogGovCom SourceDatadogSite = "ddog-gov.com" -) - -func (e SourceDatadogSite) ToPointer() *SourceDatadogSite { - return &e -} -func (e *SourceDatadogSite) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "datadoghq.com": - fallthrough - case "us3.datadoghq.com": - fallthrough - case "us5.datadoghq.com": - fallthrough - case "datadoghq.eu": - fallthrough - case "ddog-gov.com": - *e = SourceDatadogSite(v) - return nil - default: - return fmt.Errorf("invalid value for SourceDatadogSite: %v", v) - } -} - -type Datadog string - -const ( - DatadogDatadog Datadog = "datadog" -) - -func (e Datadog) ToPointer() *Datadog { - return &e -} -func (e *Datadog) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "datadog": - *e = Datadog(v) - return nil - default: - return fmt.Errorf("invalid value for Datadog: %v", v) - } -} - -type SourceDatadog struct { - // Datadog API key - APIKey string `json:"api_key"` - // Datadog application key - ApplicationKey string `json:"application_key"` - // UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. - EndDate *string `json:"end_date,omitempty"` - // Maximum number of records to collect per request. - MaxRecordsPerRequest *int64 `default:"5000" json:"max_records_per_request"` - // List of queries to be run and used as inputs. - Queries []SourceDatadogQueries `json:"queries,omitempty"` - // The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. - Query *string `json:"query,omitempty"` - // The site where Datadog data resides in. - Site *SourceDatadogSite `default:"datadoghq.com" json:"site"` - sourceType Datadog `const:"datadog" json:"sourceType"` - // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. - StartDate *string `json:"start_date,omitempty"` -} - -func (s SourceDatadog) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceDatadog) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *SourceDatadog) GetAPIKey() string { - if o == nil { - return "" - } - return o.APIKey -} - -func (o *SourceDatadog) GetApplicationKey() string { - if o == nil { - return "" - } - return o.ApplicationKey -} - -func (o *SourceDatadog) GetEndDate() *string { - if o == nil { - return nil - } - return o.EndDate -} - -func (o *SourceDatadog) GetMaxRecordsPerRequest() *int64 { - if o == nil { - return nil - } - return o.MaxRecordsPerRequest -} - -func (o *SourceDatadog) GetQueries() []SourceDatadogQueries { - if o == nil { - return nil - } - return o.Queries -} - -func (o *SourceDatadog) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - -func (o *SourceDatadog) GetSite() *SourceDatadogSite { - if o == nil { - return nil - } - return o.Site -} - -func (o *SourceDatadog) GetSourceType() Datadog { - return DatadogDatadog -} - -func (o *SourceDatadog) GetStartDate() *string { - if o == nil { - return nil - } - return o.StartDate -} diff --git a/internal/sdk/models/shared/sourcedatadogupdate.go b/internal/sdk/models/shared/sourcedatadogupdate.go deleted file mode 100644 index 0f321be80..000000000 --- a/internal/sdk/models/shared/sourcedatadogupdate.go +++ /dev/null @@ -1,194 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -import ( - "encoding/json" - "fmt" - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" -) - -// SourceDatadogUpdateDataSource - A data source that is powered by the platform. -type SourceDatadogUpdateDataSource string - -const ( - SourceDatadogUpdateDataSourceMetrics SourceDatadogUpdateDataSource = "metrics" - SourceDatadogUpdateDataSourceCloudCost SourceDatadogUpdateDataSource = "cloud_cost" - SourceDatadogUpdateDataSourceLogs SourceDatadogUpdateDataSource = "logs" - SourceDatadogUpdateDataSourceRum SourceDatadogUpdateDataSource = "rum" -) - -func (e SourceDatadogUpdateDataSource) ToPointer() *SourceDatadogUpdateDataSource { - return &e -} -func (e *SourceDatadogUpdateDataSource) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "metrics": - fallthrough - case "cloud_cost": - fallthrough - case "logs": - fallthrough - case "rum": - *e = SourceDatadogUpdateDataSource(v) - return nil - default: - return fmt.Errorf("invalid value for SourceDatadogUpdateDataSource: %v", v) - } -} - -type Queries struct { - // A data source that is powered by the platform. - DataSource SourceDatadogUpdateDataSource `json:"data_source"` - // The variable name for use in queries. - Name string `json:"name"` - // A classic query string. - Query string `json:"query"` -} - -func (o *Queries) GetDataSource() SourceDatadogUpdateDataSource { - if o == nil { - return SourceDatadogUpdateDataSource("") - } - return o.DataSource -} - -func (o *Queries) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *Queries) GetQuery() string { - if o == nil { - return "" - } - return o.Query -} - -// Site - The site where Datadog data resides in. -type Site string - -const ( - SiteDatadoghqCom Site = "datadoghq.com" - SiteUs3DatadoghqCom Site = "us3.datadoghq.com" - SiteUs5DatadoghqCom Site = "us5.datadoghq.com" - SiteDatadoghqEu Site = "datadoghq.eu" - SiteDdogGovCom Site = "ddog-gov.com" -) - -func (e Site) ToPointer() *Site { - return &e -} -func (e *Site) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "datadoghq.com": - fallthrough - case "us3.datadoghq.com": - fallthrough - case "us5.datadoghq.com": - fallthrough - case "datadoghq.eu": - fallthrough - case "ddog-gov.com": - *e = Site(v) - return nil - default: - return fmt.Errorf("invalid value for Site: %v", v) - } -} - -type SourceDatadogUpdate struct { - // Datadog API key - APIKey string `json:"api_key"` - // Datadog application key - ApplicationKey string `json:"application_key"` - // UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. - EndDate *string `json:"end_date,omitempty"` - // Maximum number of records to collect per request. - MaxRecordsPerRequest *int64 `default:"5000" json:"max_records_per_request"` - // List of queries to be run and used as inputs. - Queries []Queries `json:"queries,omitempty"` - // The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. - Query *string `json:"query,omitempty"` - // The site where Datadog data resides in. - Site *Site `default:"datadoghq.com" json:"site"` - // UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. - StartDate *string `json:"start_date,omitempty"` -} - -func (s SourceDatadogUpdate) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceDatadogUpdate) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *SourceDatadogUpdate) GetAPIKey() string { - if o == nil { - return "" - } - return o.APIKey -} - -func (o *SourceDatadogUpdate) GetApplicationKey() string { - if o == nil { - return "" - } - return o.ApplicationKey -} - -func (o *SourceDatadogUpdate) GetEndDate() *string { - if o == nil { - return nil - } - return o.EndDate -} - -func (o *SourceDatadogUpdate) GetMaxRecordsPerRequest() *int64 { - if o == nil { - return nil - } - return o.MaxRecordsPerRequest -} - -func (o *SourceDatadogUpdate) GetQueries() []Queries { - if o == nil { - return nil - } - return o.Queries -} - -func (o *SourceDatadogUpdate) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - -func (o *SourceDatadogUpdate) GetSite() *Site { - if o == nil { - return nil - } - return o.Site -} - -func (o *SourceDatadogUpdate) GetStartDate() *string { - if o == nil { - return nil - } - return o.StartDate -} diff --git a/internal/sdk/models/shared/sourcefacebookmarketing.go b/internal/sdk/models/shared/sourcefacebookmarketing.go index 97a2eee50..8cca57bab 100644 --- a/internal/sdk/models/shared/sourcefacebookmarketing.go +++ b/internal/sdk/models/shared/sourcefacebookmarketing.go @@ -4,7 +4,6 @@ package shared import ( "encoding/json" - "errors" "fmt" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" "time" @@ -148,190 +147,6 @@ func (e *SourceFacebookMarketingValidCampaignStatuses) UnmarshalJSON(data []byte } } -type SourceFacebookMarketingSchemasAuthType string - -const ( - SourceFacebookMarketingSchemasAuthTypeService SourceFacebookMarketingSchemasAuthType = "Service" -) - -func (e SourceFacebookMarketingSchemasAuthType) ToPointer() *SourceFacebookMarketingSchemasAuthType { - return &e -} -func (e *SourceFacebookMarketingSchemasAuthType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "Service": - *e = SourceFacebookMarketingSchemasAuthType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceFacebookMarketingSchemasAuthType: %v", v) - } -} - -type SourceFacebookMarketingServiceAccountKeyAuthentication struct { - // The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. - AccessToken string `json:"access_token"` - authType *SourceFacebookMarketingSchemasAuthType `const:"Service" json:"auth_type"` -} - -func (s SourceFacebookMarketingServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceFacebookMarketingServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *SourceFacebookMarketingServiceAccountKeyAuthentication) GetAccessToken() string { - if o == nil { - return "" - } - return o.AccessToken -} - -func (o *SourceFacebookMarketingServiceAccountKeyAuthentication) GetAuthType() *SourceFacebookMarketingSchemasAuthType { - return SourceFacebookMarketingSchemasAuthTypeService.ToPointer() -} - -type SourceFacebookMarketingAuthType string - -const ( - SourceFacebookMarketingAuthTypeClient SourceFacebookMarketingAuthType = "Client" -) - -func (e SourceFacebookMarketingAuthType) ToPointer() *SourceFacebookMarketingAuthType { - return &e -} -func (e *SourceFacebookMarketingAuthType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "Client": - *e = SourceFacebookMarketingAuthType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceFacebookMarketingAuthType: %v", v) - } -} - -type SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth struct { - // The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. - AccessToken *string `json:"access_token,omitempty"` - authType *SourceFacebookMarketingAuthType `const:"Client" json:"auth_type"` - // Client ID for the Facebook Marketing API - ClientID string `json:"client_id"` - // Client Secret for the Facebook Marketing API - ClientSecret string `json:"client_secret"` -} - -func (s SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth) GetAccessToken() *string { - if o == nil { - return nil - } - return o.AccessToken -} - -func (o *SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth) GetAuthType() *SourceFacebookMarketingAuthType { - return SourceFacebookMarketingAuthTypeClient.ToPointer() -} - -func (o *SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth) GetClientID() string { - if o == nil { - return "" - } - return o.ClientID -} - -func (o *SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth) GetClientSecret() string { - if o == nil { - return "" - } - return o.ClientSecret -} - -type SourceFacebookMarketingAuthenticationType string - -const ( - SourceFacebookMarketingAuthenticationTypeSourceFacebookMarketingAuthenticateViaFacebookMarketingOauth SourceFacebookMarketingAuthenticationType = "source-facebook-marketing_Authenticate via Facebook Marketing (Oauth)" - SourceFacebookMarketingAuthenticationTypeSourceFacebookMarketingServiceAccountKeyAuthentication SourceFacebookMarketingAuthenticationType = "source-facebook-marketing_Service Account Key Authentication" -) - -// SourceFacebookMarketingAuthentication - Credentials for connecting to the Facebook Marketing API -type SourceFacebookMarketingAuthentication struct { - SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth *SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth - SourceFacebookMarketingServiceAccountKeyAuthentication *SourceFacebookMarketingServiceAccountKeyAuthentication - - Type SourceFacebookMarketingAuthenticationType -} - -func CreateSourceFacebookMarketingAuthenticationSourceFacebookMarketingAuthenticateViaFacebookMarketingOauth(sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth) SourceFacebookMarketingAuthentication { - typ := SourceFacebookMarketingAuthenticationTypeSourceFacebookMarketingAuthenticateViaFacebookMarketingOauth - - return SourceFacebookMarketingAuthentication{ - SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth: &sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth, - Type: typ, - } -} - -func CreateSourceFacebookMarketingAuthenticationSourceFacebookMarketingServiceAccountKeyAuthentication(sourceFacebookMarketingServiceAccountKeyAuthentication SourceFacebookMarketingServiceAccountKeyAuthentication) SourceFacebookMarketingAuthentication { - typ := SourceFacebookMarketingAuthenticationTypeSourceFacebookMarketingServiceAccountKeyAuthentication - - return SourceFacebookMarketingAuthentication{ - SourceFacebookMarketingServiceAccountKeyAuthentication: &sourceFacebookMarketingServiceAccountKeyAuthentication, - Type: typ, - } -} - -func (u *SourceFacebookMarketingAuthentication) UnmarshalJSON(data []byte) error { - - var sourceFacebookMarketingServiceAccountKeyAuthentication SourceFacebookMarketingServiceAccountKeyAuthentication = SourceFacebookMarketingServiceAccountKeyAuthentication{} - if err := utils.UnmarshalJSON(data, &sourceFacebookMarketingServiceAccountKeyAuthentication, "", true, true); err == nil { - u.SourceFacebookMarketingServiceAccountKeyAuthentication = &sourceFacebookMarketingServiceAccountKeyAuthentication - u.Type = SourceFacebookMarketingAuthenticationTypeSourceFacebookMarketingServiceAccountKeyAuthentication - return nil - } - - var sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth = SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth{} - if err := utils.UnmarshalJSON(data, &sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth, "", true, true); err == nil { - u.SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth = &sourceFacebookMarketingAuthenticateViaFacebookMarketingOauth - u.Type = SourceFacebookMarketingAuthenticationTypeSourceFacebookMarketingAuthenticateViaFacebookMarketingOauth - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceFacebookMarketingAuthentication", string(data)) -} - -func (u SourceFacebookMarketingAuthentication) MarshalJSON() ([]byte, error) { - if u.SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth != nil { - return utils.MarshalJSON(u.SourceFacebookMarketingAuthenticateViaFacebookMarketingOauth, "", true) - } - - if u.SourceFacebookMarketingServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.SourceFacebookMarketingServiceAccountKeyAuthentication, "", true) - } - - return nil, errors.New("could not marshal union type SourceFacebookMarketingAuthentication: all fields are null") -} - // SourceFacebookMarketingValidActionBreakdowns - An enumeration. type SourceFacebookMarketingValidActionBreakdowns string @@ -582,6 +397,7 @@ const ( SourceFacebookMarketingValidEnumsAdsetEnd SourceFacebookMarketingValidEnums = "adset_end" SourceFacebookMarketingValidEnumsAdsetID SourceFacebookMarketingValidEnums = "adset_id" SourceFacebookMarketingValidEnumsAdsetName SourceFacebookMarketingValidEnums = "adset_name" + SourceFacebookMarketingValidEnumsAdsetStart SourceFacebookMarketingValidEnums = "adset_start" SourceFacebookMarketingValidEnumsAgeTargeting SourceFacebookMarketingValidEnums = "age_targeting" SourceFacebookMarketingValidEnumsAttributionSetting SourceFacebookMarketingValidEnums = "attribution_setting" SourceFacebookMarketingValidEnumsAuctionBid SourceFacebookMarketingValidEnums = "auction_bid" @@ -736,6 +552,8 @@ func (e *SourceFacebookMarketingValidEnums) UnmarshalJSON(data []byte) error { fallthrough case "adset_name": fallthrough + case "adset_start": + fallthrough case "age_targeting": fallthrough case "attribution_setting": @@ -1167,8 +985,6 @@ type SourceFacebookMarketing struct { ClientID *string `json:"client_id,omitempty"` // The Client Secret for your OAuth app ClientSecret *string `json:"client_secret,omitempty"` - // Credentials for connecting to the Facebook Marketing API - Credentials *SourceFacebookMarketingAuthentication `json:"credentials,omitempty"` // A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. CustomInsights []SourceFacebookMarketingInsightConfig `json:"custom_insights,omitempty"` // The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. @@ -1253,13 +1069,6 @@ func (o *SourceFacebookMarketing) GetClientSecret() *string { return o.ClientSecret } -func (o *SourceFacebookMarketing) GetCredentials() *SourceFacebookMarketingAuthentication { - if o == nil { - return nil - } - return o.Credentials -} - func (o *SourceFacebookMarketing) GetCustomInsights() []SourceFacebookMarketingInsightConfig { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcefacebookmarketingupdate.go b/internal/sdk/models/shared/sourcefacebookmarketingupdate.go index 42144e2bc..2d5b4d976 100644 --- a/internal/sdk/models/shared/sourcefacebookmarketingupdate.go +++ b/internal/sdk/models/shared/sourcefacebookmarketingupdate.go @@ -4,7 +4,6 @@ package shared import ( "encoding/json" - "errors" "fmt" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" "time" @@ -148,190 +147,6 @@ func (e *ValidCampaignStatuses) UnmarshalJSON(data []byte) error { } } -type SourceFacebookMarketingUpdateSchemasAuthType string - -const ( - SourceFacebookMarketingUpdateSchemasAuthTypeService SourceFacebookMarketingUpdateSchemasAuthType = "Service" -) - -func (e SourceFacebookMarketingUpdateSchemasAuthType) ToPointer() *SourceFacebookMarketingUpdateSchemasAuthType { - return &e -} -func (e *SourceFacebookMarketingUpdateSchemasAuthType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "Service": - *e = SourceFacebookMarketingUpdateSchemasAuthType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceFacebookMarketingUpdateSchemasAuthType: %v", v) - } -} - -type ServiceAccountKeyAuthentication struct { - // The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. - AccessToken string `json:"access_token"` - authType *SourceFacebookMarketingUpdateSchemasAuthType `const:"Service" json:"auth_type"` -} - -func (s ServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *ServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *ServiceAccountKeyAuthentication) GetAccessToken() string { - if o == nil { - return "" - } - return o.AccessToken -} - -func (o *ServiceAccountKeyAuthentication) GetAuthType() *SourceFacebookMarketingUpdateSchemasAuthType { - return SourceFacebookMarketingUpdateSchemasAuthTypeService.ToPointer() -} - -type SourceFacebookMarketingUpdateAuthType string - -const ( - SourceFacebookMarketingUpdateAuthTypeClient SourceFacebookMarketingUpdateAuthType = "Client" -) - -func (e SourceFacebookMarketingUpdateAuthType) ToPointer() *SourceFacebookMarketingUpdateAuthType { - return &e -} -func (e *SourceFacebookMarketingUpdateAuthType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "Client": - *e = SourceFacebookMarketingUpdateAuthType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceFacebookMarketingUpdateAuthType: %v", v) - } -} - -type AuthenticateViaFacebookMarketingOauth struct { - // The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information. - AccessToken *string `json:"access_token,omitempty"` - authType *SourceFacebookMarketingUpdateAuthType `const:"Client" json:"auth_type"` - // Client ID for the Facebook Marketing API - ClientID string `json:"client_id"` - // Client Secret for the Facebook Marketing API - ClientSecret string `json:"client_secret"` -} - -func (a AuthenticateViaFacebookMarketingOauth) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AuthenticateViaFacebookMarketingOauth) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, true); err != nil { - return err - } - return nil -} - -func (o *AuthenticateViaFacebookMarketingOauth) GetAccessToken() *string { - if o == nil { - return nil - } - return o.AccessToken -} - -func (o *AuthenticateViaFacebookMarketingOauth) GetAuthType() *SourceFacebookMarketingUpdateAuthType { - return SourceFacebookMarketingUpdateAuthTypeClient.ToPointer() -} - -func (o *AuthenticateViaFacebookMarketingOauth) GetClientID() string { - if o == nil { - return "" - } - return o.ClientID -} - -func (o *AuthenticateViaFacebookMarketingOauth) GetClientSecret() string { - if o == nil { - return "" - } - return o.ClientSecret -} - -type SourceFacebookMarketingUpdateAuthenticationType string - -const ( - SourceFacebookMarketingUpdateAuthenticationTypeAuthenticateViaFacebookMarketingOauth SourceFacebookMarketingUpdateAuthenticationType = "Authenticate via Facebook Marketing (Oauth)" - SourceFacebookMarketingUpdateAuthenticationTypeServiceAccountKeyAuthentication SourceFacebookMarketingUpdateAuthenticationType = "Service Account Key Authentication" -) - -// SourceFacebookMarketingUpdateAuthentication - Credentials for connecting to the Facebook Marketing API -type SourceFacebookMarketingUpdateAuthentication struct { - AuthenticateViaFacebookMarketingOauth *AuthenticateViaFacebookMarketingOauth - ServiceAccountKeyAuthentication *ServiceAccountKeyAuthentication - - Type SourceFacebookMarketingUpdateAuthenticationType -} - -func CreateSourceFacebookMarketingUpdateAuthenticationAuthenticateViaFacebookMarketingOauth(authenticateViaFacebookMarketingOauth AuthenticateViaFacebookMarketingOauth) SourceFacebookMarketingUpdateAuthentication { - typ := SourceFacebookMarketingUpdateAuthenticationTypeAuthenticateViaFacebookMarketingOauth - - return SourceFacebookMarketingUpdateAuthentication{ - AuthenticateViaFacebookMarketingOauth: &authenticateViaFacebookMarketingOauth, - Type: typ, - } -} - -func CreateSourceFacebookMarketingUpdateAuthenticationServiceAccountKeyAuthentication(serviceAccountKeyAuthentication ServiceAccountKeyAuthentication) SourceFacebookMarketingUpdateAuthentication { - typ := SourceFacebookMarketingUpdateAuthenticationTypeServiceAccountKeyAuthentication - - return SourceFacebookMarketingUpdateAuthentication{ - ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, - Type: typ, - } -} - -func (u *SourceFacebookMarketingUpdateAuthentication) UnmarshalJSON(data []byte) error { - - var serviceAccountKeyAuthentication ServiceAccountKeyAuthentication = ServiceAccountKeyAuthentication{} - if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { - u.ServiceAccountKeyAuthentication = &serviceAccountKeyAuthentication - u.Type = SourceFacebookMarketingUpdateAuthenticationTypeServiceAccountKeyAuthentication - return nil - } - - var authenticateViaFacebookMarketingOauth AuthenticateViaFacebookMarketingOauth = AuthenticateViaFacebookMarketingOauth{} - if err := utils.UnmarshalJSON(data, &authenticateViaFacebookMarketingOauth, "", true, true); err == nil { - u.AuthenticateViaFacebookMarketingOauth = &authenticateViaFacebookMarketingOauth - u.Type = SourceFacebookMarketingUpdateAuthenticationTypeAuthenticateViaFacebookMarketingOauth - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceFacebookMarketingUpdateAuthentication", string(data)) -} - -func (u SourceFacebookMarketingUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaFacebookMarketingOauth != nil { - return utils.MarshalJSON(u.AuthenticateViaFacebookMarketingOauth, "", true) - } - - if u.ServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) - } - - return nil, errors.New("could not marshal union type SourceFacebookMarketingUpdateAuthentication: all fields are null") -} - // ValidActionBreakdowns - An enumeration. type ValidActionBreakdowns string @@ -582,6 +397,7 @@ const ( SourceFacebookMarketingUpdateValidEnumsAdsetEnd SourceFacebookMarketingUpdateValidEnums = "adset_end" SourceFacebookMarketingUpdateValidEnumsAdsetID SourceFacebookMarketingUpdateValidEnums = "adset_id" SourceFacebookMarketingUpdateValidEnumsAdsetName SourceFacebookMarketingUpdateValidEnums = "adset_name" + SourceFacebookMarketingUpdateValidEnumsAdsetStart SourceFacebookMarketingUpdateValidEnums = "adset_start" SourceFacebookMarketingUpdateValidEnumsAgeTargeting SourceFacebookMarketingUpdateValidEnums = "age_targeting" SourceFacebookMarketingUpdateValidEnumsAttributionSetting SourceFacebookMarketingUpdateValidEnums = "attribution_setting" SourceFacebookMarketingUpdateValidEnumsAuctionBid SourceFacebookMarketingUpdateValidEnums = "auction_bid" @@ -736,6 +552,8 @@ func (e *SourceFacebookMarketingUpdateValidEnums) UnmarshalJSON(data []byte) err fallthrough case "adset_name": fallthrough + case "adset_start": + fallthrough case "age_targeting": fallthrough case "attribution_setting": @@ -1144,8 +962,6 @@ type SourceFacebookMarketingUpdate struct { ClientID *string `json:"client_id,omitempty"` // The Client Secret for your OAuth app ClientSecret *string `json:"client_secret,omitempty"` - // Credentials for connecting to the Facebook Marketing API - Credentials *SourceFacebookMarketingUpdateAuthentication `json:"credentials,omitempty"` // A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. CustomInsights []InsightConfig `json:"custom_insights,omitempty"` // The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. @@ -1229,13 +1045,6 @@ func (o *SourceFacebookMarketingUpdate) GetClientSecret() *string { return o.ClientSecret } -func (o *SourceFacebookMarketingUpdate) GetCredentials() *SourceFacebookMarketingUpdateAuthentication { - if o == nil { - return nil - } - return o.Credentials -} - func (o *SourceFacebookMarketingUpdate) GetCustomInsights() []InsightConfig { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcegoldcast.go b/internal/sdk/models/shared/sourcegoldcast.go deleted file mode 100644 index 27d7c413f..000000000 --- a/internal/sdk/models/shared/sourcegoldcast.go +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -import ( - "encoding/json" - "fmt" - "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" -) - -type Goldcast string - -const ( - GoldcastGoldcast Goldcast = "goldcast" -) - -func (e Goldcast) ToPointer() *Goldcast { - return &e -} -func (e *Goldcast) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "goldcast": - *e = Goldcast(v) - return nil - default: - return fmt.Errorf("invalid value for Goldcast: %v", v) - } -} - -type SourceGoldcast struct { - // Your API Access Key. See here. The key is case sensitive. - AccessKey string `json:"access_key"` - sourceType Goldcast `const:"goldcast" json:"sourceType"` -} - -func (s SourceGoldcast) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceGoldcast) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { - return err - } - return nil -} - -func (o *SourceGoldcast) GetAccessKey() string { - if o == nil { - return "" - } - return o.AccessKey -} - -func (o *SourceGoldcast) GetSourceType() Goldcast { - return GoldcastGoldcast -} diff --git a/internal/sdk/models/shared/sourcegoldcastcreaterequest.go b/internal/sdk/models/shared/sourcegoldcastcreaterequest.go deleted file mode 100644 index 5c36ce9e4..000000000 --- a/internal/sdk/models/shared/sourcegoldcastcreaterequest.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -type SourceGoldcastCreateRequest struct { - Configuration SourceGoldcast `json:"configuration"` - // The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. - DefinitionID *string `json:"definitionId,omitempty"` - // Name of the source e.g. dev-mysql-instance. - Name string `json:"name"` - // Optional secretID obtained through the public API OAuth redirect flow. - SecretID *string `json:"secretId,omitempty"` - WorkspaceID string `json:"workspaceId"` -} - -func (o *SourceGoldcastCreateRequest) GetConfiguration() SourceGoldcast { - if o == nil { - return SourceGoldcast{} - } - return o.Configuration -} - -func (o *SourceGoldcastCreateRequest) GetDefinitionID() *string { - if o == nil { - return nil - } - return o.DefinitionID -} - -func (o *SourceGoldcastCreateRequest) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *SourceGoldcastCreateRequest) GetSecretID() *string { - if o == nil { - return nil - } - return o.SecretID -} - -func (o *SourceGoldcastCreateRequest) GetWorkspaceID() string { - if o == nil { - return "" - } - return o.WorkspaceID -} diff --git a/internal/sdk/models/shared/sourcegoldcastputrequest.go b/internal/sdk/models/shared/sourcegoldcastputrequest.go deleted file mode 100644 index 8d75d6d80..000000000 --- a/internal/sdk/models/shared/sourcegoldcastputrequest.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -type SourceGoldcastPutRequest struct { - Configuration SourceGoldcastUpdate `json:"configuration"` - Name string `json:"name"` - WorkspaceID string `json:"workspaceId"` -} - -func (o *SourceGoldcastPutRequest) GetConfiguration() SourceGoldcastUpdate { - if o == nil { - return SourceGoldcastUpdate{} - } - return o.Configuration -} - -func (o *SourceGoldcastPutRequest) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *SourceGoldcastPutRequest) GetWorkspaceID() string { - if o == nil { - return "" - } - return o.WorkspaceID -} diff --git a/internal/sdk/models/shared/sourcegoldcastupdate.go b/internal/sdk/models/shared/sourcegoldcastupdate.go deleted file mode 100644 index 01278a80b..000000000 --- a/internal/sdk/models/shared/sourcegoldcastupdate.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -package shared - -type SourceGoldcastUpdate struct { - // Your API Access Key. See here. The key is case sensitive. - AccessKey string `json:"access_key"` -} - -func (o *SourceGoldcastUpdate) GetAccessKey() string { - if o == nil { - return "" - } - return o.AccessKey -} diff --git a/internal/sdk/models/shared/sourcegoogleanalyticsdataapiupdate.go b/internal/sdk/models/shared/sourcegoogleanalyticsdataapiupdate.go index 6cd07826a..34025079b 100644 --- a/internal/sdk/models/shared/sourcegoogleanalyticsdataapiupdate.go +++ b/internal/sdk/models/shared/sourcegoogleanalyticsdataapiupdate.go @@ -33,28 +33,28 @@ func (e *SourceGoogleAnalyticsDataAPIUpdateSchemasAuthType) UnmarshalJSON(data [ } } -type SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication struct { +type ServiceAccountKeyAuthentication struct { authType *SourceGoogleAnalyticsDataAPIUpdateSchemasAuthType `const:"Service" json:"auth_type,omitempty"` // The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide. CredentialsJSON string `json:"credentials_json"` } -func (s SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) { +func (s ServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error { +func (s *ServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsDataAPIUpdateSchemasAuthType { +func (o *ServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsDataAPIUpdateSchemasAuthType { return SourceGoogleAnalyticsDataAPIUpdateSchemasAuthTypeService.ToPointer() } -func (o *SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) GetCredentialsJSON() string { +func (o *ServiceAccountKeyAuthentication) GetCredentialsJSON() string { if o == nil { return "" } @@ -142,14 +142,14 @@ func (o *AuthenticateViaGoogleOauth) GetRefreshToken() string { type SourceGoogleAnalyticsDataAPIUpdateCredentialsType string const ( - SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeAuthenticateViaGoogleOauth SourceGoogleAnalyticsDataAPIUpdateCredentialsType = "Authenticate via Google (Oauth)" - SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeSourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIUpdateCredentialsType = "source-google-analytics-data-api-update_Service Account Key Authentication" + SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeAuthenticateViaGoogleOauth SourceGoogleAnalyticsDataAPIUpdateCredentialsType = "Authenticate via Google (Oauth)" + SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIUpdateCredentialsType = "Service Account Key Authentication" ) // SourceGoogleAnalyticsDataAPIUpdateCredentials - Credentials for the service type SourceGoogleAnalyticsDataAPIUpdateCredentials struct { - AuthenticateViaGoogleOauth *AuthenticateViaGoogleOauth - SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication *SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication + AuthenticateViaGoogleOauth *AuthenticateViaGoogleOauth + ServiceAccountKeyAuthentication *ServiceAccountKeyAuthentication Type SourceGoogleAnalyticsDataAPIUpdateCredentialsType } @@ -163,21 +163,21 @@ func CreateSourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOau } } -func CreateSourceGoogleAnalyticsDataAPIUpdateCredentialsSourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication(sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication) SourceGoogleAnalyticsDataAPIUpdateCredentials { - typ := SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeSourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication +func CreateSourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication(serviceAccountKeyAuthentication ServiceAccountKeyAuthentication) SourceGoogleAnalyticsDataAPIUpdateCredentials { + typ := SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeServiceAccountKeyAuthentication return SourceGoogleAnalyticsDataAPIUpdateCredentials{ - SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication: &sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication, - Type: typ, + ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, + Type: typ, } } func (u *SourceGoogleAnalyticsDataAPIUpdateCredentials) UnmarshalJSON(data []byte) error { - var sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication = SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication{} - if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication, "", true, true); err == nil { - u.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication = &sourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication - u.Type = SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeSourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication + var serviceAccountKeyAuthentication ServiceAccountKeyAuthentication = ServiceAccountKeyAuthentication{} + if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { + u.ServiceAccountKeyAuthentication = &serviceAccountKeyAuthentication + u.Type = SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeServiceAccountKeyAuthentication return nil } @@ -196,8 +196,8 @@ func (u SourceGoogleAnalyticsDataAPIUpdateCredentials) MarshalJSON() ([]byte, er return utils.MarshalJSON(u.AuthenticateViaGoogleOauth, "", true) } - if u.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateServiceAccountKeyAuthentication, "", true) + if u.ServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type SourceGoogleAnalyticsDataAPIUpdateCredentials: all fields are null") diff --git a/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonly.go b/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonly.go new file mode 100644 index 000000000..b216d73bd --- /dev/null +++ b/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonly.go @@ -0,0 +1,200 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "encoding/json" + "errors" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/types" +) + +type SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType string + +const ( + SourceGoogleAnalyticsV4ServiceAccountOnlyAuthTypeService SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType = "Service" +) + +func (e SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType) ToPointer() *SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType { + return &e +} +func (e *SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "Service": + *e = SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType: %v", v) + } +} + +type SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication struct { + authType *SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType `const:"Service" json:"auth_type,omitempty"` + // The JSON key of the service account to use for authorization + CredentialsJSON string `json:"credentials_json"` +} + +func (s SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsV4ServiceAccountOnlyAuthType { + return SourceGoogleAnalyticsV4ServiceAccountOnlyAuthTypeService.ToPointer() +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication) GetCredentialsJSON() string { + if o == nil { + return "" + } + return o.CredentialsJSON +} + +type SourceGoogleAnalyticsV4ServiceAccountOnlyCredentialsType string + +const ( + SourceGoogleAnalyticsV4ServiceAccountOnlyCredentialsTypeSourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication SourceGoogleAnalyticsV4ServiceAccountOnlyCredentialsType = "source-google-analytics-v4-service-account-only_Service Account Key Authentication" +) + +// SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials - Credentials for the service +type SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials struct { + SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication *SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication + + Type SourceGoogleAnalyticsV4ServiceAccountOnlyCredentialsType +} + +func CreateSourceGoogleAnalyticsV4ServiceAccountOnlyCredentialsSourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication(sourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication) SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials { + typ := SourceGoogleAnalyticsV4ServiceAccountOnlyCredentialsTypeSourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication + + return SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials{ + SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication: &sourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication, + Type: typ, + } +} + +func (u *SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials) UnmarshalJSON(data []byte) error { + + var sourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication = SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication{} + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication = &sourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication + u.Type = SourceGoogleAnalyticsV4ServiceAccountOnlyCredentialsTypeSourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials", string(data)) +} + +func (u SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials) MarshalJSON() ([]byte, error) { + if u.SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsV4ServiceAccountOnlyServiceAccountKeyAuthentication, "", true) + } + + return nil, errors.New("could not marshal union type SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials: all fields are null") +} + +type GoogleAnalyticsV4ServiceAccountOnly string + +const ( + GoogleAnalyticsV4ServiceAccountOnlyGoogleAnalyticsV4ServiceAccountOnly GoogleAnalyticsV4ServiceAccountOnly = "google-analytics-v4-service-account-only" +) + +func (e GoogleAnalyticsV4ServiceAccountOnly) ToPointer() *GoogleAnalyticsV4ServiceAccountOnly { + return &e +} +func (e *GoogleAnalyticsV4ServiceAccountOnly) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "google-analytics-v4-service-account-only": + *e = GoogleAnalyticsV4ServiceAccountOnly(v) + return nil + default: + return fmt.Errorf("invalid value for GoogleAnalyticsV4ServiceAccountOnly: %v", v) + } +} + +type SourceGoogleAnalyticsV4ServiceAccountOnly struct { + // Credentials for the service + Credentials *SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials `json:"credentials,omitempty"` + // A JSON array describing the custom reports you want to sync from Google Analytics. See the docs for more information about the exact format you can use to fill out this field. + CustomReports *string `json:"custom_reports,omitempty"` + // The date in the format YYYY-MM-DD. Any data after this date will not be replicated. + EndDate *types.Date `json:"end_date,omitempty"` + sourceType GoogleAnalyticsV4ServiceAccountOnly `const:"google-analytics-v4-service-account-only" json:"sourceType"` + // The date in the format YYYY-MM-DD. Any data before this date will not be replicated. + StartDate types.Date `json:"start_date"` + // The ID for the Google Analytics View you want to fetch data from. This can be found from the Google Analytics Account Explorer. + ViewID string `json:"view_id"` + // The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the the docs. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. + WindowInDays *int64 `default:"1" json:"window_in_days"` +} + +func (s SourceGoogleAnalyticsV4ServiceAccountOnly) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGoogleAnalyticsV4ServiceAccountOnly) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnly) GetCredentials() *SourceGoogleAnalyticsV4ServiceAccountOnlyCredentials { + if o == nil { + return nil + } + return o.Credentials +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnly) GetCustomReports() *string { + if o == nil { + return nil + } + return o.CustomReports +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnly) GetEndDate() *types.Date { + if o == nil { + return nil + } + return o.EndDate +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnly) GetSourceType() GoogleAnalyticsV4ServiceAccountOnly { + return GoogleAnalyticsV4ServiceAccountOnlyGoogleAnalyticsV4ServiceAccountOnly +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnly) GetStartDate() types.Date { + if o == nil { + return types.Date{} + } + return o.StartDate +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnly) GetViewID() string { + if o == nil { + return "" + } + return o.ViewID +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnly) GetWindowInDays() *int64 { + if o == nil { + return nil + } + return o.WindowInDays +} diff --git a/internal/sdk/models/shared/sourceclazarcreaterequest.go b/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlycreaterequest.go similarity index 52% rename from internal/sdk/models/shared/sourceclazarcreaterequest.go rename to internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlycreaterequest.go index d2f5ba0f3..cb1df8524 100644 --- a/internal/sdk/models/shared/sourceclazarcreaterequest.go +++ b/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlycreaterequest.go @@ -2,8 +2,8 @@ package shared -type SourceClazarCreateRequest struct { - Configuration SourceClazar `json:"configuration"` +type SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest struct { + Configuration SourceGoogleAnalyticsV4ServiceAccountOnly `json:"configuration"` // The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. DefinitionID *string `json:"definitionId,omitempty"` // Name of the source e.g. dev-mysql-instance. @@ -13,35 +13,35 @@ type SourceClazarCreateRequest struct { WorkspaceID string `json:"workspaceId"` } -func (o *SourceClazarCreateRequest) GetConfiguration() SourceClazar { +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetConfiguration() SourceGoogleAnalyticsV4ServiceAccountOnly { if o == nil { - return SourceClazar{} + return SourceGoogleAnalyticsV4ServiceAccountOnly{} } return o.Configuration } -func (o *SourceClazarCreateRequest) GetDefinitionID() *string { +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetDefinitionID() *string { if o == nil { return nil } return o.DefinitionID } -func (o *SourceClazarCreateRequest) GetName() string { +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourceClazarCreateRequest) GetSecretID() *string { +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetSecretID() *string { if o == nil { return nil } return o.SecretID } -func (o *SourceClazarCreateRequest) GetWorkspaceID() string { +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyputrequest.go b/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyputrequest.go new file mode 100644 index 000000000..21c712e61 --- /dev/null +++ b/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyputrequest.go @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest struct { + Configuration SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate `json:"configuration"` + Name string `json:"name"` + WorkspaceID string `json:"workspaceId"` +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest) GetConfiguration() SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate { + if o == nil { + return SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate{} + } + return o.Configuration +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest) GetWorkspaceID() string { + if o == nil { + return "" + } + return o.WorkspaceID +} diff --git a/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyupdate.go b/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyupdate.go new file mode 100644 index 000000000..9a0bc4d0b --- /dev/null +++ b/internal/sdk/models/shared/sourcegoogleanalyticsv4serviceaccountonlyupdate.go @@ -0,0 +1,172 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "encoding/json" + "errors" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/types" +) + +type SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthType string + +const ( + SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthTypeService SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthType = "Service" +) + +func (e SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthType) ToPointer() *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthType { + return &e +} +func (e *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "Service": + *e = SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthType(v) + return nil + default: + return fmt.Errorf("invalid value for SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthType: %v", v) + } +} + +type SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication struct { + authType *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthType `const:"Service" json:"auth_type,omitempty"` + // The JSON key of the service account to use for authorization + CredentialsJSON string `json:"credentials_json"` +} + +func (s SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { + return err + } + return nil +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthType { + return SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateAuthTypeService.ToPointer() +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication) GetCredentialsJSON() string { + if o == nil { + return "" + } + return o.CredentialsJSON +} + +type SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentialsType string + +const ( + SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentialsTypeSourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentialsType = "source-google-analytics-v4-service-account-only-update_Service Account Key Authentication" +) + +// SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials - Credentials for the service +type SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials struct { + SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication + + Type SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentialsType +} + +func CreateSourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentialsSourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication(sourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication) SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials { + typ := SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentialsTypeSourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication + + return SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials{ + SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication: &sourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication, + Type: typ, + } +} + +func (u *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials) UnmarshalJSON(data []byte) error { + + var sourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication = SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication{} + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication = &sourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication + u.Type = SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentialsTypeSourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials", string(data)) +} + +func (u SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials) MarshalJSON() ([]byte, error) { + if u.SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateServiceAccountKeyAuthentication, "", true) + } + + return nil, errors.New("could not marshal union type SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials: all fields are null") +} + +type SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate struct { + // Credentials for the service + Credentials *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials `json:"credentials,omitempty"` + // A JSON array describing the custom reports you want to sync from Google Analytics. See the docs for more information about the exact format you can use to fill out this field. + CustomReports *string `json:"custom_reports,omitempty"` + // The date in the format YYYY-MM-DD. Any data after this date will not be replicated. + EndDate *types.Date `json:"end_date,omitempty"` + // The date in the format YYYY-MM-DD. Any data before this date will not be replicated. + StartDate types.Date `json:"start_date"` + // The ID for the Google Analytics View you want to fetch data from. This can be found from the Google Analytics Account Explorer. + ViewID string `json:"view_id"` + // The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the the docs. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364. + WindowInDays *int64 `default:"1" json:"window_in_days"` +} + +func (s SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate) GetCredentials() *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdateCredentials { + if o == nil { + return nil + } + return o.Credentials +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate) GetCustomReports() *string { + if o == nil { + return nil + } + return o.CustomReports +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate) GetEndDate() *types.Date { + if o == nil { + return nil + } + return o.EndDate +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate) GetStartDate() types.Date { + if o == nil { + return types.Date{} + } + return o.StartDate +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate) GetViewID() string { + if o == nil { + return "" + } + return o.ViewID +} + +func (o *SourceGoogleAnalyticsV4ServiceAccountOnlyUpdate) GetWindowInDays() *int64 { + if o == nil { + return nil + } + return o.WindowInDays +} diff --git a/internal/sdk/models/shared/sourcemicrosoftonedrive.go b/internal/sdk/models/shared/sourcemicrosoftonedrive.go index c54d99a0a..d8b39b7fa 100644 --- a/internal/sdk/models/shared/sourcemicrosoftonedrive.go +++ b/internal/sdk/models/shared/sourcemicrosoftonedrive.go @@ -428,8 +428,8 @@ func (e *SourceMicrosoftOnedriveParsingStrategy) UnmarshalJSON(data []byte) erro } } -// SourceMicrosoftOnedriveUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceMicrosoftOnedriveUnstructuredDocumentFormat struct { +// SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental struct { filetype *SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceMicrosoftOnedriveProcessing `json:"processing,omitempty"` @@ -439,36 +439,36 @@ type SourceMicrosoftOnedriveUnstructuredDocumentFormat struct { Strategy *SourceMicrosoftOnedriveParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceMicrosoftOnedriveUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { +func (s SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceMicrosoftOnedriveUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { +func (s *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceMicrosoftOnedriveUnstructuredDocumentFormat) GetFiletype() *SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype { +func (o *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) GetFiletype() *SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype { return SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *SourceMicrosoftOnedriveUnstructuredDocumentFormat) GetProcessing() *SourceMicrosoftOnedriveProcessing { +func (o *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) GetProcessing() *SourceMicrosoftOnedriveProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceMicrosoftOnedriveUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { +func (o *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceMicrosoftOnedriveUnstructuredDocumentFormat) GetStrategy() *SourceMicrosoftOnedriveParsingStrategy { +func (o *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) GetStrategy() *SourceMicrosoftOnedriveParsingStrategy { if o == nil { return nil } @@ -1002,20 +1002,20 @@ func (o *SourceMicrosoftOnedriveAvroFormat) GetFiletype() *SourceMicrosoftOnedri type SourceMicrosoftOnedriveFormatType string const ( - SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveAvroFormat SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_Avro Format" - SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveCSVFormat SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_CSV Format" - SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveJsonlFormat SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_Jsonl Format" - SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveParquetFormat SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_Parquet Format" - SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveUnstructuredDocumentFormat SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_Unstructured Document Format" + SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveAvroFormat SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_Avro Format" + SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveCSVFormat SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_CSV Format" + SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveJsonlFormat SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_Jsonl Format" + SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveParquetFormat SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_Parquet Format" + SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveFormatType = "source-microsoft-onedrive_Document File Type Format (Experimental)" ) // SourceMicrosoftOnedriveFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceMicrosoftOnedriveFormat struct { - SourceMicrosoftOnedriveAvroFormat *SourceMicrosoftOnedriveAvroFormat - SourceMicrosoftOnedriveCSVFormat *SourceMicrosoftOnedriveCSVFormat - SourceMicrosoftOnedriveJsonlFormat *SourceMicrosoftOnedriveJsonlFormat - SourceMicrosoftOnedriveParquetFormat *SourceMicrosoftOnedriveParquetFormat - SourceMicrosoftOnedriveUnstructuredDocumentFormat *SourceMicrosoftOnedriveUnstructuredDocumentFormat + SourceMicrosoftOnedriveAvroFormat *SourceMicrosoftOnedriveAvroFormat + SourceMicrosoftOnedriveCSVFormat *SourceMicrosoftOnedriveCSVFormat + SourceMicrosoftOnedriveJsonlFormat *SourceMicrosoftOnedriveJsonlFormat + SourceMicrosoftOnedriveParquetFormat *SourceMicrosoftOnedriveParquetFormat + SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental *SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental Type SourceMicrosoftOnedriveFormatType } @@ -1056,11 +1056,11 @@ func CreateSourceMicrosoftOnedriveFormatSourceMicrosoftOnedriveParquetFormat(sou } } -func CreateSourceMicrosoftOnedriveFormatSourceMicrosoftOnedriveUnstructuredDocumentFormat(sourceMicrosoftOnedriveUnstructuredDocumentFormat SourceMicrosoftOnedriveUnstructuredDocumentFormat) SourceMicrosoftOnedriveFormat { - typ := SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveUnstructuredDocumentFormat +func CreateSourceMicrosoftOnedriveFormatSourceMicrosoftOnedriveDocumentFileTypeFormatExperimental(sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental) SourceMicrosoftOnedriveFormat { + typ := SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveDocumentFileTypeFormatExperimental return SourceMicrosoftOnedriveFormat{ - SourceMicrosoftOnedriveUnstructuredDocumentFormat: &sourceMicrosoftOnedriveUnstructuredDocumentFormat, + SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental: &sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental, Type: typ, } } @@ -1088,10 +1088,10 @@ func (u *SourceMicrosoftOnedriveFormat) UnmarshalJSON(data []byte) error { return nil } - var sourceMicrosoftOnedriveUnstructuredDocumentFormat SourceMicrosoftOnedriveUnstructuredDocumentFormat = SourceMicrosoftOnedriveUnstructuredDocumentFormat{} - if err := utils.UnmarshalJSON(data, &sourceMicrosoftOnedriveUnstructuredDocumentFormat, "", true, true); err == nil { - u.SourceMicrosoftOnedriveUnstructuredDocumentFormat = &sourceMicrosoftOnedriveUnstructuredDocumentFormat - u.Type = SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveUnstructuredDocumentFormat + var sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental = SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental, "", true, true); err == nil { + u.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental = &sourceMicrosoftOnedriveDocumentFileTypeFormatExperimental + u.Type = SourceMicrosoftOnedriveFormatTypeSourceMicrosoftOnedriveDocumentFileTypeFormatExperimental return nil } @@ -1122,8 +1122,8 @@ func (u SourceMicrosoftOnedriveFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceMicrosoftOnedriveParquetFormat, "", true) } - if u.SourceMicrosoftOnedriveUnstructuredDocumentFormat != nil { - return utils.MarshalJSON(u.SourceMicrosoftOnedriveUnstructuredDocumentFormat, "", true) + if u.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental != nil { + return utils.MarshalJSON(u.SourceMicrosoftOnedriveDocumentFileTypeFormatExperimental, "", true) } return nil, errors.New("could not marshal union type SourceMicrosoftOnedriveFormat: all fields are null") diff --git a/internal/sdk/models/shared/sourcemicrosoftonedriveupdate.go b/internal/sdk/models/shared/sourcemicrosoftonedriveupdate.go index 2b130d902..ae339db49 100644 --- a/internal/sdk/models/shared/sourcemicrosoftonedriveupdate.go +++ b/internal/sdk/models/shared/sourcemicrosoftonedriveupdate.go @@ -405,8 +405,8 @@ func (e *SourceMicrosoftOnedriveUpdateParsingStrategy) UnmarshalJSON(data []byte } } -// UnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type UnstructuredDocumentFormat struct { +// SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental struct { filetype *SourceMicrosoftOnedriveUpdateSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceMicrosoftOnedriveUpdateProcessing `json:"processing,omitempty"` @@ -416,36 +416,36 @@ type UnstructuredDocumentFormat struct { Strategy *SourceMicrosoftOnedriveUpdateParsingStrategy `default:"auto" json:"strategy"` } -func (u UnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(u, "", false) +func (s SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) } -func (u *UnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, true); err != nil { +func (s *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *UnstructuredDocumentFormat) GetFiletype() *SourceMicrosoftOnedriveUpdateSchemasStreamsFormatFormatFiletype { +func (o *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) GetFiletype() *SourceMicrosoftOnedriveUpdateSchemasStreamsFormatFormatFiletype { return SourceMicrosoftOnedriveUpdateSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *UnstructuredDocumentFormat) GetProcessing() *SourceMicrosoftOnedriveUpdateProcessing { +func (o *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) GetProcessing() *SourceMicrosoftOnedriveUpdateProcessing { if o == nil { return nil } return o.Processing } -func (o *UnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { +func (o *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *UnstructuredDocumentFormat) GetStrategy() *SourceMicrosoftOnedriveUpdateParsingStrategy { +func (o *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) GetStrategy() *SourceMicrosoftOnedriveUpdateParsingStrategy { if o == nil { return nil } @@ -979,20 +979,20 @@ func (o *SourceMicrosoftOnedriveUpdateAvroFormat) GetFiletype() *SourceMicrosoft type SourceMicrosoftOnedriveUpdateFormatType string const ( - SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateAvroFormat SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_Avro Format" - SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateCSVFormat SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_CSV Format" - SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateJsonlFormat SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_Jsonl Format" - SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateParquetFormat SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_Parquet Format" - SourceMicrosoftOnedriveUpdateFormatTypeUnstructuredDocumentFormat SourceMicrosoftOnedriveUpdateFormatType = "Unstructured Document Format" + SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateAvroFormat SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_Avro Format" + SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateCSVFormat SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_CSV Format" + SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateJsonlFormat SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_Jsonl Format" + SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateParquetFormat SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_Parquet Format" + SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveUpdateFormatType = "source-microsoft-onedrive-update_Document File Type Format (Experimental)" ) // SourceMicrosoftOnedriveUpdateFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceMicrosoftOnedriveUpdateFormat struct { - SourceMicrosoftOnedriveUpdateAvroFormat *SourceMicrosoftOnedriveUpdateAvroFormat - SourceMicrosoftOnedriveUpdateCSVFormat *SourceMicrosoftOnedriveUpdateCSVFormat - SourceMicrosoftOnedriveUpdateJsonlFormat *SourceMicrosoftOnedriveUpdateJsonlFormat - SourceMicrosoftOnedriveUpdateParquetFormat *SourceMicrosoftOnedriveUpdateParquetFormat - UnstructuredDocumentFormat *UnstructuredDocumentFormat + SourceMicrosoftOnedriveUpdateAvroFormat *SourceMicrosoftOnedriveUpdateAvroFormat + SourceMicrosoftOnedriveUpdateCSVFormat *SourceMicrosoftOnedriveUpdateCSVFormat + SourceMicrosoftOnedriveUpdateJsonlFormat *SourceMicrosoftOnedriveUpdateJsonlFormat + SourceMicrosoftOnedriveUpdateParquetFormat *SourceMicrosoftOnedriveUpdateParquetFormat + SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental *SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental Type SourceMicrosoftOnedriveUpdateFormatType } @@ -1033,12 +1033,12 @@ func CreateSourceMicrosoftOnedriveUpdateFormatSourceMicrosoftOnedriveUpdateParqu } } -func CreateSourceMicrosoftOnedriveUpdateFormatUnstructuredDocumentFormat(unstructuredDocumentFormat UnstructuredDocumentFormat) SourceMicrosoftOnedriveUpdateFormat { - typ := SourceMicrosoftOnedriveUpdateFormatTypeUnstructuredDocumentFormat +func CreateSourceMicrosoftOnedriveUpdateFormatSourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental(sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental) SourceMicrosoftOnedriveUpdateFormat { + typ := SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental return SourceMicrosoftOnedriveUpdateFormat{ - UnstructuredDocumentFormat: &unstructuredDocumentFormat, - Type: typ, + SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental: &sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental, + Type: typ, } } @@ -1065,10 +1065,10 @@ func (u *SourceMicrosoftOnedriveUpdateFormat) UnmarshalJSON(data []byte) error { return nil } - var unstructuredDocumentFormat UnstructuredDocumentFormat = UnstructuredDocumentFormat{} - if err := utils.UnmarshalJSON(data, &unstructuredDocumentFormat, "", true, true); err == nil { - u.UnstructuredDocumentFormat = &unstructuredDocumentFormat - u.Type = SourceMicrosoftOnedriveUpdateFormatTypeUnstructuredDocumentFormat + var sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental = SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental, "", true, true); err == nil { + u.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental = &sourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental + u.Type = SourceMicrosoftOnedriveUpdateFormatTypeSourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental return nil } @@ -1099,8 +1099,8 @@ func (u SourceMicrosoftOnedriveUpdateFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceMicrosoftOnedriveUpdateParquetFormat, "", true) } - if u.UnstructuredDocumentFormat != nil { - return utils.MarshalJSON(u.UnstructuredDocumentFormat, "", true) + if u.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental != nil { + return utils.MarshalJSON(u.SourceMicrosoftOnedriveUpdateDocumentFileTypeFormatExperimental, "", true) } return nil, errors.New("could not marshal union type SourceMicrosoftOnedriveUpdateFormat: all fields are null") diff --git a/internal/sdk/models/shared/sourcemicrosoftsharepoint.go b/internal/sdk/models/shared/sourcemicrosoftsharepoint.go index 218ad4710..6d871c9f1 100644 --- a/internal/sdk/models/shared/sourcemicrosoftsharepoint.go +++ b/internal/sdk/models/shared/sourcemicrosoftsharepoint.go @@ -428,8 +428,8 @@ func (e *SourceMicrosoftSharepointParsingStrategy) UnmarshalJSON(data []byte) er } } -// SourceMicrosoftSharepointUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceMicrosoftSharepointUnstructuredDocumentFormat struct { +// SourceMicrosoftSharepointDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceMicrosoftSharepointDocumentFileTypeFormatExperimental struct { filetype *SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceMicrosoftSharepointProcessing `json:"processing,omitempty"` @@ -439,36 +439,36 @@ type SourceMicrosoftSharepointUnstructuredDocumentFormat struct { Strategy *SourceMicrosoftSharepointParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceMicrosoftSharepointUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { +func (s SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceMicrosoftSharepointUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { +func (s *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceMicrosoftSharepointUnstructuredDocumentFormat) GetFiletype() *SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype { +func (o *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) GetFiletype() *SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype { return SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *SourceMicrosoftSharepointUnstructuredDocumentFormat) GetProcessing() *SourceMicrosoftSharepointProcessing { +func (o *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) GetProcessing() *SourceMicrosoftSharepointProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceMicrosoftSharepointUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { +func (o *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceMicrosoftSharepointUnstructuredDocumentFormat) GetStrategy() *SourceMicrosoftSharepointParsingStrategy { +func (o *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) GetStrategy() *SourceMicrosoftSharepointParsingStrategy { if o == nil { return nil } @@ -1002,20 +1002,20 @@ func (o *SourceMicrosoftSharepointAvroFormat) GetFiletype() *SourceMicrosoftShar type SourceMicrosoftSharepointFormatType string const ( - SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointAvroFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Avro Format" - SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointCSVFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_CSV Format" - SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointJsonlFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Jsonl Format" - SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointParquetFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Parquet Format" - SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointUnstructuredDocumentFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Unstructured Document Format" + SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointAvroFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Avro Format" + SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointCSVFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_CSV Format" + SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointJsonlFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Jsonl Format" + SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointParquetFormat SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Parquet Format" + SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointDocumentFileTypeFormatExperimental SourceMicrosoftSharepointFormatType = "source-microsoft-sharepoint_Document File Type Format (Experimental)" ) // SourceMicrosoftSharepointFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceMicrosoftSharepointFormat struct { - SourceMicrosoftSharepointAvroFormat *SourceMicrosoftSharepointAvroFormat - SourceMicrosoftSharepointCSVFormat *SourceMicrosoftSharepointCSVFormat - SourceMicrosoftSharepointJsonlFormat *SourceMicrosoftSharepointJsonlFormat - SourceMicrosoftSharepointParquetFormat *SourceMicrosoftSharepointParquetFormat - SourceMicrosoftSharepointUnstructuredDocumentFormat *SourceMicrosoftSharepointUnstructuredDocumentFormat + SourceMicrosoftSharepointAvroFormat *SourceMicrosoftSharepointAvroFormat + SourceMicrosoftSharepointCSVFormat *SourceMicrosoftSharepointCSVFormat + SourceMicrosoftSharepointJsonlFormat *SourceMicrosoftSharepointJsonlFormat + SourceMicrosoftSharepointParquetFormat *SourceMicrosoftSharepointParquetFormat + SourceMicrosoftSharepointDocumentFileTypeFormatExperimental *SourceMicrosoftSharepointDocumentFileTypeFormatExperimental Type SourceMicrosoftSharepointFormatType } @@ -1056,11 +1056,11 @@ func CreateSourceMicrosoftSharepointFormatSourceMicrosoftSharepointParquetFormat } } -func CreateSourceMicrosoftSharepointFormatSourceMicrosoftSharepointUnstructuredDocumentFormat(sourceMicrosoftSharepointUnstructuredDocumentFormat SourceMicrosoftSharepointUnstructuredDocumentFormat) SourceMicrosoftSharepointFormat { - typ := SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointUnstructuredDocumentFormat +func CreateSourceMicrosoftSharepointFormatSourceMicrosoftSharepointDocumentFileTypeFormatExperimental(sourceMicrosoftSharepointDocumentFileTypeFormatExperimental SourceMicrosoftSharepointDocumentFileTypeFormatExperimental) SourceMicrosoftSharepointFormat { + typ := SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointDocumentFileTypeFormatExperimental return SourceMicrosoftSharepointFormat{ - SourceMicrosoftSharepointUnstructuredDocumentFormat: &sourceMicrosoftSharepointUnstructuredDocumentFormat, + SourceMicrosoftSharepointDocumentFileTypeFormatExperimental: &sourceMicrosoftSharepointDocumentFileTypeFormatExperimental, Type: typ, } } @@ -1088,10 +1088,10 @@ func (u *SourceMicrosoftSharepointFormat) UnmarshalJSON(data []byte) error { return nil } - var sourceMicrosoftSharepointUnstructuredDocumentFormat SourceMicrosoftSharepointUnstructuredDocumentFormat = SourceMicrosoftSharepointUnstructuredDocumentFormat{} - if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointUnstructuredDocumentFormat, "", true, true); err == nil { - u.SourceMicrosoftSharepointUnstructuredDocumentFormat = &sourceMicrosoftSharepointUnstructuredDocumentFormat - u.Type = SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointUnstructuredDocumentFormat + var sourceMicrosoftSharepointDocumentFileTypeFormatExperimental SourceMicrosoftSharepointDocumentFileTypeFormatExperimental = SourceMicrosoftSharepointDocumentFileTypeFormatExperimental{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointDocumentFileTypeFormatExperimental, "", true, true); err == nil { + u.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental = &sourceMicrosoftSharepointDocumentFileTypeFormatExperimental + u.Type = SourceMicrosoftSharepointFormatTypeSourceMicrosoftSharepointDocumentFileTypeFormatExperimental return nil } @@ -1122,8 +1122,8 @@ func (u SourceMicrosoftSharepointFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceMicrosoftSharepointParquetFormat, "", true) } - if u.SourceMicrosoftSharepointUnstructuredDocumentFormat != nil { - return utils.MarshalJSON(u.SourceMicrosoftSharepointUnstructuredDocumentFormat, "", true) + if u.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental != nil { + return utils.MarshalJSON(u.SourceMicrosoftSharepointDocumentFileTypeFormatExperimental, "", true) } return nil, errors.New("could not marshal union type SourceMicrosoftSharepointFormat: all fields are null") diff --git a/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go b/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go index f65eaeb11..739c1729b 100644 --- a/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go +++ b/internal/sdk/models/shared/sourcemicrosoftsharepointupdate.go @@ -405,8 +405,8 @@ func (e *SourceMicrosoftSharepointUpdateParsingStrategy) UnmarshalJSON(data []by } } -// SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat struct { +// SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental struct { filetype *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormatFiletype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceMicrosoftSharepointUpdateProcessing `json:"processing,omitempty"` @@ -416,36 +416,36 @@ type SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat struct { Strategy *SourceMicrosoftSharepointUpdateParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { +func (s SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { +func (s *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) GetFiletype() *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormatFiletype { +func (o *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) GetFiletype() *SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormatFiletype { return SourceMicrosoftSharepointUpdateSchemasStreamsFormatFormatFiletypeUnstructured.ToPointer() } -func (o *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) GetProcessing() *SourceMicrosoftSharepointUpdateProcessing { +func (o *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) GetProcessing() *SourceMicrosoftSharepointUpdateProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { +func (o *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) GetStrategy() *SourceMicrosoftSharepointUpdateParsingStrategy { +func (o *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) GetStrategy() *SourceMicrosoftSharepointUpdateParsingStrategy { if o == nil { return nil } @@ -979,20 +979,20 @@ func (o *SourceMicrosoftSharepointUpdateAvroFormat) GetFiletype() *SourceMicroso type SourceMicrosoftSharepointUpdateFormatType string const ( - SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateAvroFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Avro Format" - SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateCSVFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_CSV Format" - SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateJsonlFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Jsonl Format" - SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateParquetFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Parquet Format" - SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateUnstructuredDocumentFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Unstructured Document Format" + SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateAvroFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Avro Format" + SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateCSVFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_CSV Format" + SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateJsonlFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Jsonl Format" + SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateParquetFormat SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Parquet Format" + SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental SourceMicrosoftSharepointUpdateFormatType = "source-microsoft-sharepoint-update_Document File Type Format (Experimental)" ) // SourceMicrosoftSharepointUpdateFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceMicrosoftSharepointUpdateFormat struct { - SourceMicrosoftSharepointUpdateAvroFormat *SourceMicrosoftSharepointUpdateAvroFormat - SourceMicrosoftSharepointUpdateCSVFormat *SourceMicrosoftSharepointUpdateCSVFormat - SourceMicrosoftSharepointUpdateJsonlFormat *SourceMicrosoftSharepointUpdateJsonlFormat - SourceMicrosoftSharepointUpdateParquetFormat *SourceMicrosoftSharepointUpdateParquetFormat - SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat *SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat + SourceMicrosoftSharepointUpdateAvroFormat *SourceMicrosoftSharepointUpdateAvroFormat + SourceMicrosoftSharepointUpdateCSVFormat *SourceMicrosoftSharepointUpdateCSVFormat + SourceMicrosoftSharepointUpdateJsonlFormat *SourceMicrosoftSharepointUpdateJsonlFormat + SourceMicrosoftSharepointUpdateParquetFormat *SourceMicrosoftSharepointUpdateParquetFormat + SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental *SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental Type SourceMicrosoftSharepointUpdateFormatType } @@ -1033,11 +1033,11 @@ func CreateSourceMicrosoftSharepointUpdateFormatSourceMicrosoftSharepointUpdateP } } -func CreateSourceMicrosoftSharepointUpdateFormatSourceMicrosoftSharepointUpdateUnstructuredDocumentFormat(sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat) SourceMicrosoftSharepointUpdateFormat { - typ := SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateUnstructuredDocumentFormat +func CreateSourceMicrosoftSharepointUpdateFormatSourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental(sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental) SourceMicrosoftSharepointUpdateFormat { + typ := SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental return SourceMicrosoftSharepointUpdateFormat{ - SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat: &sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat, + SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental: &sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental, Type: typ, } } @@ -1065,10 +1065,10 @@ func (u *SourceMicrosoftSharepointUpdateFormat) UnmarshalJSON(data []byte) error return nil } - var sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat = SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat{} - if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat, "", true, true); err == nil { - u.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat = &sourceMicrosoftSharepointUpdateUnstructuredDocumentFormat - u.Type = SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateUnstructuredDocumentFormat + var sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental = SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental{} + if err := utils.UnmarshalJSON(data, &sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental, "", true, true); err == nil { + u.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental = &sourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental + u.Type = SourceMicrosoftSharepointUpdateFormatTypeSourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental return nil } @@ -1099,8 +1099,8 @@ func (u SourceMicrosoftSharepointUpdateFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceMicrosoftSharepointUpdateParquetFormat, "", true) } - if u.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat != nil { - return utils.MarshalJSON(u.SourceMicrosoftSharepointUpdateUnstructuredDocumentFormat, "", true) + if u.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental != nil { + return utils.MarshalJSON(u.SourceMicrosoftSharepointUpdateDocumentFileTypeFormatExperimental, "", true) } return nil, errors.New("could not marshal union type SourceMicrosoftSharepointUpdateFormat: all fields are null") diff --git a/internal/sdk/models/shared/sourcemysql.go b/internal/sdk/models/shared/sourcemysql.go index b9103f325..558885412 100644 --- a/internal/sdk/models/shared/sourcemysql.go +++ b/internal/sdk/models/shared/sourcemysql.go @@ -104,8 +104,6 @@ func (e *SourceMysqlMethod) UnmarshalJSON(data []byte) error { // SourceMysqlReadChangesUsingBinaryLogCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the MySQL binary log. This must be enabled on your database. type SourceMysqlReadChangesUsingBinaryLogCDC struct { - // The amount of time an initial load is allowed to continue for before catching up on CDC logs. - InitialLoadTimeoutHours *int64 `default:"8" json:"initial_load_timeout_hours"` // The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time. InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"` // 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. @@ -126,13 +124,6 @@ func (s *SourceMysqlReadChangesUsingBinaryLogCDC) UnmarshalJSON(data []byte) err return nil } -func (o *SourceMysqlReadChangesUsingBinaryLogCDC) GetInitialLoadTimeoutHours() *int64 { - if o == nil { - return nil - } - return o.InitialLoadTimeoutHours -} - func (o *SourceMysqlReadChangesUsingBinaryLogCDC) GetInitialWaitingSeconds() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcemysqlupdate.go b/internal/sdk/models/shared/sourcemysqlupdate.go index 9f4dbd191..ea65a7a8f 100644 --- a/internal/sdk/models/shared/sourcemysqlupdate.go +++ b/internal/sdk/models/shared/sourcemysqlupdate.go @@ -104,8 +104,6 @@ func (e *SourceMysqlUpdateSchemasReplicationMethodMethod) UnmarshalJSON(data []b // ReadChangesUsingBinaryLogCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the MySQL binary log. This must be enabled on your database. type ReadChangesUsingBinaryLogCDC struct { - // The amount of time an initial load is allowed to continue for before catching up on CDC logs. - InitialLoadTimeoutHours *int64 `default:"8" json:"initial_load_timeout_hours"` // The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time. InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"` // 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. @@ -126,13 +124,6 @@ func (r *ReadChangesUsingBinaryLogCDC) UnmarshalJSON(data []byte) error { return nil } -func (o *ReadChangesUsingBinaryLogCDC) GetInitialLoadTimeoutHours() *int64 { - if o == nil { - return nil - } - return o.InitialLoadTimeoutHours -} - func (o *ReadChangesUsingBinaryLogCDC) GetInitialWaitingSeconds() *int64 { if o == nil { return nil diff --git a/internal/sdk/models/shared/sourcenytimes.go b/internal/sdk/models/shared/sourcenytimes.go index adb21f77e..ef6be6760 100644 --- a/internal/sdk/models/shared/sourcenytimes.go +++ b/internal/sdk/models/shared/sourcenytimes.go @@ -6,6 +6,7 @@ import ( "encoding/json" "fmt" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/types" ) // SourceNytimesPeriodUsedForMostPopularStreams - Period of time (in days) @@ -89,14 +90,14 @@ type SourceNytimes struct { // API Key APIKey string `json:"api_key"` // End date to stop the article retrieval (format YYYY-MM) - EndDate *string `json:"end_date,omitempty"` + EndDate *types.Date `json:"end_date,omitempty"` // Period of time (in days) Period SourceNytimesPeriodUsedForMostPopularStreams `json:"period"` // Share Type ShareType *SourceNytimesShareTypeUsedForMostPopularSharedStream `json:"share_type,omitempty"` sourceType Nytimes `const:"nytimes" json:"sourceType"` // Start date to begin the article retrieval (format YYYY-MM) - StartDate string `json:"start_date"` + StartDate types.Date `json:"start_date"` } func (s SourceNytimes) MarshalJSON() ([]byte, error) { @@ -117,7 +118,7 @@ func (o *SourceNytimes) GetAPIKey() string { return o.APIKey } -func (o *SourceNytimes) GetEndDate() *string { +func (o *SourceNytimes) GetEndDate() *types.Date { if o == nil { return nil } @@ -142,9 +143,9 @@ func (o *SourceNytimes) GetSourceType() Nytimes { return NytimesNytimes } -func (o *SourceNytimes) GetStartDate() string { +func (o *SourceNytimes) GetStartDate() types.Date { if o == nil { - return "" + return types.Date{} } return o.StartDate } diff --git a/internal/sdk/models/shared/sourcenytimesupdate.go b/internal/sdk/models/shared/sourcenytimesupdate.go index 31a0bdca0..7e466605a 100644 --- a/internal/sdk/models/shared/sourcenytimesupdate.go +++ b/internal/sdk/models/shared/sourcenytimesupdate.go @@ -5,6 +5,8 @@ package shared import ( "encoding/json" "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/types" ) // PeriodUsedForMostPopularStreams - Period of time (in days) @@ -65,13 +67,24 @@ type SourceNytimesUpdate struct { // API Key APIKey string `json:"api_key"` // End date to stop the article retrieval (format YYYY-MM) - EndDate *string `json:"end_date,omitempty"` + EndDate *types.Date `json:"end_date,omitempty"` // Period of time (in days) Period PeriodUsedForMostPopularStreams `json:"period"` // Share Type ShareType *ShareTypeUsedForMostPopularSharedStream `json:"share_type,omitempty"` // Start date to begin the article retrieval (format YYYY-MM) - StartDate string `json:"start_date"` + StartDate types.Date `json:"start_date"` +} + +func (s SourceNytimesUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourceNytimesUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil } func (o *SourceNytimesUpdate) GetAPIKey() string { @@ -81,7 +94,7 @@ func (o *SourceNytimesUpdate) GetAPIKey() string { return o.APIKey } -func (o *SourceNytimesUpdate) GetEndDate() *string { +func (o *SourceNytimesUpdate) GetEndDate() *types.Date { if o == nil { return nil } @@ -102,9 +115,9 @@ func (o *SourceNytimesUpdate) GetShareType() *ShareTypeUsedForMostPopularSharedS return o.ShareType } -func (o *SourceNytimesUpdate) GetStartDate() string { +func (o *SourceNytimesUpdate) GetStartDate() types.Date { if o == nil { - return "" + return types.Date{} } return o.StartDate } diff --git a/internal/sdk/models/shared/sourceoracleupdate.go b/internal/sdk/models/shared/sourceoracleupdate.go index 872e42659..719545136 100644 --- a/internal/sdk/models/shared/sourceoracleupdate.go +++ b/internal/sdk/models/shared/sourceoracleupdate.go @@ -309,11 +309,11 @@ func (o *NativeNetworkEncryptionNNE) GetEncryptionMethod() EncryptionMethod { return EncryptionMethodClientNne } -type EncryptionType string +type EncryptionUnionType string const ( - EncryptionTypeNativeNetworkEncryptionNNE EncryptionType = "Native Network Encryption (NNE)" - EncryptionTypeTLSEncryptedVerifyCertificate EncryptionType = "TLS Encrypted (verify certificate)" + EncryptionUnionTypeNativeNetworkEncryptionNNE EncryptionUnionType = "Native Network Encryption (NNE)" + EncryptionUnionTypeTLSEncryptedVerifyCertificate EncryptionUnionType = "TLS Encrypted (verify certificate)" ) // Encryption - The encryption method with is used when communicating with the database. @@ -321,11 +321,11 @@ type Encryption struct { NativeNetworkEncryptionNNE *NativeNetworkEncryptionNNE TLSEncryptedVerifyCertificate *TLSEncryptedVerifyCertificate - Type EncryptionType + Type EncryptionUnionType } func CreateEncryptionNativeNetworkEncryptionNNE(nativeNetworkEncryptionNNE NativeNetworkEncryptionNNE) Encryption { - typ := EncryptionTypeNativeNetworkEncryptionNNE + typ := EncryptionUnionTypeNativeNetworkEncryptionNNE return Encryption{ NativeNetworkEncryptionNNE: &nativeNetworkEncryptionNNE, @@ -334,7 +334,7 @@ func CreateEncryptionNativeNetworkEncryptionNNE(nativeNetworkEncryptionNNE Nativ } func CreateEncryptionTLSEncryptedVerifyCertificate(tlsEncryptedVerifyCertificate TLSEncryptedVerifyCertificate) Encryption { - typ := EncryptionTypeTLSEncryptedVerifyCertificate + typ := EncryptionUnionTypeTLSEncryptedVerifyCertificate return Encryption{ TLSEncryptedVerifyCertificate: &tlsEncryptedVerifyCertificate, @@ -347,14 +347,14 @@ func (u *Encryption) UnmarshalJSON(data []byte) error { var nativeNetworkEncryptionNNE NativeNetworkEncryptionNNE = NativeNetworkEncryptionNNE{} if err := utils.UnmarshalJSON(data, &nativeNetworkEncryptionNNE, "", true, true); err == nil { u.NativeNetworkEncryptionNNE = &nativeNetworkEncryptionNNE - u.Type = EncryptionTypeNativeNetworkEncryptionNNE + u.Type = EncryptionUnionTypeNativeNetworkEncryptionNNE return nil } var tlsEncryptedVerifyCertificate TLSEncryptedVerifyCertificate = TLSEncryptedVerifyCertificate{} if err := utils.UnmarshalJSON(data, &tlsEncryptedVerifyCertificate, "", true, true); err == nil { u.TLSEncryptedVerifyCertificate = &tlsEncryptedVerifyCertificate - u.Type = EncryptionTypeTLSEncryptedVerifyCertificate + u.Type = EncryptionUnionTypeTLSEncryptedVerifyCertificate return nil } diff --git a/internal/sdk/models/shared/sourceorb.go b/internal/sdk/models/shared/sourceorb.go index 78df58047..4e463e689 100644 --- a/internal/sdk/models/shared/sourceorb.go +++ b/internal/sdk/models/shared/sourceorb.go @@ -6,7 +6,6 @@ import ( "encoding/json" "fmt" "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" - "time" ) type Orb string @@ -45,7 +44,7 @@ type SourceOrb struct { PlanID *string `json:"plan_id,omitempty"` sourceType Orb `const:"orb" json:"sourceType"` // UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. - StartDate time.Time `json:"start_date"` + StartDate string `json:"start_date"` // Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. StringEventPropertiesKeys []string `json:"string_event_properties_keys,omitempty"` // Property key name to group subscription usage by. @@ -102,9 +101,9 @@ func (o *SourceOrb) GetSourceType() Orb { return OrbOrb } -func (o *SourceOrb) GetStartDate() time.Time { +func (o *SourceOrb) GetStartDate() string { if o == nil { - return time.Time{} + return "" } return o.StartDate } diff --git a/internal/sdk/models/shared/sourceorbupdate.go b/internal/sdk/models/shared/sourceorbupdate.go index 41f6ea2db..199749495 100644 --- a/internal/sdk/models/shared/sourceorbupdate.go +++ b/internal/sdk/models/shared/sourceorbupdate.go @@ -4,7 +4,6 @@ package shared import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" - "time" ) type SourceOrbUpdate struct { @@ -19,7 +18,7 @@ type SourceOrbUpdate struct { // Orb Plan ID to filter subscriptions that should have usage fetched. PlanID *string `json:"plan_id,omitempty"` // UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. - StartDate time.Time `json:"start_date"` + StartDate string `json:"start_date"` // Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. StringEventPropertiesKeys []string `json:"string_event_properties_keys,omitempty"` // Property key name to group subscription usage by. @@ -72,9 +71,9 @@ func (o *SourceOrbUpdate) GetPlanID() *string { return o.PlanID } -func (o *SourceOrbUpdate) GetStartDate() time.Time { +func (o *SourceOrbUpdate) GetStartDate() string { if o == nil { - return time.Time{} + return "" } return o.StartDate } diff --git a/internal/sdk/models/shared/sourcepunkapi.go b/internal/sdk/models/shared/sourcepunkapi.go new file mode 100644 index 000000000..ce1486dd3 --- /dev/null +++ b/internal/sdk/models/shared/sourcepunkapi.go @@ -0,0 +1,78 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "encoding/json" + "fmt" + "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" +) + +type PunkAPI string + +const ( + PunkAPIPunkAPI PunkAPI = "punk-api" +) + +func (e PunkAPI) ToPointer() *PunkAPI { + return &e +} +func (e *PunkAPI) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "punk-api": + *e = PunkAPI(v) + return nil + default: + return fmt.Errorf("invalid value for PunkAPI: %v", v) + } +} + +type SourcePunkAPI struct { + // To extract specific data with Unique ID + BrewedAfter string `json:"brewed_after"` + // To extract specific data with Unique ID + BrewedBefore string `json:"brewed_before"` + // To extract specific data with Unique ID + ID *string `json:"id,omitempty"` + sourceType PunkAPI `const:"punk-api" json:"sourceType"` +} + +func (s SourcePunkAPI) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SourcePunkAPI) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + return err + } + return nil +} + +func (o *SourcePunkAPI) GetBrewedAfter() string { + if o == nil { + return "" + } + return o.BrewedAfter +} + +func (o *SourcePunkAPI) GetBrewedBefore() string { + if o == nil { + return "" + } + return o.BrewedBefore +} + +func (o *SourcePunkAPI) GetID() *string { + if o == nil { + return nil + } + return o.ID +} + +func (o *SourcePunkAPI) GetSourceType() PunkAPI { + return PunkAPIPunkAPI +} diff --git a/internal/sdk/models/shared/sourcedatadogcreaterequest.go b/internal/sdk/models/shared/sourcepunkapicreaterequest.go similarity index 63% rename from internal/sdk/models/shared/sourcedatadogcreaterequest.go rename to internal/sdk/models/shared/sourcepunkapicreaterequest.go index eebbd1c1e..585e3b724 100644 --- a/internal/sdk/models/shared/sourcedatadogcreaterequest.go +++ b/internal/sdk/models/shared/sourcepunkapicreaterequest.go @@ -2,8 +2,8 @@ package shared -type SourceDatadogCreateRequest struct { - Configuration SourceDatadog `json:"configuration"` +type SourcePunkAPICreateRequest struct { + Configuration SourcePunkAPI `json:"configuration"` // The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. DefinitionID *string `json:"definitionId,omitempty"` // Name of the source e.g. dev-mysql-instance. @@ -13,35 +13,35 @@ type SourceDatadogCreateRequest struct { WorkspaceID string `json:"workspaceId"` } -func (o *SourceDatadogCreateRequest) GetConfiguration() SourceDatadog { +func (o *SourcePunkAPICreateRequest) GetConfiguration() SourcePunkAPI { if o == nil { - return SourceDatadog{} + return SourcePunkAPI{} } return o.Configuration } -func (o *SourceDatadogCreateRequest) GetDefinitionID() *string { +func (o *SourcePunkAPICreateRequest) GetDefinitionID() *string { if o == nil { return nil } return o.DefinitionID } -func (o *SourceDatadogCreateRequest) GetName() string { +func (o *SourcePunkAPICreateRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourceDatadogCreateRequest) GetSecretID() *string { +func (o *SourcePunkAPICreateRequest) GetSecretID() *string { if o == nil { return nil } return o.SecretID } -func (o *SourceDatadogCreateRequest) GetWorkspaceID() string { +func (o *SourcePunkAPICreateRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourcedatadogputrequest.go b/internal/sdk/models/shared/sourcepunkapiputrequest.go similarity index 52% rename from internal/sdk/models/shared/sourcedatadogputrequest.go rename to internal/sdk/models/shared/sourcepunkapiputrequest.go index 6acbaae3b..bd53af290 100644 --- a/internal/sdk/models/shared/sourcedatadogputrequest.go +++ b/internal/sdk/models/shared/sourcepunkapiputrequest.go @@ -2,27 +2,27 @@ package shared -type SourceDatadogPutRequest struct { - Configuration SourceDatadogUpdate `json:"configuration"` +type SourcePunkAPIPutRequest struct { + Configuration SourcePunkAPIUpdate `json:"configuration"` Name string `json:"name"` WorkspaceID string `json:"workspaceId"` } -func (o *SourceDatadogPutRequest) GetConfiguration() SourceDatadogUpdate { +func (o *SourcePunkAPIPutRequest) GetConfiguration() SourcePunkAPIUpdate { if o == nil { - return SourceDatadogUpdate{} + return SourcePunkAPIUpdate{} } return o.Configuration } -func (o *SourceDatadogPutRequest) GetName() string { +func (o *SourcePunkAPIPutRequest) GetName() string { if o == nil { return "" } return o.Name } -func (o *SourceDatadogPutRequest) GetWorkspaceID() string { +func (o *SourcePunkAPIPutRequest) GetWorkspaceID() string { if o == nil { return "" } diff --git a/internal/sdk/models/shared/sourcepunkapiupdate.go b/internal/sdk/models/shared/sourcepunkapiupdate.go new file mode 100644 index 000000000..53f27ff93 --- /dev/null +++ b/internal/sdk/models/shared/sourcepunkapiupdate.go @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type SourcePunkAPIUpdate struct { + // To extract specific data with Unique ID + BrewedAfter string `json:"brewed_after"` + // To extract specific data with Unique ID + BrewedBefore string `json:"brewed_before"` + // To extract specific data with Unique ID + ID *string `json:"id,omitempty"` +} + +func (o *SourcePunkAPIUpdate) GetBrewedAfter() string { + if o == nil { + return "" + } + return o.BrewedAfter +} + +func (o *SourcePunkAPIUpdate) GetBrewedBefore() string { + if o == nil { + return "" + } + return o.BrewedBefore +} + +func (o *SourcePunkAPIUpdate) GetID() *string { + if o == nil { + return nil + } + return o.ID +} diff --git a/internal/sdk/models/shared/sources3.go b/internal/sdk/models/shared/sources3.go index 0fc312401..76f6fb058 100644 --- a/internal/sdk/models/shared/sources3.go +++ b/internal/sdk/models/shared/sources3.go @@ -715,8 +715,8 @@ func (e *SourceS3ParsingStrategy) UnmarshalJSON(data []byte) error { } } -// SourceS3UnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceS3UnstructuredDocumentFormat struct { +// SourceS3DocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceS3DocumentFileTypeFormatExperimental struct { filetype *SourceS3SchemasStreamsFormatFormat5Filetype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceS3Processing `json:"processing,omitempty"` @@ -726,36 +726,36 @@ type SourceS3UnstructuredDocumentFormat struct { Strategy *SourceS3ParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceS3UnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { +func (s SourceS3DocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceS3UnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { +func (s *SourceS3DocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceS3UnstructuredDocumentFormat) GetFiletype() *SourceS3SchemasStreamsFormatFormat5Filetype { +func (o *SourceS3DocumentFileTypeFormatExperimental) GetFiletype() *SourceS3SchemasStreamsFormatFormat5Filetype { return SourceS3SchemasStreamsFormatFormat5FiletypeUnstructured.ToPointer() } -func (o *SourceS3UnstructuredDocumentFormat) GetProcessing() *SourceS3Processing { +func (o *SourceS3DocumentFileTypeFormatExperimental) GetProcessing() *SourceS3Processing { if o == nil { return nil } return o.Processing } -func (o *SourceS3UnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { +func (o *SourceS3DocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceS3UnstructuredDocumentFormat) GetStrategy() *SourceS3ParsingStrategy { +func (o *SourceS3DocumentFileTypeFormatExperimental) GetStrategy() *SourceS3ParsingStrategy { if o == nil { return nil } @@ -1325,20 +1325,20 @@ func (o *SourceS3AvroFormat) GetFiletype() *SourceS3SchemasStreamsFiletype { type SourceS3FormatType string const ( - SourceS3FormatTypeSourceS3AvroFormat SourceS3FormatType = "source-s3_Avro Format" - SourceS3FormatTypeSourceS3CSVFormat SourceS3FormatType = "source-s3_CSV Format" - SourceS3FormatTypeSourceS3JsonlFormat SourceS3FormatType = "source-s3_Jsonl Format" - SourceS3FormatTypeSourceS3ParquetFormat SourceS3FormatType = "source-s3_Parquet Format" - SourceS3FormatTypeSourceS3UnstructuredDocumentFormat SourceS3FormatType = "source-s3_Unstructured Document Format" + SourceS3FormatTypeSourceS3AvroFormat SourceS3FormatType = "source-s3_Avro Format" + SourceS3FormatTypeSourceS3CSVFormat SourceS3FormatType = "source-s3_CSV Format" + SourceS3FormatTypeSourceS3JsonlFormat SourceS3FormatType = "source-s3_Jsonl Format" + SourceS3FormatTypeSourceS3ParquetFormat SourceS3FormatType = "source-s3_Parquet Format" + SourceS3FormatTypeSourceS3DocumentFileTypeFormatExperimental SourceS3FormatType = "source-s3_Document File Type Format (Experimental)" ) // SourceS3Format - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceS3Format struct { - SourceS3AvroFormat *SourceS3AvroFormat - SourceS3CSVFormat *SourceS3CSVFormat - SourceS3JsonlFormat *SourceS3JsonlFormat - SourceS3ParquetFormat *SourceS3ParquetFormat - SourceS3UnstructuredDocumentFormat *SourceS3UnstructuredDocumentFormat + SourceS3AvroFormat *SourceS3AvroFormat + SourceS3CSVFormat *SourceS3CSVFormat + SourceS3JsonlFormat *SourceS3JsonlFormat + SourceS3ParquetFormat *SourceS3ParquetFormat + SourceS3DocumentFileTypeFormatExperimental *SourceS3DocumentFileTypeFormatExperimental Type SourceS3FormatType } @@ -1379,12 +1379,12 @@ func CreateSourceS3FormatSourceS3ParquetFormat(sourceS3ParquetFormat SourceS3Par } } -func CreateSourceS3FormatSourceS3UnstructuredDocumentFormat(sourceS3UnstructuredDocumentFormat SourceS3UnstructuredDocumentFormat) SourceS3Format { - typ := SourceS3FormatTypeSourceS3UnstructuredDocumentFormat +func CreateSourceS3FormatSourceS3DocumentFileTypeFormatExperimental(sourceS3DocumentFileTypeFormatExperimental SourceS3DocumentFileTypeFormatExperimental) SourceS3Format { + typ := SourceS3FormatTypeSourceS3DocumentFileTypeFormatExperimental return SourceS3Format{ - SourceS3UnstructuredDocumentFormat: &sourceS3UnstructuredDocumentFormat, - Type: typ, + SourceS3DocumentFileTypeFormatExperimental: &sourceS3DocumentFileTypeFormatExperimental, + Type: typ, } } @@ -1411,10 +1411,10 @@ func (u *SourceS3Format) UnmarshalJSON(data []byte) error { return nil } - var sourceS3UnstructuredDocumentFormat SourceS3UnstructuredDocumentFormat = SourceS3UnstructuredDocumentFormat{} - if err := utils.UnmarshalJSON(data, &sourceS3UnstructuredDocumentFormat, "", true, true); err == nil { - u.SourceS3UnstructuredDocumentFormat = &sourceS3UnstructuredDocumentFormat - u.Type = SourceS3FormatTypeSourceS3UnstructuredDocumentFormat + var sourceS3DocumentFileTypeFormatExperimental SourceS3DocumentFileTypeFormatExperimental = SourceS3DocumentFileTypeFormatExperimental{} + if err := utils.UnmarshalJSON(data, &sourceS3DocumentFileTypeFormatExperimental, "", true, true); err == nil { + u.SourceS3DocumentFileTypeFormatExperimental = &sourceS3DocumentFileTypeFormatExperimental + u.Type = SourceS3FormatTypeSourceS3DocumentFileTypeFormatExperimental return nil } @@ -1445,8 +1445,8 @@ func (u SourceS3Format) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceS3ParquetFormat, "", true) } - if u.SourceS3UnstructuredDocumentFormat != nil { - return utils.MarshalJSON(u.SourceS3UnstructuredDocumentFormat, "", true) + if u.SourceS3DocumentFileTypeFormatExperimental != nil { + return utils.MarshalJSON(u.SourceS3DocumentFileTypeFormatExperimental, "", true) } return nil, errors.New("could not marshal union type SourceS3Format: all fields are null") diff --git a/internal/sdk/models/shared/sources3update.go b/internal/sdk/models/shared/sources3update.go index 302fa730a..a9f49b0da 100644 --- a/internal/sdk/models/shared/sources3update.go +++ b/internal/sdk/models/shared/sources3update.go @@ -692,8 +692,8 @@ func (e *SourceS3UpdateParsingStrategy) UnmarshalJSON(data []byte) error { } } -// SourceS3UpdateUnstructuredDocumentFormat - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. -type SourceS3UpdateUnstructuredDocumentFormat struct { +// SourceS3UpdateDocumentFileTypeFormatExperimental - Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. +type SourceS3UpdateDocumentFileTypeFormatExperimental struct { filetype *SourceS3UpdateSchemasStreamsFormatFormat5Filetype `const:"unstructured" json:"filetype"` // Processing configuration Processing *SourceS3UpdateProcessing `json:"processing,omitempty"` @@ -703,36 +703,36 @@ type SourceS3UpdateUnstructuredDocumentFormat struct { Strategy *SourceS3UpdateParsingStrategy `default:"auto" json:"strategy"` } -func (s SourceS3UpdateUnstructuredDocumentFormat) MarshalJSON() ([]byte, error) { +func (s SourceS3UpdateDocumentFileTypeFormatExperimental) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SourceS3UpdateUnstructuredDocumentFormat) UnmarshalJSON(data []byte) error { +func (s *SourceS3UpdateDocumentFileTypeFormatExperimental) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { return err } return nil } -func (o *SourceS3UpdateUnstructuredDocumentFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFormat5Filetype { +func (o *SourceS3UpdateDocumentFileTypeFormatExperimental) GetFiletype() *SourceS3UpdateSchemasStreamsFormatFormat5Filetype { return SourceS3UpdateSchemasStreamsFormatFormat5FiletypeUnstructured.ToPointer() } -func (o *SourceS3UpdateUnstructuredDocumentFormat) GetProcessing() *SourceS3UpdateProcessing { +func (o *SourceS3UpdateDocumentFileTypeFormatExperimental) GetProcessing() *SourceS3UpdateProcessing { if o == nil { return nil } return o.Processing } -func (o *SourceS3UpdateUnstructuredDocumentFormat) GetSkipUnprocessableFiles() *bool { +func (o *SourceS3UpdateDocumentFileTypeFormatExperimental) GetSkipUnprocessableFiles() *bool { if o == nil { return nil } return o.SkipUnprocessableFiles } -func (o *SourceS3UpdateUnstructuredDocumentFormat) GetStrategy() *SourceS3UpdateParsingStrategy { +func (o *SourceS3UpdateDocumentFileTypeFormatExperimental) GetStrategy() *SourceS3UpdateParsingStrategy { if o == nil { return nil } @@ -1302,20 +1302,20 @@ func (o *SourceS3UpdateAvroFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFi type SourceS3UpdateFormatType string const ( - SourceS3UpdateFormatTypeSourceS3UpdateAvroFormat SourceS3UpdateFormatType = "source-s3-update_Avro Format" - SourceS3UpdateFormatTypeSourceS3UpdateCSVFormat SourceS3UpdateFormatType = "source-s3-update_CSV Format" - SourceS3UpdateFormatTypeSourceS3UpdateJsonlFormat SourceS3UpdateFormatType = "source-s3-update_Jsonl Format" - SourceS3UpdateFormatTypeSourceS3UpdateParquetFormat SourceS3UpdateFormatType = "source-s3-update_Parquet Format" - SourceS3UpdateFormatTypeSourceS3UpdateUnstructuredDocumentFormat SourceS3UpdateFormatType = "source-s3-update_Unstructured Document Format" + SourceS3UpdateFormatTypeSourceS3UpdateAvroFormat SourceS3UpdateFormatType = "source-s3-update_Avro Format" + SourceS3UpdateFormatTypeSourceS3UpdateCSVFormat SourceS3UpdateFormatType = "source-s3-update_CSV Format" + SourceS3UpdateFormatTypeSourceS3UpdateJsonlFormat SourceS3UpdateFormatType = "source-s3-update_Jsonl Format" + SourceS3UpdateFormatTypeSourceS3UpdateParquetFormat SourceS3UpdateFormatType = "source-s3-update_Parquet Format" + SourceS3UpdateFormatTypeSourceS3UpdateDocumentFileTypeFormatExperimental SourceS3UpdateFormatType = "source-s3-update_Document File Type Format (Experimental)" ) // SourceS3UpdateFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. type SourceS3UpdateFormat struct { - SourceS3UpdateAvroFormat *SourceS3UpdateAvroFormat - SourceS3UpdateCSVFormat *SourceS3UpdateCSVFormat - SourceS3UpdateJsonlFormat *SourceS3UpdateJsonlFormat - SourceS3UpdateParquetFormat *SourceS3UpdateParquetFormat - SourceS3UpdateUnstructuredDocumentFormat *SourceS3UpdateUnstructuredDocumentFormat + SourceS3UpdateAvroFormat *SourceS3UpdateAvroFormat + SourceS3UpdateCSVFormat *SourceS3UpdateCSVFormat + SourceS3UpdateJsonlFormat *SourceS3UpdateJsonlFormat + SourceS3UpdateParquetFormat *SourceS3UpdateParquetFormat + SourceS3UpdateDocumentFileTypeFormatExperimental *SourceS3UpdateDocumentFileTypeFormatExperimental Type SourceS3UpdateFormatType } @@ -1356,12 +1356,12 @@ func CreateSourceS3UpdateFormatSourceS3UpdateParquetFormat(sourceS3UpdateParquet } } -func CreateSourceS3UpdateFormatSourceS3UpdateUnstructuredDocumentFormat(sourceS3UpdateUnstructuredDocumentFormat SourceS3UpdateUnstructuredDocumentFormat) SourceS3UpdateFormat { - typ := SourceS3UpdateFormatTypeSourceS3UpdateUnstructuredDocumentFormat +func CreateSourceS3UpdateFormatSourceS3UpdateDocumentFileTypeFormatExperimental(sourceS3UpdateDocumentFileTypeFormatExperimental SourceS3UpdateDocumentFileTypeFormatExperimental) SourceS3UpdateFormat { + typ := SourceS3UpdateFormatTypeSourceS3UpdateDocumentFileTypeFormatExperimental return SourceS3UpdateFormat{ - SourceS3UpdateUnstructuredDocumentFormat: &sourceS3UpdateUnstructuredDocumentFormat, - Type: typ, + SourceS3UpdateDocumentFileTypeFormatExperimental: &sourceS3UpdateDocumentFileTypeFormatExperimental, + Type: typ, } } @@ -1388,10 +1388,10 @@ func (u *SourceS3UpdateFormat) UnmarshalJSON(data []byte) error { return nil } - var sourceS3UpdateUnstructuredDocumentFormat SourceS3UpdateUnstructuredDocumentFormat = SourceS3UpdateUnstructuredDocumentFormat{} - if err := utils.UnmarshalJSON(data, &sourceS3UpdateUnstructuredDocumentFormat, "", true, true); err == nil { - u.SourceS3UpdateUnstructuredDocumentFormat = &sourceS3UpdateUnstructuredDocumentFormat - u.Type = SourceS3UpdateFormatTypeSourceS3UpdateUnstructuredDocumentFormat + var sourceS3UpdateDocumentFileTypeFormatExperimental SourceS3UpdateDocumentFileTypeFormatExperimental = SourceS3UpdateDocumentFileTypeFormatExperimental{} + if err := utils.UnmarshalJSON(data, &sourceS3UpdateDocumentFileTypeFormatExperimental, "", true, true); err == nil { + u.SourceS3UpdateDocumentFileTypeFormatExperimental = &sourceS3UpdateDocumentFileTypeFormatExperimental + u.Type = SourceS3UpdateFormatTypeSourceS3UpdateDocumentFileTypeFormatExperimental return nil } @@ -1422,8 +1422,8 @@ func (u SourceS3UpdateFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceS3UpdateParquetFormat, "", true) } - if u.SourceS3UpdateUnstructuredDocumentFormat != nil { - return utils.MarshalJSON(u.SourceS3UpdateUnstructuredDocumentFormat, "", true) + if u.SourceS3UpdateDocumentFileTypeFormatExperimental != nil { + return utils.MarshalJSON(u.SourceS3UpdateDocumentFileTypeFormatExperimental, "", true) } return nil, errors.New("could not marshal union type SourceS3UpdateFormat: all fields are null") diff --git a/internal/sdk/models/shared/sourceshopify.go b/internal/sdk/models/shared/sourceshopify.go index d116381dc..2cb135dd8 100644 --- a/internal/sdk/models/shared/sourceshopify.go +++ b/internal/sdk/models/shared/sourceshopify.go @@ -226,8 +226,6 @@ type SourceShopify struct { Credentials *SourceShopifyShopifyAuthorizationMethod `json:"credentials,omitempty"` // Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` user, leave the default value to speed up the fetch. FetchTransactionsUserID *bool `default:"false" json:"fetch_transactions_user_id"` - // The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. - JobTerminationThreshold *int64 `default:"3600" json:"job_termination_threshold"` // The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. Shop string `json:"shop"` sourceType Shopify `const:"shopify" json:"sourceType"` @@ -267,13 +265,6 @@ func (o *SourceShopify) GetFetchTransactionsUserID() *bool { return o.FetchTransactionsUserID } -func (o *SourceShopify) GetJobTerminationThreshold() *int64 { - if o == nil { - return nil - } - return o.JobTerminationThreshold -} - func (o *SourceShopify) GetShop() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/sourceshopifyupdate.go b/internal/sdk/models/shared/sourceshopifyupdate.go index ae726208d..33cf696f4 100644 --- a/internal/sdk/models/shared/sourceshopifyupdate.go +++ b/internal/sdk/models/shared/sourceshopifyupdate.go @@ -203,8 +203,6 @@ type SourceShopifyUpdate struct { Credentials *ShopifyAuthorizationMethod `json:"credentials,omitempty"` // Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` user, leave the default value to speed up the fetch. FetchTransactionsUserID *bool `default:"false" json:"fetch_transactions_user_id"` - // The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. - JobTerminationThreshold *int64 `default:"3600" json:"job_termination_threshold"` // The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. Shop string `json:"shop"` // The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated. @@ -243,13 +241,6 @@ func (o *SourceShopifyUpdate) GetFetchTransactionsUserID() *bool { return o.FetchTransactionsUserID } -func (o *SourceShopifyUpdate) GetJobTerminationThreshold() *int64 { - if o == nil { - return nil - } - return o.JobTerminationThreshold -} - func (o *SourceShopifyUpdate) GetShop() string { if o == nil { return "" diff --git a/internal/sdk/models/shared/sourcesnowflake.go b/internal/sdk/models/shared/sourcesnowflake.go index 248bb36d5..43fc64fc4 100644 --- a/internal/sdk/models/shared/sourcesnowflake.go +++ b/internal/sdk/models/shared/sourcesnowflake.go @@ -9,31 +9,31 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" ) -type SourceSnowflakeSchemasCredentialsAuthType string +type SourceSnowflakeSchemasAuthType string const ( - SourceSnowflakeSchemasCredentialsAuthTypeUsernamePassword SourceSnowflakeSchemasCredentialsAuthType = "username/password" + SourceSnowflakeSchemasAuthTypeUsernamePassword SourceSnowflakeSchemasAuthType = "username/password" ) -func (e SourceSnowflakeSchemasCredentialsAuthType) ToPointer() *SourceSnowflakeSchemasCredentialsAuthType { +func (e SourceSnowflakeSchemasAuthType) ToPointer() *SourceSnowflakeSchemasAuthType { return &e } -func (e *SourceSnowflakeSchemasCredentialsAuthType) UnmarshalJSON(data []byte) error { +func (e *SourceSnowflakeSchemasAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "username/password": - *e = SourceSnowflakeSchemasCredentialsAuthType(v) + *e = SourceSnowflakeSchemasAuthType(v) return nil default: - return fmt.Errorf("invalid value for SourceSnowflakeSchemasCredentialsAuthType: %v", v) + return fmt.Errorf("invalid value for SourceSnowflakeSchemasAuthType: %v", v) } } type SourceSnowflakeUsernameAndPassword struct { - authType SourceSnowflakeSchemasCredentialsAuthType `const:"username/password" json:"auth_type"` + authType SourceSnowflakeSchemasAuthType `const:"username/password" json:"auth_type"` // The password associated with the username. Password string `json:"password"` // The username you created to allow Airbyte to access the database. @@ -51,8 +51,8 @@ func (s *SourceSnowflakeUsernameAndPassword) UnmarshalJSON(data []byte) error { return nil } -func (o *SourceSnowflakeUsernameAndPassword) GetAuthType() SourceSnowflakeSchemasCredentialsAuthType { - return SourceSnowflakeSchemasCredentialsAuthTypeUsernamePassword +func (o *SourceSnowflakeUsernameAndPassword) GetAuthType() SourceSnowflakeSchemasAuthType { + return SourceSnowflakeSchemasAuthTypeUsernamePassword } func (o *SourceSnowflakeUsernameAndPassword) GetPassword() string { @@ -69,75 +69,6 @@ func (o *SourceSnowflakeUsernameAndPassword) GetUsername() string { return o.Username } -type SourceSnowflakeSchemasAuthType string - -const ( - SourceSnowflakeSchemasAuthTypeKeyPairAuthentication SourceSnowflakeSchemasAuthType = "Key Pair Authentication" -) - -func (e SourceSnowflakeSchemasAuthType) ToPointer() *SourceSnowflakeSchemasAuthType { - return &e -} -func (e *SourceSnowflakeSchemasAuthType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "Key Pair Authentication": - *e = SourceSnowflakeSchemasAuthType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceSnowflakeSchemasAuthType: %v", v) - } -} - -type SourceSnowflakeKeyPairAuthentication struct { - authType *SourceSnowflakeSchemasAuthType `const:"Key Pair Authentication" json:"auth_type,omitempty"` - // RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key. - PrivateKey string `json:"private_key"` - // Passphrase for private key - PrivateKeyPassword *string `json:"private_key_password,omitempty"` - // The username you created to allow Airbyte to access the database. - Username string `json:"username"` -} - -func (s SourceSnowflakeKeyPairAuthentication) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceSnowflakeKeyPairAuthentication) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *SourceSnowflakeKeyPairAuthentication) GetAuthType() *SourceSnowflakeSchemasAuthType { - return SourceSnowflakeSchemasAuthTypeKeyPairAuthentication.ToPointer() -} - -func (o *SourceSnowflakeKeyPairAuthentication) GetPrivateKey() string { - if o == nil { - return "" - } - return o.PrivateKey -} - -func (o *SourceSnowflakeKeyPairAuthentication) GetPrivateKeyPassword() *string { - if o == nil { - return nil - } - return o.PrivateKeyPassword -} - -func (o *SourceSnowflakeKeyPairAuthentication) GetUsername() string { - if o == nil { - return "" - } - return o.Username -} - type SourceSnowflakeAuthType string const ( @@ -219,15 +150,13 @@ func (o *SourceSnowflakeOAuth20) GetRefreshToken() *string { type SourceSnowflakeAuthorizationMethodType string const ( - SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeOAuth20 SourceSnowflakeAuthorizationMethodType = "source-snowflake_OAuth2.0" - SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeKeyPairAuthentication SourceSnowflakeAuthorizationMethodType = "source-snowflake_Key Pair Authentication" - SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeUsernameAndPassword SourceSnowflakeAuthorizationMethodType = "source-snowflake_Username and Password" + SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeOAuth20 SourceSnowflakeAuthorizationMethodType = "source-snowflake_OAuth2.0" + SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeUsernameAndPassword SourceSnowflakeAuthorizationMethodType = "source-snowflake_Username and Password" ) type SourceSnowflakeAuthorizationMethod struct { - SourceSnowflakeOAuth20 *SourceSnowflakeOAuth20 - SourceSnowflakeKeyPairAuthentication *SourceSnowflakeKeyPairAuthentication - SourceSnowflakeUsernameAndPassword *SourceSnowflakeUsernameAndPassword + SourceSnowflakeOAuth20 *SourceSnowflakeOAuth20 + SourceSnowflakeUsernameAndPassword *SourceSnowflakeUsernameAndPassword Type SourceSnowflakeAuthorizationMethodType } @@ -241,15 +170,6 @@ func CreateSourceSnowflakeAuthorizationMethodSourceSnowflakeOAuth20(sourceSnowfl } } -func CreateSourceSnowflakeAuthorizationMethodSourceSnowflakeKeyPairAuthentication(sourceSnowflakeKeyPairAuthentication SourceSnowflakeKeyPairAuthentication) SourceSnowflakeAuthorizationMethod { - typ := SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeKeyPairAuthentication - - return SourceSnowflakeAuthorizationMethod{ - SourceSnowflakeKeyPairAuthentication: &sourceSnowflakeKeyPairAuthentication, - Type: typ, - } -} - func CreateSourceSnowflakeAuthorizationMethodSourceSnowflakeUsernameAndPassword(sourceSnowflakeUsernameAndPassword SourceSnowflakeUsernameAndPassword) SourceSnowflakeAuthorizationMethod { typ := SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeUsernameAndPassword @@ -268,13 +188,6 @@ func (u *SourceSnowflakeAuthorizationMethod) UnmarshalJSON(data []byte) error { return nil } - var sourceSnowflakeKeyPairAuthentication SourceSnowflakeKeyPairAuthentication = SourceSnowflakeKeyPairAuthentication{} - if err := utils.UnmarshalJSON(data, &sourceSnowflakeKeyPairAuthentication, "", true, true); err == nil { - u.SourceSnowflakeKeyPairAuthentication = &sourceSnowflakeKeyPairAuthentication - u.Type = SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeKeyPairAuthentication - return nil - } - var sourceSnowflakeOAuth20 SourceSnowflakeOAuth20 = SourceSnowflakeOAuth20{} if err := utils.UnmarshalJSON(data, &sourceSnowflakeOAuth20, "", true, true); err == nil { u.SourceSnowflakeOAuth20 = &sourceSnowflakeOAuth20 @@ -290,10 +203,6 @@ func (u SourceSnowflakeAuthorizationMethod) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.SourceSnowflakeOAuth20, "", true) } - if u.SourceSnowflakeKeyPairAuthentication != nil { - return utils.MarshalJSON(u.SourceSnowflakeKeyPairAuthentication, "", true) - } - if u.SourceSnowflakeUsernameAndPassword != nil { return utils.MarshalJSON(u.SourceSnowflakeUsernameAndPassword, "", true) } diff --git a/internal/sdk/models/shared/sourcesnowflakeupdate.go b/internal/sdk/models/shared/sourcesnowflakeupdate.go index 9e7d2b739..e82637397 100644 --- a/internal/sdk/models/shared/sourcesnowflakeupdate.go +++ b/internal/sdk/models/shared/sourcesnowflakeupdate.go @@ -9,31 +9,31 @@ import ( "github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils" ) -type SourceSnowflakeUpdateSchemasCredentialsAuthType string +type SourceSnowflakeUpdateSchemasAuthType string const ( - SourceSnowflakeUpdateSchemasCredentialsAuthTypeUsernamePassword SourceSnowflakeUpdateSchemasCredentialsAuthType = "username/password" + SourceSnowflakeUpdateSchemasAuthTypeUsernamePassword SourceSnowflakeUpdateSchemasAuthType = "username/password" ) -func (e SourceSnowflakeUpdateSchemasCredentialsAuthType) ToPointer() *SourceSnowflakeUpdateSchemasCredentialsAuthType { +func (e SourceSnowflakeUpdateSchemasAuthType) ToPointer() *SourceSnowflakeUpdateSchemasAuthType { return &e } -func (e *SourceSnowflakeUpdateSchemasCredentialsAuthType) UnmarshalJSON(data []byte) error { +func (e *SourceSnowflakeUpdateSchemasAuthType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "username/password": - *e = SourceSnowflakeUpdateSchemasCredentialsAuthType(v) + *e = SourceSnowflakeUpdateSchemasAuthType(v) return nil default: - return fmt.Errorf("invalid value for SourceSnowflakeUpdateSchemasCredentialsAuthType: %v", v) + return fmt.Errorf("invalid value for SourceSnowflakeUpdateSchemasAuthType: %v", v) } } type SourceSnowflakeUpdateUsernameAndPassword struct { - authType SourceSnowflakeUpdateSchemasCredentialsAuthType `const:"username/password" json:"auth_type"` + authType SourceSnowflakeUpdateSchemasAuthType `const:"username/password" json:"auth_type"` // The password associated with the username. Password string `json:"password"` // The username you created to allow Airbyte to access the database. @@ -51,8 +51,8 @@ func (s *SourceSnowflakeUpdateUsernameAndPassword) UnmarshalJSON(data []byte) er return nil } -func (o *SourceSnowflakeUpdateUsernameAndPassword) GetAuthType() SourceSnowflakeUpdateSchemasCredentialsAuthType { - return SourceSnowflakeUpdateSchemasCredentialsAuthTypeUsernamePassword +func (o *SourceSnowflakeUpdateUsernameAndPassword) GetAuthType() SourceSnowflakeUpdateSchemasAuthType { + return SourceSnowflakeUpdateSchemasAuthTypeUsernamePassword } func (o *SourceSnowflakeUpdateUsernameAndPassword) GetPassword() string { @@ -69,75 +69,6 @@ func (o *SourceSnowflakeUpdateUsernameAndPassword) GetUsername() string { return o.Username } -type SourceSnowflakeUpdateSchemasAuthType string - -const ( - SourceSnowflakeUpdateSchemasAuthTypeKeyPairAuthentication SourceSnowflakeUpdateSchemasAuthType = "Key Pair Authentication" -) - -func (e SourceSnowflakeUpdateSchemasAuthType) ToPointer() *SourceSnowflakeUpdateSchemasAuthType { - return &e -} -func (e *SourceSnowflakeUpdateSchemasAuthType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "Key Pair Authentication": - *e = SourceSnowflakeUpdateSchemasAuthType(v) - return nil - default: - return fmt.Errorf("invalid value for SourceSnowflakeUpdateSchemasAuthType: %v", v) - } -} - -type SourceSnowflakeUpdateKeyPairAuthentication struct { - authType *SourceSnowflakeUpdateSchemasAuthType `const:"Key Pair Authentication" json:"auth_type,omitempty"` - // RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key. - PrivateKey string `json:"private_key"` - // Passphrase for private key - PrivateKeyPassword *string `json:"private_key_password,omitempty"` - // The username you created to allow Airbyte to access the database. - Username string `json:"username"` -} - -func (s SourceSnowflakeUpdateKeyPairAuthentication) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SourceSnowflakeUpdateKeyPairAuthentication) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil { - return err - } - return nil -} - -func (o *SourceSnowflakeUpdateKeyPairAuthentication) GetAuthType() *SourceSnowflakeUpdateSchemasAuthType { - return SourceSnowflakeUpdateSchemasAuthTypeKeyPairAuthentication.ToPointer() -} - -func (o *SourceSnowflakeUpdateKeyPairAuthentication) GetPrivateKey() string { - if o == nil { - return "" - } - return o.PrivateKey -} - -func (o *SourceSnowflakeUpdateKeyPairAuthentication) GetPrivateKeyPassword() *string { - if o == nil { - return nil - } - return o.PrivateKeyPassword -} - -func (o *SourceSnowflakeUpdateKeyPairAuthentication) GetUsername() string { - if o == nil { - return "" - } - return o.Username -} - type SourceSnowflakeUpdateAuthType string const ( @@ -219,15 +150,13 @@ func (o *SourceSnowflakeUpdateOAuth20) GetRefreshToken() *string { type SourceSnowflakeUpdateAuthorizationMethodType string const ( - SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateOAuth20 SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_OAuth2.0" - SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateKeyPairAuthentication SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_Key Pair Authentication" - SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateUsernameAndPassword SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_Username and Password" + SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateOAuth20 SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_OAuth2.0" + SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateUsernameAndPassword SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_Username and Password" ) type SourceSnowflakeUpdateAuthorizationMethod struct { - SourceSnowflakeUpdateOAuth20 *SourceSnowflakeUpdateOAuth20 - SourceSnowflakeUpdateKeyPairAuthentication *SourceSnowflakeUpdateKeyPairAuthentication - SourceSnowflakeUpdateUsernameAndPassword *SourceSnowflakeUpdateUsernameAndPassword + SourceSnowflakeUpdateOAuth20 *SourceSnowflakeUpdateOAuth20 + SourceSnowflakeUpdateUsernameAndPassword *SourceSnowflakeUpdateUsernameAndPassword Type SourceSnowflakeUpdateAuthorizationMethodType } @@ -241,15 +170,6 @@ func CreateSourceSnowflakeUpdateAuthorizationMethodSourceSnowflakeUpdateOAuth20( } } -func CreateSourceSnowflakeUpdateAuthorizationMethodSourceSnowflakeUpdateKeyPairAuthentication(sourceSnowflakeUpdateKeyPairAuthentication SourceSnowflakeUpdateKeyPairAuthentication) SourceSnowflakeUpdateAuthorizationMethod { - typ := SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateKeyPairAuthentication - - return SourceSnowflakeUpdateAuthorizationMethod{ - SourceSnowflakeUpdateKeyPairAuthentication: &sourceSnowflakeUpdateKeyPairAuthentication, - Type: typ, - } -} - func CreateSourceSnowflakeUpdateAuthorizationMethodSourceSnowflakeUpdateUsernameAndPassword(sourceSnowflakeUpdateUsernameAndPassword SourceSnowflakeUpdateUsernameAndPassword) SourceSnowflakeUpdateAuthorizationMethod { typ := SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateUsernameAndPassword @@ -268,13 +188,6 @@ func (u *SourceSnowflakeUpdateAuthorizationMethod) UnmarshalJSON(data []byte) er return nil } - var sourceSnowflakeUpdateKeyPairAuthentication SourceSnowflakeUpdateKeyPairAuthentication = SourceSnowflakeUpdateKeyPairAuthentication{} - if err := utils.UnmarshalJSON(data, &sourceSnowflakeUpdateKeyPairAuthentication, "", true, true); err == nil { - u.SourceSnowflakeUpdateKeyPairAuthentication = &sourceSnowflakeUpdateKeyPairAuthentication - u.Type = SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateKeyPairAuthentication - return nil - } - var sourceSnowflakeUpdateOAuth20 SourceSnowflakeUpdateOAuth20 = SourceSnowflakeUpdateOAuth20{} if err := utils.UnmarshalJSON(data, &sourceSnowflakeUpdateOAuth20, "", true, true); err == nil { u.SourceSnowflakeUpdateOAuth20 = &sourceSnowflakeUpdateOAuth20 @@ -290,10 +203,6 @@ func (u SourceSnowflakeUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) return utils.MarshalJSON(u.SourceSnowflakeUpdateOAuth20, "", true) } - if u.SourceSnowflakeUpdateKeyPairAuthentication != nil { - return utils.MarshalJSON(u.SourceSnowflakeUpdateKeyPairAuthentication, "", true) - } - if u.SourceSnowflakeUpdateUsernameAndPassword != nil { return utils.MarshalJSON(u.SourceSnowflakeUpdateUsernameAndPassword, "", true) } diff --git a/internal/sdk/models/shared/sourcetiktokmarketing.go b/internal/sdk/models/shared/sourcetiktokmarketing.go index af045c6cb..4eb46a032 100644 --- a/internal/sdk/models/shared/sourcetiktokmarketing.go +++ b/internal/sdk/models/shared/sourcetiktokmarketing.go @@ -242,7 +242,7 @@ type SourceTiktokMarketing struct { Credentials *SourceTiktokMarketingAuthenticationMethod `json:"credentials,omitempty"` // The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date. EndDate *types.Date `json:"end_date,omitempty"` - // Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. + // Set to active if you want to include deleted data in reports. IncludeDeleted *bool `default:"false" json:"include_deleted"` sourceType *TiktokMarketing `const:"tiktok-marketing" json:"sourceType,omitempty"` // The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. diff --git a/internal/sdk/models/shared/sourcetiktokmarketingupdate.go b/internal/sdk/models/shared/sourcetiktokmarketingupdate.go index 34e3f2aec..09a9b3150 100644 --- a/internal/sdk/models/shared/sourcetiktokmarketingupdate.go +++ b/internal/sdk/models/shared/sourcetiktokmarketingupdate.go @@ -219,7 +219,7 @@ type SourceTiktokMarketingUpdate struct { Credentials *SourceTiktokMarketingUpdateAuthenticationMethod `json:"credentials,omitempty"` // The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date. EndDate *types.Date `json:"end_date,omitempty"` - // Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. + // Set to active if you want to include deleted data in reports. IncludeDeleted *bool `default:"false" json:"include_deleted"` // The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. StartDate *types.Date `default:"2016-09-01" json:"start_date"` diff --git a/internal/sdk/models/shared/sourcewikipediapageviews.go b/internal/sdk/models/shared/sourcewikipediapageviews.go index eaff3af43..3e1e1c0c1 100644 --- a/internal/sdk/models/shared/sourcewikipediapageviews.go +++ b/internal/sdk/models/shared/sourcewikipediapageviews.go @@ -45,7 +45,7 @@ type SourceWikipediaPageviews struct { // If you want to filter by project, use the domain of any Wikimedia project. Project string `json:"project"` sourceType WikipediaPageviews `const:"wikipedia-pageviews" json:"sourceType"` - // The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. + // The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Start string `json:"start"` } diff --git a/internal/sdk/models/shared/sourcewikipediapageviewsupdate.go b/internal/sdk/models/shared/sourcewikipediapageviewsupdate.go index 8a37773a1..41d4ef2d8 100644 --- a/internal/sdk/models/shared/sourcewikipediapageviewsupdate.go +++ b/internal/sdk/models/shared/sourcewikipediapageviewsupdate.go @@ -15,7 +15,7 @@ type SourceWikipediaPageviewsUpdate struct { End string `json:"end"` // If you want to filter by project, use the domain of any Wikimedia project. Project string `json:"project"` - // The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. + // The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Start string `json:"start"` } diff --git a/internal/sdk/sources.go b/internal/sdk/sources.go index 61e11177e..0114b6133 100644 --- a/internal/sdk/sources.go +++ b/internal/sdk/sources.go @@ -2809,127 +2809,6 @@ func (s *Sources) CreateSourceChartmogul(ctx context.Context, request *shared.So } -// CreateSourceClazar - Create a source -// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceClazar(ctx context.Context, request *shared.SourceClazarCreateRequest, opts ...operations.Option) (*operations.CreateSourceClazarResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "createSourceClazar", - OAuth2Scopes: []string{}, - SecuritySource: s.sdkConfiguration.Security, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := url.JoinPath(baseURL, "/sources") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { - _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - - res := &operations.CreateSourceClazarResponse{ - StatusCode: httpRes.StatusCode, - ContentType: httpRes.Header.Get("Content-Type"), - RawResponse: httpRes, - } - - rawBody, err := io.ReadAll(httpRes.Body) - if err != nil { - return nil, fmt.Errorf("error reading response body: %w", err) - } - httpRes.Body.Close() - httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - var out shared.SourceResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.SourceResponse = &out - default: - return nil, errors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 403: - default: - return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - // CreateSourceClickhouse - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. func (s *Sources) CreateSourceClickhouse(ctx context.Context, request *shared.SourceClickhouseCreateRequest, opts ...operations.Option) (*operations.CreateSourceClickhouseResponse, error) { @@ -4261,12 +4140,12 @@ func (s *Sources) CreateSourceCustom(ctx context.Context, request *shared.Source } -// CreateSourceDatadog - Create a source +// CreateSourceDatascope - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceDatadog(ctx context.Context, request *shared.SourceDatadogCreateRequest, opts ...operations.Option) (*operations.CreateSourceDatadogResponse, error) { +func (s *Sources) CreateSourceDatascope(ctx context.Context, request *shared.SourceDatascopeCreateRequest, opts ...operations.Option) (*operations.CreateSourceDatascopeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDatadog", + OperationID: "createSourceDatascope", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4345,7 +4224,7 @@ func (s *Sources) CreateSourceDatadog(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceDatadogResponse{ + res := &operations.CreateSourceDatascopeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4382,12 +4261,12 @@ func (s *Sources) CreateSourceDatadog(ctx context.Context, request *shared.Sourc } -// CreateSourceDatascope - Create a source +// CreateSourceDelighted - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceDatascope(ctx context.Context, request *shared.SourceDatascopeCreateRequest, opts ...operations.Option) (*operations.CreateSourceDatascopeResponse, error) { +func (s *Sources) CreateSourceDelighted(ctx context.Context, request *shared.SourceDelightedCreateRequest, opts ...operations.Option) (*operations.CreateSourceDelightedResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDatascope", + OperationID: "createSourceDelighted", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4466,7 +4345,7 @@ func (s *Sources) CreateSourceDatascope(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceDatascopeResponse{ + res := &operations.CreateSourceDelightedResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4503,12 +4382,12 @@ func (s *Sources) CreateSourceDatascope(ctx context.Context, request *shared.Sou } -// CreateSourceDelighted - Create a source +// CreateSourceDixa - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceDelighted(ctx context.Context, request *shared.SourceDelightedCreateRequest, opts ...operations.Option) (*operations.CreateSourceDelightedResponse, error) { +func (s *Sources) CreateSourceDixa(ctx context.Context, request *shared.SourceDixaCreateRequest, opts ...operations.Option) (*operations.CreateSourceDixaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDelighted", + OperationID: "createSourceDixa", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4587,7 +4466,7 @@ func (s *Sources) CreateSourceDelighted(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceDelightedResponse{ + res := &operations.CreateSourceDixaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4624,12 +4503,12 @@ func (s *Sources) CreateSourceDelighted(ctx context.Context, request *shared.Sou } -// CreateSourceDixa - Create a source +// CreateSourceDockerhub - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceDixa(ctx context.Context, request *shared.SourceDixaCreateRequest, opts ...operations.Option) (*operations.CreateSourceDixaResponse, error) { +func (s *Sources) CreateSourceDockerhub(ctx context.Context, request *shared.SourceDockerhubCreateRequest, opts ...operations.Option) (*operations.CreateSourceDockerhubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDixa", + OperationID: "createSourceDockerhub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4708,7 +4587,7 @@ func (s *Sources) CreateSourceDixa(ctx context.Context, request *shared.SourceDi } } - res := &operations.CreateSourceDixaResponse{ + res := &operations.CreateSourceDockerhubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4745,12 +4624,12 @@ func (s *Sources) CreateSourceDixa(ctx context.Context, request *shared.SourceDi } -// CreateSourceDockerhub - Create a source +// CreateSourceDremio - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceDockerhub(ctx context.Context, request *shared.SourceDockerhubCreateRequest, opts ...operations.Option) (*operations.CreateSourceDockerhubResponse, error) { +func (s *Sources) CreateSourceDremio(ctx context.Context, request *shared.SourceDremioCreateRequest, opts ...operations.Option) (*operations.CreateSourceDremioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDockerhub", + OperationID: "createSourceDremio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4829,7 +4708,7 @@ func (s *Sources) CreateSourceDockerhub(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceDockerhubResponse{ + res := &operations.CreateSourceDremioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4866,12 +4745,12 @@ func (s *Sources) CreateSourceDockerhub(ctx context.Context, request *shared.Sou } -// CreateSourceDremio - Create a source +// CreateSourceDynamodb - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceDremio(ctx context.Context, request *shared.SourceDremioCreateRequest, opts ...operations.Option) (*operations.CreateSourceDremioResponse, error) { +func (s *Sources) CreateSourceDynamodb(ctx context.Context, request *shared.SourceDynamodbCreateRequest, opts ...operations.Option) (*operations.CreateSourceDynamodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDremio", + OperationID: "createSourceDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -4950,7 +4829,7 @@ func (s *Sources) CreateSourceDremio(ctx context.Context, request *shared.Source } } - res := &operations.CreateSourceDremioResponse{ + res := &operations.CreateSourceDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -4987,12 +4866,12 @@ func (s *Sources) CreateSourceDremio(ctx context.Context, request *shared.Source } -// CreateSourceDynamodb - Create a source +// CreateSourceEmailoctopus - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceDynamodb(ctx context.Context, request *shared.SourceDynamodbCreateRequest, opts ...operations.Option) (*operations.CreateSourceDynamodbResponse, error) { +func (s *Sources) CreateSourceEmailoctopus(ctx context.Context, request *shared.SourceEmailoctopusCreateRequest, opts ...operations.Option) (*operations.CreateSourceEmailoctopusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceDynamodb", + OperationID: "createSourceEmailoctopus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5071,7 +4950,7 @@ func (s *Sources) CreateSourceDynamodb(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceDynamodbResponse{ + res := &operations.CreateSourceEmailoctopusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5108,12 +4987,12 @@ func (s *Sources) CreateSourceDynamodb(ctx context.Context, request *shared.Sour } -// CreateSourceEmailoctopus - Create a source +// CreateSourceExchangeRates - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceEmailoctopus(ctx context.Context, request *shared.SourceEmailoctopusCreateRequest, opts ...operations.Option) (*operations.CreateSourceEmailoctopusResponse, error) { +func (s *Sources) CreateSourceExchangeRates(ctx context.Context, request *shared.SourceExchangeRatesCreateRequest, opts ...operations.Option) (*operations.CreateSourceExchangeRatesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceEmailoctopus", + OperationID: "createSourceExchangeRates", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5192,7 +5071,7 @@ func (s *Sources) CreateSourceEmailoctopus(ctx context.Context, request *shared. } } - res := &operations.CreateSourceEmailoctopusResponse{ + res := &operations.CreateSourceExchangeRatesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5229,12 +5108,12 @@ func (s *Sources) CreateSourceEmailoctopus(ctx context.Context, request *shared. } -// CreateSourceExchangeRates - Create a source +// CreateSourceFacebookMarketing - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceExchangeRates(ctx context.Context, request *shared.SourceExchangeRatesCreateRequest, opts ...operations.Option) (*operations.CreateSourceExchangeRatesResponse, error) { +func (s *Sources) CreateSourceFacebookMarketing(ctx context.Context, request *shared.SourceFacebookMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceFacebookMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceExchangeRates", + OperationID: "createSourceFacebookMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5313,7 +5192,7 @@ func (s *Sources) CreateSourceExchangeRates(ctx context.Context, request *shared } } - res := &operations.CreateSourceExchangeRatesResponse{ + res := &operations.CreateSourceFacebookMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5350,12 +5229,12 @@ func (s *Sources) CreateSourceExchangeRates(ctx context.Context, request *shared } -// CreateSourceFacebookMarketing - Create a source +// CreateSourceFaker - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceFacebookMarketing(ctx context.Context, request *shared.SourceFacebookMarketingCreateRequest, opts ...operations.Option) (*operations.CreateSourceFacebookMarketingResponse, error) { +func (s *Sources) CreateSourceFaker(ctx context.Context, request *shared.SourceFakerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFakerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFacebookMarketing", + OperationID: "createSourceFaker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5434,7 +5313,7 @@ func (s *Sources) CreateSourceFacebookMarketing(ctx context.Context, request *sh } } - res := &operations.CreateSourceFacebookMarketingResponse{ + res := &operations.CreateSourceFakerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5471,12 +5350,12 @@ func (s *Sources) CreateSourceFacebookMarketing(ctx context.Context, request *sh } -// CreateSourceFaker - Create a source +// CreateSourceFauna - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceFaker(ctx context.Context, request *shared.SourceFakerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFakerResponse, error) { +func (s *Sources) CreateSourceFauna(ctx context.Context, request *shared.SourceFaunaCreateRequest, opts ...operations.Option) (*operations.CreateSourceFaunaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFaker", + OperationID: "createSourceFauna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5555,7 +5434,7 @@ func (s *Sources) CreateSourceFaker(ctx context.Context, request *shared.SourceF } } - res := &operations.CreateSourceFakerResponse{ + res := &operations.CreateSourceFaunaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5592,12 +5471,12 @@ func (s *Sources) CreateSourceFaker(ctx context.Context, request *shared.SourceF } -// CreateSourceFauna - Create a source +// CreateSourceFile - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceFauna(ctx context.Context, request *shared.SourceFaunaCreateRequest, opts ...operations.Option) (*operations.CreateSourceFaunaResponse, error) { +func (s *Sources) CreateSourceFile(ctx context.Context, request *shared.SourceFileCreateRequest, opts ...operations.Option) (*operations.CreateSourceFileResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFauna", + OperationID: "createSourceFile", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5676,7 +5555,7 @@ func (s *Sources) CreateSourceFauna(ctx context.Context, request *shared.SourceF } } - res := &operations.CreateSourceFaunaResponse{ + res := &operations.CreateSourceFileResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5713,12 +5592,12 @@ func (s *Sources) CreateSourceFauna(ctx context.Context, request *shared.SourceF } -// CreateSourceFile - Create a source +// CreateSourceFirebolt - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceFile(ctx context.Context, request *shared.SourceFileCreateRequest, opts ...operations.Option) (*operations.CreateSourceFileResponse, error) { +func (s *Sources) CreateSourceFirebolt(ctx context.Context, request *shared.SourceFireboltCreateRequest, opts ...operations.Option) (*operations.CreateSourceFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFile", + OperationID: "createSourceFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5797,7 +5676,7 @@ func (s *Sources) CreateSourceFile(ctx context.Context, request *shared.SourceFi } } - res := &operations.CreateSourceFileResponse{ + res := &operations.CreateSourceFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5834,12 +5713,12 @@ func (s *Sources) CreateSourceFile(ctx context.Context, request *shared.SourceFi } -// CreateSourceFirebolt - Create a source +// CreateSourceFleetio - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceFirebolt(ctx context.Context, request *shared.SourceFireboltCreateRequest, opts ...operations.Option) (*operations.CreateSourceFireboltResponse, error) { +func (s *Sources) CreateSourceFleetio(ctx context.Context, request *shared.SourceFleetioCreateRequest, opts ...operations.Option) (*operations.CreateSourceFleetioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFirebolt", + OperationID: "createSourceFleetio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -5918,7 +5797,7 @@ func (s *Sources) CreateSourceFirebolt(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceFireboltResponse{ + res := &operations.CreateSourceFleetioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -5955,12 +5834,12 @@ func (s *Sources) CreateSourceFirebolt(ctx context.Context, request *shared.Sour } -// CreateSourceFleetio - Create a source +// CreateSourceFreshcaller - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceFleetio(ctx context.Context, request *shared.SourceFleetioCreateRequest, opts ...operations.Option) (*operations.CreateSourceFleetioResponse, error) { +func (s *Sources) CreateSourceFreshcaller(ctx context.Context, request *shared.SourceFreshcallerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshcallerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFleetio", + OperationID: "createSourceFreshcaller", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6039,7 +5918,7 @@ func (s *Sources) CreateSourceFleetio(ctx context.Context, request *shared.Sourc } } - res := &operations.CreateSourceFleetioResponse{ + res := &operations.CreateSourceFreshcallerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6076,12 +5955,12 @@ func (s *Sources) CreateSourceFleetio(ctx context.Context, request *shared.Sourc } -// CreateSourceFreshcaller - Create a source +// CreateSourceFreshdesk - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceFreshcaller(ctx context.Context, request *shared.SourceFreshcallerCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshcallerResponse, error) { +func (s *Sources) CreateSourceFreshdesk(ctx context.Context, request *shared.SourceFreshdeskCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshdeskResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFreshcaller", + OperationID: "createSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6160,7 +6039,7 @@ func (s *Sources) CreateSourceFreshcaller(ctx context.Context, request *shared.S } } - res := &operations.CreateSourceFreshcallerResponse{ + res := &operations.CreateSourceFreshdeskResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6197,12 +6076,12 @@ func (s *Sources) CreateSourceFreshcaller(ctx context.Context, request *shared.S } -// CreateSourceFreshdesk - Create a source +// CreateSourceFreshsales - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceFreshdesk(ctx context.Context, request *shared.SourceFreshdeskCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshdeskResponse, error) { +func (s *Sources) CreateSourceFreshsales(ctx context.Context, request *shared.SourceFreshsalesCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshsalesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFreshdesk", + OperationID: "createSourceFreshsales", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6281,7 +6160,7 @@ func (s *Sources) CreateSourceFreshdesk(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceFreshdeskResponse{ + res := &operations.CreateSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -6318,12 +6197,12 @@ func (s *Sources) CreateSourceFreshdesk(ctx context.Context, request *shared.Sou } -// CreateSourceFreshsales - Create a source +// CreateSourceGainsightPx - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceFreshsales(ctx context.Context, request *shared.SourceFreshsalesCreateRequest, opts ...operations.Option) (*operations.CreateSourceFreshsalesResponse, error) { +func (s *Sources) CreateSourceGainsightPx(ctx context.Context, request *shared.SourceGainsightPxCreateRequest, opts ...operations.Option) (*operations.CreateSourceGainsightPxResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceFreshsales", + OperationID: "createSourceGainsightPx", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -6402,128 +6281,7 @@ func (s *Sources) CreateSourceFreshsales(ctx context.Context, request *shared.So } } - res := &operations.CreateSourceFreshsalesResponse{ - StatusCode: httpRes.StatusCode, - ContentType: httpRes.Header.Get("Content-Type"), - RawResponse: httpRes, - } - - rawBody, err := io.ReadAll(httpRes.Body) - if err != nil { - return nil, fmt.Errorf("error reading response body: %w", err) - } - httpRes.Body.Close() - httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - var out shared.SourceResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.SourceResponse = &out - default: - return nil, errors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 403: - default: - return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// CreateSourceGainsightPx - Create a source -// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGainsightPx(ctx context.Context, request *shared.SourceGainsightPxCreateRequest, opts ...operations.Option) (*operations.CreateSourceGainsightPxResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "createSourceGainsightPx", - OAuth2Scopes: []string{}, - SecuritySource: s.sdkConfiguration.Security, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := url.JoinPath(baseURL, "/sources") - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { - _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - - res := &operations.CreateSourceGainsightPxResponse{ + res := &operations.CreateSourceGainsightPxResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7286,12 +7044,12 @@ func (s *Sources) CreateSourceGnews(ctx context.Context, request *shared.SourceG } -// CreateSourceGoldcast - Create a source +// CreateSourceGoogleAds - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGoldcast(ctx context.Context, request *shared.SourceGoldcastCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoldcastResponse, error) { +func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.SourceGoogleAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoldcast", + OperationID: "createSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7370,7 +7128,7 @@ func (s *Sources) CreateSourceGoldcast(ctx context.Context, request *shared.Sour } } - res := &operations.CreateSourceGoldcastResponse{ + res := &operations.CreateSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7407,12 +7165,12 @@ func (s *Sources) CreateSourceGoldcast(ctx context.Context, request *shared.Sour } -// CreateSourceGoogleAds - Create a source +// CreateSourceGoogleAnalyticsDataAPI - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.SourceGoogleAdsCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAdsResponse, error) { +func (s *Sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, request *shared.SourceGoogleAnalyticsDataAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAnalyticsDataAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleAds", + OperationID: "createSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7491,7 +7249,7 @@ func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.Sou } } - res := &operations.CreateSourceGoogleAdsResponse{ + res := &operations.CreateSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -7528,12 +7286,12 @@ func (s *Sources) CreateSourceGoogleAds(ctx context.Context, request *shared.Sou } -// CreateSourceGoogleAnalyticsDataAPI - Create a source +// CreateSourceGoogleAnalyticsV4ServiceAccountOnly - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. -func (s *Sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, request *shared.SourceGoogleAnalyticsDataAPICreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAnalyticsDataAPIResponse, error) { +func (s *Sources) CreateSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Context, request *shared.SourceGoogleAnalyticsV4ServiceAccountOnlyCreateRequest, opts ...operations.Option) (*operations.CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "createSourceGoogleAnalyticsDataApi", + OperationID: "createSourceGoogleAnalyticsV4ServiceAccountOnly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -7612,7 +7370,7 @@ func (s *Sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } } - res := &operations.CreateSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.CreateSourceGoogleAnalyticsV4ServiceAccountOnlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -15998,6 +15756,127 @@ func (s *Sources) CreateSourcePrestashop(ctx context.Context, request *shared.So } +// CreateSourcePunkAPI - Create a source +// Creates a source given a name, workspace id, and a json blob containing the configuration for the source. +func (s *Sources) CreateSourcePunkAPI(ctx context.Context, request *shared.SourcePunkAPICreateRequest, opts ...operations.Option) (*operations.CreateSourcePunkAPIResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "createSourcePunkApi", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := url.JoinPath(baseURL, "/sources") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.CreateSourcePunkAPIResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + var out shared.SourceResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SourceResponse = &out + default: + return nil, errors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 403: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // CreateSourcePypi - Create a source // Creates a source given a name, workspace id, and a json blob containing the configuration for the source. func (s *Sources) CreateSourcePypi(ctx context.Context, request *shared.SourcePypiCreateRequest, opts ...operations.Option) (*operations.CreateSourcePypiResponse, error) { @@ -26255,115 +26134,11 @@ func (s *Sources) DeleteSourceChartmogul(ctx context.Context, request operations } -// DeleteSourceClazar - Delete a Source -func (s *Sources) DeleteSourceClazar(ctx context.Context, request operations.DeleteSourceClazarRequest, opts ...operations.Option) (*operations.DeleteSourceClazarResponse, error) { +// DeleteSourceClickhouse - Delete a Source +func (s *Sources) DeleteSourceClickhouse(ctx context.Context, request operations.DeleteSourceClickhouseRequest, opts ...operations.Option) (*operations.DeleteSourceClickhouseResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceClazar", - OAuth2Scopes: []string{}, - SecuritySource: s.sdkConfiguration.Security, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "*/*") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { - _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - - res := &operations.DeleteSourceClazarResponse{ - StatusCode: httpRes.StatusCode, - ContentType: httpRes.Header.Get("Content-Type"), - RawResponse: httpRes, - } - - rawBody, err := io.ReadAll(httpRes.Body) - if err != nil { - return nil, fmt.Errorf("error reading response body: %w", err) - } - httpRes.Body.Close() - httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) - - switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 404: - default: - return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// DeleteSourceClickhouse - Delete a Source -func (s *Sources) DeleteSourceClickhouse(ctx context.Context, request operations.DeleteSourceClickhouseRequest, opts ...operations.Option) (*operations.DeleteSourceClickhouseResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "deleteSourceClickhouse", + OperationID: "deleteSourceClickhouse", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27503,11 +27278,11 @@ func (s *Sources) DeleteSourceCustom(ctx context.Context, request operations.Del } -// DeleteSourceDatadog - Delete a Source -func (s *Sources) DeleteSourceDatadog(ctx context.Context, request operations.DeleteSourceDatadogRequest, opts ...operations.Option) (*operations.DeleteSourceDatadogResponse, error) { +// DeleteSourceDatascope - Delete a Source +func (s *Sources) DeleteSourceDatascope(ctx context.Context, request operations.DeleteSourceDatascopeRequest, opts ...operations.Option) (*operations.DeleteSourceDatascopeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDatadog", + OperationID: "deleteSourceDatascope", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27580,7 +27355,7 @@ func (s *Sources) DeleteSourceDatadog(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceDatadogResponse{ + res := &operations.DeleteSourceDatascopeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27607,11 +27382,11 @@ func (s *Sources) DeleteSourceDatadog(ctx context.Context, request operations.De } -// DeleteSourceDatascope - Delete a Source -func (s *Sources) DeleteSourceDatascope(ctx context.Context, request operations.DeleteSourceDatascopeRequest, opts ...operations.Option) (*operations.DeleteSourceDatascopeResponse, error) { +// DeleteSourceDelighted - Delete a Source +func (s *Sources) DeleteSourceDelighted(ctx context.Context, request operations.DeleteSourceDelightedRequest, opts ...operations.Option) (*operations.DeleteSourceDelightedResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDatascope", + OperationID: "deleteSourceDelighted", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27684,7 +27459,7 @@ func (s *Sources) DeleteSourceDatascope(ctx context.Context, request operations. } } - res := &operations.DeleteSourceDatascopeResponse{ + res := &operations.DeleteSourceDelightedResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27711,11 +27486,11 @@ func (s *Sources) DeleteSourceDatascope(ctx context.Context, request operations. } -// DeleteSourceDelighted - Delete a Source -func (s *Sources) DeleteSourceDelighted(ctx context.Context, request operations.DeleteSourceDelightedRequest, opts ...operations.Option) (*operations.DeleteSourceDelightedResponse, error) { +// DeleteSourceDixa - Delete a Source +func (s *Sources) DeleteSourceDixa(ctx context.Context, request operations.DeleteSourceDixaRequest, opts ...operations.Option) (*operations.DeleteSourceDixaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDelighted", + OperationID: "deleteSourceDixa", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27788,7 +27563,7 @@ func (s *Sources) DeleteSourceDelighted(ctx context.Context, request operations. } } - res := &operations.DeleteSourceDelightedResponse{ + res := &operations.DeleteSourceDixaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27815,11 +27590,11 @@ func (s *Sources) DeleteSourceDelighted(ctx context.Context, request operations. } -// DeleteSourceDixa - Delete a Source -func (s *Sources) DeleteSourceDixa(ctx context.Context, request operations.DeleteSourceDixaRequest, opts ...operations.Option) (*operations.DeleteSourceDixaResponse, error) { +// DeleteSourceDockerhub - Delete a Source +func (s *Sources) DeleteSourceDockerhub(ctx context.Context, request operations.DeleteSourceDockerhubRequest, opts ...operations.Option) (*operations.DeleteSourceDockerhubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDixa", + OperationID: "deleteSourceDockerhub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27892,7 +27667,7 @@ func (s *Sources) DeleteSourceDixa(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceDixaResponse{ + res := &operations.DeleteSourceDockerhubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -27919,11 +27694,11 @@ func (s *Sources) DeleteSourceDixa(ctx context.Context, request operations.Delet } -// DeleteSourceDockerhub - Delete a Source -func (s *Sources) DeleteSourceDockerhub(ctx context.Context, request operations.DeleteSourceDockerhubRequest, opts ...operations.Option) (*operations.DeleteSourceDockerhubResponse, error) { +// DeleteSourceDremio - Delete a Source +func (s *Sources) DeleteSourceDremio(ctx context.Context, request operations.DeleteSourceDremioRequest, opts ...operations.Option) (*operations.DeleteSourceDremioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDockerhub", + OperationID: "deleteSourceDremio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -27996,7 +27771,7 @@ func (s *Sources) DeleteSourceDockerhub(ctx context.Context, request operations. } } - res := &operations.DeleteSourceDockerhubResponse{ + res := &operations.DeleteSourceDremioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28023,11 +27798,11 @@ func (s *Sources) DeleteSourceDockerhub(ctx context.Context, request operations. } -// DeleteSourceDremio - Delete a Source -func (s *Sources) DeleteSourceDremio(ctx context.Context, request operations.DeleteSourceDremioRequest, opts ...operations.Option) (*operations.DeleteSourceDremioResponse, error) { +// DeleteSourceDynamodb - Delete a Source +func (s *Sources) DeleteSourceDynamodb(ctx context.Context, request operations.DeleteSourceDynamodbRequest, opts ...operations.Option) (*operations.DeleteSourceDynamodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDremio", + OperationID: "deleteSourceDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28100,7 +27875,7 @@ func (s *Sources) DeleteSourceDremio(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceDremioResponse{ + res := &operations.DeleteSourceDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28127,11 +27902,11 @@ func (s *Sources) DeleteSourceDremio(ctx context.Context, request operations.Del } -// DeleteSourceDynamodb - Delete a Source -func (s *Sources) DeleteSourceDynamodb(ctx context.Context, request operations.DeleteSourceDynamodbRequest, opts ...operations.Option) (*operations.DeleteSourceDynamodbResponse, error) { +// DeleteSourceEmailoctopus - Delete a Source +func (s *Sources) DeleteSourceEmailoctopus(ctx context.Context, request operations.DeleteSourceEmailoctopusRequest, opts ...operations.Option) (*operations.DeleteSourceEmailoctopusResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceDynamodb", + OperationID: "deleteSourceEmailoctopus", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28204,7 +27979,7 @@ func (s *Sources) DeleteSourceDynamodb(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceDynamodbResponse{ + res := &operations.DeleteSourceEmailoctopusResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28231,11 +28006,11 @@ func (s *Sources) DeleteSourceDynamodb(ctx context.Context, request operations.D } -// DeleteSourceEmailoctopus - Delete a Source -func (s *Sources) DeleteSourceEmailoctopus(ctx context.Context, request operations.DeleteSourceEmailoctopusRequest, opts ...operations.Option) (*operations.DeleteSourceEmailoctopusResponse, error) { +// DeleteSourceExchangeRates - Delete a Source +func (s *Sources) DeleteSourceExchangeRates(ctx context.Context, request operations.DeleteSourceExchangeRatesRequest, opts ...operations.Option) (*operations.DeleteSourceExchangeRatesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceEmailoctopus", + OperationID: "deleteSourceExchangeRates", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28308,7 +28083,7 @@ func (s *Sources) DeleteSourceEmailoctopus(ctx context.Context, request operatio } } - res := &operations.DeleteSourceEmailoctopusResponse{ + res := &operations.DeleteSourceExchangeRatesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28335,11 +28110,11 @@ func (s *Sources) DeleteSourceEmailoctopus(ctx context.Context, request operatio } -// DeleteSourceExchangeRates - Delete a Source -func (s *Sources) DeleteSourceExchangeRates(ctx context.Context, request operations.DeleteSourceExchangeRatesRequest, opts ...operations.Option) (*operations.DeleteSourceExchangeRatesResponse, error) { +// DeleteSourceFacebookMarketing - Delete a Source +func (s *Sources) DeleteSourceFacebookMarketing(ctx context.Context, request operations.DeleteSourceFacebookMarketingRequest, opts ...operations.Option) (*operations.DeleteSourceFacebookMarketingResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceExchangeRates", + OperationID: "deleteSourceFacebookMarketing", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28412,7 +28187,7 @@ func (s *Sources) DeleteSourceExchangeRates(ctx context.Context, request operati } } - res := &operations.DeleteSourceExchangeRatesResponse{ + res := &operations.DeleteSourceFacebookMarketingResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28439,11 +28214,11 @@ func (s *Sources) DeleteSourceExchangeRates(ctx context.Context, request operati } -// DeleteSourceFacebookMarketing - Delete a Source -func (s *Sources) DeleteSourceFacebookMarketing(ctx context.Context, request operations.DeleteSourceFacebookMarketingRequest, opts ...operations.Option) (*operations.DeleteSourceFacebookMarketingResponse, error) { +// DeleteSourceFaker - Delete a Source +func (s *Sources) DeleteSourceFaker(ctx context.Context, request operations.DeleteSourceFakerRequest, opts ...operations.Option) (*operations.DeleteSourceFakerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFacebookMarketing", + OperationID: "deleteSourceFaker", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28516,7 +28291,7 @@ func (s *Sources) DeleteSourceFacebookMarketing(ctx context.Context, request ope } } - res := &operations.DeleteSourceFacebookMarketingResponse{ + res := &operations.DeleteSourceFakerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28543,11 +28318,11 @@ func (s *Sources) DeleteSourceFacebookMarketing(ctx context.Context, request ope } -// DeleteSourceFaker - Delete a Source -func (s *Sources) DeleteSourceFaker(ctx context.Context, request operations.DeleteSourceFakerRequest, opts ...operations.Option) (*operations.DeleteSourceFakerResponse, error) { +// DeleteSourceFauna - Delete a Source +func (s *Sources) DeleteSourceFauna(ctx context.Context, request operations.DeleteSourceFaunaRequest, opts ...operations.Option) (*operations.DeleteSourceFaunaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFaker", + OperationID: "deleteSourceFauna", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28620,7 +28395,7 @@ func (s *Sources) DeleteSourceFaker(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceFakerResponse{ + res := &operations.DeleteSourceFaunaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28647,11 +28422,11 @@ func (s *Sources) DeleteSourceFaker(ctx context.Context, request operations.Dele } -// DeleteSourceFauna - Delete a Source -func (s *Sources) DeleteSourceFauna(ctx context.Context, request operations.DeleteSourceFaunaRequest, opts ...operations.Option) (*operations.DeleteSourceFaunaResponse, error) { +// DeleteSourceFile - Delete a Source +func (s *Sources) DeleteSourceFile(ctx context.Context, request operations.DeleteSourceFileRequest, opts ...operations.Option) (*operations.DeleteSourceFileResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFauna", + OperationID: "deleteSourceFile", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28724,7 +28499,7 @@ func (s *Sources) DeleteSourceFauna(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceFaunaResponse{ + res := &operations.DeleteSourceFileResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28751,11 +28526,11 @@ func (s *Sources) DeleteSourceFauna(ctx context.Context, request operations.Dele } -// DeleteSourceFile - Delete a Source -func (s *Sources) DeleteSourceFile(ctx context.Context, request operations.DeleteSourceFileRequest, opts ...operations.Option) (*operations.DeleteSourceFileResponse, error) { +// DeleteSourceFirebolt - Delete a Source +func (s *Sources) DeleteSourceFirebolt(ctx context.Context, request operations.DeleteSourceFireboltRequest, opts ...operations.Option) (*operations.DeleteSourceFireboltResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFile", + OperationID: "deleteSourceFirebolt", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28828,7 +28603,7 @@ func (s *Sources) DeleteSourceFile(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourceFileResponse{ + res := &operations.DeleteSourceFireboltResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28855,11 +28630,11 @@ func (s *Sources) DeleteSourceFile(ctx context.Context, request operations.Delet } -// DeleteSourceFirebolt - Delete a Source -func (s *Sources) DeleteSourceFirebolt(ctx context.Context, request operations.DeleteSourceFireboltRequest, opts ...operations.Option) (*operations.DeleteSourceFireboltResponse, error) { +// DeleteSourceFleetio - Delete a Source +func (s *Sources) DeleteSourceFleetio(ctx context.Context, request operations.DeleteSourceFleetioRequest, opts ...operations.Option) (*operations.DeleteSourceFleetioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFirebolt", + OperationID: "deleteSourceFleetio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -28932,7 +28707,7 @@ func (s *Sources) DeleteSourceFirebolt(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceFireboltResponse{ + res := &operations.DeleteSourceFleetioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -28959,11 +28734,11 @@ func (s *Sources) DeleteSourceFirebolt(ctx context.Context, request operations.D } -// DeleteSourceFleetio - Delete a Source -func (s *Sources) DeleteSourceFleetio(ctx context.Context, request operations.DeleteSourceFleetioRequest, opts ...operations.Option) (*operations.DeleteSourceFleetioResponse, error) { +// DeleteSourceFreshcaller - Delete a Source +func (s *Sources) DeleteSourceFreshcaller(ctx context.Context, request operations.DeleteSourceFreshcallerRequest, opts ...operations.Option) (*operations.DeleteSourceFreshcallerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFleetio", + OperationID: "deleteSourceFreshcaller", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29036,7 +28811,7 @@ func (s *Sources) DeleteSourceFleetio(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceFleetioResponse{ + res := &operations.DeleteSourceFreshcallerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29063,11 +28838,11 @@ func (s *Sources) DeleteSourceFleetio(ctx context.Context, request operations.De } -// DeleteSourceFreshcaller - Delete a Source -func (s *Sources) DeleteSourceFreshcaller(ctx context.Context, request operations.DeleteSourceFreshcallerRequest, opts ...operations.Option) (*operations.DeleteSourceFreshcallerResponse, error) { +// DeleteSourceFreshdesk - Delete a Source +func (s *Sources) DeleteSourceFreshdesk(ctx context.Context, request operations.DeleteSourceFreshdeskRequest, opts ...operations.Option) (*operations.DeleteSourceFreshdeskResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFreshcaller", + OperationID: "deleteSourceFreshdesk", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29140,7 +28915,7 @@ func (s *Sources) DeleteSourceFreshcaller(ctx context.Context, request operation } } - res := &operations.DeleteSourceFreshcallerResponse{ + res := &operations.DeleteSourceFreshdeskResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29167,11 +28942,11 @@ func (s *Sources) DeleteSourceFreshcaller(ctx context.Context, request operation } -// DeleteSourceFreshdesk - Delete a Source -func (s *Sources) DeleteSourceFreshdesk(ctx context.Context, request operations.DeleteSourceFreshdeskRequest, opts ...operations.Option) (*operations.DeleteSourceFreshdeskResponse, error) { +// DeleteSourceFreshsales - Delete a Source +func (s *Sources) DeleteSourceFreshsales(ctx context.Context, request operations.DeleteSourceFreshsalesRequest, opts ...operations.Option) (*operations.DeleteSourceFreshsalesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFreshdesk", + OperationID: "deleteSourceFreshsales", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29244,7 +29019,7 @@ func (s *Sources) DeleteSourceFreshdesk(ctx context.Context, request operations. } } - res := &operations.DeleteSourceFreshdeskResponse{ + res := &operations.DeleteSourceFreshsalesResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29271,11 +29046,11 @@ func (s *Sources) DeleteSourceFreshdesk(ctx context.Context, request operations. } -// DeleteSourceFreshsales - Delete a Source -func (s *Sources) DeleteSourceFreshsales(ctx context.Context, request operations.DeleteSourceFreshsalesRequest, opts ...operations.Option) (*operations.DeleteSourceFreshsalesResponse, error) { +// DeleteSourceGainsightPx - Delete a Source +func (s *Sources) DeleteSourceGainsightPx(ctx context.Context, request operations.DeleteSourceGainsightPxRequest, opts ...operations.Option) (*operations.DeleteSourceGainsightPxResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceFreshsales", + OperationID: "deleteSourceGainsightPx", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29348,7 +29123,7 @@ func (s *Sources) DeleteSourceFreshsales(ctx context.Context, request operations } } - res := &operations.DeleteSourceFreshsalesResponse{ + res := &operations.DeleteSourceGainsightPxResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29375,11 +29150,11 @@ func (s *Sources) DeleteSourceFreshsales(ctx context.Context, request operations } -// DeleteSourceGainsightPx - Delete a Source -func (s *Sources) DeleteSourceGainsightPx(ctx context.Context, request operations.DeleteSourceGainsightPxRequest, opts ...operations.Option) (*operations.DeleteSourceGainsightPxResponse, error) { +// DeleteSourceGcs - Delete a Source +func (s *Sources) DeleteSourceGcs(ctx context.Context, request operations.DeleteSourceGcsRequest, opts ...operations.Option) (*operations.DeleteSourceGcsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGainsightPx", + OperationID: "deleteSourceGcs", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -29452,7 +29227,7 @@ func (s *Sources) DeleteSourceGainsightPx(ctx context.Context, request operation } } - res := &operations.DeleteSourceGainsightPxResponse{ + res := &operations.DeleteSourceGcsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -29479,115 +29254,11 @@ func (s *Sources) DeleteSourceGainsightPx(ctx context.Context, request operation } -// DeleteSourceGcs - Delete a Source -func (s *Sources) DeleteSourceGcs(ctx context.Context, request operations.DeleteSourceGcsRequest, opts ...operations.Option) (*operations.DeleteSourceGcsResponse, error) { +// DeleteSourceGetlago - Delete a Source +func (s *Sources) DeleteSourceGetlago(ctx context.Context, request operations.DeleteSourceGetlagoRequest, opts ...operations.Option) (*operations.DeleteSourceGetlagoResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGcs", - OAuth2Scopes: []string{}, - SecuritySource: s.sdkConfiguration.Security, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "*/*") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { - _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - - res := &operations.DeleteSourceGcsResponse{ - StatusCode: httpRes.StatusCode, - ContentType: httpRes.Header.Get("Content-Type"), - RawResponse: httpRes, - } - - rawBody, err := io.ReadAll(httpRes.Body) - if err != nil { - return nil, fmt.Errorf("error reading response body: %w", err) - } - httpRes.Body.Close() - httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) - - switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 404: - default: - return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// DeleteSourceGetlago - Delete a Source -func (s *Sources) DeleteSourceGetlago(ctx context.Context, request operations.DeleteSourceGetlagoRequest, opts ...operations.Option) (*operations.DeleteSourceGetlagoResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "deleteSourceGetlago", + OperationID: "deleteSourceGetlago", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30103,11 +29774,11 @@ func (s *Sources) DeleteSourceGnews(ctx context.Context, request operations.Dele } -// DeleteSourceGoldcast - Delete a Source -func (s *Sources) DeleteSourceGoldcast(ctx context.Context, request operations.DeleteSourceGoldcastRequest, opts ...operations.Option) (*operations.DeleteSourceGoldcastResponse, error) { +// DeleteSourceGoogleAds - Delete a Source +func (s *Sources) DeleteSourceGoogleAds(ctx context.Context, request operations.DeleteSourceGoogleAdsRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGoldcast", + OperationID: "deleteSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30180,7 +29851,7 @@ func (s *Sources) DeleteSourceGoldcast(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceGoldcastResponse{ + res := &operations.DeleteSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30207,11 +29878,11 @@ func (s *Sources) DeleteSourceGoldcast(ctx context.Context, request operations.D } -// DeleteSourceGoogleAds - Delete a Source -func (s *Sources) DeleteSourceGoogleAds(ctx context.Context, request operations.DeleteSourceGoogleAdsRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleAdsResponse, error) { +// DeleteSourceGoogleAnalyticsDataAPI - Delete a Source +func (s *Sources) DeleteSourceGoogleAnalyticsDataAPI(ctx context.Context, request operations.DeleteSourceGoogleAnalyticsDataAPIRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleAnalyticsDataAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGoogleAds", + OperationID: "deleteSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30284,7 +29955,7 @@ func (s *Sources) DeleteSourceGoogleAds(ctx context.Context, request operations. } } - res := &operations.DeleteSourceGoogleAdsResponse{ + res := &operations.DeleteSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -30311,11 +29982,11 @@ func (s *Sources) DeleteSourceGoogleAds(ctx context.Context, request operations. } -// DeleteSourceGoogleAnalyticsDataAPI - Delete a Source -func (s *Sources) DeleteSourceGoogleAnalyticsDataAPI(ctx context.Context, request operations.DeleteSourceGoogleAnalyticsDataAPIRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleAnalyticsDataAPIResponse, error) { +// DeleteSourceGoogleAnalyticsV4ServiceAccountOnly - Delete a Source +func (s *Sources) DeleteSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Context, request operations.DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyRequest, opts ...operations.Option) (*operations.DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceGoogleAnalyticsDataApi", + OperationID: "deleteSourceGoogleAnalyticsV4ServiceAccountOnly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -30388,7 +30059,7 @@ func (s *Sources) DeleteSourceGoogleAnalyticsDataAPI(ctx context.Context, reques } } - res := &operations.DeleteSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.DeleteSourceGoogleAnalyticsV4ServiceAccountOnlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37591,11 +37262,11 @@ func (s *Sources) DeleteSourcePrestashop(ctx context.Context, request operations } -// DeleteSourcePypi - Delete a Source -func (s *Sources) DeleteSourcePypi(ctx context.Context, request operations.DeleteSourcePypiRequest, opts ...operations.Option) (*operations.DeleteSourcePypiResponse, error) { +// DeleteSourcePunkAPI - Delete a Source +func (s *Sources) DeleteSourcePunkAPI(ctx context.Context, request operations.DeleteSourcePunkAPIRequest, opts ...operations.Option) (*operations.DeleteSourcePunkAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourcePypi", + OperationID: "deleteSourcePunkApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37668,7 +37339,7 @@ func (s *Sources) DeleteSourcePypi(ctx context.Context, request operations.Delet } } - res := &operations.DeleteSourcePypiResponse{ + res := &operations.DeleteSourcePunkAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37695,11 +37366,11 @@ func (s *Sources) DeleteSourcePypi(ctx context.Context, request operations.Delet } -// DeleteSourceQualaroo - Delete a Source -func (s *Sources) DeleteSourceQualaroo(ctx context.Context, request operations.DeleteSourceQualarooRequest, opts ...operations.Option) (*operations.DeleteSourceQualarooResponse, error) { +// DeleteSourcePypi - Delete a Source +func (s *Sources) DeleteSourcePypi(ctx context.Context, request operations.DeleteSourcePypiRequest, opts ...operations.Option) (*operations.DeleteSourcePypiResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceQualaroo", + OperationID: "deleteSourcePypi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37772,7 +37443,7 @@ func (s *Sources) DeleteSourceQualaroo(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceQualarooResponse{ + res := &operations.DeleteSourcePypiResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37799,11 +37470,11 @@ func (s *Sources) DeleteSourceQualaroo(ctx context.Context, request operations.D } -// DeleteSourceRailz - Delete a Source -func (s *Sources) DeleteSourceRailz(ctx context.Context, request operations.DeleteSourceRailzRequest, opts ...operations.Option) (*operations.DeleteSourceRailzResponse, error) { +// DeleteSourceQualaroo - Delete a Source +func (s *Sources) DeleteSourceQualaroo(ctx context.Context, request operations.DeleteSourceQualarooRequest, opts ...operations.Option) (*operations.DeleteSourceQualarooResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRailz", + OperationID: "deleteSourceQualaroo", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37876,7 +37547,7 @@ func (s *Sources) DeleteSourceRailz(ctx context.Context, request operations.Dele } } - res := &operations.DeleteSourceRailzResponse{ + res := &operations.DeleteSourceQualarooResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -37903,11 +37574,11 @@ func (s *Sources) DeleteSourceRailz(ctx context.Context, request operations.Dele } -// DeleteSourceRecharge - Delete a Source -func (s *Sources) DeleteSourceRecharge(ctx context.Context, request operations.DeleteSourceRechargeRequest, opts ...operations.Option) (*operations.DeleteSourceRechargeResponse, error) { +// DeleteSourceRailz - Delete a Source +func (s *Sources) DeleteSourceRailz(ctx context.Context, request operations.DeleteSourceRailzRequest, opts ...operations.Option) (*operations.DeleteSourceRailzResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRecharge", + OperationID: "deleteSourceRailz", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -37980,7 +37651,7 @@ func (s *Sources) DeleteSourceRecharge(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRechargeResponse{ + res := &operations.DeleteSourceRailzResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38007,11 +37678,11 @@ func (s *Sources) DeleteSourceRecharge(ctx context.Context, request operations.D } -// DeleteSourceRecreation - Delete a Source -func (s *Sources) DeleteSourceRecreation(ctx context.Context, request operations.DeleteSourceRecreationRequest, opts ...operations.Option) (*operations.DeleteSourceRecreationResponse, error) { +// DeleteSourceRecharge - Delete a Source +func (s *Sources) DeleteSourceRecharge(ctx context.Context, request operations.DeleteSourceRechargeRequest, opts ...operations.Option) (*operations.DeleteSourceRechargeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRecreation", + OperationID: "deleteSourceRecharge", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38084,7 +37755,7 @@ func (s *Sources) DeleteSourceRecreation(ctx context.Context, request operations } } - res := &operations.DeleteSourceRecreationResponse{ + res := &operations.DeleteSourceRechargeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38111,11 +37782,11 @@ func (s *Sources) DeleteSourceRecreation(ctx context.Context, request operations } -// DeleteSourceRecruitee - Delete a Source -func (s *Sources) DeleteSourceRecruitee(ctx context.Context, request operations.DeleteSourceRecruiteeRequest, opts ...operations.Option) (*operations.DeleteSourceRecruiteeResponse, error) { +// DeleteSourceRecreation - Delete a Source +func (s *Sources) DeleteSourceRecreation(ctx context.Context, request operations.DeleteSourceRecreationRequest, opts ...operations.Option) (*operations.DeleteSourceRecreationResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRecruitee", + OperationID: "deleteSourceRecreation", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38188,7 +37859,7 @@ func (s *Sources) DeleteSourceRecruitee(ctx context.Context, request operations. } } - res := &operations.DeleteSourceRecruiteeResponse{ + res := &operations.DeleteSourceRecreationResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38215,11 +37886,11 @@ func (s *Sources) DeleteSourceRecruitee(ctx context.Context, request operations. } -// DeleteSourceRecurly - Delete a Source -func (s *Sources) DeleteSourceRecurly(ctx context.Context, request operations.DeleteSourceRecurlyRequest, opts ...operations.Option) (*operations.DeleteSourceRecurlyResponse, error) { +// DeleteSourceRecruitee - Delete a Source +func (s *Sources) DeleteSourceRecruitee(ctx context.Context, request operations.DeleteSourceRecruiteeRequest, opts ...operations.Option) (*operations.DeleteSourceRecruiteeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRecurly", + OperationID: "deleteSourceRecruitee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38292,7 +37963,7 @@ func (s *Sources) DeleteSourceRecurly(ctx context.Context, request operations.De } } - res := &operations.DeleteSourceRecurlyResponse{ + res := &operations.DeleteSourceRecruiteeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38319,11 +37990,11 @@ func (s *Sources) DeleteSourceRecurly(ctx context.Context, request operations.De } -// DeleteSourceRedshift - Delete a Source -func (s *Sources) DeleteSourceRedshift(ctx context.Context, request operations.DeleteSourceRedshiftRequest, opts ...operations.Option) (*operations.DeleteSourceRedshiftResponse, error) { +// DeleteSourceRecurly - Delete a Source +func (s *Sources) DeleteSourceRecurly(ctx context.Context, request operations.DeleteSourceRecurlyRequest, opts ...operations.Option) (*operations.DeleteSourceRecurlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRedshift", + OperationID: "deleteSourceRecurly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38396,7 +38067,7 @@ func (s *Sources) DeleteSourceRedshift(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRedshiftResponse{ + res := &operations.DeleteSourceRecurlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38423,11 +38094,11 @@ func (s *Sources) DeleteSourceRedshift(ctx context.Context, request operations.D } -// DeleteSourceRetently - Delete a Source -func (s *Sources) DeleteSourceRetently(ctx context.Context, request operations.DeleteSourceRetentlyRequest, opts ...operations.Option) (*operations.DeleteSourceRetentlyResponse, error) { +// DeleteSourceRedshift - Delete a Source +func (s *Sources) DeleteSourceRedshift(ctx context.Context, request operations.DeleteSourceRedshiftRequest, opts ...operations.Option) (*operations.DeleteSourceRedshiftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRetently", + OperationID: "deleteSourceRedshift", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38500,7 +38171,7 @@ func (s *Sources) DeleteSourceRetently(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRetentlyResponse{ + res := &operations.DeleteSourceRedshiftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38527,11 +38198,11 @@ func (s *Sources) DeleteSourceRetently(ctx context.Context, request operations.D } -// DeleteSourceRkiCovid - Delete a Source -func (s *Sources) DeleteSourceRkiCovid(ctx context.Context, request operations.DeleteSourceRkiCovidRequest, opts ...operations.Option) (*operations.DeleteSourceRkiCovidResponse, error) { +// DeleteSourceRetently - Delete a Source +func (s *Sources) DeleteSourceRetently(ctx context.Context, request operations.DeleteSourceRetentlyRequest, opts ...operations.Option) (*operations.DeleteSourceRetentlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRkiCovid", + OperationID: "deleteSourceRetently", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38604,7 +38275,7 @@ func (s *Sources) DeleteSourceRkiCovid(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceRkiCovidResponse{ + res := &operations.DeleteSourceRetentlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38631,11 +38302,11 @@ func (s *Sources) DeleteSourceRkiCovid(ctx context.Context, request operations.D } -// DeleteSourceRss - Delete a Source -func (s *Sources) DeleteSourceRss(ctx context.Context, request operations.DeleteSourceRssRequest, opts ...operations.Option) (*operations.DeleteSourceRssResponse, error) { +// DeleteSourceRkiCovid - Delete a Source +func (s *Sources) DeleteSourceRkiCovid(ctx context.Context, request operations.DeleteSourceRkiCovidRequest, opts ...operations.Option) (*operations.DeleteSourceRkiCovidResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceRss", + OperationID: "deleteSourceRkiCovid", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38708,7 +38379,7 @@ func (s *Sources) DeleteSourceRss(ctx context.Context, request operations.Delete } } - res := &operations.DeleteSourceRssResponse{ + res := &operations.DeleteSourceRkiCovidResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38735,11 +38406,11 @@ func (s *Sources) DeleteSourceRss(ctx context.Context, request operations.Delete } -// DeleteSourceS3 - Delete a Source -func (s *Sources) DeleteSourceS3(ctx context.Context, request operations.DeleteSourceS3Request, opts ...operations.Option) (*operations.DeleteSourceS3Response, error) { +// DeleteSourceRss - Delete a Source +func (s *Sources) DeleteSourceRss(ctx context.Context, request operations.DeleteSourceRssRequest, opts ...operations.Option) (*operations.DeleteSourceRssResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceS3", + OperationID: "deleteSourceRss", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38812,7 +38483,7 @@ func (s *Sources) DeleteSourceS3(ctx context.Context, request operations.DeleteS } } - res := &operations.DeleteSourceS3Response{ + res := &operations.DeleteSourceRssResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38839,11 +38510,11 @@ func (s *Sources) DeleteSourceS3(ctx context.Context, request operations.DeleteS } -// DeleteSourceSalesforce - Delete a Source -func (s *Sources) DeleteSourceSalesforce(ctx context.Context, request operations.DeleteSourceSalesforceRequest, opts ...operations.Option) (*operations.DeleteSourceSalesforceResponse, error) { +// DeleteSourceS3 - Delete a Source +func (s *Sources) DeleteSourceS3(ctx context.Context, request operations.DeleteSourceS3Request, opts ...operations.Option) (*operations.DeleteSourceS3Response, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSalesforce", + OperationID: "deleteSourceS3", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -38916,7 +38587,7 @@ func (s *Sources) DeleteSourceSalesforce(ctx context.Context, request operations } } - res := &operations.DeleteSourceSalesforceResponse{ + res := &operations.DeleteSourceS3Response{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -38943,11 +38614,11 @@ func (s *Sources) DeleteSourceSalesforce(ctx context.Context, request operations } -// DeleteSourceSalesloft - Delete a Source -func (s *Sources) DeleteSourceSalesloft(ctx context.Context, request operations.DeleteSourceSalesloftRequest, opts ...operations.Option) (*operations.DeleteSourceSalesloftResponse, error) { +// DeleteSourceSalesforce - Delete a Source +func (s *Sources) DeleteSourceSalesforce(ctx context.Context, request operations.DeleteSourceSalesforceRequest, opts ...operations.Option) (*operations.DeleteSourceSalesforceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSalesloft", + OperationID: "deleteSourceSalesforce", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39020,7 +38691,7 @@ func (s *Sources) DeleteSourceSalesloft(ctx context.Context, request operations. } } - res := &operations.DeleteSourceSalesloftResponse{ + res := &operations.DeleteSourceSalesforceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39047,11 +38718,11 @@ func (s *Sources) DeleteSourceSalesloft(ctx context.Context, request operations. } -// DeleteSourceSapFieldglass - Delete a Source -func (s *Sources) DeleteSourceSapFieldglass(ctx context.Context, request operations.DeleteSourceSapFieldglassRequest, opts ...operations.Option) (*operations.DeleteSourceSapFieldglassResponse, error) { +// DeleteSourceSalesloft - Delete a Source +func (s *Sources) DeleteSourceSalesloft(ctx context.Context, request operations.DeleteSourceSalesloftRequest, opts ...operations.Option) (*operations.DeleteSourceSalesloftResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSapFieldglass", + OperationID: "deleteSourceSalesloft", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39124,7 +38795,7 @@ func (s *Sources) DeleteSourceSapFieldglass(ctx context.Context, request operati } } - res := &operations.DeleteSourceSapFieldglassResponse{ + res := &operations.DeleteSourceSalesloftResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39151,11 +38822,11 @@ func (s *Sources) DeleteSourceSapFieldglass(ctx context.Context, request operati } -// DeleteSourceSecoda - Delete a Source -func (s *Sources) DeleteSourceSecoda(ctx context.Context, request operations.DeleteSourceSecodaRequest, opts ...operations.Option) (*operations.DeleteSourceSecodaResponse, error) { +// DeleteSourceSapFieldglass - Delete a Source +func (s *Sources) DeleteSourceSapFieldglass(ctx context.Context, request operations.DeleteSourceSapFieldglassRequest, opts ...operations.Option) (*operations.DeleteSourceSapFieldglassResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSecoda", + OperationID: "deleteSourceSapFieldglass", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39228,7 +38899,7 @@ func (s *Sources) DeleteSourceSecoda(ctx context.Context, request operations.Del } } - res := &operations.DeleteSourceSecodaResponse{ + res := &operations.DeleteSourceSapFieldglassResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39255,11 +38926,11 @@ func (s *Sources) DeleteSourceSecoda(ctx context.Context, request operations.Del } -// DeleteSourceSendgrid - Delete a Source -func (s *Sources) DeleteSourceSendgrid(ctx context.Context, request operations.DeleteSourceSendgridRequest, opts ...operations.Option) (*operations.DeleteSourceSendgridResponse, error) { +// DeleteSourceSecoda - Delete a Source +func (s *Sources) DeleteSourceSecoda(ctx context.Context, request operations.DeleteSourceSecodaRequest, opts ...operations.Option) (*operations.DeleteSourceSecodaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSendgrid", + OperationID: "deleteSourceSecoda", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -39332,7 +39003,7 @@ func (s *Sources) DeleteSourceSendgrid(ctx context.Context, request operations.D } } - res := &operations.DeleteSourceSendgridResponse{ + res := &operations.DeleteSourceSecodaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -39359,11 +39030,115 @@ func (s *Sources) DeleteSourceSendgrid(ctx context.Context, request operations.D } -// DeleteSourceSendinblue - Delete a Source -func (s *Sources) DeleteSourceSendinblue(ctx context.Context, request operations.DeleteSourceSendinblueRequest, opts ...operations.Option) (*operations.DeleteSourceSendinblueResponse, error) { +// DeleteSourceSendgrid - Delete a Source +func (s *Sources) DeleteSourceSendgrid(ctx context.Context, request operations.DeleteSourceSendgridRequest, opts ...operations.Option) (*operations.DeleteSourceSendgridResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "deleteSourceSendinblue", + OperationID: "deleteSourceSendgrid", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.DeleteSourceSendgridResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// DeleteSourceSendinblue - Delete a Source +func (s *Sources) DeleteSourceSendinblue(ctx context.Context, request operations.DeleteSourceSendinblueRequest, opts ...operations.Option) (*operations.DeleteSourceSendinblueResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "deleteSourceSendinblue", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -46973,120 +46748,6 @@ func (s *Sources) GetSourceChartmogul(ctx context.Context, request operations.Ge } -// GetSourceClazar - Get Source details -func (s *Sources) GetSourceClazar(ctx context.Context, request operations.GetSourceClazarRequest, opts ...operations.Option) (*operations.GetSourceClazarResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "getSourceClazar", - OAuth2Scopes: []string{}, - SecuritySource: s.sdkConfiguration.Security, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { - _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - - res := &operations.GetSourceClazarResponse{ - StatusCode: httpRes.StatusCode, - ContentType: httpRes.Header.Get("Content-Type"), - RawResponse: httpRes, - } - - rawBody, err := io.ReadAll(httpRes.Body) - if err != nil { - return nil, fmt.Errorf("error reading response body: %w", err) - } - httpRes.Body.Close() - httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - var out shared.SourceResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.SourceResponse = &out - default: - return nil, errors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 404: - default: - return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - // GetSourceClickhouse - Get Source details func (s *Sources) GetSourceClickhouse(ctx context.Context, request operations.GetSourceClickhouseRequest, opts ...operations.Option) (*operations.GetSourceClickhouseResponse, error) { hookCtx := hooks.HookContext{ @@ -48341,11 +48002,11 @@ func (s *Sources) GetSourceCustom(ctx context.Context, request operations.GetSou } -// GetSourceDatadog - Get Source details -func (s *Sources) GetSourceDatadog(ctx context.Context, request operations.GetSourceDatadogRequest, opts ...operations.Option) (*operations.GetSourceDatadogResponse, error) { +// GetSourceDatascope - Get Source details +func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.GetSourceDatascopeRequest, opts ...operations.Option) (*operations.GetSourceDatascopeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDatadog", + OperationID: "getSourceDatascope", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48418,7 +48079,7 @@ func (s *Sources) GetSourceDatadog(ctx context.Context, request operations.GetSo } } - res := &operations.GetSourceDatadogResponse{ + res := &operations.GetSourceDatascopeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48455,11 +48116,11 @@ func (s *Sources) GetSourceDatadog(ctx context.Context, request operations.GetSo } -// GetSourceDatascope - Get Source details -func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.GetSourceDatascopeRequest, opts ...operations.Option) (*operations.GetSourceDatascopeResponse, error) { +// GetSourceDelighted - Get Source details +func (s *Sources) GetSourceDelighted(ctx context.Context, request operations.GetSourceDelightedRequest, opts ...operations.Option) (*operations.GetSourceDelightedResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDatascope", + OperationID: "getSourceDelighted", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48532,7 +48193,7 @@ func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.Get } } - res := &operations.GetSourceDatascopeResponse{ + res := &operations.GetSourceDelightedResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48569,11 +48230,11 @@ func (s *Sources) GetSourceDatascope(ctx context.Context, request operations.Get } -// GetSourceDelighted - Get Source details -func (s *Sources) GetSourceDelighted(ctx context.Context, request operations.GetSourceDelightedRequest, opts ...operations.Option) (*operations.GetSourceDelightedResponse, error) { +// GetSourceDixa - Get Source details +func (s *Sources) GetSourceDixa(ctx context.Context, request operations.GetSourceDixaRequest, opts ...operations.Option) (*operations.GetSourceDixaResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDelighted", + OperationID: "getSourceDixa", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48646,7 +48307,7 @@ func (s *Sources) GetSourceDelighted(ctx context.Context, request operations.Get } } - res := &operations.GetSourceDelightedResponse{ + res := &operations.GetSourceDixaResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48683,11 +48344,11 @@ func (s *Sources) GetSourceDelighted(ctx context.Context, request operations.Get } -// GetSourceDixa - Get Source details -func (s *Sources) GetSourceDixa(ctx context.Context, request operations.GetSourceDixaRequest, opts ...operations.Option) (*operations.GetSourceDixaResponse, error) { +// GetSourceDockerhub - Get Source details +func (s *Sources) GetSourceDockerhub(ctx context.Context, request operations.GetSourceDockerhubRequest, opts ...operations.Option) (*operations.GetSourceDockerhubResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDixa", + OperationID: "getSourceDockerhub", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48760,7 +48421,7 @@ func (s *Sources) GetSourceDixa(ctx context.Context, request operations.GetSourc } } - res := &operations.GetSourceDixaResponse{ + res := &operations.GetSourceDockerhubResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48797,11 +48458,11 @@ func (s *Sources) GetSourceDixa(ctx context.Context, request operations.GetSourc } -// GetSourceDockerhub - Get Source details -func (s *Sources) GetSourceDockerhub(ctx context.Context, request operations.GetSourceDockerhubRequest, opts ...operations.Option) (*operations.GetSourceDockerhubResponse, error) { +// GetSourceDremio - Get Source details +func (s *Sources) GetSourceDremio(ctx context.Context, request operations.GetSourceDremioRequest, opts ...operations.Option) (*operations.GetSourceDremioResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDockerhub", + OperationID: "getSourceDremio", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48874,7 +48535,7 @@ func (s *Sources) GetSourceDockerhub(ctx context.Context, request operations.Get } } - res := &operations.GetSourceDockerhubResponse{ + res := &operations.GetSourceDremioResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -48911,11 +48572,11 @@ func (s *Sources) GetSourceDockerhub(ctx context.Context, request operations.Get } -// GetSourceDremio - Get Source details -func (s *Sources) GetSourceDremio(ctx context.Context, request operations.GetSourceDremioRequest, opts ...operations.Option) (*operations.GetSourceDremioResponse, error) { +// GetSourceDynamodb - Get Source details +func (s *Sources) GetSourceDynamodb(ctx context.Context, request operations.GetSourceDynamodbRequest, opts ...operations.Option) (*operations.GetSourceDynamodbResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceDremio", + OperationID: "getSourceDynamodb", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -48988,121 +48649,7 @@ func (s *Sources) GetSourceDremio(ctx context.Context, request operations.GetSou } } - res := &operations.GetSourceDremioResponse{ - StatusCode: httpRes.StatusCode, - ContentType: httpRes.Header.Get("Content-Type"), - RawResponse: httpRes, - } - - rawBody, err := io.ReadAll(httpRes.Body) - if err != nil { - return nil, fmt.Errorf("error reading response body: %w", err) - } - httpRes.Body.Close() - httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - var out shared.SourceResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.SourceResponse = &out - default: - return nil, errors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 404: - default: - return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// GetSourceDynamodb - Get Source details -func (s *Sources) GetSourceDynamodb(ctx context.Context, request operations.GetSourceDynamodbRequest, opts ...operations.Option) (*operations.GetSourceDynamodbResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "getSourceDynamodb", - OAuth2Scopes: []string{}, - SecuritySource: s.sdkConfiguration.Security, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { - _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - - res := &operations.GetSourceDynamodbResponse{ + res := &operations.GetSourceDynamodbResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51191,11 +50738,11 @@ func (s *Sources) GetSourceGnews(ctx context.Context, request operations.GetSour } -// GetSourceGoldcast - Get Source details -func (s *Sources) GetSourceGoldcast(ctx context.Context, request operations.GetSourceGoldcastRequest, opts ...operations.Option) (*operations.GetSourceGoldcastResponse, error) { +// GetSourceGoogleAds - Get Source details +func (s *Sources) GetSourceGoogleAds(ctx context.Context, request operations.GetSourceGoogleAdsRequest, opts ...operations.Option) (*operations.GetSourceGoogleAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoldcast", + OperationID: "getSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51268,7 +50815,7 @@ func (s *Sources) GetSourceGoldcast(ctx context.Context, request operations.GetS } } - res := &operations.GetSourceGoldcastResponse{ + res := &operations.GetSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51305,11 +50852,11 @@ func (s *Sources) GetSourceGoldcast(ctx context.Context, request operations.GetS } -// GetSourceGoogleAds - Get Source details -func (s *Sources) GetSourceGoogleAds(ctx context.Context, request operations.GetSourceGoogleAdsRequest, opts ...operations.Option) (*operations.GetSourceGoogleAdsResponse, error) { +// GetSourceGoogleAnalyticsDataAPI - Get Source details +func (s *Sources) GetSourceGoogleAnalyticsDataAPI(ctx context.Context, request operations.GetSourceGoogleAnalyticsDataAPIRequest, opts ...operations.Option) (*operations.GetSourceGoogleAnalyticsDataAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoogleAds", + OperationID: "getSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51382,7 +50929,7 @@ func (s *Sources) GetSourceGoogleAds(ctx context.Context, request operations.Get } } - res := &operations.GetSourceGoogleAdsResponse{ + res := &operations.GetSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -51419,11 +50966,11 @@ func (s *Sources) GetSourceGoogleAds(ctx context.Context, request operations.Get } -// GetSourceGoogleAnalyticsDataAPI - Get Source details -func (s *Sources) GetSourceGoogleAnalyticsDataAPI(ctx context.Context, request operations.GetSourceGoogleAnalyticsDataAPIRequest, opts ...operations.Option) (*operations.GetSourceGoogleAnalyticsDataAPIResponse, error) { +// GetSourceGoogleAnalyticsV4ServiceAccountOnly - Get Source details +func (s *Sources) GetSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Context, request operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyRequest, opts ...operations.Option) (*operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "getSourceGoogleAnalyticsDataApi", + OperationID: "getSourceGoogleAnalyticsV4ServiceAccountOnly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -51496,7 +51043,7 @@ func (s *Sources) GetSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } } - res := &operations.GetSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.GetSourceGoogleAnalyticsV4ServiceAccountOnlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -59399,6 +58946,120 @@ func (s *Sources) GetSourcePrestashop(ctx context.Context, request operations.Ge } +// GetSourcePunkAPI - Get Source details +func (s *Sources) GetSourcePunkAPI(ctx context.Context, request operations.GetSourcePunkAPIRequest, opts ...operations.Option) (*operations.GetSourcePunkAPIResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "getSourcePunkApi", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.GetSourcePunkAPIResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + var out shared.SourceResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SourceResponse = &out + default: + return nil, errors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // GetSourcePypi - Get Source details func (s *Sources) GetSourcePypi(ctx context.Context, request operations.GetSourcePypiRequest, opts ...operations.Option) (*operations.GetSourcePypiResponse, error) { hookCtx := hooks.HookContext{ @@ -69345,117 +69006,7 @@ func (s *Sources) PutSourceBraze(ctx context.Context, request operations.PutSour } } - res := &operations.PutSourceBrazeResponse{ - StatusCode: httpRes.StatusCode, - ContentType: httpRes.Header.Get("Content-Type"), - RawResponse: httpRes, - } - - rawBody, err := io.ReadAll(httpRes.Body) - if err != nil { - return nil, fmt.Errorf("error reading response body: %w", err) - } - httpRes.Body.Close() - httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) - - switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 404: - default: - return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - -// PutSourceCart - Update a Source fully -func (s *Sources) PutSourceCart(ctx context.Context, request operations.PutSourceCartRequest, opts ...operations.Option) (*operations.PutSourceCartResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "putSourceCart", - OAuth2Scopes: []string{}, - SecuritySource: s.sdkConfiguration.Security, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCartPutRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "*/*") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { - _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - - res := &operations.PutSourceCartResponse{ + res := &operations.PutSourceBrazeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69482,11 +69033,11 @@ func (s *Sources) PutSourceCart(ctx context.Context, request operations.PutSourc } -// PutSourceChargebee - Update a Source fully -func (s *Sources) PutSourceChargebee(ctx context.Context, request operations.PutSourceChargebeeRequest, opts ...operations.Option) (*operations.PutSourceChargebeeResponse, error) { +// PutSourceCart - Update a Source fully +func (s *Sources) PutSourceCart(ctx context.Context, request operations.PutSourceCartRequest, opts ...operations.Option) (*operations.PutSourceCartResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceChargebee", + OperationID: "putSourceCart", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69508,7 +69059,7 @@ func (s *Sources) PutSourceChargebee(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceChargebeePutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCartPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69565,7 +69116,7 @@ func (s *Sources) PutSourceChargebee(ctx context.Context, request operations.Put } } - res := &operations.PutSourceChargebeeResponse{ + res := &operations.PutSourceCartResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69592,11 +69143,11 @@ func (s *Sources) PutSourceChargebee(ctx context.Context, request operations.Put } -// PutSourceChartmogul - Update a Source fully -func (s *Sources) PutSourceChartmogul(ctx context.Context, request operations.PutSourceChartmogulRequest, opts ...operations.Option) (*operations.PutSourceChartmogulResponse, error) { +// PutSourceChargebee - Update a Source fully +func (s *Sources) PutSourceChargebee(ctx context.Context, request operations.PutSourceChargebeeRequest, opts ...operations.Option) (*operations.PutSourceChargebeeResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceChartmogul", + OperationID: "putSourceChargebee", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69618,7 +69169,7 @@ func (s *Sources) PutSourceChartmogul(ctx context.Context, request operations.Pu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceChartmogulPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceChargebeePutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69675,7 +69226,7 @@ func (s *Sources) PutSourceChartmogul(ctx context.Context, request operations.Pu } } - res := &operations.PutSourceChartmogulResponse{ + res := &operations.PutSourceChargebeeResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -69702,11 +69253,11 @@ func (s *Sources) PutSourceChartmogul(ctx context.Context, request operations.Pu } -// PutSourceClazar - Update a Source fully -func (s *Sources) PutSourceClazar(ctx context.Context, request operations.PutSourceClazarRequest, opts ...operations.Option) (*operations.PutSourceClazarResponse, error) { +// PutSourceChartmogul - Update a Source fully +func (s *Sources) PutSourceChartmogul(ctx context.Context, request operations.PutSourceChartmogulRequest, opts ...operations.Option) (*operations.PutSourceChartmogulResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceClazar", + OperationID: "putSourceChartmogul", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -69728,7 +69279,7 @@ func (s *Sources) PutSourceClazar(ctx context.Context, request operations.PutSou return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClazarPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceChartmogulPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -69785,7 +69336,7 @@ func (s *Sources) PutSourceClazar(ctx context.Context, request operations.PutSou } } - res := &operations.PutSourceClazarResponse{ + res := &operations.PutSourceChartmogulResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -71022,116 +70573,6 @@ func (s *Sources) PutSourceCustom(ctx context.Context, request operations.PutSou } -// PutSourceDatadog - Update a Source fully -func (s *Sources) PutSourceDatadog(ctx context.Context, request operations.PutSourceDatadogRequest, opts ...operations.Option) (*operations.PutSourceDatadogResponse, error) { - hookCtx := hooks.HookContext{ - Context: ctx, - OperationID: "putSourceDatadog", - OAuth2Scopes: []string{}, - SecuritySource: s.sdkConfiguration.Security, - } - - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDatadogPutRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "*/*") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { - _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - - res := &operations.PutSourceDatadogResponse{ - StatusCode: httpRes.StatusCode, - ContentType: httpRes.Header.Get("Content-Type"), - RawResponse: httpRes, - } - - rawBody, err := io.ReadAll(httpRes.Body) - if err != nil { - return nil, fmt.Errorf("error reading response body: %w", err) - } - httpRes.Body.Close() - httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) - - switch { - case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: - fallthrough - case httpRes.StatusCode == 403: - fallthrough - case httpRes.StatusCode == 404: - default: - return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - // PutSourceDatascope - Update a Source fully func (s *Sources) PutSourceDatascope(ctx context.Context, request operations.PutSourceDatascopeRequest, opts ...operations.Option) (*operations.PutSourceDatascopeResponse, error) { hookCtx := hooks.HookContext{ @@ -73772,11 +73213,11 @@ func (s *Sources) PutSourceGnews(ctx context.Context, request operations.PutSour } -// PutSourceGoldcast - Update a Source fully -func (s *Sources) PutSourceGoldcast(ctx context.Context, request operations.PutSourceGoldcastRequest, opts ...operations.Option) (*operations.PutSourceGoldcastResponse, error) { +// PutSourceGoogleAds - Update a Source fully +func (s *Sources) PutSourceGoogleAds(ctx context.Context, request operations.PutSourceGoogleAdsRequest, opts ...operations.Option) (*operations.PutSourceGoogleAdsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoldcast", + OperationID: "putSourceGoogleAds", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73798,7 +73239,7 @@ func (s *Sources) PutSourceGoldcast(ctx context.Context, request operations.PutS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoldcastPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleAdsPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73855,7 +73296,7 @@ func (s *Sources) PutSourceGoldcast(ctx context.Context, request operations.PutS } } - res := &operations.PutSourceGoldcastResponse{ + res := &operations.PutSourceGoogleAdsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73882,11 +73323,11 @@ func (s *Sources) PutSourceGoldcast(ctx context.Context, request operations.PutS } -// PutSourceGoogleAds - Update a Source fully -func (s *Sources) PutSourceGoogleAds(ctx context.Context, request operations.PutSourceGoogleAdsRequest, opts ...operations.Option) (*operations.PutSourceGoogleAdsResponse, error) { +// PutSourceGoogleAnalyticsDataAPI - Update a Source fully +func (s *Sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request operations.PutSourceGoogleAnalyticsDataAPIRequest, opts ...operations.Option) (*operations.PutSourceGoogleAnalyticsDataAPIResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleAds", + OperationID: "putSourceGoogleAnalyticsDataApi", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -73908,7 +73349,7 @@ func (s *Sources) PutSourceGoogleAds(ctx context.Context, request operations.Put return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleAdsPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleAnalyticsDataAPIPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -73965,7 +73406,7 @@ func (s *Sources) PutSourceGoogleAds(ctx context.Context, request operations.Put } } - res := &operations.PutSourceGoogleAdsResponse{ + res := &operations.PutSourceGoogleAnalyticsDataAPIResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -73992,11 +73433,11 @@ func (s *Sources) PutSourceGoogleAds(ctx context.Context, request operations.Put } -// PutSourceGoogleAnalyticsDataAPI - Update a Source fully -func (s *Sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request operations.PutSourceGoogleAnalyticsDataAPIRequest, opts ...operations.Option) (*operations.PutSourceGoogleAnalyticsDataAPIResponse, error) { +// PutSourceGoogleAnalyticsV4ServiceAccountOnly - Update a Source fully +func (s *Sources) PutSourceGoogleAnalyticsV4ServiceAccountOnly(ctx context.Context, request operations.PutSourceGoogleAnalyticsV4ServiceAccountOnlyRequest, opts ...operations.Option) (*operations.PutSourceGoogleAnalyticsV4ServiceAccountOnlyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "putSourceGoogleAnalyticsDataApi", + OperationID: "putSourceGoogleAnalyticsV4ServiceAccountOnly", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -74018,7 +73459,7 @@ func (s *Sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request o return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleAnalyticsDataAPIPutRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleAnalyticsV4ServiceAccountOnlyPutRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -74075,7 +73516,7 @@ func (s *Sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request o } } - res := &operations.PutSourceGoogleAnalyticsDataAPIResponse{ + res := &operations.PutSourceGoogleAnalyticsV4ServiceAccountOnlyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -81692,6 +81133,116 @@ func (s *Sources) PutSourcePrestashop(ctx context.Context, request operations.Pu } +// PutSourcePunkAPI - Update a Source fully +func (s *Sources) PutSourcePunkAPI(ctx context.Context, request operations.PutSourcePunkAPIRequest, opts ...operations.Option) (*operations.PutSourcePunkAPIResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "putSourcePunkApi", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/sources/{sourceId}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePunkAPIPutRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + + res := &operations.PutSourcePunkAPIResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + switch { + case httpRes.StatusCode >= 200 && httpRes.StatusCode < 300: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + default: + return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // PutSourcePypi - Update a Source fully func (s *Sources) PutSourcePypi(ctx context.Context, request operations.PutSourcePypiRequest, opts ...operations.Option) (*operations.PutSourcePypiResponse, error) { hookCtx := hooks.HookContext{